how to plot 100x100 data set

조회 수: 5 (최근 30일)
Mammadbaghir Baghirzade
Mammadbaghir Baghirzade 2022년 11월 20일
댓글: Mammadbaghir Baghirzade 2022년 11월 20일
Hi all,
I am trying to plot 100x100 data set in 2-D. Each point in the data set corresponds to a location of (x,y) (single node). I discretized xy domain by 100 nodes. Both x and y axes are equispaced by delta = 1/(N-1) = 1/99. Could you please suggest any possible way of plotting such a data set?
My file is .dat, and was not able to attach it here.
Thank you for your time.

답변 (1개)

Catalytic
Catalytic 2022년 11월 20일
X=rand(100);
Y=rand(100);
scatter(X,Y);
  댓글 수: 1
Mammadbaghir Baghirzade
Mammadbaghir Baghirzade 2022년 11월 20일
Hi Catalytic,
Thank you for your prompt reply. I have just found the "surf data" command in the pop-up menu when I right clicked on data2 file in the workscpace. It plotted the required surface. Thank you for your help though.
Have a nice weekend!

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

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by