フィルターのクリア

How to get variance vector from i to end of the vector X

1 回表示 (過去 30 日間)
Hakan Sagir
Hakan Sagir 2020 年 12 月 15 日
回答済み: Cris LaPierre 2020 年 12 月 15 日
Q = [ 1 2 3 4 5 6 7 8 9 ]
v1= var(Q)
v2 = var(Q([2:end]))
v3 = var(Q([3:end]))
....
I have to many variables like this.
I need to create a series but I don't know how?
I need new vector of Vnew [ v1, v2, v3, ..... vend]

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 12 月 15 日
Looks like a job for a for loop.
See Ch 13 of MATLAB Onramp.
You can also find some examples in the documentation page of for.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by