Matlab and arrays


by spoonyluv
Tags: matlab
spoonyluv
spoonyluv is offline
#1
Jun25-09, 11:47 AM
P: 10
Hello,

I am new to Matlab, and Im having trouble with some basic programming

I am trying to create an array (lets call it S) that has certain statuses (for now lets say it has 3 statuses). then

for i=1:10

I am trying to read the status, determine with some other logic if I need to change to statuses to another number and accordingly update it. Not just that but then I want to expand the array. so for now I have 3 numbers in the array, but want to expand it to 10 numbers....

any ideas/ examples on how to do that?
Phys.Org News Partner Science news on Phys.org
Simplicity is key to co-operative robots
Chemical vapor deposition used to grow atomic layer materials on top of each other
Earliest ancestor of land herbivores discovered

Register to reply

Related Discussions
MATLAB - working with struct arrays Math & Science Software 0
Arrays c++ Programming & Computer Science 14
Combining 2 two-dimensional cell arrays in MATLAB Math & Science Software 2
Matlab help, creating a map from three arrays Math & Science Software 0
Three-way arrays Linear & Abstract Algebra 12