Filter löschen
Filter löschen

creating .mat files with variables

1 Ansicht (letzte 30 Tage)
PK
PK am 25 Jan. 2013
hello all how can i create as .mat file with 4 variables in it of diff sizes like a=1x1 mtx,b=100x128mtx,c=116x128 mtx and d=1x128 mtx.

Akzeptierte Antwort

TAB
TAB am 25 Jan. 2013
a=10;
b=rand(100,128);
c=rand(116,128);
d=rand(1,128);
save('myfile.mat','a','b','c','d');
  1 Kommentar
PK
PK am 26 Jan. 2013
Is it possible to create one variable with the specific ranges like b=100x128 matrix in the range of [0.001 to 0.005]

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by