Cómo trabajar con variables consecutivas????

HoLa! Necesito hacer lo que describo a continuación, pero para 100 variables s1, s2, s3..., por lo que me encantaría poder usar un for:
s1=wfbm(0.5,5000);
s1=s1';
save s1.dat s1 -ascii
para generar las variables probé esto:
for i=1:100
eval(['s' num2str(i) '= wfbm(0.5,100)']);
end
pero leí que es poco eficiente y además no supe como trasponer y luego guardar. Cualquier ayuda es bienvenida. Muchas gracias

Antworten (0)

Kategorien

Gefragt:

am 8 Okt. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by