'Layer 1' is not a valid model name because it is not a valid MATLAB function name

조회 수: 29 (최근 30일)
What does it mean is not a valid MATLAB function name? When I first generated a neural network with matlab 'Layer 1' name was autogenerated. How can i resolve this ? If I rename somehow the block name is enough or this may mean something else too?
Thanks in advance,
M

채택된 답변

Fangjun Jiang
Fangjun Jiang 2019년 4월 29일
편집: Fangjun Jiang 2019년 4월 29일
remove the white space. call it "Layer1" or "Layer_1"
  댓글 수: 13
mar gian
mar gian 2019년 5월 4일
"Perhaps you are attempting to somehow invoke a layer directly as-if it were a model? For example you cannot open_system() a block directly: you have to open_system() the block qualified by the model name"
Yes, I went through the code again and I found out that I had done this exact thing...
And even I renamed the block when autogenerated it kept showing errors. Anyway I changed that and now works fine.
MANY THANKS to both of you who responded and spend some amount of time !!!!!
Naresh
Naresh 2023년 11월 3일
Thank you, so we need to without spacing between the words

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by