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

3 views (last 30 days)
>> 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 Comments
Geoff Hayes
Geoff Hayes on 6 Nov 2014
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.
Muhammad Naveed
Muhammad Naveed on 10 Nov 2014
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

Sign in to comment.

Accepted Answer

Muhammad Naveed
Muhammad Naveed on 16 Nov 2014
>>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.

More Answers (1)

Muhammad Naveed
Muhammad Naveed on 13 Jan 2015
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

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!