how to check significance testing?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
aman
el 12 de Mzo. de 2014
Respondida: nl2605
el 12 de Mzo. de 2014
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.
0 comentarios
Respuesta aceptada
nl2605
el 12 de Mzo. de 2014
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Argument Definitions en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!