how do we make vector the same length ( i get the error: vector must be the same length)
1 次查看(过去 30 天)
显示 更早的评论
x=linspace(0,100);
y=linspace(0,100);
z=(-8.*x)/(x.^2+ y.^2 +1);
plot3(x,y,z)
0 个评论
回答(1 个)
the cyclist
2021-10-7
编辑:the cyclist
2021-10-7
x=linspace(0,100);
y=linspace(0,100);
z=(-8.*x)./(x.^2+ y.^2 +1); % Note that I changed this to ./
plot3(x,y,z)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!