Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Math Forum
»
Discussions
»
Software
»
comp.softsys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
How can I manage the multidimensional array e.g., a{1,1}{2,2}
Replies:
6
Last Post:
Jul 29, 2012 12:26 PM



a
Posts:
2
Registered:
2/20/06


How can I manage the multidimensional array e.g., a{1,1}{2,2}
Posted:
Jul 29, 2012 5:14 AM


I am introducing cell array format like T = 10; for t = 1 : T F{1,2}{6,t} = [0 0 0]; end
I want to change only the dimension along parameter "t" e.g., from t = 5 to t = 8 F{1,2}{6,5} = [1 1 1]; F{1,2}{6,6} = [1 1 1]; F{1,2}{6,7} = [1 1 1];
What I dd try,
F{1,2}{6, 5:7} = [1 1 1];
It does not work, it returns
The right hand side of this assignment has too few values to satisfy the left hand side.
Could any one please suggest me, how could I resolve this problem?
I have really no idea if I am using F{}{}, what this "F{}{}" called. Therefoe, I cannot search for help properly.
Thank you in advance. Antonio



