How Can I write a specific Variable I have created to a .mat file ?

1 view (last 30 days)
Hi All
If I have created a variable like :
t = [1 2 3 ; 4 5 6; 7 8 9 ]
and I need to write this variable t on a .mat file , while there might be other variables created already in the workspace , but I only want to write the t , how do I do it ?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 1 Mar 2015
save filename t

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!