How to write a logical statement?

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...

回答 (1 件)

Image Analyst
Image Analyst 2016 年 1 月 18 日

0 投票

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

2 件のコメント

bilgesu ak
bilgesu ak 2016 年 1 月 18 日
yes end means quit the problem. But (k) or (k-1) don't represent the exponential values. It is just a representation that LB gets values according to the change of k.
Image Analyst
Image Analyst 2016 年 1 月 18 日
Then use LB(k-1)

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeConstruct and Work with Object Arrays についてさらに検索

質問済み:

2016 年 1 月 18 日

コメント済み:

2016 年 1 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by