필터 지우기
필터 지우기

how to check significance testing?

조회 수: 2 (최근 30일)
aman
aman 2014년 3월 12일
답변: nl2605 2014년 3월 12일
hi, I am new to MATTLAB. I have made this program function [out] = significance(z,t); if t <= z < 2*t; out = 1 else if Z < t out = 0 else if z >= 2*t out='null' end end end BUT when z >= 2*t out=1 is displayed instead of out='null'. can anyone help me so that I can get out='null' when z >= 2*t.

채택된 답변

nl2605
nl2605 2014년 3월 12일
That's because your conditions are wrong. If z>=2*t, then that means you have already satisfied the condition t<=z. And so you always will get out = 1

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by