Execution of script as a function is not supported
Mostra commenti meno recenti
Hello,
I donwloaded a function online. It works fine until the line 58 where I have "Execution of script mix_2d_lp_fonc as a function is not supported". I don't know why, I am sure I am in the correct folder (I wrote which...).
I would be gratefull for your assistance
Risposta accettata
Più risposte (3)
Keerthana
il 7 Mag 2024
1 voto
Execution of script bilinear as a function is not supported:
/MATLAB Drive/bilinear.mlx
1 Commento
Stephen23
il 7 Mag 2024
You named your script BILINEAR, and then within that script you attempted to call a function named BILINEAR, e.g. this one:
Of course that will not work, because you named your script BILINEAR.
Solution: rename your script to something else, e.g. MY_BILINEAR.
Luca Ferro
il 21 Feb 2023
Modificato: Luca Ferro
il 21 Feb 2023
0 voti
there is no definition of the function mix_2d_lp_fonc(), at least not in the file you shared. It's just the name of the script itself, so you could call it but cannot pass arguments as done at that line mix_2d_lp_fonc(problem(K)).
My guess would be that the first line, so teh declaration of the function, is missing somehow
*Copy the program *Delete the file *create new file with different name *paste and execute
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!