MATLAB Central
    Log In
  1. Create Account
  2. Log In
  1. File Exchange
  2. Answers
  3. Newsgroup
  4. Link Exchange
  5. Blogs
  6. Trendy
  7. Cody
  8. Contest
  9. MathWorks.com
Download All

Code covered by the BSD License  

Highlights from
MATLAB Goto Statement

  • Example14
  • Example15
  • Example3
  • Example5
  • goto(pointer,file)
  • Example1.m
  • Example10.m
  • Example11.m
  • Example12.m
  • Example13.m
  • Example16.m
  • Example17.m
  • Example18.m
  • Example19.m
  • Example2.m
  • Example20.m
  • Example21.m
  • Example22.m
  • Example23.m
  • Example24.m
  • Example4.m
  • Example6.m
  • Example7.m
  • Example8.m
  • Example9.m
  • View all files
image thumbnail
from MATLAB Goto Statement by Husam Aldahiyat
The one and only.

Example1.m
% this is a while loop using goto()

a = 5;
a = a - 1;
disp(a)
if a > 0
	goto(4)
	return
end

Contact us at files@mathworks.com

 
  • © 1994-2012 The MathWorks, Inc.
  • Site Help
  • Patents
  • Trademarks
  • Privacy Policy
  • Preventing Piracy
  • Terms of Use
  • RSS
  • Facebook
  • Twitter
  • Featured MathWorks.com Topics:
  • New Products
  • Support
  • Documentation
  • Training
  • Webinars
  • Newsletters
  • MATLAB Trials
  • Careers