??? Subscript indices must either be real positive integers or logicals.
1 次查看(过去 30 天)
显示 更早的评论
Help. I am very new to MATLAB and I am having problems creating a for loop within a for loop in order to draw a ruled surface.
Here is the script that makes the message appear above:
for u=0:.05:1
for v=0:.005:1
P=[1,1];
P1=[5,1];
P2=[2,4];
P3=[6,3];
puvx=P+u*(P1-P);
puvy=P2+u(P3-P2);
plot(puvx,puvy);
grid on;
axis square;
hold on;
end
end
What does this mean and how can I fix this? I am so lost. Thank you, Rachel
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!