Dynamic array for string
Show older comments
D = 0.067;
Ugs = [0.047,0.061,0.288,0.344,0.404,0.544,0.709,0.945,1.418,1.891,2.363,2.836,4.727];
Uls = ones(1,13)*0.047;
L = 6.0000;
g = 9.81;
% Um=zeros(Ugs.size);
Um = Ugs + Uls;
Le = 42.6 * D *((Um/((g*D)^0.5))+0.29);
for i = 1:13
if L < Le:13
flow='churn'
else
if L >= Le:13
flow='slug'
arrow(i,:) = flow;
end
end
end
Ugs = Ugs.';
Le = Le.';
Um = Um.';
flow = flow.';
Uls = Uls.';
P = plot(Le,Um)
T = table(Uls,Ugs,Le,Um,arrow)
Accepted Answer
More Answers (0)
Categories
Find more on Detection in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!