What is the problem with the below code?
조회 수: 1 (최근 30일)
이전 댓글 표시
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;
댓글 수: 0
답변 (1개)
VBBV
2023년 3월 14일
diff30 = (drugs30 - placebo30)./ placebo30 * 100;
댓글 수: 3
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 Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!