Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab and arrays

  1. Jun 25, 2009 #1

    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?
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted