How to store a matrix obtained in a particular file/directory??
Mostrar comentarios más antiguos
Good morning.. In fact, say I am running a program which generates a parity-check matrix of size 1000X2000... I would like to know how to save that parity check matrix for later use without having to run the program each time since it takes a lot of time...
Respuesta aceptada
Más respuestas (1)
Grzegorz Knor
el 17 de Oct. de 2011
save command stores variable in a MATLAB formatted binary file (MAT-file):
save(filename, 'your_matrix')
To load data from MAT-file into workspace use load function:
load(filename)
2 comentarios
Synchronie
el 17 de Oct. de 2011
Grzegorz Knor
el 17 de Oct. de 2011
Is 12X16H_matrix your file name and H1 matrix name?
If so, then:
save('12X16H_matrix', 'H1')
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!