Register to reply

Matlab and arrays

by spoonyluv
Tags: matlab
Share this thread:
Jun25-09, 11:47 AM
P: 10

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
Mysterious source of ozone-depleting chemical baffles NASA
Water leads to chemical that gunks up biofuels production
How lizards regenerate their tails: Researchers discover genetic 'recipe'

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