problem with 'if-elseif-else'
显示 更早的评论
In order to show the appropriate root for the problem I created this code :
if riza > 1 | riza<0
fprintf('so the correct root is',root1)
elseif riza1>1 |riza1<0
fprintf ('so the correct root',root)
end
Even though it appears the message 'so the correct root is' ,it won't appear the root1 or root.How can this be fixed ?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Direct Search 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!