Function inside a for loop
1 次查看(过去 30 天)
显示 更早的评论
Hi there. I am new to Matlab, and I need to perfom a function on an array of audio files utilising the MIR toolbox
I know that what I have will not work, how would I go about correcting this? many thanks
fileNameArray = ["Gnarles Barkley - Crazy.mp3"];
result = [];
i=1;
for i =1:1
fileNameArray(i);
result(i) = function e=mirrms(fileNameArray);
i = i + 1;
end
0 个评论
采纳的回答
Sriram Tadavarty
2020-3-18
编辑:Sriram Tadavarty
2020-3-18
Hi Ben, Directly use result(i) = mirrms(fileNameArray(i)) would help. Regards, Sriram
2 个评论
Sriram Tadavarty
2020-3-18
I am not sure what mirrms function do. So cant help much. If the above solved the purpose, accept it, and may be you can start a new thread for the difficulty faced.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!