Asslam-o-alekum! I need help to write out put of the following code using mirtoolbox1.5 into A.txt file?

>> miraudio('b1');
Chunk 1/2...
Computing miraudio related to b1...
Chunk 2/2...
Computing miraudio related to b1...
Computing mirsum related to b1...
Elapsed time is 3.128537 seconds.
>> mirrms(ans);
Computing mirrms related to b1...
>> rms=ans;
>> rms
The RMS energy related to file b1 is 0.28439 //Thanks(JazaKALAH) in Advance

6 个评论

@Geoff Hayes . thanks for your attention. i want to write value of root mean square " rms " in text file.
Then try using fopen to open the file, fprintf to write the data, and fclose to close the file.
geoff-hayes when i tried commands given by you it results:
Error using fprintf Function is not defined for 'mirscalar' inputs.
Okay - so which fields of the mirscalar struct do you want to write to file? The mode, parameter, or legend (if I'm looking at the correct mirrms FEX submission). You will have to choose the appropriate fields to supply to fprintf.
nice ! but i am not an expert of matlab kindly help me extract numeric value that can be used for feature comparison... to be used in MIR similarity retreival.thanks

请先登录,再进行评论。

 采纳的回答

>>r=mirrms(ans);
Computing mirrms related to b1...
>> test=get(r,'Data');
>> test{1,1}{1,1}
ans =
0.2844
that's the write way to extract numeric value. thanks for all.

更多回答(1 个)

try this . my work is done with it.
function [name]=getAllMp3Files(pathName)
[stat path]=dos(['dir ' pathName '\*.mp3 /s /B >path.txt'] );
name=importdata('path.txt');
try it really helps

2 个评论

Kindly help me
importdata('file.txt');
is not working in COM component when .dll is used in C# form application
Muhammad - if you have a new question, then please post it as a new one and not as a comment to an answer of yours.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Standard File Formats 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by