Error using concatenationLayer Cannot define property 'Name'

D
deepti_sinha · May 21, 2021 · 2.3K views
Question
Hello, I am trying to define a concatenation layer in Matlab 2020a but I get the following error:   Error using concatenationLayer Cannot define property 'Name' in class 'concatenationLayer' because the property has already been defined in the superclass 'Layer'.   I get the same error even using the simple command from the help from matlab concat = concatenationLayer(4,2,'Name','concat')   This is strange, because I have been using this command since version 2019a but now that I migrated to 2020a I get the error. I hope anyone can help me to fix this issue.
Expert Answer
Profile picture of John Michell
John Michell PhD Expert
Answered Aug 24, 2026
Hi,
 
Did you try using a new layer name other than 'concat', as the error mentions the name has already been used in a superclass.
 
I tried to work the same at my end, it works completely fine for me.
 
If the problem still persists, try using the following commands and retry your work.
 
rehash toolbox
rehash toolboxcache
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!