[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cell arrays: cat vs []
From: |
Sam Sirlin |
Subject: |
cell arrays: cat vs [] |
Date: |
Tue, 29 Jun 2004 14:56:13 -0500 |
I'm not sure quite what the relation is between cat and [], but in
matlab 6.5.1 [] does catenation for cell arrays:
>> [cell(1,3); cell(2,3)]
ans =
[] [] []
[] [] []
[] [] []
while in octave it doesn't:
octave:40> version
ans = 2.1.57
octave:41> [cell(1,3); cell(2,3)]
error: octave_base_value::array_value(): wrong type argument `cell'
octave:41> cat(1,cell(1,3), cell(2,3))
ans =
{
[1,1] = [](0x0)
[2,1] = [](0x0)
[3,1] = [](0x0)
[1,2] = [](0x0)
[2,2] = [](0x0)
[3,2] = [](0x0)
[1,3] = [](0x0)
[2,3] = [](0x0)
[3,3] = [](0x0)
}
This seems like it would be a nice extension...
Sam Sirlin
Email: address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- cell arrays: cat vs [],
Sam Sirlin <=