フィルターのクリア

Is this code correct for split an EMG signal into 10 equal part?

3 ビュー (過去 30 日間)
Ghazal Hnr
Ghazal Hnr 2017 年 3 月 4 日
コメント済み: Ghazal Hnr 2017 年 3 月 5 日
total number of samples are 1000 should I write like this?
part1 = EMG(1:100);
part2 = EMG(100:200);
part3 = EMG(200:300);
part4 = EMG(300:400);
...
until part10 ?
is any shorter code to write it?

採用された回答

Image Analyst
Image Analyst 2017 年 3 月 4 日
No, not if you want 10 separate, individually named variables. At least none that I would recommend.
By the way, the indexes should start with 101, 201, 301, etc., NOT 100, 200, 300, etc.
  5 件のコメント
Image Analyst
Image Analyst 2017 年 3 月 5 日
You can't stuff 1000 elements into one element. I recommend you just use the 10 different variables, or just use indexes when you need to extract a portion, and leave the array as it is.
The other option is to use a cell array but I don't recommend that. You'd have to use a different name if you did, like caEMG instead of EMG.
Ghazal Hnr
Ghazal Hnr 2017 年 3 月 5 日
Thank you very much

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by