Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Storing of values in an array
Replies: 7   Last Post: Jan 30, 2014 8:44 AM

 Messages: [ Previous | Next ]
 Narayanan Posts: 14 Registered: 6/10/13
Re: Storing of values in an array
Posted: Jan 25, 2014 1:37 AM

But that is displaying the final value of SF1 and SF2.
This is the code for SF1 where rad2 is a matrix and rows3 is the number of rows of matrix rad2.
for c=1:(rows3-1)
for d=2:rows3
if (d-c)==1
alpha=(R*cos(angle*pi/180))/(Vc*Vd);
beta=(R*sin(angle*pi/180))/(Vc*Vd);
% VS3=
else
end
end
This is the code for SF2 where rad3 is a matrix and rows4 is the number of rows of matrix rad3.
for c=1:(rows4-1)
for d=2:rows4
if (d-c)==1
alpha=(R*cos(angle*pi/180))/(Vc*Vd);
beta=(R*sin(angle*pi/180))/(Vc*Vd);
% VS4=
else
end
end
end

Now I need to store all the values of SF1 and SF2 (i.e values generated in each iteration) in another array/matrix OV. Now can you help me?
enddpb <none@non.net> wrote in message <lbttuv\$ikt\$1@speranza.aioe.org>...
> On 1/24/2014 8:25 AM, dpb wrote:
> ...
>

> > But, to answer the question
> >
> > OV=[SF1 SF2]; % SFx are row vectors
> >
> > or
> >
> > OV[SF1;SF2]; % they're column-oriented

>
> ERRATUM:
>
> Missing '=' sign, of course...
>
> OV=[SF1;SF2]; % they're column-oriented
>
>
> --

Date Subject Author
1/24/14 Narayanan
1/24/14 dpb
1/24/14 dpb
1/25/14 Narayanan
1/25/14 Bernt Nilsson
1/26/14 Narayanan
1/30/14 Narayanan
1/25/14 Ranjan Kumar