How can I change hisfit curve into 2d gaussian contour plot?

조회 수: 1 (최근 30일)
Sabella Huang
Sabella Huang 2022년 6월 24일
댓글: Star Strider 2022년 6월 24일
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

채택된 답변

Star Strider
Star Strider 2022년 6월 24일
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
Sabella Huang
Sabella Huang 2022년 6월 24일
Yes this is what I want. Thank you very much
Star Strider
Star Strider 2022년 6월 24일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by