I'm using Matlab 7.0. How can I call a function? "File/New/Function" is missing.
Mostra commenti meno recenti

Or should I write an .m file instead beginning with:
function F = magic(x)
...
end
?
Risposta accettata
Più risposte (3)
Zoltán Csáti
il 25 Ott 2014
The syntax of writing a function is what you have written. When you want to call it, do
out = magic(in)
Be careful though, magic is a function that already exists.
Zoltán Csáti
il 25 Ott 2014
1 voto
Not a problem. It is just a help for you so that MATLAB creates a sample in advance. I never use this feature because it is not cumbersome to type function.
Übel
il 25 Ott 2014
0 voti
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!