Info

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

Index problems after version upgrade

조회 수: 10 (최근 30일)
Christian
Christian 2021년 5월 31일
마감: Sabin 2026년 1월 2일 14:31
Hi!
I have a Simscape model running with R2020a. Now I upgraded to R2021a.
Without any changes I get the following error when compiling the network:
Checking the release notes nothing pointed me on something that could cause the problem. Is there any thing known that R2020a is more tolerant that R2021a?
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 5월 31일
I am not clear as to what the error is conveying. Is it saying that you have a 3 x 1 array that was declared 3 x 1, but that you are only using a scalar index A(K) instead of A(K,1) ?
Or is it possible that the array has been switched to zero based indexing, but you have coded a 1-based index number?
Christian
Christian 2021년 5월 31일
Thank you for your fast answer.
I read the error as you do. But there is no hint where error would happen. It could be anywhere.
What I tried so far:
  • I tried to boil it down to some subsystem, but that didn't lead to further insights. It could be the way my subsystems play together.
  • Change all usages of a(3) to a(3,1) in my custom components.
  • Replace inputs by constants and also transpose vectors
  • I couldn't find any usages of zero based indexing.
  • The "Upgrade Advisor" gives some minor hints (slx-compression and similar), but FAILS to do some of the tests due to the above compilation error.

답변 (0개)

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by