DEBUG, CHECK ERRORS TO RUN MATLAB

close all; clear all; clc;
fileNameVerStable = 'U2044XA_MY55090001_NORM_FADC_0degC.csv';
verifyExternalStableRADC = 0 ;
showDetailedResidualErrorsVer =0;
tempFileName = strsplit( fileNameVerStable, '.csv');
fileVerNameDisplay = tempFileName;
%%%%%%%%%%%%%%%%%%%%
Unit = 'U2049XA_HQ10000024_NORMFILTOFF_FADC';
fileName ='U2049XA_HQ10000044_NORM_FADC_ORIcombined.xlsx' ;
inputFileName = cellmat (fi);
Sorting_hhc100(Unit) = [fileName, inputFileName];
% To create temporary File
tempFilename = strsplit(fi,'-');
%STR = importdata ('U2043XA_MY54520003_AVER_FADC.csv');
%tempfileName = regexprep (STR, '<.*?>' , ' ');
fileNameDisplay = [tempFileName(1,1) tempFileName(1,2)];
%%this is assumed u have combined the data from code above. U can input the
%%combined filename to fasten the routine
% eg : fileName ='U2049XA_HQ10000028_AVER_FADC_combined.csv';
% fileName ='U2043XA_MY54520003_AVER_FADC.csv';
% inputFileName = fileName;

4 Commenti

Problem IN BOLD above:
%Create Temporary File
I have a problem of running the following line:
tempFilename = strsplit (fi, '-') ;
After running the code, the following error appear
Error using strsplit (line 80)
First input must be either a character vector or a string scalar.
Error in generate_3D_corrections (line 45)
tempFilename = strsplit(fi,'-');
Please help pointing out the errors
Where have you defined fi? Is this a string (which is valid input to strsplit or something else? You also use fi as
fileName ='U2049XA_HQ10000044_NORM_FADC_ORIcombined.xlsx' ;
inputFileName = cellmat (fi);
Does this mean that fi is a cell array? Please clarify.
Yes, fi refers to a cell array here
What is cellmat ? Do you mean cell2mat ?
fi does not exist in your code unless you have a function by that name. You have "clear all" so there is no possibility of it being a variable that was defined before the code we can see.

Risposte (0)

Questa domanda è chiusa.

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by