Creating a loop that produces variables from an array/
1 回表示 (過去 30 日間)
古いコメントを表示
Hello all, im fairly new to MATLAB and its a little frustrating to say the least; my mission is to take 3 arguments from a row in an array and produce a variable, then to repeat this for all rows in the array.
So i have read values into an array in the form: '%f %f %f'
my code is:
fid = fopen('track1.dat');
notes = textscan(fid, '%f %f %f');
fclose(fid);
the values it reads in are to change the duration pitch and volume of a note (a specified .wav file) respectively (a music synthesiser).
iv hit a bit of a wall and im very open and grateful to any ideas on how to implement this area, im bad with matlab syntax but even just a few keywords to throw in the right direction would be awesome.
cheers
0 件のコメント
回答 (1 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!