MATLAB Answers

I can't find the mistakes

4 views (last 30 days)
Zaharia Denisa
Zaharia Denisa on 30 Jun 2020
Answered: Walter Roberson on 1 Jul 2020
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 Comments

Image Analyst
Image Analyst on 30 Jun 2020
You forgot to attach the .fig file. It's hard to fix it without that!
Zaharia Denisa
Zaharia Denisa on 1 Jul 2020
Thank you. I'm sorry!

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 1 Jul 2020
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 Comments

Sign in to comment.


Translated by