From: Faraz Afzal on
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
From: per isakson on
"Faraz Afzal" <farazafzal(a)gmail.com> wrote in message <i0d9h4$rvg$1(a)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
 | 
Pages: 1
Prev: PIL and PWM
Next: Controlling Excel from Matlab