Recent content by oceanspiral20

  1. O

    Discover How to Measure Flowrate Through Varying Tube Diameters

    I have a setup where there is a source of air pressure, a tube through which the air flows, a connector through which air flows, and a flow meter which reads the flowrate of the air at the end. The final goal is to use the readings from the flowmeter to determine the diameter of the tube through...
  2. O

    MATLAB model of ventricular electrical activity

    Hi! I have this assignment due in Matlab, and I just have no idea how to implement the model in MATLAB ... My main issue at this point is that after I have defined a 50X50 grid to hold the state of each region (where the state can be 0,1,2 or 3 and depends on things like time elapsed in the...
  3. O

    MATLAB Apply if/else if to each element in array in MATLAB

    Hi Ben H! Thank you so much for your reply, that worked beautifully! :)
  4. O

    MATLAB Apply if/else if to each element in array in MATLAB

    Hi, thanks for your reply! I did fix those errors, but still can't get it to work and apply to each element in the array. I've done it both just entering this code into the command window, and it only returns one element f=0 instead of f values for each time step in the array... Here's the...
  5. O

    MATLAB Apply if/else if to each element in array in MATLAB

    Hi! I have an array that is 1 column by many rows, of which each element represents a time. I want to find variable f at each time, where f is defined as follows: if t < tp f=(sin((pi*t)/(2*tp)))^2; if tp < t < ts f=(cos((pi*(t-tp))/(2*(ts-tp))))^2; otherwise f=0 I've tried...
Back
Top