[英]matlab 3d graph based on x,y,z data
I'm trying to create a mesh-type plot to analyse the impact of centrifugation and time on the viability of bone cells. 我正在尝试创建一个网状图,以分析离心作用和时间对骨细胞活力的影响。 If my results are: 如果我的结果是:
500g, 2min --> 0.12 / 500g, 10 min --> 0.00 / 4500g, 2 min --> 0.12 / 4500g, 10 min --> 0.10 / 500g,2分钟-> 0.12 / 500g,10分钟-> 0.00 / 4500g,2分钟-> 0.12 / 4500g,10分钟-> 0.10 /
, how would I plot this data in a 3D graph? ,我将如何在3D图形中绘制这些数据? I'm v. new to matlab - spent ~ 4 hours trying to figure this out. 我是Matlab的新手-花费了大约4个小时来解决这个问题。 Would be useful to use this as a template for future work. 将此用作将来工作的模板将很有用。 Any help would be much appreciated. 任何帮助将非常感激。
Cheers, W W,干杯
I think that this is what you're looking for 我认为这就是您要寻找的
weight = [500, 4500];
time = [2;10];
results = [0.12, 0.12; 0, 0.10];
surf(weight, time, results)
xlabel('wieght')
ylabel('time')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.