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...
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...
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...
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...