How do I add an additional matrix to be a variable in multpile matfiles?
Show older comments
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!
Accepted Answer
More Answers (0)
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!