Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これがある場合、エラーが発生します
sum(vector) == cumsum(vector)(length(vector)) >> Error: ()-indexing must appear last in an index expression.
私はただできることを知っています:
Vec1 = cumsum(mat); sum(mat) == Vec1(length(mat))
これは論理 1 を返します。
すべてを1行で取得する代替手段はありますか?