How to use data in a structure
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
James
el 10 de Abr. de 2014
Editada: Azzi Abdelmalek
el 10 de Abr. de 2014
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
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 10 de Abr. de 2014
Editada: Azzi Abdelmalek
el 10 de Abr. de 2014
If your struct variable is A
B=A.data
C=A.textdata
0 comentarios
Más respuestas (1)
Alberto
el 10 de Abr. de 2014
If all your data is inside the structure A, you should call data and txt like this:
B=A.data
C=A.txt
0 comentarios
Ver también
Categorías
Más información sobre Structures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!