How to store value of each iteration in table and call that in another function

1 次查看(过去 30 天)
I am searching for above help, but could not found. Can you please put it through a Example code.

采纳的回答

Birdman
Birdman 2017-11-3
As an example:
n=10;
for i=1:n
Array=rand(1,2)
table_array(i,:)=table(Array)
%see every step which randomly generated values are stored in a table
end
DISPLAY(table_array)
%DISPLAY is the function which displays the table
function y=DISPLAY(x)
y=x;
end
  5 个评论
Birdman
Birdman 2017-11-4
n=10;
for i=1:n
Array=rand(1,2);
B_Array=sqrt(Array);
table_array(i,:)=table(Array,B_Array)
%see every step which randomly generated values are stored in a table
end
DISPLAY(table_array)
%DISPLAY is the function which displays the table
You will add it like this.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by