Need help with my function (Basic Question)
显示 更早的评论
Hi, I need help with my function using if statements. When I try it with random pH its giving me incorect messages. Im not sure how to fix it. Heres what i have so far:
message = "acidic";
if 0<= pH, pH<7
end
message = "neutral";
if pH==7
end
message = "basic";
if 7<pH, pH>=14
end
message = "Not valid pH";
if 0>pH, pH<14
ph=0;
end
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!