필터 지우기
필터 지우기

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 CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by