I have an error with the plot3 function "vectors must be the same length"
显示 更早的评论
As the title says, I get the error and I'm new to matlab so I can't really figure out what is the problem. I tried to read previous questions on the same subject but those codes were too complicated for me to understand.
my code:
close all
syms x y
fmesh(((x^2)*y)/((x^2+y)^2),[0 2 -1 1], 'ShowContours','on')
hold on;
t = -1:0.1:1;
x1 = t;
x2 = t.^2;
x3 = (t.^4)/(4*t.^4);
p=plot3(x1,x2,x3);grid
xlabel('x');
ylabel('y');
zlabel('z');
length(p);
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
