Question
why the error comes
100% E52 Wed 7:41 AM MATLAB R2016a g (CHUNG HA)-Snap... EDITOR PUBLISH VIEW Close on S+one www.youtube.com insert Efx P Reco
0 0
Add a comment Improve this question Transcribed image text
Answer #1

I think you are defining the function 'dxdt' inside the function 'EMEC_5671Assign2' which is not allowed in MATLAB. Hence you get the error 'Function definitions are not permitted in this context'.

So it would be better to define all the other functions in another M-file and call those functions later in your main function i.e 'EMEC_5671Assign2' later. It will not give any error then unless you have made any syntax error.

Add a comment
Know the answer?
Add Answer to:
why the error comes 100% E52 Wed 7:41 AM MATLAB R2016a g (CHUNG HA)-"Snap... EDITOR PUBLISH...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT