how can i make a function choose?
Mostrar comentarios más antiguos
If i had
DN= [[0.125 0.25 0.375 0.5 0.75 1 1.25 1.5 2 2.5]; OD=[0.405 0.540 0.675 0.84 1.05 1.315 1.66 1.9 2.375 2.875]; t=[0.068 0.088 0.091 0.109 0.113 0.133 0.14 0.145 0.154 0.203];
the above 3 matrix have the same no. of variables. and V varies from 1.5 to 3
ID = sqrt(4.*Q.* 0.000011574074./(pi.*V)); OD = ID + 2.*t;
and i need the OD function choose a the next large number from matrix above. Then align ID , t , DN with it.
11 comentarios
Star Strider
el 19 de Abr. de 2018
What are ‘Q’, ‘V’, and ‘v’?
Mahmoud Sami
el 19 de Abr. de 2018
Amjad Green
el 19 de Abr. de 2018
if i understood your question right
try F=[OD ID' t' DN']
Star Strider
el 19 de Abr. de 2018
‘V varies from 1.5 to 3’
Does this mean, for example:
V = 1.5 : 0.5 : 3;
or something else?
Mahmoud Sami
el 20 de Abr. de 2018
Mahmoud Sami
el 20 de Abr. de 2018
Jan
el 21 de Abr. de 2018
@Mahmoud Sami: I do not understand your question. What is the wanted output for the given example input? What does "align" mean? What is "next large number"?
Mahmoud Sami
el 21 de Abr. de 2018
Mahmoud Sami
el 21 de Abr. de 2018
Jan
el 21 de Abr. de 2018
@Mahmoud Sami: I do not have any idea of what "ASME standard" is. I do not understand the meaning of the other sentences of your comment also. Again: What is the wanted output for the given example input?
Mahmoud Sami
el 21 de Abr. de 2018
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!