필터 지우기
필터 지우기

error de opts .here i understood that we need to change delimer \t . so,my question is how can i change this deliter \t? or if you have any other solution to propose to solve

조회 수: 1 (최근 30일)
function [Sample,Status,P0,RawP,RawT]=extract_data_P0(Nomfichier,SW_version)
%2 variable input 5 out put
opts=detectImportOptions('Capteur2125011.txt');
opts.DataLine=7;
opts.VariableNames={'SampleNumber','ReceivedFrame'};
RawData=(readtable(Nomfichier,opts));
Sample=table2array(RawData(:,1));
RawFrame=table2array(RawData(:,2));
error:
>> extract_data_P0
Not enough input arguments.
Error in extract_data_P0 (line 7)
RawData=(readtable(Nomfichier,opts));
  댓글 수: 1
Stephen23
Stephen23 2023년 4월 24일
편집: Stephen23 2023년 4월 24일
opts=detectImportOptions('Capteur2125011.txt', 'Delimiter','\t');
% ^^^^^^^^^^^^^^^^
"extract_data_P0 Not enough input arguments."
The function EXTRACT_DATA_P0 has two inputs arguments (and requires at least one). You called it with no input arguments. Solution: you need to call it with its required input arguments.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by