How can I test a long function in Matlab?
Show older comments
Hello community,
I have to test certain functions and some of them are very long, how can I generate a test that verifies it?
Thank you so much,
Gabriela
Accepted Answer
More Answers (1)
John D'Errico
on 12 Apr 2021
0 votes
Don't test your long function. Because you should be writing SHORT functions. Then you can test each piece, verify it works as designed. And only then put it all together.
Categories
Find more on MATLAB Report Generator in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!