code to load my files from folder, add workspace variable and save to another folder
Show older comments
Dears,
I have a lot of .mat files wich I want to add a variable fs=128 to all of the one by one.

one way is to load ech other, add variable and save, which takes some days because of thousands data.
so I need a code (i.e. for loop) to load each one, add same variable and save it.
please help me.
thank you.
Accepted Answer
More Answers (0)
Categories
Find more on Environment and Settings 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!