GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • » Octave core
  • » by package
  • » alphabetical

This view

  • Original page
  • New address

GeezerVison is showing octave.sourceforge.io — Function Reference: cell2mat

Octave-Forge - Extra packages for GNU Octave
Home · Packages · Developers · Documentation · FAQ · Bugs · Mailing Lists · Links · Code

Navigation

Operators and Keywords

Function List:

  • » Octave core
  • » by package
  • » alphabetical

C++ API

: m = cell2mat (c)

Convert the cell array c into a matrix by concatenating all elements of c into a hyperrectangle.

Elements of c must be numeric, logical, or char matrices; or cell arrays; or structs; and cat must be able to concatenate them together.

See also: mat2cell, num2cell.

Demonstration 1

The following code

 C = {[1], [2 3 4]; [5; 9], [6 7 8; 10 11 12]};
 cell2mat (C)

Produces the following output

ans =

    1    2    3    4
    5    6    7    8
    9   10   11   12

Package: octave

SourceForge.net Logo
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.