How to read multiple arrays from a text file?

5 vues (au cours des 30 derniers jours)
Abhirup Chaudhuri
Abhirup Chaudhuri le 19 Oct 2019
I have a file like the one I attached.I want to read this file in MATLAB and store in seperate arrays like:
A = [2, 3, 4;5, 3, 0]
B= [6, 4, 2;1, 6, 9].
Or in a cell.
Also if anyone can suggest if I have a large number of datas and where it would be not be possible to store them individually.
  2 commentaires
Abhirup Chaudhuri
Abhirup Chaudhuri le 21 Oct 2019
Thanks per.

Connectez-vous pour commenter.

Réponses (1)

Prasad Parameswaran
Prasad Parameswaran le 22 Oct 2019
The "readmatrix" function may solve your issue. Refer this link for more details

Community Treasure Hunt

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

Start Hunting!

Translated by