How can I change hisfit curve into 2d gaussian contour plot?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Sabella Huang
am 24 Jun. 2022
Kommentiert: Star Strider
am 24 Jun. 2022
Hello Guys,
I want to ask about, how to make the hisfit curve becomes a 2d gaussian function plot?. Here, I give my hisfit calculations from matlab in excel forms.
Thank you
0 Kommentare
Akzeptierte Antwort
Star Strider
am 24 Jun. 2022
I am not certain what you want.
Try this —
D = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1044625/Hisfit%20curve.xlsx');
x = D(:,1);
y = D(:,2);
figure
plot(x, y)
grid
title('Original Data')
figure
surf(x, x, y*y.')
title('Surface Plot Of Original Data (Ax MAtrix)')
figure
contourf(x,x,y*y.')
axis('equal')
title('Contour Plot Of Matrix Data')
.
2 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!