Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to open mfile in editor from command line?

Subject: How to open mfile in editor from command line?

From: John

Date: 3 Feb, 2009 02:58:02

Message: 1 of 3

Is it possible to open an mfile in the editor from the command line?
Typing 'which mymfilename' gives me the full pathname but can I then open it from the command line without having to manually locate it?

Thanks

Subject: How to open mfile in editor from command line?

From: Matt Fig

Date: 3 Feb, 2009 03:03:06

Message: 2 of 3

For example, to edit the function named randperm:

edit randperm

You can also do

edit(which('randperm'))





6d[cub__OeCkuuWfXj|^eueWa[c^j]$ukXW[[Wu^;WlfWj0oeeWYYudub|e

Subject: How to open mfile in editor from command line?

From: John

Date: 3 Feb, 2009 03:26:02

Message: 3 of 3

"Matt Fig" <spamanon@yahoo.com> wrote in message <gm8c59$8u1$1@fred.mathworks.com>...
> For example, to edit the function named randperm:
>
> edit randperm
>
> You can also do
>
> edit(which('randperm'))
Thanks

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us