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 Commenti

What output do you want to write to a text file?
@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

Accedi per commentare.

 Risposta accettata

>>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.

Più risposte (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 Commenti

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.

Accedi per commentare.

Categorie

Scopri di più su Audio I/O and Waveform Generation in Centro assistenza e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by