필터 지우기
필터 지우기

What is the problem with the below code?

조회 수: 1 (최근 30일)
Roa
Roa 2023년 3월 14일
댓글: Rik 2023년 3월 14일
Why is MATLAB displaying an error for me with this code:
%Calculate the percenatge difference:
diff20 = (drugs20 - placebo20)./ placebo20 * 100;
diff30 = (drugs30 - placebo30)./ placebo301 * 100;
diff = (drugs - placebo)./ placebo * 100;

답변 (1개)

VBBV
VBBV 2023년 3월 14일
diff30 = (drugs30 - placebo30)./ placebo30 * 100;
  댓글 수: 3
Roa
Roa 2023년 3월 14일
편집: Roa 2023년 3월 14일
Yeah sorry that was a typo i fixed it but still displays error
Rik
Rik 2023년 3월 14일
Try to make a MWE so we can run your code without any other dependencies and can reproduce your issue. The best way to do this is to use the code section in the editor and use the run button. That way you can make sure we will see the same error message as you do.
The information that Matlab "still displays error" is not enough to help you.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by