Normalize x-axis and y-axis of surface plot
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Wesam AlAmiri
am 13 Mär. 2022
Kommentiert: Steven Lord
am 18 Mär. 2022
I created a matlab code to calculate the cross ambiguity function. The results are correct, but the problem I am facing that the doppler and delay values are from 0 to 400, and the peak is centered at 200.
I am just wondering how can I normalize the x-axis (delay) and y-axis(doppler) of the surface plot to have the peak centered at 0?
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 13 Mär. 2022
Call surf with 3 inputs not just 1.
[x, y, z] = peaks;
figure
surf(z)
title('1 input')
figure
surf(x, y, z)
title('3 inputs')
4 Kommentare
Steven Lord
am 18 Mär. 2022
I suspect you have matrices of x, y, and z data (like what was returned by the peaks function in my example above.)
[x, y, z] = peaks;
whos
So what specifically do you mean by "plot the X-axis with Z-axis"? For the peaks data, what do you want to plot? Do you want to turn them into a vector?
plot(x(:), y(:))
figure
plot(x(:), z(:))
figure
plot(y(:), z(:))
Or do you want the view-based approach I showed earlier? Or did you have something else in mind?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!