calling c file from m file
Afficher commentaires plus anciens
I am beginner in matlab ... i downloaded nsct toolbox but i got a problem ...in nsct toolbox one prg nssfbdec.m calling function in zconv2.c file...
i got error like this
??? Undefined function or method 'zconv2' for input arguments of type 'double'.
Error in ==> nssfbdec at 61 y1 = zconv2D_O( x, f1, mup );
Error in ==> nsdfbdec at 103 [y{1}, y{2}] = nssfbdec( x1, k1, k2, q1 ) ;
Error in ==> nsctdec at 112 xhi_dir = nsdfbdec(xhi, filters, levels(nIndex-1));
Error in ==> nsct at 32 yA=nsctdec(A,nlevs,dfilt,pfilt);
can any1 help me to solve this...lot of thanks in advance....
Réponse acceptée
Plus de réponses (1)
Anju Gopinath
le 14 Fév 2020
0 votes
1) I couldn't find zconv2D_O.c anywhere in the source code so ," mex zconv2D_O.c" didn't work. I found an alternative solution:
I downlded the source code from this link:
[Click 'Download source code' towards the bottom of the below webpage.]
2) Then I saved atrousc.c and zconv2.c in the folder where I am working.
I compiled both files with commands mex atrousc.c and mex zconv2.c
3) for the mex command to work, you need to install gcc 6.3.x .. the instructions are given in this link:
Notes:
- I installed gcc 8 and it worked for me (although matlab gives a warning that mex command works only with gcc 6.3)
- Before finding the freesourcecode.net link, I came across this link which has the source code for zconv2.m
so I copied this into my project folder so the initial error was resolved. But once this error got solved, I got the error "Undefined function or method 'atrousc'. Both the errors can be resolved using steps 1,2,3 above.
1 commentaire
SOMASEKAR
le 27 Avr 2020
http://freesourcecode.net/matlabprojects/70812/nonsubsampled-contourlet-toolbox-in-matlab#.XkYDqzN7k8o
I am not able to download the source code . Plz help me in this regard
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!