How to read text file and plot scatter plot in matlab

조회 수: 2 (최근 30일)
hammad younas
hammad younas 2022년 1월 6일
댓글: hammad younas 2022년 1월 10일

i have a dataset in text file i want to read and plot scatter plot in matlab
How can i do that
i have attached my text file

  댓글 수: 4
Rik
Rik 2022년 1월 10일
Why did you delete the attachment?
I have now made a backup of this thread here.
hammad younas
hammad younas 2022년 1월 10일
because my problem is solved

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

채택된 답변

KSSV
KSSV 2022년 1월 6일
To load the data into MATLAB workspace read about load, readmatrix, importdata. You can use any of these function.
Your text file has a matrix, you cannot plot it as a scatter plot. You can use pcolor, read about it.
  댓글 수: 2
hammad younas
hammad younas 2022년 1월 6일
KSSV Can you please share some code?
Rik
Rik 2022년 1월 6일
Type this in your command window:
doc readmatrix

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by