How to read text file and plot scatter plot in matlab

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 comentarios

Rik
Rik el 6 de En. de 2022
By first reading your text file to a variable.
What did you try so far?
Once you have read your text file to a 5 by 4 array, you will have to decide what exactly you want to plot. Matlab can handle 3D scatter plots, but 4 or 5 dimensions is too many. You will have to decide what that actually means and what you want to happen on your screen.
let say i have to used first two columns how can i plot that?
Rik
Rik el 10 de En. de 2022
Why did you delete the attachment?
I have now made a backup of this thread here.
because my problem is solved

Iniciar sesión para comentar.

 Respuesta aceptada

KSSV
KSSV el 6 de En. de 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.

2 comentarios

KSSV Can you please share some code?
Type this in your command window:
doc readmatrix

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Versión

R2021b

Preguntada:

el 6 de En. de 2022

Comentada:

el 10 de En. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by