Why I am getting "Error Using Plot , invalid color or line type " in line 15

12 views (last 30 days)

Answers (1)

Vignesh Murugavel
Vignesh Murugavel on 4 Aug 2021
plot3(X,Y,Z) plots coordinates in 3-D space.
  • To plot a set of coordinates connected by line segments, specify X, Y, and Z as vectors of the same length.
  • To plot multiple sets of coordinates on the same set of axes, specify at least one of X, Y, or Z as a matrix and the others as vectors.
Walter Roberson
Walter Roberson on 4 Aug 2021
On line 15 of your code you have '-5'. What did you intend by the 5 part of that?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!