How to read text file and plot scatter plot in matlab

7 views (last 30 days)
hammad younas
hammad younas on 6 Jan 2022
Commented: hammad younas on 10 Jan 2022
This question was flagged by Rik

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 Comments

Sign in to comment.

Accepted Answer

KSSV
KSSV on 6 Jan 2022
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by