Need help for using Switch Function in MATLA

Asked By 10 points N/A Posted on -
qa-featured

In the following piece of code, where should i use the end statement or should i use some other key word here?

Because there should be one end for switch statement and there should be an another end to end the code
SHARE
Answered By 5 points N/A #121093

Need help for using Switch Function in MATLA

qa-featured

What's up Reggie, you need to show the code in the subject in your query. The function or the end statement will be used at the end of the code; e.g. in the following function;

Function addtwo (x, y) Adds two numbers, vectors

                            Print result=x+y

x+y

In this function, comments are used even in the middle of the code, so it isn't necessary to use the function only at the end of the code.

I hope this solves your query

Thanks

Related Questions