To assign to or create a variable in a table, the number of rows must match the height of the table

조회 수: 19 (최근 30일)
I´m trying to train a fast RCNN, but when i put this code:
>> load ('Tdata.mat');
>> Labeldata=Tdata;
>> Labeldata.imageFilename=fullfile('C:\Users\JV\Desktop\Labeldata.imageFilename');
i get this error: To assign to or create a variable in a table, the number of rows must match the height of the table.
The number of images that i have in that file is 6,808 and the height of my table "Tdata" is the samePlease, any help, i don´t know what to do!!

채택된 답변

Stephen23
Stephen23 2019년 6월 13일
편집: Stephen23 2019년 6월 13일
You wrote a literal string instead of concatenating the variable data onto the end of the character vector.
fullfile('C:\Users\JV\Desktop\Labeldata.imageFilename')
% ^^^^^^^^^^^^^^^^^^^^^^^^ part of literal character vector, NOT a variable!
% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one character vector.
%^^^^^^^^ does nothing
You probably meant to do something like this:
Labeldata.imageFilename = fullfile('C:\Users\JV\Desktop',Labeldata.imageFilename);

추가 답변 (1개)

Jose  Villarroel
Jose Villarroel 2019년 6월 14일
Thanks, you save me

카테고리

Help CenterFile Exchange에서 Camera Calibration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by