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!