matlab三维画图问题。

9 次查看(过去 30 天)
fayherp
fayherp 2023-5-22
回答: grdheng 2023-5-22
现在我有一组数据x大小是8x10;P大小是8x10;load_inc为8;
用plot3(x,load_inc,P)画出来是这样的
请问有什么方法可以得到附录图片的效果图吗

采纳的回答

grdheng
grdheng 2023-5-22
你给的数据里面变量叫 pers, increm, error 与你代码说的 x, load_inc, P 没一个名字对的…请不要搞这种浪费别人时间去猜谁是谁的事情,你提问时请直接统一变量名。
无非就是把矩阵维度匹配上,适当转置而已。
close all;
subplot( 121 )
plot3( pers, kron( increm.', ones( 1, 10 ) ),  error )
subplot( 122 )
plot3( pers.', kron( ones( 10, 1 ), increm ),  error.' )

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!