Finding start and end point of array from csv

1 visualización (últimos 30 días)
Michael Arvin
Michael Arvin el 10 de Feb. de 2022
Comentada: Michael Arvin el 16 de Feb. de 2022
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!

Respuesta aceptada

KSSV
KSSV el 10 de Feb. de 2022
idx = find(Raw_y==1) ;
[idx(1) idx(end)]
  1 comentario
Michael Arvin
Michael Arvin el 16 de Feb. de 2022
is it possible to find the start and end point of an approximate value, like for example 1 +/- 0.1? If so, how?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by