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

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

댓글을 달려면 로그인하십시오.

 채택된 답변

>>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에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

제품

질문:

2014년 10월 27일

댓글:

2015년 1월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by