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

3 ビュー (過去 30 日間)
Mukund
Mukund 2017 年 11 月 3 日
コメント済み: Mukund 2017 年 11 月 5 日
I am searching for above help, but could not found. Can you please put it through a Example code.
  1 件のコメント
KL
KL 2017 年 11 月 3 日
Be more specific, show what you're trying to do and what problem are you facing.

サインインしてコメントする。

採用された回答

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.
Mukund
Mukund 2017 年 11 月 5 日
Thank you very much..

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by