필터 지우기
필터 지우기

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.
  댓글 수: 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.

댓글을 달려면 로그인하십시오.

추가 답변 (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