Re: ignoring an error message



Joseph wrote:
hi,
I am trying to use the load of files in a certain category in order
to use them as constraints for my current category optimization .
however, sometimes no previous files in the previous category exist.
for example:

??? Error using ==> load
Unable to read file LynchAAA31-Dec-1998: No such file or directory.

Error in ==> LynchNSAA at 43
load (new_filename2,'shxCont','NSXbR')

where 'shxCont','NSXbR' were intended to be the constrainst. is there
a way to ignore the error when the files don't exist.i.e is there a
way to tell matlab if there is this error message ignore it and
switch to another optimization without the constraint? (i will
develop codes for the optimization without the constraint)
UI hope my question is clear
JF


help exist
help try
help catch


michael
.



Relevant Pages

  • Re: How to set FILLFACTOR
    ... All the datawarehouse tables do not have any constraints. ... > delete all indexes, fill the table, recreate the indexes. ... > disable constraint validation, load the table, defrag your indexes after ... > disabling the constraint like foreign key check etc... ...
    (microsoft.public.sqlserver.datawarehouse)
  • Re: PROBLEM: Cannot rebuild index!!
    ... >Couldn't you just set the constraint to novalidate,prior to the load, ... >and enable validate exceptions into ... >Then you would have prevented all this fuss. ...
    (comp.databases.oracle.server)
  • ignoring an error message
    ... I am trying to use the load of files in a certain category in order ... to use them as constraints for my current category optimization. ... develop codes for the optimization without the constraint) ...
    (comp.soft-sys.matlab)
  • Re: upper and lower bounds as constraints?
    ... the optimization is also over the weights mentioned in the beginning ... The objective function is a sum of quantum probabilities given as ... THere is 1 equality constraint of similar ... any advice would be appreciated. ...
    (comp.soft-sys.matlab)
  • Re: Scaling in fmincon()
    ... > I have been using the Matlab constrained optimization fucntion(). ... does anyone know if Matlab fmincon() does any scaling at all? ... I'll form two objectives, ... Iter F-count fconstraint Step-size derivative ...
    (comp.soft-sys.matlab)