MATLAB crash during matrix multiplication in Matlab Function

Hi everyone,I am experiencing an issue with a MATLAB Function block in Simulink (Version 2023b). When I want to do a standard matrix multiplication Simulink crashes without providing any error message or diagnostic log. For example, the following line triggers the crash:
SampleMultiple=ones(3,3)*ones(3,200)
But when I try to do it in Simulink 2017b and 2021b versions, it works properly. Also, when I decrease the size of the second matrix to [3x10], it works in 2023b as well. Has anyone encountered this? How can I handle this problem?

댓글 수: 1

Have you checked for and installed any updates for R2023b?

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

답변 (1개)

Steven Lord
Steven Lord 2026년 2월 20일

0 개 추천

Can you confirm that you've looked in the locations given in this Answers post and cannot find any crash log files created at the time that Simulink crashed? If you can, please send those log files to Technical Support for investigation. The log file should contain instructions on how to send the files to Support.

댓글 수: 4

Now, I checked the link you mentioned. However, I could not find the mentioned files in the %temp% folder. Matlab command window also returns "No matches for pattern".
That's less than a straightforward page; it seems a convoluted set of locations are possible.
In partcular, the instruction to do dir() on the following
(fullfile(tempdir,'prefix*'))
ans = '/tmp/prefix*'
doesn't look to me like it would find files of the given name unless MATLAB creates a 'prefix' folder under the temp directory.
I'd do a global search for the 'matlab_crash*.*' from the local %temp% folder...
I searched it via command window and and explorer both. I checked the temp folder for files containing "matlab_crash" and "java.log" in their names. Actually, there were so many subfolders but none of them were matlab crash log.
dpb
dpb 2026년 2월 20일
편집: dpb 2026년 2월 20일
Roger...just checking because as written the prefix is a text string to be matched.
I'd agree it would then appear a crash dump wasn't created in this instance.

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

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

릴리스

R2023b

질문:

2026년 2월 19일

편집:

dpb
2026년 2월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by