Dear all,
I have 30 source data in my matlab folder, data1.dat,data2.dat..data30.dat.. I have the exact code for each one of these source code. I thought to create one function for all then when running it from the command to specify which data source i want to run !! I did
function work ('filename') mywork = importdata (filename)% before it was data1.dat..
but its not correct, how can I achieve this?
Best Answer