how can I run function in file exchange
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
yasmin ismail
am 10 Jul. 2023
Kommentiert: yasmin ismail
am 10 Jul. 2023
I download this file exchange
but I couldnt run it , in command window get
Error: File: sauvola.m Line: 55 Column: 1
This statement is not inside any function.
(It follows the END that terminates the definition of the function "sauvola".)
Error in filterbri (line 20)
S=sauvola(img,[150 150]);
how to run this file exchange?
2 Kommentare
Stephen23
am 10 Jul. 2023
Bearbeitet: Stephen23
am 10 Jul. 2023
" (It follows the END that terminates the definition of the function "sauvola".)"
The two functions provided in that FEX submission do not use END to mark the end of those functions.
So you must have modified the functions or be referring to some other functions. It looks as if you might be trying to save them inside a script... which is not required: just download those functions and call them. Or perhaps you have nemd your own script/function with the same name: best avoided.
Akzeptierte Antwort
MarKf
am 10 Jul. 2023
You're right, that sauvola.m that you linked has only 45 lines (but there's no actual end that terminates the function definition, unless you meant the end of file).
So maybe there is another sauvola.m in your path. you can try which sauvola to check if it's the same one.
Also you did not copy and paste the whole error so we arevactually unsure what the issue is.
8 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!