Register to reply

Matlab and arrays

by spoonyluv
Tags: matlab
Share this thread:
spoonyluv
#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
Experts defend operational earthquake forecasting, counter critiques
EU urged to convert TV frequencies to mobile broadband
Sierra Nevada freshwater runoff could drop 26 percent by 2100

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