フィルターのクリア

Errors after converting project from 2019b to 2017a

1 回表示 (過去 30 日間)
Jérémi Graveline
Jérémi Graveline 2020 年 12 月 8 日
回答済み: Amrtanshu Raj 2020 年 12 月 24 日
Hello,
I had to downgrade a simulink project including matlab scripts from version 2019a to 2017b. The original version works fine, however, I get some odd errors when running the 2017b version.
The first error I faced when I ran the simulink model came from a called script file:
So I went into that setup_steer.m file and ran it:
I then verified the path and confirmed that it was right. So, I decided to replace the double brackets for single ones like this instead:
addpath('matGeom/matGeom/')
It solved the error, however, a new one appeared further away, a polyshape error:
This is the line where the error came from:
s.rect = polyshape(0.5*[-1, -1;0,-1; 1, -1; 1,0; 1,1; 0,1; -1,1]*diag([s.dist_turnabout, s.rect_height]) + [s.dist_turnabout/2, 0] + s.global_offset, 'KeepCollinearPoints', true, 'Simplify', false);
So I keep trying to solve errors these but get new polyshape errors. Is there a version issue with polyshape ? Is looking at every error one by one the only way to solve this issue?
Thank you

採用された回答

Amrtanshu Raj
Amrtanshu Raj 2020 年 12 月 24 日
Hi,
The reason you are facing this issue is because the 'KeepCollinearPoints' Parameter for polyshape function was introduced after 2017b. You can check the polyshape 2017b and 2019b documentaion.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeElementary Polygons についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by