MIRtoolbox installation. Cannot use functions

Hi . I have Matlab R2018a on Ubuntu Linux. I've recently downloaded MirToolbox and installed it by moving the main MIRtoolbox folder into the toolbox MATLAB folder.
Then, I've set the path to the folder. When I write the command "help mirtoolbox" it shows me all the functions that I can use.
Then I write the "help miraudio" command and it also shows me what the function can do. But when i actually use the function
( like : miraudio('sound.wav') ) it tells me that the function is undefined. How can i fix this ? :(

 Accepted Answer

I've recently downloaded MirToolbox and installed it by moving the main MIRtoolbox folder into the toolbox MATLAB folder.
You put it in the wrong place.
The MIRToolbox is a File Exchange contribution. You shoiuld copy it to a folder in your MATLAB user path, not the MATLAB toolbox folder.
It would likely be best to create a separate folder for it, then copy it to that folder, and add that folder to your search path. For information on the MATLAB search path, see the documentation section on What Is the MATLAB Search Path?

4 Comments

Yes it worked. Thank you so much. I've copied the MIRToolbox folder to the user path folder, i've set the path and now I can use the function.
Unfortunatelly, now I have another problem. When i use the miraudio fumction and set the path to the file that i want to read, it tells me that MIRREAD can not open file
#############################################
the code :
miraudio('/home/sergiu/Proiecte_periculoase/ProiecteMatLab/sounds/tests/MAPS_AkPnBcht_1/AkPnBcht/ISOL/CH/MAPS_ISOL_CH0.1_F_AkPnBcht.wav')
###################################################
the error :
>> flux_toolbox
Here are the error message returned by each reader:
Undefined function 'wavread' for input arguments of type 'char'.
Undefined function 'auread' for input arguments of type 'char'.
Error using mp3read>mysystem (line 306)
unable to execute "/home/sergiu/Documents/MATLAB/MIRtoolbox1.3.4.1_matlabcentral/MIRToolbox/mp3info.glnxa64" -r m -p "%Q %u %b %r %v * %C %e %E %L %O %o %p" "/home/sergiu/Proiecte_periculoase/ProiecteMatLab/sounds/tests/MAPS_AkPnBcht_1/AkPnBcht/ISOL/CH/MAPS_ISOL_CH0.1_F_AkPnBcht.wav" (/bin/bash: /home/sergiu/Documents/MATLAB/MIRtoolbox1.3.4.1_matlabcentral/MIRToolbox/mp3info.glnxa64: No such file or directory
)
Error using aiffread (line 127)
Unknown file extension '.wav'.
Error using mirerror (line 4)
ERROR using MIRREAD: Cannot open file /home/sergiu/Proiecte_periculoase/ProiecteMatLab/sounds/tests/MAPS_AkPnBcht_1/AkPnBcht/ISOL/CH/MAPS_ISOL_CH0.1_F_AkPnBcht.wav
Error in mirread>misread (line 142)
mirerror('MIRREAD',['Cannot open file ',file]);
Error in mirread (line 57)
misread(orig, err);
Error in mireval (line 68)
[d1,tp1,fp1,f1,lg,b,n,ch] = mirread([],file,0,0,0);
Error in mirfunction (line 69)
o = mireval(o,filename,nout);
Error in miraudio (line 170)
varargout = mirfunction(@miraudio,orig,varargin,nargout,specif,@init,@main);
Error in flux_toolbox (line 1)
miraudio('/home/sergiu/Proiecte_periculoase/ProiecteMatLab/sounds/tests/MAPS_AkPnBcht_1/AkPnBcht/ISOL/CH/MAPS_ISOL_CH0.1_F_AkPnBcht.wav')
>>
I also have
MIRtoolbox
Version 1.3.4 (Matlab Central version) 14-December-2011
Nevermind, I've just changed to version 1.7.2 and it worked. Thanks again
As always, my pleasure.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!