Pulling data from excel into MatLab

4 vues (au cours des 30 derniers jours)
Quinten Humphrey
Quinten Humphrey le 8 Mai 2021
Warning: Column headers from the file were modified to make them valid MATLAB identifiers before creating variable names for the table. The
original column headers are saved in the VariableDescriptions property.
Set 'VariableNamingRule' to 'preserve' to use the original column headers as table variable names.
Warning: Column headers from the file were modified to make them valid MATLAB identifiers before creating variable names for the table. The
original column headers are saved in the VariableDescriptions property.
Set 'VariableNamingRule' to 'preserve' to use the original column headers as table variable names.
Warning: Column headers from the file were modified to make them valid MATLAB identifiers before creating variable names for the table. The
original column headers are saved in the VariableDescriptions property.
Set 'VariableNamingRule' to 'preserve' to use the original column headers as table variable names.
Check for incorrect argument data type or missing argument in call to function 'resample'.
Error in Resampler>VREG_resample (line 32)
jack(:,i) = resample(task(:,i), num, den);
Error in Resampler (line 13)
VREG_resample(Sub01_dummypull,2000,25);
When i run the code i get these errors. As I am pretty new to the software, can anyone help explain what I need to do to fix this?

Réponses (1)

Walter Roberson
Walter Roberson le 8 Mai 2021
The code VREG_resample is expecting that you are passing it a numeric matrix, but instead you are passing it a table() object. You need to extract appropriate numeric columns from the table() object and pass those in.l For example it might look something like
VREG_resample(Sub01_dummypull{:,5:8},2000,25);
if columns 5, 6, 7, and 8 are numeric values that are to be passed in.

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by