Info

此问题已关闭。 请重新打开它进行编辑或回答。

I can't find the mistakes

1 次查看(过去 30 天)
Zaharia Denisa
Zaharia Denisa 2020-6-30
关闭: MATLAB Answer Bot 2021-8-20
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 个评论
Image Analyst
Image Analyst 2020-6-30
You forgot to attach the .fig file. It's hard to fix it without that!

回答(1 个)

Walter Roberson
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.

Community Treasure Hunt

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

Start Hunting!

Translated by