Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to solve this error? in matlab

조회 수: 4 (최근 30일)
Fawad Ahmad
Fawad Ahmad 2019년 7월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
net.layers{1} = struct(...
'name', 'conv1', ...
'type', 'conv', ...
'weights', {{randn(10,10,3,2,'single'), randn(2,1,'single')}}, ...
'pad', 0, ...
'stride', 1) ;
net.layers{2} = struct(...
'name', 'relu1', ...
'type', 'relu') ;
  댓글 수: 4
Fawad Ahmad
Fawad Ahmad 2019년 7월 22일
Unable to perform assignment because brace indexing is not supported for variables of this type.
Error in cnn_wrap (line 1)
net.layers{1} = struct2cell(struct(...
Sir, same error again
Peter Jarosi
Peter Jarosi 2019년 7월 22일
편집: Peter Jarosi 2019년 7월 22일
I can't reproduce your error. If I copy your code in my Matlab it works properly.
It looks like this is a part of your cnn_wrap function, therefore most likely variable net is in the argument list of your function, and predefined in a different way. But we don't know how you called cnn_wrap function from your main script and what the original content of variable net was.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by