Matlab function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 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