フィルターのクリア

Extracting data from matrix row vector

2 ビュー (過去 30 日間)
Sag
Sag 2016 年 1 月 21 日
コメント済み: Star Strider 2016 年 1 月 22 日
I have a double Streams with some process I have got vector F which has a value Now I want to go back to the Streams and locate value matching value of F; get 100 columns forward and collect all the data between those two columns. I tried with ismember to locate the position of F in Streams but no success
Data=Streams(J: (J-2544))%does not work

採用された回答

Star Strider
Star Strider 2016 年 1 月 21 日
MATLAB by default increments using the colon ‘:’ operator. If you want it to decrement, you have to tell it specifically to use a negative step.
See if this does what you want:
Data=Streams(J : -1 : (J-2544));
Notice the ‘-1’ step.
  8 件のコメント
Sag
Sag 2016 年 1 月 22 日
Still there is Warning: Integer operands are required for colon operator when used as index for code Final=Streams(J: +1 : (J+2544)); But the data looks okay Just wanted to know that would above warning affect the data analysis.. Thanks!
Star Strider
Star Strider 2016 年 1 月 22 日
If you cannot address your data arrays correctly, it could affect your data analysis.
‘J’ still needs to be an integer to create your subscript vector.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by