hi , I've got code shows more than the result because of the Loop . The question now is how do I store the result in array in order to call this values [a] again
Show older comments
n=[4;5;6]; phi=[3;4;5]; s=[2;3;4]; o=3; for nn=1:o for ph=1:o for ss=1:o n(nn) phi(ph) s(ss) a=n(nn)+phi(ph)+s(ss) end end end
1 Comment
mohammed elmenshawy
on 9 Aug 2016
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!