Info
此问题已关闭。 请重新打开它进行编辑或回答。
I can't find the mistakes
1 次查看(过去 30 天)
显示 更早的评论
I'm so bad at matlab, sorry for asking stupid questions here.. I need to make a GUI with a 3D plot which is drawing 2 circles by inserting data, like it's shown in the picture. The left button means: Show the circles. The code written as a message, was a previous attempt. Can somebody help me find the mistakes? Thank you!
2 个评论
回答(1 个)
Walter Roberson
2020-7-1
desen_cercuri_Callback assigns to x01, y01 and so on, but tries to plot(x1,y1,z1,x2,y2,z2) -- notice the x01 vs x1.
Note that your x01 and so on will be scalars, so you are plot3() of two individual points, and you are doing that with no markers. When you plot or plot3 individual points with no markers, nothing will show up on the display.
You need to convert your x01, y01 and so on values into x1, y1, z1 values that are the three-space circles.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!