<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252830</link>
    <title>MATLAB Central Newsreader - modify surf default behavior</title>
    <description>Feed for thread: modify surf default behavior</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 03 Jun 2009 17:38:02 -0400</pubDate>
      <title>modify surf default behavior</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252830#654447</link>
      <author>Alan B</author>
      <description>I would like axis('vis3d') to be run automatically when surf is called, is this possible? I can think of two things to try:&lt;br&gt;
1. create a new wrapper m-file, also called surf.m, that simply passes the arguments around, and calls axis('vis3d') when done. I don't know how to do this because surf is not a built-in command, so builtin() doesn't work - how can I run a specific shadowed m-file, instead of whichever MATLAB chooses as the default?&lt;br&gt;
2. set some default axes properties. I don't know how to do this because I was unable to understand what axis('vis3d') actually does, in terms of axes aspect ratio properties. Also, is it possible to specify different default properties for 2D vs 3D plots?&lt;br&gt;
&lt;br&gt;
Any help is appreciated.</description>
    </item>
    <item>
      <pubDate>Thu, 04 Jun 2009 10:55:04 -0400</pubDate>
      <title>Re: modify surf default behavior</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252830#654618</link>
      <author>Aurelien Queffurust</author>
      <description>&quot;Alan B&quot; &amp;lt;monguin61@yahoo.com&amp;gt; wrote in message &amp;lt;h06cdq$b1h$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I would like axis('vis3d') to be run automatically when surf is called, is this possible? I can think of two things to try:&lt;br&gt;
&amp;gt; 1. create a new wrapper m-file, also called surf.m, that simply passes the arguments around, and calls axis('vis3d') when done. I don't know how to do this because surf is not a built-in command, so builtin() doesn't work - how can I run a specific shadowed m-file, instead of whichever MATLAB chooses as the default?&lt;br&gt;
&amp;gt; 2. set some default axes properties. I don't know how to do this because I was unable to understand what axis('vis3d') actually does, in terms of axes aspect ratio properties. Also, is it possible to specify different default properties for 2D vs 3D plots?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Any help is appreciated.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
1. Concerning shadowing a builtin&lt;br&gt;
&lt;br&gt;
You can create your own surf.m function. Then by using addpath or pathtool, make the path of your own function to be the top of the path.&lt;br&gt;
The command:&lt;br&gt;
&amp;gt;&amp;gt;which -all surf&lt;br&gt;
will show you that your own surf.m is shadowing the path $matlabroot\toolbox\matlab\graph3d\surf.msurf &lt;br&gt;
&lt;br&gt;
2. Concerning axis3d algorithm&lt;br&gt;
&lt;br&gt;
2.1  Read Section &quot;Specifying Aspect Ratio&quot;;&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/visualize/f4-24991.html#f4-25109&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/visualize/f4-24991.html#f4-25109&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
2.2 You can also edit axis.m and read the lines:&lt;br&gt;
% handle VIS3D:&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;elseif(strcmp(cur_arg,'vis3d'))&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(ax(j),...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'CameraViewAngle',   get(ax(j),'CameraViewAngle'),...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'DataAspectRatio',   get(ax(j),'DataAspectRatio'),...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'PlotBoxAspectRatio',get(ax(j),'PlotBoxAspectRatio'));&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&lt;br&gt;
Hope it helps,&lt;br&gt;
&lt;br&gt;
Aur?lien</description>
    </item>
    <item>
      <pubDate>Thu, 04 Jun 2009 14:37:29 -0400</pubDate>
      <title>Re: modify surf default behavior</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252830#654677</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Aurelien Queffurust&quot; &amp;lt;tug83@yahoo.fr&amp;gt; wrote in message &lt;br&gt;
news:h08968$qu$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &quot;Alan B&quot; &amp;lt;monguin61@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;h06cdq$b1h$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; I would like axis('vis3d') to be run automatically when surf is called, &lt;br&gt;
&amp;gt;&amp;gt; is this possible? I can think of two things to try:&lt;br&gt;
&amp;gt;&amp;gt; 1. create a new wrapper m-file, also called surf.m, that simply passes &lt;br&gt;
&amp;gt;&amp;gt; the arguments around, and calls axis('vis3d') when done. I don't know how &lt;br&gt;
&amp;gt;&amp;gt; to do this because surf is not a built-in command, so builtin() doesn't &lt;br&gt;
&amp;gt;&amp;gt; work - how can I run a specific shadowed m-file, instead of whichever &lt;br&gt;
&amp;gt;&amp;gt; MATLAB chooses as the default?&lt;br&gt;
&amp;gt;&amp;gt; 2. set some default axes properties. I don't know how to do this because &lt;br&gt;
&amp;gt;&amp;gt; I was unable to understand what axis('vis3d') actually does, in terms of &lt;br&gt;
&amp;gt;&amp;gt; axes aspect ratio properties. Also, is it possible to specify different &lt;br&gt;
&amp;gt;&amp;gt; default properties for 2D vs 3D plots?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Any help is appreciated.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 1. Concerning shadowing a builtin&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; You can create your own surf.m function. Then by using addpath or &lt;br&gt;
&amp;gt; pathtool, make the path of your own function to be the top of the path.&lt;br&gt;
&amp;gt; The command:&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;which -all surf&lt;br&gt;
&amp;gt; will show you that your own surf.m is shadowing the path &lt;br&gt;
&amp;gt; $matlabroot\toolbox\matlab\graph3d\surf.msurf&lt;br&gt;
&lt;br&gt;
Note that this will force ALL functions that call SURF to use your modified &lt;br&gt;
SURF.  For the specified change you want to make, that's _probably_ okay &lt;br&gt;
(assuming none of the other functions that call SURF expect the axis to be &lt;br&gt;
configured a certain way and error if it isn't) but be careful if you shadow &lt;br&gt;
other functions like this.  For instance, if you were to shadow QUIT and &lt;br&gt;
EXIT and make them not call the builtins, you're going to have an &lt;br&gt;
interesting time trying to shut down MATLAB.&lt;br&gt;
&lt;br&gt;
Instead of doing this, I'd write my own wrapper and use it instead of SURF. &lt;br&gt;
Call it something like surfWith3dAxis:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
function h = surfWith3dAxis(varargin)&lt;br&gt;
h = surf(varargin{:});&lt;br&gt;
axis('vis3d');&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
This way, those functions that expect SURF to behave a certain way will &lt;br&gt;
still work, but you've got a very simple way to get the behavior you want.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Thu, 04 Jun 2009 14:40:18 -0400</pubDate>
      <title>Re: modify surf default behavior</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252830#654678</link>
      <author>Alan B</author>
      <description>&amp;gt; 1. Concerning shadowing a builtin&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You can create your own surf.m function. Then by using addpath or pathtool, make the path of your own function to be the top of the path.&lt;br&gt;
&amp;gt; The command:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;which -all surf&lt;br&gt;
&amp;gt; will show you that your own surf.m is shadowing the path $matlabroot\toolbox\matlab\graph3d\surf.msurf &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
This is how my path is set now, and my surf.m needs to call the real surf function, but currently calls itself, causing a recursion error. What can I do to force 'surf' at the command line or in a function refer to my surf function, but allow my surf function to call a different version of surf?&lt;br&gt;
&lt;br&gt;
&amp;gt; 2. Concerning axis3d algorithm&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 2.1  Read Section &quot;Specifying Aspect Ratio&quot;;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/visualize/f4-24991.html#f4-25109&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/visualize/f4-24991.html#f4-25109&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 2.2 You can also edit axis.m and read the lines:&lt;br&gt;
&amp;gt; % handle VIS3D:&lt;br&gt;
&amp;gt;             elseif(strcmp(cur_arg,'vis3d'))&lt;br&gt;
&amp;gt;                 set(ax(j),...&lt;br&gt;
&amp;gt;                     'CameraViewAngle',   get(ax(j),'CameraViewAngle'),...&lt;br&gt;
&amp;gt;                     'DataAspectRatio',   get(ax(j),'DataAspectRatio'),...&lt;br&gt;
&amp;gt;                     'PlotBoxAspectRatio',get(ax(j),'PlotBoxAspectRatio'));&lt;br&gt;
&amp;gt;       &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hope it helps,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Aur?lien&lt;br&gt;
&lt;br&gt;
I've read some on the aspect ratios in the past... As I recall, that set() command makes no visible changes to the axes properties, but accessing the properties triggers some other sort of change. If there is a way to make that happen with a default axes property, I don't see it - &lt;br&gt;
&lt;br&gt;
set('defaultAxesCameraViewAngle',get(something))&lt;br&gt;
&lt;br&gt;
What would I do here?&lt;br&gt;
&lt;br&gt;
Thanks for your help.</description>
    </item>
    <item>
      <pubDate>Thu, 04 Jun 2009 15:05:19 -0400</pubDate>
      <title>Re: modify surf default behavior</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252830#654685</link>
      <author>John D'Errico</author>
      <description>&quot;Alan B&quot; &amp;lt;monguin61@yahoo.com&amp;gt; wrote in message &amp;lt;h06cdq$b1h$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I would like axis('vis3d') to be run automatically when surf is called, is this possible? I can think of two things to try:&lt;br&gt;
&amp;gt; 1. create a new wrapper m-file, also called surf.m, that simply passes the arguments around, and calls axis('vis3d') when done. I don't know how to do this because surf is not a built-in command, so builtin() doesn't work - how can I run a specific shadowed m-file, instead of whichever MATLAB chooses as the default?&lt;br&gt;
&amp;gt; 2. set some default axes properties. I don't know how to do this because I was unable to understand what axis('vis3d') actually does, in terms of axes aspect ratio properties. Also, is it possible to specify different default properties for 2D vs 3D plots?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Any help is appreciated.&lt;br&gt;
&lt;br&gt;
Why not just write your own wrapper function? Call it&lt;br&gt;
mysurf, or something like that. This way surf will work&lt;br&gt;
as it is designed for others, or for the case in the future&lt;br&gt;
when you don't want that. (It will happen too.)&lt;br&gt;
&lt;br&gt;
John&lt;br&gt;
&lt;br&gt;
(I'm going to write my own wrapper for surf. I'll call&lt;br&gt;
it smurf. Of course, it will always use a pure blue&lt;br&gt;
colormap.)</description>
    </item>
    <item>
      <pubDate>Thu, 04 Jun 2009 15:28:02 -0400</pubDate>
      <title>Re: modify surf default behavior</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252830#654689</link>
      <author>Alan B</author>
      <description>&amp;gt; Why not just write your own wrapper function? Call it&lt;br&gt;
&amp;gt; mysurf, or something like that. This way surf will work&lt;br&gt;
&amp;gt; as it is designed for others, or for the case in the future&lt;br&gt;
&amp;gt; when you don't want that. (It will happen too.)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; John&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; (I'm going to write my own wrapper for surf. I'll call&lt;br&gt;
&amp;gt; it smurf. Of course, it will always use a pure blue&lt;br&gt;
&amp;gt; colormap.)&lt;br&gt;
&lt;br&gt;
Of course you're correct here, if I modify the default behavior, SOMETHING will eventually break. Its more a question of curiosity. Incidentally, I have never wanted to use surf without axis vis3d, as far as I can remember. Do you have an example where that would be desired?&lt;br&gt;
&lt;br&gt;
There are a few other functions with behavior that bothers me. For example, 'open nonexistentFunction' errors, and since I have 'dbstop if error' enabled, every time I make a typo using 'open' at the command line, I get open.m needlessly opening up in my editor. My personal preference would be a warning or message instead of an error, and I would like to continue using 'open' instead of 'myopen' simply because I'm lazy. I have a hard time imagining how making that change might break anything. (I also wouldn't mind being able to enable 'dbstop if error' on a by-function basis)&lt;br&gt;
&lt;br&gt;
If this can't be done, its not a big deal. Just thought I'd ask.&lt;br&gt;
&lt;br&gt;
Thanks</description>
    </item>
    <item>
      <pubDate>Thu, 04 Jun 2009 16:11:01 -0400</pubDate>
      <title>Re: modify surf default behavior</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252830#654704</link>
      <author>John D'Errico</author>
      <description>&quot;Alan B&quot; &amp;lt;monguin61@yahoo.com&amp;gt; wrote in message &amp;lt;h08p62$lt7$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Why not just write your own wrapper function? Call it&lt;br&gt;
&amp;gt; &amp;gt; mysurf, or something like that. This way surf will work&lt;br&gt;
&amp;gt; &amp;gt; as it is designed for others, or for the case in the future&lt;br&gt;
&amp;gt; &amp;gt; when you don't want that. (It will happen too.)&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; John&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; (I'm going to write my own wrapper for surf. I'll call&lt;br&gt;
&amp;gt; &amp;gt; it smurf. Of course, it will always use a pure blue&lt;br&gt;
&amp;gt; &amp;gt; colormap.)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Of course you're correct here, if I modify the default behavior, SOMETHING will eventually break. Its more a question of curiosity. Incidentally, I have never wanted to use surf without axis vis3d, as far as I can remember. Do you have an example where that would be desired?&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
UNLESS I intend to rotate a 3-d figure, I prefer surfs&lt;br&gt;
in their default shape. axis vis3d changes that shape,&lt;br&gt;
leaving a lot of gray space in the figure that is unused.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; There are a few other functions with behavior that bothers me. For example, 'open nonexistentFunction' errors, and since I have 'dbstop if error' enabled, every time I make a typo using 'open' at the command line, I get open.m needlessly opening up in my editor. My personal preference would be a warning or message instead of an error, and I would like to continue using 'open' instead of 'myopen' simply because I'm lazy. I have a hard time imagining how making that change might break anything. (I also wouldn't mind being able to enable 'dbstop if error' on a by-function basis)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If this can't be done, its not a big deal. Just thought I'd ask.&lt;br&gt;
&lt;br&gt;
Many of these things can be controlled with preferences&lt;br&gt;
that you can set, and that list is growing with every&lt;br&gt;
release.&lt;br&gt;
&lt;br&gt;
I'll admit that my solution is usually to customize things&lt;br&gt;
for my preferences. I mentioned the other day that I always&lt;br&gt;
seem to type &quot;close all&quot; with no space in the middle. So&lt;br&gt;
I wrote a closeall function for my own use.&lt;br&gt;
&lt;br&gt;
I rarely leave &quot;dbstop if error&quot; enabled permanently for&lt;br&gt;
just these reasons though. It is convenient when I need it,&lt;br&gt;
but the rest of the time it slows me down.&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Thu, 04 Jun 2009 17:28:14 -0400</pubDate>
      <title>Re: modify surf default behavior</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252830#654718</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Alan B&quot; &amp;lt;monguin61@yahoo.com&amp;gt; wrote in message &lt;br&gt;
news:h08p62$lt7$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;&amp;gt; Why not just write your own wrapper function? Call it&lt;br&gt;
&amp;gt;&amp;gt; mysurf, or something like that. This way surf will work&lt;br&gt;
&amp;gt;&amp;gt; as it is designed for others, or for the case in the future&lt;br&gt;
&amp;gt;&amp;gt; when you don't want that. (It will happen too.)&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; John&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; (I'm going to write my own wrapper for surf. I'll call&lt;br&gt;
&amp;gt;&amp;gt; it smurf. Of course, it will always use a pure blue&lt;br&gt;
&amp;gt;&amp;gt; colormap.)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Of course you're correct here, if I modify the default behavior, SOMETHING &lt;br&gt;
&amp;gt; will eventually break. Its more a question of curiosity. Incidentally, I &lt;br&gt;
&amp;gt; have never wanted to use surf without axis vis3d, as far as I can &lt;br&gt;
&amp;gt; remember. Do you have an example where that would be desired?&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/pcolor.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/pcolor.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&quot;A pseudocolor plot is a flat surface plot viewed from above. pcolor(X,Y,C) &lt;br&gt;
is the same as viewing surf(X,Y,zeros(size(X)),C) using view([0 90]).&quot;&lt;br&gt;
&lt;br&gt;
If you were building your own tweaked version of PCOLOR, you might want to &lt;br&gt;
call SURF as part of the process of creating the plot.&lt;br&gt;
&lt;br&gt;
&amp;gt; There are a few other functions with behavior that bothers me. For &lt;br&gt;
&amp;gt; example, 'open nonexistentFunction' errors, and since I have 'dbstop if &lt;br&gt;
&amp;gt; error' enabled, every time I make a typo using 'open' at the command line, &lt;br&gt;
&amp;gt; I get open.m needlessly opening up in my editor.&lt;br&gt;
&lt;br&gt;
That's why I use EDIT -- if the file you're trying to edit doesn't exist, it &lt;br&gt;
instead asks if I want to create it.&lt;br&gt;
&lt;br&gt;
&amp;gt; My personal preference would be a warning or message instead of an error, &lt;br&gt;
&amp;gt; and I would like to continue using 'open' instead of 'myopen' simply &lt;br&gt;
&amp;gt; because I'm lazy. I have a hard time imagining how making that change &lt;br&gt;
&amp;gt; might break anything. (I also wouldn't mind being able to enable 'dbstop &lt;br&gt;
&amp;gt; if error' on a by-function basis)&lt;br&gt;
&lt;br&gt;
Okay, so you make OPEN warn and complete its execution instead of erroring. &lt;br&gt;
Now functions that call OPEN inside TRY/CATCH and check the error that OPEN &lt;br&gt;
threw (if there was a problem, like a nonexistent file) may assume that &lt;br&gt;
since OPEN didn't error, it was able to successfully open the file.  A key &lt;br&gt;
point to remember is that OPEN doesn't just open M-files, it can open lots &lt;br&gt;
of different types of files, including FIG-files.  Because they assume they &lt;br&gt;
were able to successfully open the file, they continue running only to fall &lt;br&gt;
over tens or hundreds of lines later when they try to use the (non-existent) &lt;br&gt;
figure or model or file.&lt;br&gt;
&lt;br&gt;
&amp;gt; If this can't be done, its not a big deal. Just thought I'd ask.&lt;br&gt;
&lt;br&gt;
It _can_ be done; you can shadow built-in functions.  You should just be &lt;br&gt;
VERY careful when you do so, and often creating your own wrapper is a safer &lt;br&gt;
idea.  You will need to type two additional characters each time you call &lt;br&gt;
the function, but after a short while you probably won't even notice.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
  </channel>
</rss>

