필터 지우기
필터 지우기

Empty deletion bug for cell arrays?

조회 수: 1 (최근 30일)
Jonas Lundgren
Jonas Lundgren 2019년 12월 11일
편집: Adam 2019년 12월 11일
These code lines are okay in MATLAB R2017a:
x = {[]};
x{1}([]) = [];
But the following give an error ("Deletion requires an existing variable."):
x = cell(1);
x{1}([]) = [];
Can anyone tell me the difference?
Regards Jonas
  댓글 수: 1
Adam
Adam 2019년 12월 11일
편집: Adam 2019년 12월 11일
Strange. It's odd syntax in the first place, but when I put both those in R2019b, naming the second one as y I get the same error as you, for the 2nd one only, but also:
>> isequal( x, y )
ans =
logical
1

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by