Effacer les filtres
Effacer les filtres

How to read text file and plot scatter plot in matlab

6 vues (au cours des 30 derniers jours)
hammad younas
hammad younas le 6 Jan 2022
Commenté : hammad younas le 10 Jan 2022

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 commentaires
Rik
Rik le 10 Jan 2022
Why did you delete the attachment?
I have now made a backup of this thread here.
hammad younas
hammad younas le 10 Jan 2022
because my problem is solved

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 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.
  2 commentaires
hammad younas
hammad younas le 6 Jan 2022
KSSV Can you please share some code?
Rik
Rik le 6 Jan 2022
Type this in your command window:
doc readmatrix

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Scatter Plots dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by