フィルターのクリア

Finding start and end point of array from csv

2 ビュー (過去 30 日間)
Michael Arvin
Michael Arvin 2022 年 2 月 10 日
コメント済み: Michael Arvin 2022 年 2 月 16 日
I am trying to set the starting and ending point of x from a csv file when y = 1. How do I do it?
RawDataTable = readtable('blabla.csv');
lengthRawDat = height(RawDataTable);
% Convert raw data
Raw_x = table2array(RawDataTable(:,1));
Raw_y = table2array(RawDataTable(:,2));
Thank you very much!

採用された回答

KSSV
KSSV 2022 年 2 月 10 日
idx = find(Raw_y==1) ;
[idx(1) idx(end)]
  1 件のコメント
Michael Arvin
Michael Arvin 2022 年 2 月 16 日
is it possible to find the start and end point of an approximate value, like for example 1 +/- 0.1? If so, how?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by