Filter löschen
Filter löschen

how to write or condition in if statement matlab?

38 Ansichten (letzte 30 Tage)
Sultan Mehmood
Sultan Mehmood am 21 Jun. 2019
Kommentiert: Sultan Mehmood am 21 Jun. 2019
if
(j==i) , or (flag(j)==1)

Akzeptierte Antwort

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

Weitere Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Data Export to MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by