필터 지우기
필터 지우기

arrayfun_Apply function to each element of array

조회 수: 2 (최근 30일)
Chaklader Asfak
Chaklader Asfak 2011년 8월 19일
Aynone can help me to understand the arrayfun function ?
Say, what it meant by this coing ?
arrayfun(@(i1)plot3(Num(i1,k(1,:)),Num(i1,k(2,:)),Num(i1,k(3,:))),1:size(Num,1))
By the way , I already made a plot3 graph. Hope you wont mind to answer me :)

답변 (1개)

Andrei Bobrov
Andrei Bobrov 2011년 8월 19일
please read
doc arrayfun
in it case can be replaced by loop
hold on
for i1 = 1:size(Num,1)
plot3(Num(i1,k(1,:)),Num(i1,k(2,:)),Num(i1,k(3,:)));
end

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by