How do I add an additional matrix to be a variable in multpile matfiles?
Afficher commentaires plus anciens
Hello! I have some matfiles to analysis and I have to add a new matrix to be a variable in one file. Like the below images show, I have to add an additional matrix 'lab' to the '0631312_s1.mat' (the second image), make it same like '0631312_1.mat' (the first image) and the matrix is a 512x512 null-matrix, like the third image.



I know we can use function zeros(n) to build a n x n null matrix, but what should I do to assign an additional matrix to be a variable in multiple matfiles automatically? Please suggest and thank you for helping me!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Shifting and Sorting Matrices 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!