[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cell{1:5}=1 not working for me!!!
From: |
oxy |
Subject: |
Re: cell{1:5}=1 not working for me!!! |
Date: |
Thu, 31 May 2012 17:37:54 +0200 |
Sorry, I have to reformulate:
The thing is, I cannot initialize a multielement cell in 1-step as i
can do with vectors:
v(1:5)=7 % v was initialized here
For a cell i need 2 steps:
c={}
c(1:5)=7 % c must be initialized first. Cant do it in 1 step
Interestingly, global vectors must also be initialized first
and then set:
global v(1:6)=9 % this will fail
global v2
v2(1:5)=7 % this will work
Ok, I can live with that. In matlab is worse. Its impossible to
initialize anything
as global and set it at the same time. When you deal with many variables it
adds many lines to your code.
Thx ...
- cell{1:5}=1 not working for me!!!, oxy, 2012/05/30
- Re: cell{1:5}=1 not working for me!!!, Jordi Gutiérrez Hermoso, 2012/05/30
- Re: cell{1:5}=1 not working for me!!!, Francesco Potortì, 2012/05/30
- Re: cell{1:5}=1 not working for me!!!, Juan Pablo Carbajal, 2012/05/30
- Re: cell{1:5}=1 not working for me!!!, Francesco Potortì, 2012/05/31
- Re: cell{1:5}=1 not working for me!!!, Jordi Gutiérrez Hermoso, 2012/05/31
- Re: cell{1:5}=1 not working for me!!!, oxy, 2012/05/31
- Re: cell{1:5}=1 not working for me!!!, Jordi Gutiérrez Hermoso, 2012/05/31
- Re: cell{1:5}=1 not working for me!!!,
oxy <=
- Re: cell{1:5}=1 not working for me!!!, Jordi Gutiérrez Hermoso, 2012/05/31
Re: cell{1:5}=1 not working for me!!!, c., 2012/05/30