How to store an array of values in for loop?

1 次查看(过去 30 天)
I am unsure on how to store an array of values in a for loop? example:
for i=1:10 A=(R*5)+(Y*6); end;
% A represents the array.
When i type A, i could not get the set of array values.

采纳的回答

Krishnendu Mukherjee
for i=1:10 A(:,i)=(R*5)+(Y*6); end you can try this

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by