if you have a cell array into a vector with strings, you can use the following command:

my_cell = {'a','b'};

my_new_vector = [my_cell{1:end}];

my_new_vector = [my_cell{1:end}];

skip to main |
skip to sidebar
## Wednesday, April 23, 2008

###
convert a cell array into a vector with strings

## other nice blogs

## Labels

just another blog. here you'll find my experiences with Matlab/Simulink, vba, LaTeX and Mac OS X.

if you have a cell array into a vector with strings, you can use the following command:

my_cell = {'a','b'};

my_new_vector = [my_cell{1:end}];

my_new_vector = [my_cell{1:end}];

Posted by otmezger at 5:23 PM

Labels: cell array, matlab

Subscribe to:
Post Comments (Atom)

- announcements (1)
- best practice (1)
- carpetplot (3)
- cell array (1)
- colorbar (1)
- debug (2)
- excel (5)
- firefox (3)
- fourier (1)
- gds (1)
- label (1)
- latex (4)
- m-lint (1)
- mac (6)
- mathworks webinars (3)
- matlab (56)
- matlab GUI (2)
- matlab import (1)
- matlab plots (17)
- matlab subplots (2)
- matlab-tutorials (4)
- other (2)
- simulink (10)
- speeding up code (2)
- svn (1)
- thermodynamics (2)
- vba (10)
- video tutorial (1)
- warning (1)

## 5 comments:

thank you helped me with a program for homework in college.

A shorter version is:

my_new_vector = [my_cell{:}];

A shorter version is:

my_new_vector = [my_cell{:}];

A shorter version is:

my_new_vector = [my_cell{:}];

thank you very much. I was finding exactly this. Searched whole internet for proper matlab solutions but nothing worked until i came here

Post a Comment