clear,clc,clfQ=3.3;D5L=[12.75*0.0254 14*0.0254 16*0.0254 18*0.0254 20*0.0254 22*0.0254 24*0.0254 26*0.0254 28*0.0254 30*0.0254 32*0.0254 34*0.0254 36*0.0254 38*0.0254 40*0.0254 42*0.0254 44*0.0254 46*0.0254 48*0.0254 52*0.0254 56*0.0254 60*0.0254 64*0.0254 68*0.0254 72*0.0254 76*0.0254 80*0.0254] V5L=((4.*Q)./(pi.*D5L.^2)); if V5L > 1 & V5L < 4.5 V=V5L endDo=((4.*Q)./(pi.*V)).^(0.5)
MATLAB: If function error, here i want MatLab to find the values of V5L that are between 1 and 4.5 and name it V, and use it in another upcoming equation
floating pointif statement
Related Question
- I am designing a 500m pipeline, but i’m facing a problem with the code, it can’t seem to plot a graph. i know it’s a bit long but this is the only way to post the question. i have a lot of columns due to the range of velocities used.
- Hi, how to overcome the error “Vectors must be the same length?”. Am trying to run a simulation, but with maximum time 25 the code works fine, however if I extend the final time it is responding the earlier error stated
- How can i compute Amino Acid composition for the protein sequence data
- How to do Surf plot
Best Answer