필터 지우기
필터 지우기

help with plotting function

조회 수: 3 (최근 30일)
random1072
random1072 2020년 5월 4일
편집: Ameer Hamza 2020년 5월 4일
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
darova
darova 2020년 5월 4일
20 question asked but still didn't learn how to use code button inserting?

댓글을 달려면 로그인하십시오.

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 5월 4일
편집: Ameer Hamza 2020년 5월 4일
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].

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by