Filter löschen
Filter löschen

help with plotting function

3 Ansichten (letzte 30 Tage)
random1072
random1072 am 4 Mai 2020
Bearbeitet: Ameer Hamza am 4 Mai 2020
I want to plot q_path as a function of the percentage along the path (i.e. horizontal axis will range from 0 to 1). Any help would be great. underneith is my copied code. The stuff I need plotted is the very last section of the below code
  1 Kommentar
darova
darova am 4 Mai 2020
20 question asked but still didn't learn how to use code button inserting?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 4 Mai 2020
Bearbeitet: Ameer Hamza am 4 Mai 2020
Change the following lines in your code
plot(rescale(xpos,0,1),rescale(ypos,0,1),'ko-','Linewidth',1.5) % <=== line 15
axis([0 1 0 1]) % <=== line 17
plot(rescale(xstep,0,1),rescale(ystep,0,1),'rs'); % <=== line 33
plot3(rescale(xstep,0,1),rescale(ystep,0,1),y,'bo'); % <=== line 42
Values are normalized in range [0 1].

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by