Creating a loop that produces variables from an array/

1 view (last 30 days)
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

Answers (1)

Walter Roberson
Walter Roberson on 28 Apr 2012

Community Treasure Hunt

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

Start Hunting!