[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #30665] cell2mat not for structures
From: |
Muhali |
Subject: |
[Octave-bug-tracker] [bug #30665] cell2mat not for structures |
Date: |
Thu, 05 Aug 2010 21:06:15 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.6pre) Gecko/20100604 Namoroka/3.6.6pre |
URL:
<http://savannah.gnu.org/bugs/?30665>
Summary: cell2mat not for structures
Project: GNU Octave
Submitted by: muhali
Submitted on: Thu 05 Aug 2010 09:06:15 PM GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Unlike matlab, octave does not allow for structure elements in cell2mat:
matlab> a{1}.x = 1 ;
matlab> a{2}.x = pi ;
matlab> b=cell2mat(a)
b =
1x2 struct array with fields:
x
octave> a{1}.x = 1 ;
octave> a{2}.x = pi ;
octave> b=cell2mat(a)
error: cell2mat: wrong type elements or mixed cells and matrices
error: called from:
error: /home/gbuerger/loc/octave/share/octave/3.3.52+/m/general/cell2mat.m
at line 48, column 5
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30665>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #30665] cell2mat not for structures,
Muhali <=