1×2ベクトル内で条件を満たす列の数を求める方法を教えていただきたいです。
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
健
am 18 Aug. 2022
Beantwortet: Atsushi Ueno
am 18 Aug. 2022
1 0 1 1 1
1 1 0 0 1
このような1×2ベクトル内で列内が下線のように2つの要素がともに1の列の個数を求める方法を教えていただきたいです。
この場合は2と出力されるのが望ましいです。
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Operating on Diagonal Matrices finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!