help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: apostrophe after linspace code


From: Dmitri A. Sergatskov
Subject: Re: apostrophe after linspace code
Date: Thu, 12 Jun 2008 22:09:48 -0500

On Thu, Jun 12, 2008 at 9:51 PM, Marc Normandin <address@hidden> wrote:
> Siddhartha wrote:
>> can anyone tell me the significance of having the apostrophe
>> ' after a line of code?

> The apostrophe acts as the transpose operator, flopping rows for columns
> and columns for rows.  In your example, the act of transposing simply
> turns a row vector (see variable y below) into a column vector.
>


This is a common misconception.
Try
x = [1, 2+i, 3+i]
x'
x.'

Regards,

Dmitri.
--


reply via email to

[Prev in Thread] Current Thread [Next in Thread]