To assign to or create a variable in a table, the number of rows must match the height of the table
    11 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Jose  Villarroel
 el 13 de Jun. de 2019
  
    
    
    
    
    Respondida: Jose  Villarroel
 el 14 de Jun. de 2019
            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 same Please, any help, i don´t know what to do!!
Please, any help, i don´t know what to do!!
 Please, any help, i don´t know what to do!!
Please, any help, i don´t know what to do!!0 comentarios
Respuesta aceptada
  Stephen23
      
      
 el 13 de Jun. de 2019
        
      Editada: Stephen23
      
      
 el 13 de Jun. de 2019
  
      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);
0 comentarios
Más respuestas (1)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

