Cómo trabajar con variables consecutivas????
Show older comments
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
Answers (0)
Categories
Find more on Text Data Preparation 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!