help-octave
[Top][All Lists]
Advanced

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

Re: Matrix Help


From: Andy Buckle
Subject: Re: Matrix Help
Date: Sun, 7 Oct 2012 20:24:10 +0100

On 7 October 2012 20:22, Doug Stewart <address@hidden> wrote:
>
>
> On Sun, Oct 7, 2012 at 3:15 PM, isdouble <address@hidden> wrote:
>>
>> I need to create a matrix where it contains part name, quantity, failure
>> rate.
>> However, Octave does not accept any names so I'm having trouble creating
>> such matrix.
>> I believe in order to create a matrix you would input
>> M = [1, 2, 3;3, 2, 1]
>> But in my case I would input
>> M = [Part Name, 1, 0.0000108;...]
>> But the program does not recognize what "part name" is so I keep getting
>> an
>> error.
>> Is there any way to create a matrix table with non numbers?
>> Thank you
>>
>>
>>
>> --
>> View this message in context:
>> http://octave.1599824.n4.nabble.com/Matrix-Help-tp4645104.html
>> Sent from the Octave - General mailing list archive at Nabble.com.
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://mailman.cae.wisc.edu/listinfo/help-octave
>
>
>  M ={"Part Name", 1, 0.0000108;"cat",2,200}
>
> does this help?

That's called a cell array.
http://www.gnu.org/software/octave/doc/interpreter/Cell-Arrays.html
/* andy buckle */


reply via email to

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