SOLVE Method and loops?



Hallo,

i have one problem,

i need such kind of code for my program

if n==4
[a1 a2 a3]=solve(Fx(1,1),Fx(1,2),Fx(1,3),a1,a2,a3)
[a4 a5 a6]=solve(Fx(2,1),Fx(2,2),Fx(2,3),a4,a5,a6)

elseif n==5
[a1 a2 a3 a4]= =solve(Fx(1,1),Fx(1,2),Fx(1,3),Fx(1,4),a1,a2,a3,a4);
[a5 a6 a7 a8]=
=solve(Fx(2,1),Fx(2,2),Fx(2,3),Fx(2,4),a5,a6,a7,a8);

elseif n==6
..
..
..
..
and so on

Is it possible to do it with loops, for example with for-loop???

I tryed to save for example
Fx(1,1),Fx(1,2),Fx(1,3),a1,a2,a3
in one vector and to give this vector to solve method but it doesnt
work :-(

Thank you for your help!!!!

A
.



Relevant Pages

  • Re: increasing counter whithin loop?
    ... is not intuitive ) that the counter in the for-loop can't be ... > 90% of the time you don't need counters or while loops, ... there's nothing preventing you from doing e.g.: ... > # set skip to true to skip the next iteration ...
    (comp.lang.ruby)
  • Re: Server Error in / Application.
    ... > controller using server extension. ... > I tried and granted the user to windows folder but doesnt seem to have any ... Prev by Date: ...
    (microsoft.public.dotnet.faqs)
  • add two matrix
    ... or in another exemple: ... but this way of making the calculations, with For loops is very slow, ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • to create a vector
    ... vectorization in order to avoid for loops? ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • make command window visible
    ... I tried using the file exchange showwindow.m but it ... doesnt seem to work with v6.5. ... Is there a way to do it within matlab. ... Prev by Date: ...
    (comp.soft-sys.matlab)