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:
Column select in MATLAB editor

Subject: Column select in MATLAB editor

From: Faraz Afzal

Date: 29 Jun, 2010 17:12:04

Message: 1 of 2

Hi everyone,

I have a question if someone can help me..

I would like to know the ability of MATLAB EDITOR to select the "COLUMNS ONLY" text.

e.g. say i have following text in an m-file

v1n = -30 ; % Initial normal velocity of body 1
v1t = 120 ; % Initial tangential velocity of body 1
v2n = 240 ; % Initial normal velocity of body 2
v2t = 90 ; % Initial tangential velocity of body 2

Now, I would like to copy all the four comments at the same time-.-- and then paste them all together (as I said comments only not the data v1n,v1t etc).

Please don't tell me to use external editor within MATLAB as I know how to do it.
It is called column selection in editors normally.
I hope I explained my question.

Regards,
Faraz

Subject: Column select in MATLAB editor

From: per isakson

Date: 29 Jun, 2010 17:20:21

Message: 2 of 2

"Faraz Afzal" <farazafzal@gmail.com> wrote in message <i0d9h4$rvg$1@fred.mathworks.com>...
> Hi everyone,
>
> I have a question if someone can help me..
>
> I would like to know the ability of MATLAB EDITOR to select the "COLUMNS ONLY" text.
>
> e.g. say i have following text in an m-file
>
> v1n = -30 ; % Initial normal velocity of body 1
> v1t = 120 ; % Initial tangential velocity of body 1
> v2n = 240 ; % Initial normal velocity of body 2
> v2t = 90 ; % Initial tangential velocity of body 2
>
> Now, I would like to copy all the four comments at the same time-.-- and then paste them all together (as I said comments only not the data v1n,v1t etc).
>
> Please don't tell me to use external editor within MATLAB as I know how to do it.
> It is called column selection in editors normally.
> I hope I explained my question.
>
> Regards,
> Faraz

The Matlab editor does not support "column selection" ("block mode").
/ per

Tags for 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