i need the code for the below graph.

7 件のコメント

Sanjay Kumar
Sanjay Kumar 2024 年 2 月 29 日
Please its an emergency
Voss
Voss 2024 年 2 月 29 日
See plot and hold.
legend, xlabel, ylabel, and grid may also be useful.
Sanjay Kumar
Sanjay Kumar 2024 年 2 月 29 日
i am a beginer please can u give me the code
Cris LaPierre
Cris LaPierre 2024 年 2 月 29 日
This is an impossible request based on the information we have.
As a beginner, you would benefit by going through MATLAB Onramp. It's a free, 2-hr introduction to the basics of using MATLAB.
Ch 9 introduces plotting, and teaches the skills you need to create a plot similar to the one you show in your post.
Sanjay Kumar
Sanjay Kumar 2024 年 2 月 29 日
Sanjay Kumar
Sanjay Kumar 2024 年 2 月 29 日
this is the algorithm
Voss
Voss 2024 年 2 月 29 日
Are you having trouble implementing the algorithm in MATLAB or are you having trouble creating the plot in MATLAB?

サインインしてコメントする。

回答 (1 件)

Voss
Voss 2024 年 2 月 29 日

0 投票

I don't have the data, so I can't generate that exact plot, but here's a similar one:
x = -25:245;
y = (x+25).'.*[0.5 0.45]-75;
plot(x,y(:,1),'r','LineWidth',3);
hold on
plot(x,y(:,2),'Color',[0.75 0.75 0],'LineWidth',2)
grid on
xlabel('Meters')
ylabel('Meters')
legend({'GPS ground trooth','Spufed trajectory'},'Location','NorthWest')

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

製品

リリース

R12.1

質問済み:

2024 年 2 月 29 日

コメント済み:

2024 年 2 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by