From: Yukiko Shimizu on
Hi everyone.

Right now my program acts upon one input. I want to make it general though by using the randn option so that I can input one matrix or a random number of made up matrices. How can I make it so that my code acts on all of the matrices say for randn(:.:.4)?
From: Yukiko Shimizu on
"Yukiko Shimizu" <yk.mizu(a)gmail.com> wrote in message <hvg6qk$t4e$1(a)fred.mathworks.com>...
> Hi everyone.
>
> Right now my program acts upon one input. I want to make it general though by using the randn option so that I can input one matrix or a random number of made up matrices. How can I make it so that my code acts on all of the matrices say for randn(:.:.4)?

I was thinking of putting all the random produced matrices into a 1xn matrix or list and then have a for loop to act on every element on the list matrix. But I'm not too sure about the syntax.
From: James Tursa on
"Yukiko Shimizu" <yk.mizu(a)gmail.com> wrote in message <hvg6qk$t4e$1(a)fred.mathworks.com>...
> Hi everyone.
>
> Right now my program acts upon one input. I want to make it general though by using the randn option so that I can input one matrix or a random number of made up matrices. How can I make it so that my code acts on all of the matrices say for randn(:.:.4)?

I don't understand the question. Please post a more detailed question, preferably with examples.

James Tursa
From: Yukiko Shimizu on
"James Tursa" <aclassyguy_with_a_k_not_a_c(a)hotmail.com> wrote in message <hvg8n7$rmd$1(a)fred.mathworks.com>...
> "Yukiko Shimizu" <yk.mizu(a)gmail.com> wrote in message <hvg6qk$t4e$1(a)fred.mathworks.com>...
> > Hi everyone.
> >
> > Right now my program acts upon one input. I want to make it general though by using the randn option so that I can input one matrix or a random number of made up matrices. How can I make it so that my code acts on all of the matrices say for randn(:.:.4)?
>
> I don't understand the question. Please post a more detailed question, preferably with examples.
>
> James Tursa

So my original input is a matrix A=[2;3;4]. But Now I want to make it so that my program will take an input randn(3,1,3) for example. I want to get three outputs since the input now is three random matices. But when I run it, my program accepts the three matrice input but only gives me one matrix. I'm guessing my program only acts on the first of the generated random matrices.
From: us on
"Yukiko Shimizu" <yk.mizu(a)gmail.com> wrote in message <hvg97g$gp$1(a)fred.mathworks.com>...
> "James Tursa" <aclassyguy_with_a_k_not_a_c(a)hotmail.com> wrote in message <hvg8n7$rmd$1(a)fred.mathworks.com>...
> > "Yukiko Shimizu" <yk.mizu(a)gmail.com> wrote in message <hvg6qk$t4e$1(a)fred.mathworks.com>...
> > > Hi everyone.
> > >
> > > Right now my program acts upon one input. I want to make it general though by using the randn option so that I can input one matrix or a random number of made up matrices. How can I make it so that my code acts on all of the matrices say for randn(:.:.4)?
> >
> > I don't understand the question. Please post a more detailed question, preferably with examples.
> >
> > James Tursa
>
> So my original input is a matrix A=[2;3;4]. But Now I want to make it so that my program will take an input randn(3,1,3) for example. I want to get three outputs since the input now is three random matices. But when I run it, my program accepts the three matrice input but only gives me one matrix. I'm guessing my program only acts on the first of the generated random matrices.

again, this is not clear and even confusing...
show a good example of your input and the expected output, which CSSMers can copy/paste into the command window...

us