+ 2

Matlab function

I can write functions in separate files. how can I write 2 functions in one script?

21st May 2018, 10:58 PM
Majid
Majid - avatar
1 Resposta
+ 1
You have to use the end keyword for each of them, then it will work. Just place the second function underneath and make sure to call from the script or other function inside the script.
22nd May 2018, 3:56 AM
Matthias
Matthias - avatar