Re: Need for Goto statement in Matlab



mahishi@xxxxxxxxx wrote in message
<1191094712.927754.131040@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
I am developing a code in Matlab for a specific
application. I want to
develop a single M file to design two types of Heat
exchangers which
have separate flow arrangements. i am trying to make this
program as
user-friendly as possible and am giving an option for any
user to
choose any one type of heat exchnager at the beginning of
the code. i
want matlab to follow one set of commands based on which
choice is
made. In that sense, it will be nice if i have a "goto"
command (or
equivalent) as it will take the program directly to that
point which
needed to be executed instead orf running for both the
types heat
exchangers. does anyone know how to do this in matlab?

Arjun


The lack of a Goto statement has bothered me ever since I
started using MATLAB a number of years ago. It is hard to
believe that MATLAB has so much success while not having the
Goto. I have wasted countless hours trying to work around
this huge deficiency. Not having it has made my programs so
much longer and very difficult to read and debug. I recently
gave up. I now use Excel for all my work.

Duane
.



Relevant Pages

  • Re: angles=[-90:180]*pi/180
    ... Matt Fig wrote: ... included in the magic toolbox is a GOTO statement that will ... finally bring Matlab up to date with the rest of the world. ... The GOTO statement takes something rather stronger than Magic; ...
    (comp.soft-sys.matlab)
  • Re: c/c++ goto statement equality in matlab
    ... know it?s not a way to use goto statement in software programming, ... function goto purpose as we use in c/c++,if so please mention it ... There is no such function in Matlab. ...
    (comp.soft-sys.matlab)