Need help creating a matrix with unknown amount of rows.
Show older comments

This code should call a separate function that counts and returns the number of triples found. As it finds legitimate triples, this function must call a subfunction that prints that triple to the screen. After this search function finishes its search it must return the number of 3-4-5 triangles that it found and the program script must print the number of triangles found. I found error in line 15. I'm trying to stoer each "3-4-5" triangle into a matrix, with one triangle in each row for example [3 4 5] would be the values for a b and hypotenuse.
Accepted Answer
More Answers (0)
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!