Borrar filtros
Borrar filtros

Flow charts code connectors

2 visualizaciones (últimos 30 días)
Rudy
Rudy el 20 de Abr. de 2011
Respondida: edi cesar agurto carrasco el 20 de Jun. de 2019
I have to convert this flowchart http://i51.tinypic.com/25jw9qd.png into code, but I am having problems returning to the loops, by means of the "Z" and "W" connectors. Any comments? Also what are your thoughts on the decisions compartments, what loops should I use, maybe my choice of loops is why I having problems with the connector so I cant get my program to compile....

Respuesta aceptada

Paulo Silva
Paulo Silva el 20 de Abr. de 2011
Maybe this will work
%start and initialize values
for D=D0:DD:Dmax %it stops when D>Dmax %in W
B=Bi;S=Si;
Y=0;
while 1 %in Z
u=umax*S/(Ks+S);
if (abs(u-D)<=0.01)
B0=D*B;
%print B0, S,B,D
D=D+DD;
break %return from the while loop
else
Y=Y+1;
if Y>50
B0=D*B;
%print B0, S,B,D
D=D+DD;
break %return from the while loop
else
%define new delta B
%define new delta S
%update B
%update S
end
end
end
end

Más respuestas (3)

Rudy
Rudy el 20 de Abr. de 2011
thanks paulo, forgot break existed lol

MOHD ABDUL MUQEEM
MOHD ABDUL MUQEEM el 1 de Abr. de 2018
Iam facing some problem when IAM converting this flow chart to code.there is a circle but I don't know how to write code for that Please help here is the flow chart https://drive.google.com/file/d/0B6z4sx6SVIcMQ2kwem9LS3V3LTFKRkdDbHBpcGRHVnVTTzNv/view?usp=drivesdk

edi cesar agurto carrasco
edi cesar agurto carrasco el 20 de Jun. de 2019
I have to convert this flowchart. Please help me . I not know how handle the repetition structures. Thanks

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by