필터 지우기
필터 지우기

How to view calculations step by step?

조회 수: 13 (최근 30일)
suvadip paul
suvadip paul 2013년 10월 11일
답변: Walter Roberson 2013년 10월 11일
I want to show a long calculation in step by step e.g.,
6+4-2^3+32^(1/5) =6+4-8+2 =10-8+2 =2+2 =4
But Matlab calculates it in one step. Is there anyway to exhibit all the steps?
  댓글 수: 2
sixwwwwww
sixwwwwww 2013년 10월 11일
May be you can do like this
a = 6+4
b = a-2^3
c = b+32^(1/5)
suvadip paul
suvadip paul 2013년 10월 11일
Thank you. But this will not so much convenient to serve my purpose.

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

답변 (1개)

Walter Roberson
Walter Roberson 2013년 10월 11일
No, MATLAB provides no method to view the result of each subexpression of an expression.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by