Path: news.mathworks.com!not-for-mail
From: "Alan B" <monguin61@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: modify surf default behavior
Date: Wed, 3 Jun 2009 17:38:02 +0000 (UTC)
Organization: UT
Lines: 5
Message-ID: <h06cdq$b1h$1@fred.mathworks.com>
Reply-To: "Alan B" <monguin61@yahoo.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1244050682 11313 172.30.248.38 (3 Jun 2009 17:38:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 3 Jun 2009 17:38:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1446885
Xref: news.mathworks.com comp.soft-sys.matlab:544590


I would like axis('vis3d') to be run automatically when surf is called, is this possible? I can think of two things to try:
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?
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?

Any help is appreciated.