??? Error using ==> plot3 Data must be a single matrix Y or a list of pairs X,Y
2 ビュー (過去 30 日間)
古いコメントを表示
ans = Z{1}
[1x3 double]
ans = Z{2}
Columns 1 through 6
[1x3 double] [1x3 double] [1x3 double] [1x3 double] [1x3 double] [1x3 double]
Column 7
[1x3 double]
ans = Z{3}
[1x3 double] [1x3 double]
nclust = length(Z);
thismap = copper(nclust); %or pink or flag or hot or ...
clustcoords = cellfun( @cell2mat, Z, 'Uniform', 0 );
for k = 1 : length(clustcoords)
XYZ = clustcoords{k};
plot3(XYZ(:,1), XYZ(:,2), XYZ(:,3), thismap(k,:));
hold on
end
??? Error using ==> plot3
Data must be a single matrix Y or a list of pairs X,Y
Error in ==> knew at 107
plot3(XYZ(:,1), XYZ(:,2), XYZ(:,3), thismap(k,:));
can anyone help ?
Thanks
0 件のコメント
回答 (1 件)
Walter Roberson
2013 年 11 月 13 日
plot3(XYZ(:,1), XYZ(:,2), XYZ(:,3), 'Color', thismap(k,:));
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!