Difference between MacOS and Windows
古いコメントを表示
Hello
I am rather new to Matlab and I am working on a simple project on MatLab and Simulink but I have an issue with it.
When I am running my script and simulink model on Matlab 2017 for Windows (at school), the plot that I obtain are the one that I expect to have. But the minute I run the same script and simulink model on MatLab 2022 for MacOS (personnal computer) the plot that I get is not what I expect it to be, furthermore it is not the same as what I get under MatLab 2017 for Windows which is very odd. For information, the script uses very simple mathematical object such as matrix and sqrt
Does someone know where does this difference could come from ? I'm kind of going crazy because of it.
Thank you in advance for your responses !
7 件のコメント
Luca Ferro
2023 年 3 月 1 日
could you share the script?
Guillemette
2023 年 3 月 1 日
Guillemette
2023 年 3 月 1 日
Bruno Luong
2023 年 3 月 1 日
編集済み: Bruno Luong
2023 年 3 月 1 日
Please share the script by typing the code here (capsulated using the [>] icon) or attach the mfile with paperclip icon, NOT the screenshot that is not useful.
Then show the results between MATLAB versions and computers.
Guillemette
2023 年 3 月 1 日
Guillemette
2023 年 3 月 1 日
Luca Ferro
2023 年 3 月 1 日
編集済み: Luca Ferro
2023 年 3 月 1 日
just a guess but:
- check the solver type/step (mac seems variable, windows fixed)
- try to compare the graphs as the same order of dimension on x axis (mac is 0-1-2-3, windows 0.001, 0.002, ..)
- check the simulation time (mac is 10s, windows is 0.1
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Desktop についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


