Filter löschen
Filter löschen

arrayfun_Apply function to each element of array

2 Ansichten (letzte 30 Tage)
Chaklader Asfak
Chaklader Asfak am 19 Aug. 2011
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 :)

Antworten (1)

Andrei Bobrov
Andrei Bobrov am 19 Aug. 2011
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

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by