How to write a logical statement?

조회 수: 2 (최근 30일)
bilgesu ak
bilgesu ak 2016년 1월 18일
댓글: Image Analyst 2016년 1월 18일
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일
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)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by