MATLAB "break" function
(See attached file for full problem description)
---
How would you rewrite the following script without using break?
for p = 7:8
for q = 3:5
for r = 1:2
fprintf(' %3.0f, %3.0f, %3.0fn' , p, q, r)
end
if q = = 4, break; end
end
end
---
By OTA: Suraj Joshi, PhD (IP)
OTA Rating: 4.7/5
Your Price: $2.19 (original value ~$3.99)
What's included:
Page generated in 0.0128 seconds