I am a student who is envolving in a research about robust visual tracking.
And these days ,I had met a problem in my study.
The teacher gave me a project of matlab code about the research, when I try to run this code, and the program error is as follows:
??? Attempt to execute SCRIPT mexLasso as a function:
F:\L1_Tracking_standard_car\mexLasso.m
Error in ==> L1Tracking_release at 95
c = mexLasso(Y(:,i), [A fixT], param);
Error in ==> demo at 46
tracking_res = L1Tracking_release( s_frames, sz_T, n_sample, init_pos,
res_path, fcdatapts);
When I go to the program tracking, I found that mexLasso function does not exist, Only get an empty mexLasso.m file and a mexLasso.mexw32 files.
My OS version is Windows 7 64bit,and the matlab is matlab 7.12.0 r2011a
Does anybody here knows the causes of my problem?
Anymore, I wonder if anybody knows who has the source code of the binary file mexLasso.mexw32.Because I thought that if I can get the source code of the file mexLasso.mexw32,then I could compile its 64 bit version myself.(I doubt that my os could not recognize the .mexw32 file.)
I hope my express clear enough to let you come to help me ,thanks a lot!
I think your analysis is basically correct - mexLasso is intended to be a MEX function, but MATLAB is finding only mexLasso.m which presumably contains help text. Unfortunately, the error you're getting isn't terribly helpful. As I see it, you have two options:
Obtain the source code for mexLasso and recompile on WIN64
Run the WIN32 version of MATLAB on your WIN64 machine
the function mexLasso comes from the SPAMS toolbox
http://www.di.ens.fr/willow/SPAMS/.
You can find the sources there and compile the mex file corresponding to your OS.
First, you need to find mexLasso.cpp file in http://spams-devel.gforge.inria.fr/downloads.html as Marial has already mentioned.
Then you can find and download the recent version of SPAMS.
A following stage is just to execute compile.m file on your MATLAB.
Finally you can find mexLasso.mexw64 in the build folder.
Good luck.
Related
please help with this problem
while i am trying to deploy a model into Arduino mega from my 2013a 32bit matlab i had this error.
( The corresponding 'Model name.tlc' file for the MATLAB S-function 'Model name' in block 'block name' must be located in the current working directory, ...)
i have looked in many websites and forums for solution but i couldn't find, maybe because i am not familiar with matlab much. but i guess the problem is with S-function. i noticed that it is easy to get tlc file if i use s-function builder. but the current model i am trying to deploy is {M-S-Function: User-definable block written using the MATLAB S-Function API...}
what shall i do?
after i used newer version of matlab and newer version of the support package i was able to generate automatically all the files including tlc file.
I am trying to learn about fast restart.
I run the first line of their example and it does not work for me:
open_system('spe_engine_throttle')
No system or file called 'spe_engine_throttle' found.
What did I do wrong?
ver
response:
http://pastebin.com/kQ0sfBG0
This example is part of Simulink Design Optimization, which is not part of your license, based on your output of ver.
When i am running start simulator in my Matlab workflow i am getting below error.
The mex compiler '' is not supported for simulation builds. Use 'mex -setup' to select a supported compiler.
Scenario : In my matlab project i have *.mdl files. After generated diagram fro that mdl files, i clicked on one of my scope diagram then i am getting above error
Please let me know can i need any compilers, if so tell me i will do accordingly.
Any suggestions/methods to follow get sort out from this error.
Thanks in advance for you great valuable replies.
I want to create object of video file. I found that VideoReader is used to create object but it shows error when I try to run it "Undefined Command/Function 'VideoReader'".
Can anyone please tell me how can I install the missing library to run VideoReader.
I am new to Matlab and I didn't find any useful information on net.
Thanks,
Anubhav
It means that your version of MATLAB doesn't have the function 'VideoReader', which only appears after R2010b.
Use mmreader instead, or get a latest version of MATLAB.
http://www.mathworks.com/help/techdoc/rn/bskfo3t.html#bsmnaxp-1
When I tried to run a Simulink program under my R2009a Matlab, it showed an error message as follows: Failed to find library 'powerlib' referenced by 'dcmotor_openloop/Armature Current '. This library must be on your MATLAB path.
I'm wondering where I can find this powerlib.
As #Edric mentioned, powerlib is built into SimPowerSystems. The error you see can thus have two causes
(1) There is no installation of SimPowerSystems in your copy of Matlab. Type ver at the command prompt to check for what toolboxes you have installed. If SimPowerSystems doesn't show up in the list, you will have to get the toolbox, otherwise you won't be able to run the model.
(2) Your installation of SimPowerSystems is somehow corrupt. This has never happened to me in Matlab so far, but with modern technology, anything is possible. A fresh install should solve this.
powerlib is a Simulink library shipped as part of SimPowerSystems, see the product page here: http://www.mathworks.com/products/simpower/.
This should really be a comment on another answer, but I can't comment due to reputation.
From at least R2016b, perhaps earlier too, It's no longer called SimPowerSystems. It's now SimscapePowerSystems. You need that plus the bare Simscape package installed.