Convering 4 data vectors into 3d matrix
1 次查看(过去 30 天)
显示 更早的评论
Hi, I have three vectors like this x=[1,2,3,1], y=[1,2,3,2] and z=[1,2,3,3] and a forth vector v=[10,15,20,25] which is dependant on x,y and z.
is there a way to make a 3D matrix representing the value of v in the space of x,y,z?
thanks!
0 个评论
回答(1 个)
Tala
2022-4-6
x=[1,2,3,1];
y=[1,2,3,2];
z=[1,2,3,3];
v=[10,15,20,25] ;
scatter3(x,y,z,40,v,'filled') % draw the scatter plot
view(-31,14)
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Distribution Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!