Here is a matlab program that uses a while loop, if statement, and the break statement to find the summation of numbers greater than 5 from 1 to 10:
main.m369 chars24 lines
This program starts with the number 1 and checks if it is greater than 5. If it is, it adds it to the sum. Then, it increments the number by 1 and checks if it exceeds 10. If it does, the program breaks out of the loop. The process continues until all numbers from 1 to 10 have been checked. Finally, the program displays the final sum.
Hope this helps!
gistlibby LogSnag