Showing posts with label matlab. Show all posts
Showing posts with label matlab. Show all posts

Sunday, June 22, 2008

find the location/path of m-files


use the ``which" command .

i was trying to figure out where the mutools toolbox was in MATLAB 7. couldn't find it. then i remembered the ``which" command

>> which pck

wallah !!!!!

i want a circle not ellipse


theta = 0:0.1:2*pi ;
x = cos(theta);
y = sin(theta);
plot(x,y);
shg

this should show u a circle instead it shows u an ellipse.. not that the program is wrong or something !

just write

axis equal

at the command prompt and all should be ok

more

i have a bad memory and i always check out the help associated with the function or script that i am using. most of the times the help output is voluminous and scrolls off the screen.
Try this out
>> help mincx
i don't like that and don't want to type
>> more on
before every invocation of help
so this is what i did
open help file and right and the end of the help messages but before the beginning of all the commands just add this line
more on;

this should do the job since all my scripts have by default more off and the beginning.

another cool thing i found out was to check if more has been set in the command window

get(0,'more')

this is actually a cool find since this lets me find awful lot of information about the main command window environment