필터 지우기
필터 지우기

Using structure in loop with different fields

조회 수: 2 (최근 30일)
naman
naman 2015년 6월 13일
댓글: Azzi Abdelmalek 2015년 6월 13일
Hi
I have two loops
for i = 1:m
for j = 1:n
hh = call_some_function
end
end
and hh is a structure with three different fields. I want to use hh for all i and j so that I can use it somewhere. How can I do it ?

채택된 답변

Adam
Adam 2015년 6월 13일
hh(i,j) = call_some_function( i, j )

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by