How to write a logical statement?
2 次查看(过去 30 天)
显示 更早的评论
Hi;
I need to write a logical statement but I couldn't succeed it. It is attached file because of exponential numbers... This is very important for me ...
Thanks in advance; Regards...
0 个评论
回答(1 个)
Image Analyst
2016-1-18
What does "end" mean there? Does it mean to quit the program? If so, just use return instead of end.
To exponentiate use ^
if LB^(k-1)== N
return;
end
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!