how to write or condition in if statement matlab?

56 visualizaciones (últimos 30 días)
Sultan Mehmood
Sultan Mehmood el 21 de Jun. de 2019
Comentada: Sultan Mehmood el 21 de Jun. de 2019
if
(j==i) , or (flag(j)==1)

Respuesta aceptada

Akshay Malav
Akshay Malav el 21 de Jun. de 2019
if (j==i) | (flag(j)==1)
% your code
end

Más respuestas (1)

Shwetank Shrey
Shwetank Shrey el 21 de Jun. de 2019
Check out the documentation:
if (j == i) || (flag(j) == 1)
% do something
end
  6 comentarios
madhan ravi
madhan ravi el 21 de Jun. de 2019
What is i here , loop iterator?
Sultan Mehmood
Sultan Mehmood el 21 de Jun. de 2019
yes
i=1:65536;
L=65536;

Iniciar sesión para comentar.

Categorías

Más información sobre Data Export to MATLAB 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!

Translated by