How to get the one by one value of array using variable?

조회 수: 1 (최근 30일)
Aqeel Awan
Aqeel Awan 2021년 7월 1일
댓글: Aqeel Awan 2021년 7월 2일
node=[9 44 5];
[m,n]=size(node);
for i=1:m
for j=1:n
%
end
end
i want to get one by one value of array in a variable and then perform some condition on that value, after that next value should be come into variable, how it is possibe?

채택된 답변

Yongjian Feng
Yongjian Feng 2021년 7월 1일
Hello Aqeel,
You want this, right?
node=[9 44 5];
[m,n]=size(node);
for i=1:m
for j=1:n
tmpVar = node(m, n);
end
end
Thanks,
Yongjian

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by