Clear Filters
Clear Filters

i need the code for the below graph.

2 views (last 30 days)
Sanjay Kumar
Sanjay Kumar on 29 Feb 2024
Commented: Voss on 29 Feb 2024
  7 Comments
Voss
Voss on 29 Feb 2024
Are you having trouble implementing the algorithm in MATLAB or are you having trouble creating the plot in MATLAB?

Sign in to comment.

Answers (1)

Voss
Voss on 29 Feb 2024
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')

Products


Release

R12.1

Community Treasure Hunt

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

Start Hunting!