AILab
Newbie level 5
Currently i am doing the feature extraction using matlab, but i face the problem of error using==>fscanf invalid size, but i check so many times there is nothing wrong the coding part. Anyone have suggestion please?Thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Currently i am doing the feature extraction using matlab, but i face the problem of error using==>fscanf invalid size, but i check so many times there is nothing wrong the coding part. Anyone have suggestion please?Thanks
%example
clc
fidw=fopen('sample_record.txt','W');%Open a sample file to Write
rad=[ 1 2 3 4 5 6 7 8 9 10];
uint8(rad);
% for i=1:10
fprintf(fidw,'%d \n',rad(1,i)); %Write some data
% end
fclose(fidw); %close File
fidr=fopen('sample_record.txt','r');%Open File Again to read
A=fscanf(fidr,'%d',[COLOR="#B22222"][B][inf 1][/B][/COLOR])
status=fclose(fidr);%close Fil
??? Error using ==> fscanf
Invalid size.
Error in ==> seek_example at 15
A=fscanf(fidr,'%d',[inf 1])[/COLOR]