How to set scale range for a contour?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Vishnuvardhan Naidu Tanga
am 13 Sep. 2021
Kommentiert: Star Strider
am 13 Sep. 2021
Hello,
I am trying to plot a contour from excel data with two colums. Is their any way to set the scale of both the axis in the data range and with label? I am attaching the contour plot i have obtained, I didnt understand why the x axis is from 1:2. Can some one please help me. Thanks in advance.
My code:
data = readtable('Abb73at42.xlsx');
dataArray = table2array(data);
contourf(dataArray);
0 Kommentare
Akzeptierte Antwort
Star Strider
am 13 Sep. 2021
The x-axis goes from 1 to 2 because the contour plot is of a (117x2) matrix. That also explains the range of the y-axis.
data = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/736719/Abb73at42.xlsx')
figure
plot(data.X, data.Y)
grid
xlabel('X')
ylabel('Y')
More importantly, what information do you want to get from a contour plot of these data? That could provide an approach to getting a useful result.
.
5 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Contour 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!