How to use data in a structure
Afficher commentaires plus anciens
Hi,
I used the following code A=importdata('filename'). This worked out great and gave me the data from the file in a structure "A". The structure has a matrix "data" and an array "txt" in it. How do I use that matrix / aray later in the script? I tried to set B=data and C=txt but it gave me the error of unknown variables.
Thanks
Réponse acceptée
Plus de réponses (1)
Alberto
le 10 Avr 2014
0 votes
If all your data is inside the structure A, you should call data and txt like this:
B=A.data
C=A.txt
Catégories
En savoir plus sur Data Types dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!