Tag Archives: matlab
Want to show the csv results on the App panel. getting error in app The entries in tspan must strictly increase or decrease. Kindly guide me
Want to show the csv results on the App panel.
getting error in app The entries in tspan must strictly increase or decrease.
Kindly guide meWant to show the csv results on the App panel.
getting error in app The entries in tspan must strictly increase or decrease.
Kindly guide me Want to show the csv results on the App panel.
getting error in app The entries in tspan must strictly increase or decrease.
Kindly guide me matlab gui MATLAB Answers — New Questions
unique across tables within table
Hello
I’ve got what in the screenshots below, so RawFileIndex is a table that contains Paramaters that is another table (or a 1×1 cell containing a table? I’m a bit confused…)
I want to know all the parameter ID accross all the files, something like unique(RawFileIndex.Parameters{:,1}.ID) but this is clearly not the right syntax… how do I do it?
thanksHello
I’ve got what in the screenshots below, so RawFileIndex is a table that contains Paramaters that is another table (or a 1×1 cell containing a table? I’m a bit confused…)
I want to know all the parameter ID accross all the files, something like unique(RawFileIndex.Parameters{:,1}.ID) but this is clearly not the right syntax… how do I do it?
thanks Hello
I’ve got what in the screenshots below, so RawFileIndex is a table that contains Paramaters that is another table (or a 1×1 cell containing a table? I’m a bit confused…)
I want to know all the parameter ID accross all the files, something like unique(RawFileIndex.Parameters{:,1}.ID) but this is clearly not the right syntax… how do I do it?
thanks unique, table MATLAB Answers — New Questions
Updated Matlab keep trying to update
Hi,
I have Matlab installed on Debian 12 and 4 days ago I update the installation to the last available version.
I usally works from the command line meaning that I open Matlab using
matlab -nodesktop -nosplash
I’ve been working like these for years.
However, lately at random moments I got a message saying: "Launching updater executable" on the command windows. Checking the monitor of resources there is process called "InstallMathWorksService Host" which is using 100% of one of my CPUs.
However, when I open the GUI and try to update Matlab says it’s up to date. Even if I close Matlab in the command windows, I still got the message about "launching update" randomly.
What can I do?
ThanksHi,
I have Matlab installed on Debian 12 and 4 days ago I update the installation to the last available version.
I usally works from the command line meaning that I open Matlab using
matlab -nodesktop -nosplash
I’ve been working like these for years.
However, lately at random moments I got a message saying: "Launching updater executable" on the command windows. Checking the monitor of resources there is process called "InstallMathWorksService Host" which is using 100% of one of my CPUs.
However, when I open the GUI and try to update Matlab says it’s up to date. Even if I close Matlab in the command windows, I still got the message about "launching update" randomly.
What can I do?
Thanks Hi,
I have Matlab installed on Debian 12 and 4 days ago I update the installation to the last available version.
I usally works from the command line meaning that I open Matlab using
matlab -nodesktop -nosplash
I’ve been working like these for years.
However, lately at random moments I got a message saying: "Launching updater executable" on the command windows. Checking the monitor of resources there is process called "InstallMathWorksService Host" which is using 100% of one of my CPUs.
However, when I open the GUI and try to update Matlab says it’s up to date. Even if I close Matlab in the command windows, I still got the message about "launching update" randomly.
What can I do?
Thanks update, linux MATLAB Answers — New Questions
get the whole sentence truncated
this is a checkBox in my app
i write in label "size MainStrum adaptive" but i see only "size Main S. a…"
because there is little space and it gets truncated
Is it possible when I go over it with the mouse it brings me the whole sentence?this is a checkBox in my app
i write in label "size MainStrum adaptive" but i see only "size Main S. a…"
because there is little space and it gets truncated
Is it possible when I go over it with the mouse it brings me the whole sentence? this is a checkBox in my app
i write in label "size MainStrum adaptive" but i see only "size Main S. a…"
because there is little space and it gets truncated
Is it possible when I go over it with the mouse it brings me the whole sentence? get the whole sentence truncated MATLAB Answers — New Questions
What licenses are required for running Polyspace code prover ?
Does Polyspace code prover require having both bug finder and code prover licenses ?
Does it also require having MATLAB license ? If yes, then which toolbox(es) are mandatory ?Does Polyspace code prover require having both bug finder and code prover licenses ?
Does it also require having MATLAB license ? If yes, then which toolbox(es) are mandatory ? Does Polyspace code prover require having both bug finder and code prover licenses ?
Does it also require having MATLAB license ? If yes, then which toolbox(es) are mandatory ? polyspace, code prover, license MATLAB Answers — New Questions
How to get input from a simulink model to .m file ?
I made a simulink model and linked it with interpreted matlab function block which has my .m code file, but I need 6 inputs to the .m file that are supposed to come from my model. What function do I use in my .m file to get values from my simulink model. As the interpreted function block has only one input, I have used a MUX.I made a simulink model and linked it with interpreted matlab function block which has my .m code file, but I need 6 inputs to the .m file that are supposed to come from my model. What function do I use in my .m file to get values from my simulink model. As the interpreted function block has only one input, I have used a MUX. I made a simulink model and linked it with interpreted matlab function block which has my .m code file, but I need 6 inputs to the .m file that are supposed to come from my model. What function do I use in my .m file to get values from my simulink model. As the interpreted function block has only one input, I have used a MUX. simulink to .m file MATLAB Answers — New Questions
how to download data from website?
Dear all,
I am trying to download data from the following website
https://oceandata.sci.gsfc.nasa.gov/MODIS-Aqua/Mapped/Daily/4km/sst/2019/
my problem is I can not get the files, meaning only the html been located to my computer. (below what I used to locat the link into my machine)
url=’https://oceandata.sci.gsfc.nasa.gov/MODIS-Aqua/Mapped/Daily/4km/sst/2019/’
filename=’A2019.nc’
outfilename=websave(filename,url)
what I need is getting the files separtly and read them.
Thanks for the help.Dear all,
I am trying to download data from the following website
https://oceandata.sci.gsfc.nasa.gov/MODIS-Aqua/Mapped/Daily/4km/sst/2019/
my problem is I can not get the files, meaning only the html been located to my computer. (below what I used to locat the link into my machine)
url=’https://oceandata.sci.gsfc.nasa.gov/MODIS-Aqua/Mapped/Daily/4km/sst/2019/’
filename=’A2019.nc’
outfilename=websave(filename,url)
what I need is getting the files separtly and read them.
Thanks for the help. Dear all,
I am trying to download data from the following website
https://oceandata.sci.gsfc.nasa.gov/MODIS-Aqua/Mapped/Daily/4km/sst/2019/
my problem is I can not get the files, meaning only the html been located to my computer. (below what I used to locat the link into my machine)
url=’https://oceandata.sci.gsfc.nasa.gov/MODIS-Aqua/Mapped/Daily/4km/sst/2019/’
filename=’A2019.nc’
outfilename=websave(filename,url)
what I need is getting the files separtly and read them.
Thanks for the help. for loop, download MATLAB Answers — New Questions
MATLAB_Runtime_R2023b crashing with Segmentation violation detected Error
Matlab runtime (MATLAB_Runtime_R2023b_Update_3_glnxa64) is hosted on Ubuntu Linux container ( with 2 CPU and 6 GB RAM ) hosted on Azure Kubernetes Service (AKS) Cluster.
This error message is logged randomly and container stop responding. What is the solution for this error ?
——————————————————————————–
Segmentation violation detected at 2024-03-13 18:04:53 +0000
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : US-ASCII
Deployed : true
GNU C Library : 2.31 stable
Graphics Driver : Uninitialized software
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : Unknown
MATLAB Root : /opt/mcr/R2023b
MATLAB Version : 23.2.0.2409890 (R2023b) Update 3
OpenGL : software
Operating System : Linux 5.15.0-1057-azure #65-Ubuntu SMP Fri Feb 9 18:39:24 UTC 2024 x86_64
Process ID : 1
Processor ID : x86 Family 6 Model 106 Stepping 6, GenuineIntel
Session Key : acfe8214-d6b9-425f-b051-d04606169c6a
Window System : No active display
Fault Count: 1
Abnormal termination:
Segmentation violation
Current Thread: ‘.NET ThreadPool’ id 140524811020032
Register State (from fault):
RAX = 0000000000000000 RBX = 00007fcffa3df748
RCX = 0000000000000053 RDX = 00007fcfdc0214d0
RSP = 00007fce7b7145d0 RBP = 00007fce7b714610
RSI = 0000000000000000 RDI = 00007fcff8299c48
R8 = 0000000000000000 R9 = 00007fcfdd67aee0
R10 = 00007fcfdc478c70 R11 = 00007fcfe0a28158
R12 = 0000000000000000 R13 = 0000000000000001
R14 = 00007fcffa3df6f0 R15 = 0000000000000000
RIP = 00007fda13c71038 EFL = 0000000000010202
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fda13c71038 <unknown-module>+00000000
[ 1] 0x00007fda13d1702d <unknown-module>+00000000
[ 2] 0x00007fda13d0d4e3 <unknown-module>+00000000
[ 3] 0x00007fda13ccc310 <unknown-module>+00000000
[ 4] 0x00007fda13ccbde9 <unknown-module>+00000000
[ 5] 0x00007fda13ccac2b <unknown-module>+00000000
[ 6] 0x00007fda13d9c2db <unknown-module>+00000000
[ 7] 0x00007fda13d9c0ca <unknown-module>+00000000
[ 8] 0x00007fda13d74aa2 <unknown-module>+00000000
[ 9] 0x00007fda13d7492a <unknown-module>+00000000
[ 10] 0x00007fda13d747f0 <unknown-module>+00000000
[ 11] 0x00007fda13d7436f <unknown-module>+00000000
[ 12] 0x00007fda13d741f8 <unknown-module>+00000000
[ 13] 0x00007fda13d74142 <unknown-module>+00000000
[ 14] 0x00007fda13d72b48 <unknown-module>+00000000
[ 15] 0x00007fda13d727b8 <unknown-module>+00000000
[ 16] 0x00007fda13d72700 <unknown-module>+00000000
[ 17] 0x00007fda13d70b81 <unknown-module>+00000000
[ 18] 0x00007fda13d70878 <unknown-module>+00000000
[ 19] 0x00007fda13d707b4 <unknown-module>+00000000
[ 20] 0x00007fda13d6fc5b <unknown-module>+00000000
[ 21] 0x00007fda13d6f978 <unknown-module>+00000000
[ 22] 0x00007fda13d6f8bf <unknown-module>+00000000
[ 23] 0x00007fda13d6d93c <unknown-module>+00000000
[ 24] 0x00007fda13d6cd38 <unknown-module>+00000000
[ 25] 0x00007fda13d6cc81 <unknown-module>+00000000
[ 26] 0x00007fda13d6c883 <unknown-module>+00000000
[ 27] 0x00007fda13d6c238 <unknown-module>+00000000
[ 28] 0x00007fda13d6c181 <unknown-module>+00000000
[ 29] 0x00007fda13d6bc61 <unknown-module>+00000000
[ 30] 0x00007fda12cc82f9 <unknown-module>+00000000
[ 31] 0x00007fda13d68e3a <unknown-module>+00000000
[ 32] 0x00007fda127834f1 <unknown-module>+00000000
[ 33] 0x00007fda13d940c4 <unknown-module>+00000000
[ 34] 0x00007fda89d98657 /home/gwam/libcoreclr.so+03683927
[ 35] 0x00007fda89bce14e /home/gwam/libcoreclr.so+01806670
[ 36] 0x00007fda89be6cd2 /home/gwam/libcoreclr.so+01907922
[ 37] 0x00007fda89b92c0a /home/gwam/libcoreclr.so+01563658
[ 38] 0x00007fda89b9320d /home/gwam/libcoreclr.so+01565197
[ 39] 0x00007fda89be6da7 /home/gwam/libcoreclr.so+01908135
[ 40] 0x00007fda89f2cdbe /home/gwam/libcoreclr.so+05340606
[ 41] 0x00007fda8a730ea7 /lib/x86_64-linux-gnu/libpthread.so.0+00032423
[ 42] 0x00007fda8a314a6f /lib/x86_64-linux-gnu/libc.so.6+01030767 clone+00000063
** This crash report has been saved to disk as /root/matlab_crash_dump.1-1 **Matlab runtime (MATLAB_Runtime_R2023b_Update_3_glnxa64) is hosted on Ubuntu Linux container ( with 2 CPU and 6 GB RAM ) hosted on Azure Kubernetes Service (AKS) Cluster.
This error message is logged randomly and container stop responding. What is the solution for this error ?
——————————————————————————–
Segmentation violation detected at 2024-03-13 18:04:53 +0000
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : US-ASCII
Deployed : true
GNU C Library : 2.31 stable
Graphics Driver : Uninitialized software
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : Unknown
MATLAB Root : /opt/mcr/R2023b
MATLAB Version : 23.2.0.2409890 (R2023b) Update 3
OpenGL : software
Operating System : Linux 5.15.0-1057-azure #65-Ubuntu SMP Fri Feb 9 18:39:24 UTC 2024 x86_64
Process ID : 1
Processor ID : x86 Family 6 Model 106 Stepping 6, GenuineIntel
Session Key : acfe8214-d6b9-425f-b051-d04606169c6a
Window System : No active display
Fault Count: 1
Abnormal termination:
Segmentation violation
Current Thread: ‘.NET ThreadPool’ id 140524811020032
Register State (from fault):
RAX = 0000000000000000 RBX = 00007fcffa3df748
RCX = 0000000000000053 RDX = 00007fcfdc0214d0
RSP = 00007fce7b7145d0 RBP = 00007fce7b714610
RSI = 0000000000000000 RDI = 00007fcff8299c48
R8 = 0000000000000000 R9 = 00007fcfdd67aee0
R10 = 00007fcfdc478c70 R11 = 00007fcfe0a28158
R12 = 0000000000000000 R13 = 0000000000000001
R14 = 00007fcffa3df6f0 R15 = 0000000000000000
RIP = 00007fda13c71038 EFL = 0000000000010202
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fda13c71038 <unknown-module>+00000000
[ 1] 0x00007fda13d1702d <unknown-module>+00000000
[ 2] 0x00007fda13d0d4e3 <unknown-module>+00000000
[ 3] 0x00007fda13ccc310 <unknown-module>+00000000
[ 4] 0x00007fda13ccbde9 <unknown-module>+00000000
[ 5] 0x00007fda13ccac2b <unknown-module>+00000000
[ 6] 0x00007fda13d9c2db <unknown-module>+00000000
[ 7] 0x00007fda13d9c0ca <unknown-module>+00000000
[ 8] 0x00007fda13d74aa2 <unknown-module>+00000000
[ 9] 0x00007fda13d7492a <unknown-module>+00000000
[ 10] 0x00007fda13d747f0 <unknown-module>+00000000
[ 11] 0x00007fda13d7436f <unknown-module>+00000000
[ 12] 0x00007fda13d741f8 <unknown-module>+00000000
[ 13] 0x00007fda13d74142 <unknown-module>+00000000
[ 14] 0x00007fda13d72b48 <unknown-module>+00000000
[ 15] 0x00007fda13d727b8 <unknown-module>+00000000
[ 16] 0x00007fda13d72700 <unknown-module>+00000000
[ 17] 0x00007fda13d70b81 <unknown-module>+00000000
[ 18] 0x00007fda13d70878 <unknown-module>+00000000
[ 19] 0x00007fda13d707b4 <unknown-module>+00000000
[ 20] 0x00007fda13d6fc5b <unknown-module>+00000000
[ 21] 0x00007fda13d6f978 <unknown-module>+00000000
[ 22] 0x00007fda13d6f8bf <unknown-module>+00000000
[ 23] 0x00007fda13d6d93c <unknown-module>+00000000
[ 24] 0x00007fda13d6cd38 <unknown-module>+00000000
[ 25] 0x00007fda13d6cc81 <unknown-module>+00000000
[ 26] 0x00007fda13d6c883 <unknown-module>+00000000
[ 27] 0x00007fda13d6c238 <unknown-module>+00000000
[ 28] 0x00007fda13d6c181 <unknown-module>+00000000
[ 29] 0x00007fda13d6bc61 <unknown-module>+00000000
[ 30] 0x00007fda12cc82f9 <unknown-module>+00000000
[ 31] 0x00007fda13d68e3a <unknown-module>+00000000
[ 32] 0x00007fda127834f1 <unknown-module>+00000000
[ 33] 0x00007fda13d940c4 <unknown-module>+00000000
[ 34] 0x00007fda89d98657 /home/gwam/libcoreclr.so+03683927
[ 35] 0x00007fda89bce14e /home/gwam/libcoreclr.so+01806670
[ 36] 0x00007fda89be6cd2 /home/gwam/libcoreclr.so+01907922
[ 37] 0x00007fda89b92c0a /home/gwam/libcoreclr.so+01563658
[ 38] 0x00007fda89b9320d /home/gwam/libcoreclr.so+01565197
[ 39] 0x00007fda89be6da7 /home/gwam/libcoreclr.so+01908135
[ 40] 0x00007fda89f2cdbe /home/gwam/libcoreclr.so+05340606
[ 41] 0x00007fda8a730ea7 /lib/x86_64-linux-gnu/libpthread.so.0+00032423
[ 42] 0x00007fda8a314a6f /lib/x86_64-linux-gnu/libc.so.6+01030767 clone+00000063
** This crash report has been saved to disk as /root/matlab_crash_dump.1-1 ** Matlab runtime (MATLAB_Runtime_R2023b_Update_3_glnxa64) is hosted on Ubuntu Linux container ( with 2 CPU and 6 GB RAM ) hosted on Azure Kubernetes Service (AKS) Cluster.
This error message is logged randomly and container stop responding. What is the solution for this error ?
——————————————————————————–
Segmentation violation detected at 2024-03-13 18:04:53 +0000
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : US-ASCII
Deployed : true
GNU C Library : 2.31 stable
Graphics Driver : Uninitialized software
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : Unknown
MATLAB Root : /opt/mcr/R2023b
MATLAB Version : 23.2.0.2409890 (R2023b) Update 3
OpenGL : software
Operating System : Linux 5.15.0-1057-azure #65-Ubuntu SMP Fri Feb 9 18:39:24 UTC 2024 x86_64
Process ID : 1
Processor ID : x86 Family 6 Model 106 Stepping 6, GenuineIntel
Session Key : acfe8214-d6b9-425f-b051-d04606169c6a
Window System : No active display
Fault Count: 1
Abnormal termination:
Segmentation violation
Current Thread: ‘.NET ThreadPool’ id 140524811020032
Register State (from fault):
RAX = 0000000000000000 RBX = 00007fcffa3df748
RCX = 0000000000000053 RDX = 00007fcfdc0214d0
RSP = 00007fce7b7145d0 RBP = 00007fce7b714610
RSI = 0000000000000000 RDI = 00007fcff8299c48
R8 = 0000000000000000 R9 = 00007fcfdd67aee0
R10 = 00007fcfdc478c70 R11 = 00007fcfe0a28158
R12 = 0000000000000000 R13 = 0000000000000001
R14 = 00007fcffa3df6f0 R15 = 0000000000000000
RIP = 00007fda13c71038 EFL = 0000000000010202
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fda13c71038 <unknown-module>+00000000
[ 1] 0x00007fda13d1702d <unknown-module>+00000000
[ 2] 0x00007fda13d0d4e3 <unknown-module>+00000000
[ 3] 0x00007fda13ccc310 <unknown-module>+00000000
[ 4] 0x00007fda13ccbde9 <unknown-module>+00000000
[ 5] 0x00007fda13ccac2b <unknown-module>+00000000
[ 6] 0x00007fda13d9c2db <unknown-module>+00000000
[ 7] 0x00007fda13d9c0ca <unknown-module>+00000000
[ 8] 0x00007fda13d74aa2 <unknown-module>+00000000
[ 9] 0x00007fda13d7492a <unknown-module>+00000000
[ 10] 0x00007fda13d747f0 <unknown-module>+00000000
[ 11] 0x00007fda13d7436f <unknown-module>+00000000
[ 12] 0x00007fda13d741f8 <unknown-module>+00000000
[ 13] 0x00007fda13d74142 <unknown-module>+00000000
[ 14] 0x00007fda13d72b48 <unknown-module>+00000000
[ 15] 0x00007fda13d727b8 <unknown-module>+00000000
[ 16] 0x00007fda13d72700 <unknown-module>+00000000
[ 17] 0x00007fda13d70b81 <unknown-module>+00000000
[ 18] 0x00007fda13d70878 <unknown-module>+00000000
[ 19] 0x00007fda13d707b4 <unknown-module>+00000000
[ 20] 0x00007fda13d6fc5b <unknown-module>+00000000
[ 21] 0x00007fda13d6f978 <unknown-module>+00000000
[ 22] 0x00007fda13d6f8bf <unknown-module>+00000000
[ 23] 0x00007fda13d6d93c <unknown-module>+00000000
[ 24] 0x00007fda13d6cd38 <unknown-module>+00000000
[ 25] 0x00007fda13d6cc81 <unknown-module>+00000000
[ 26] 0x00007fda13d6c883 <unknown-module>+00000000
[ 27] 0x00007fda13d6c238 <unknown-module>+00000000
[ 28] 0x00007fda13d6c181 <unknown-module>+00000000
[ 29] 0x00007fda13d6bc61 <unknown-module>+00000000
[ 30] 0x00007fda12cc82f9 <unknown-module>+00000000
[ 31] 0x00007fda13d68e3a <unknown-module>+00000000
[ 32] 0x00007fda127834f1 <unknown-module>+00000000
[ 33] 0x00007fda13d940c4 <unknown-module>+00000000
[ 34] 0x00007fda89d98657 /home/gwam/libcoreclr.so+03683927
[ 35] 0x00007fda89bce14e /home/gwam/libcoreclr.so+01806670
[ 36] 0x00007fda89be6cd2 /home/gwam/libcoreclr.so+01907922
[ 37] 0x00007fda89b92c0a /home/gwam/libcoreclr.so+01563658
[ 38] 0x00007fda89b9320d /home/gwam/libcoreclr.so+01565197
[ 39] 0x00007fda89be6da7 /home/gwam/libcoreclr.so+01908135
[ 40] 0x00007fda89f2cdbe /home/gwam/libcoreclr.so+05340606
[ 41] 0x00007fda8a730ea7 /lib/x86_64-linux-gnu/libpthread.so.0+00032423
[ 42] 0x00007fda8a314a6f /lib/x86_64-linux-gnu/libc.so.6+01030767 clone+00000063
** This crash report has been saved to disk as /root/matlab_crash_dump.1-1 ** runtime, linux MATLAB Answers — New Questions
在java语言中调用matlab生成的jar包时,出现 Segmentation violation detected 错误
版本为R2020a,错误信息如下:
——————————————————————————–
Segmentation violation detected at 五 8月 11 11:25:11 2023 +0800
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : true
GNU C Library : 2.17 stable
Graphics Driver : Unknown software
Graphics card 1 : 0x102b ( 0x102b ) 0x522 Version 0.0.0.0 (0-0-0)
Java Version : Java 1.8.0_131-b11 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : Unknown
MATLAB Root : /data/matlab/mcr/v98
MATLAB Version : 9.8.0.1873465 (R2020a) Update 8
OpenGL : software
Operating System : Linux 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64
Process ID : 36940
Processor ID : x86 Family 6 Model 85 Stepping 4, GenuineIntel
Session Key : 9d1307a4-b42b-4d7f-b103-6b4d94474099
Static TLS mitigation : Disabled: Unnecessary
Window System : No active display
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 00007fe194190fb0 RBX = 00007fe1739ffa54
RCX = 0000000000000001 RDX = 00007fe172754260
RSP = 00007fe316017d98 RBP = 00007fe316017e10
RSI = 0000000000000001 RDI = 00007fe1941909c0
R8 = 00007fe173a01460 R9 = 0000000000000008
R10 = 00007fe67a60a5d8 R11 = 00007fe196663900
R12 = 00007fe172754260 R13 = 00007fe173a01460
R14 = 0000000000000001 R15 = 00007fe173a01390
RIP = 00007fe194189750 EFL = 0000000000010206
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fe194189750 <unknown-module>+00000000
[ 1] 0x00007fe640cd0d48 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+04042056
[ 2] 0x00007fe640cd3688 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+04052616
[ 3] 0x00007fe640cdb6c2 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+04085442
[ 4] 0x00007fe640cd0279 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+04039289
[ 5] 0x00007fe640e4c45f /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+05596255
[ 6] 0x00007fe640e46577 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+05571959
[ 7] 0x00007fe65af7f3f6 /data/matlab/mcr/v98/bin/glnxa64/libmwm_dispatcher.so+00578550
[ 8] 0x00007fe65af7f6d1 /data/matlab/mcr/v98/bin/glnxa64/libmwm_dispatcher.so+00579281 _ZN18Mfh_MATLAB_fn_impl8dispatchEiPSt10unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEiPPS1_+00000033
[ 9] 0x00007fe6522ed52d /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10163501
[ 10] 0x00007fe6522f2066 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10182758
[ 11] 0x00007fe6523fe84e /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+11282510
[ 12] 0x00007fe6523f18d1 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+11229393
[ 13] 0x00007fe6523f1988 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+11229576
[ 14] 0x00007fe65235f644 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10630724
[ 15] 0x00007fe652386a8d /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10791565
[ 16] 0x00007fe651e9a667 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05629543
[ 17] 0x00007fe651e9c8f4 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05638388
[ 18] 0x00007fe651e995cd /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05625293
[ 19] 0x00007fe651e911b1 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05591473
[ 20] 0x00007fe651e913e9 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05592041
[ 21] 0x00007fe651e98dd6 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05623254
[ 22] 0x00007fe651e98ed6 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05623510
[ 23] 0x00007fe651fd258d /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+06907277
[ 24] 0x00007fe651fd5d05 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+06921477
[ 25] 0x00007fe6521fcd51 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+09178449
[ 26] 0x00007fe6522dd3f7 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10097655
[ 27] 0x00007fe6522dd645 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10098245
[ 28] 0x00007fe65b0010ef /data/matlab/mcr/v98/bin/glnxa64/libmwm_dispatcher.so+01110255 _ZN8Mfh_file20dispatch_file_commonEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000207
[ 29] 0x00007fe65b0032a3 /data/matlab/mcr/v98/bin/glnxa64/libmwm_dispatcher.so+01118883 _ZN8Mfh_file19dispatch_with_reuseEiPP11mxArray_tagiS2_+00000323
[ 30] 0x00007fe65241c94e /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+11405646
[ 31] 0x00007fe6521a7cb6 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+08830134
[ 32] 0x00007fe6521a7e2c /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+08830508
[ 33] 0x00007fe65224806b /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+09486443
[ 34] 0x00007fe652249118 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+09490712
[ 35] 0x00007fe65b19e1f0 /data/matlab/mcr/v98/bin/glnxa64/libmwm_interpreter.so+01335792 _Z44inCallFcnWithTrapInDesiredWSAndPublishEventsiPP11mxArray_tagiS1_PKcbP15inWorkSpace_tag+00000080
[ 36] 0x00007fe65a6c39b5 /data/matlab/mcr/v98/bin/glnxa64/libmwiqm.so+00735669 _ZN3iqm15BaseFEvalPlugin7executeEP15inWorkSpace_tag+00001253
[ 37] 0x00007fe65b5563a9 /data/matlab/mcr/v98/bin/glnxa64/libmwmcr.so+00951209
[ 38] 0x00007fe65a6b3130 /data/matlab/mcr/v98/bin/glnxa64/libmwiqm.so+00667952
[ 39] 0x00007fe65a696c39 /data/matlab/mcr/v98/bin/glnxa64/libmwiqm.so+00551993
[ 40] 0x00007fe65a69787b /data/matlab/mcr/v98/bin/glnxa64/libmwiqm.so+00555131
[ 41] 0x00007fe65b53b018 /data/matlab/mcr/v98/bin/glnxa64/libmwmcr.so+00839704
[ 42] 0x00007fe65b53b632 /data/matlab/mcr/v98/bin/glnxa64/libmwmcr.so+00841266
[ 43] 0x00007fe65b53bea4 /data/matlab/mcr/v98/bin/glnxa64/libmwmcr.so+00843428
[ 44] 0x00007fe669913a02 /data/matlab/mcr/v98/bin/glnxa64/libmwboost_thread.so.1.70.0+00064002
[ 45] 0x00007fe6fefbee65 /lib64/libpthread.so.0+00032357
[ 46] 0x00007fe6fe8cd88d /lib64/libc.so.6+01042573 clone+00000109
** This crash report has been saved to disk as /root/matlab_crash_dump.36940-1 **
MATLAB is exiting because of fatal error
请解答,谢谢!!!!版本为R2020a,错误信息如下:
——————————————————————————–
Segmentation violation detected at 五 8月 11 11:25:11 2023 +0800
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : true
GNU C Library : 2.17 stable
Graphics Driver : Unknown software
Graphics card 1 : 0x102b ( 0x102b ) 0x522 Version 0.0.0.0 (0-0-0)
Java Version : Java 1.8.0_131-b11 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : Unknown
MATLAB Root : /data/matlab/mcr/v98
MATLAB Version : 9.8.0.1873465 (R2020a) Update 8
OpenGL : software
Operating System : Linux 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64
Process ID : 36940
Processor ID : x86 Family 6 Model 85 Stepping 4, GenuineIntel
Session Key : 9d1307a4-b42b-4d7f-b103-6b4d94474099
Static TLS mitigation : Disabled: Unnecessary
Window System : No active display
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 00007fe194190fb0 RBX = 00007fe1739ffa54
RCX = 0000000000000001 RDX = 00007fe172754260
RSP = 00007fe316017d98 RBP = 00007fe316017e10
RSI = 0000000000000001 RDI = 00007fe1941909c0
R8 = 00007fe173a01460 R9 = 0000000000000008
R10 = 00007fe67a60a5d8 R11 = 00007fe196663900
R12 = 00007fe172754260 R13 = 00007fe173a01460
R14 = 0000000000000001 R15 = 00007fe173a01390
RIP = 00007fe194189750 EFL = 0000000000010206
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fe194189750 <unknown-module>+00000000
[ 1] 0x00007fe640cd0d48 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+04042056
[ 2] 0x00007fe640cd3688 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+04052616
[ 3] 0x00007fe640cdb6c2 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+04085442
[ 4] 0x00007fe640cd0279 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+04039289
[ 5] 0x00007fe640e4c45f /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+05596255
[ 6] 0x00007fe640e46577 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+05571959
[ 7] 0x00007fe65af7f3f6 /data/matlab/mcr/v98/bin/glnxa64/libmwm_dispatcher.so+00578550
[ 8] 0x00007fe65af7f6d1 /data/matlab/mcr/v98/bin/glnxa64/libmwm_dispatcher.so+00579281 _ZN18Mfh_MATLAB_fn_impl8dispatchEiPSt10unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEiPPS1_+00000033
[ 9] 0x00007fe6522ed52d /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10163501
[ 10] 0x00007fe6522f2066 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10182758
[ 11] 0x00007fe6523fe84e /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+11282510
[ 12] 0x00007fe6523f18d1 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+11229393
[ 13] 0x00007fe6523f1988 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+11229576
[ 14] 0x00007fe65235f644 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10630724
[ 15] 0x00007fe652386a8d /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10791565
[ 16] 0x00007fe651e9a667 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05629543
[ 17] 0x00007fe651e9c8f4 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05638388
[ 18] 0x00007fe651e995cd /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05625293
[ 19] 0x00007fe651e911b1 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05591473
[ 20] 0x00007fe651e913e9 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05592041
[ 21] 0x00007fe651e98dd6 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05623254
[ 22] 0x00007fe651e98ed6 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05623510
[ 23] 0x00007fe651fd258d /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+06907277
[ 24] 0x00007fe651fd5d05 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+06921477
[ 25] 0x00007fe6521fcd51 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+09178449
[ 26] 0x00007fe6522dd3f7 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10097655
[ 27] 0x00007fe6522dd645 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10098245
[ 28] 0x00007fe65b0010ef /data/matlab/mcr/v98/bin/glnxa64/libmwm_dispatcher.so+01110255 _ZN8Mfh_file20dispatch_file_commonEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000207
[ 29] 0x00007fe65b0032a3 /data/matlab/mcr/v98/bin/glnxa64/libmwm_dispatcher.so+01118883 _ZN8Mfh_file19dispatch_with_reuseEiPP11mxArray_tagiS2_+00000323
[ 30] 0x00007fe65241c94e /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+11405646
[ 31] 0x00007fe6521a7cb6 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+08830134
[ 32] 0x00007fe6521a7e2c /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+08830508
[ 33] 0x00007fe65224806b /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+09486443
[ 34] 0x00007fe652249118 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+09490712
[ 35] 0x00007fe65b19e1f0 /data/matlab/mcr/v98/bin/glnxa64/libmwm_interpreter.so+01335792 _Z44inCallFcnWithTrapInDesiredWSAndPublishEventsiPP11mxArray_tagiS1_PKcbP15inWorkSpace_tag+00000080
[ 36] 0x00007fe65a6c39b5 /data/matlab/mcr/v98/bin/glnxa64/libmwiqm.so+00735669 _ZN3iqm15BaseFEvalPlugin7executeEP15inWorkSpace_tag+00001253
[ 37] 0x00007fe65b5563a9 /data/matlab/mcr/v98/bin/glnxa64/libmwmcr.so+00951209
[ 38] 0x00007fe65a6b3130 /data/matlab/mcr/v98/bin/glnxa64/libmwiqm.so+00667952
[ 39] 0x00007fe65a696c39 /data/matlab/mcr/v98/bin/glnxa64/libmwiqm.so+00551993
[ 40] 0x00007fe65a69787b /data/matlab/mcr/v98/bin/glnxa64/libmwiqm.so+00555131
[ 41] 0x00007fe65b53b018 /data/matlab/mcr/v98/bin/glnxa64/libmwmcr.so+00839704
[ 42] 0x00007fe65b53b632 /data/matlab/mcr/v98/bin/glnxa64/libmwmcr.so+00841266
[ 43] 0x00007fe65b53bea4 /data/matlab/mcr/v98/bin/glnxa64/libmwmcr.so+00843428
[ 44] 0x00007fe669913a02 /data/matlab/mcr/v98/bin/glnxa64/libmwboost_thread.so.1.70.0+00064002
[ 45] 0x00007fe6fefbee65 /lib64/libpthread.so.0+00032357
[ 46] 0x00007fe6fe8cd88d /lib64/libc.so.6+01042573 clone+00000109
** This crash report has been saved to disk as /root/matlab_crash_dump.36940-1 **
MATLAB is exiting because of fatal error
请解答,谢谢!!!! 版本为R2020a,错误信息如下:
——————————————————————————–
Segmentation violation detected at 五 8月 11 11:25:11 2023 +0800
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : true
GNU C Library : 2.17 stable
Graphics Driver : Unknown software
Graphics card 1 : 0x102b ( 0x102b ) 0x522 Version 0.0.0.0 (0-0-0)
Java Version : Java 1.8.0_131-b11 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : Unknown
MATLAB Root : /data/matlab/mcr/v98
MATLAB Version : 9.8.0.1873465 (R2020a) Update 8
OpenGL : software
Operating System : Linux 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64
Process ID : 36940
Processor ID : x86 Family 6 Model 85 Stepping 4, GenuineIntel
Session Key : 9d1307a4-b42b-4d7f-b103-6b4d94474099
Static TLS mitigation : Disabled: Unnecessary
Window System : No active display
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 00007fe194190fb0 RBX = 00007fe1739ffa54
RCX = 0000000000000001 RDX = 00007fe172754260
RSP = 00007fe316017d98 RBP = 00007fe316017e10
RSI = 0000000000000001 RDI = 00007fe1941909c0
R8 = 00007fe173a01460 R9 = 0000000000000008
R10 = 00007fe67a60a5d8 R11 = 00007fe196663900
R12 = 00007fe172754260 R13 = 00007fe173a01460
R14 = 0000000000000001 R15 = 00007fe173a01390
RIP = 00007fe194189750 EFL = 0000000000010206
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fe194189750 <unknown-module>+00000000
[ 1] 0x00007fe640cd0d48 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+04042056
[ 2] 0x00007fe640cd3688 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+04052616
[ 3] 0x00007fe640cdb6c2 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+04085442
[ 4] 0x00007fe640cd0279 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+04039289
[ 5] 0x00007fe640e4c45f /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+05596255
[ 6] 0x00007fe640e46577 /data/matlab/mcr/v98/bin/glnxa64/libmwmcos_impl.so+05571959
[ 7] 0x00007fe65af7f3f6 /data/matlab/mcr/v98/bin/glnxa64/libmwm_dispatcher.so+00578550
[ 8] 0x00007fe65af7f6d1 /data/matlab/mcr/v98/bin/glnxa64/libmwm_dispatcher.so+00579281 _ZN18Mfh_MATLAB_fn_impl8dispatchEiPSt10unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEiPPS1_+00000033
[ 9] 0x00007fe6522ed52d /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10163501
[ 10] 0x00007fe6522f2066 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10182758
[ 11] 0x00007fe6523fe84e /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+11282510
[ 12] 0x00007fe6523f18d1 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+11229393
[ 13] 0x00007fe6523f1988 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+11229576
[ 14] 0x00007fe65235f644 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10630724
[ 15] 0x00007fe652386a8d /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10791565
[ 16] 0x00007fe651e9a667 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05629543
[ 17] 0x00007fe651e9c8f4 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05638388
[ 18] 0x00007fe651e995cd /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05625293
[ 19] 0x00007fe651e911b1 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05591473
[ 20] 0x00007fe651e913e9 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05592041
[ 21] 0x00007fe651e98dd6 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05623254
[ 22] 0x00007fe651e98ed6 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+05623510
[ 23] 0x00007fe651fd258d /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+06907277
[ 24] 0x00007fe651fd5d05 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+06921477
[ 25] 0x00007fe6521fcd51 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+09178449
[ 26] 0x00007fe6522dd3f7 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10097655
[ 27] 0x00007fe6522dd645 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+10098245
[ 28] 0x00007fe65b0010ef /data/matlab/mcr/v98/bin/glnxa64/libmwm_dispatcher.so+01110255 _ZN8Mfh_file20dispatch_file_commonEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000207
[ 29] 0x00007fe65b0032a3 /data/matlab/mcr/v98/bin/glnxa64/libmwm_dispatcher.so+01118883 _ZN8Mfh_file19dispatch_with_reuseEiPP11mxArray_tagiS2_+00000323
[ 30] 0x00007fe65241c94e /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+11405646
[ 31] 0x00007fe6521a7cb6 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+08830134
[ 32] 0x00007fe6521a7e2c /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+08830508
[ 33] 0x00007fe65224806b /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+09486443
[ 34] 0x00007fe652249118 /data/matlab/mcr/v98/bin/glnxa64/libmwm_lxe.so+09490712
[ 35] 0x00007fe65b19e1f0 /data/matlab/mcr/v98/bin/glnxa64/libmwm_interpreter.so+01335792 _Z44inCallFcnWithTrapInDesiredWSAndPublishEventsiPP11mxArray_tagiS1_PKcbP15inWorkSpace_tag+00000080
[ 36] 0x00007fe65a6c39b5 /data/matlab/mcr/v98/bin/glnxa64/libmwiqm.so+00735669 _ZN3iqm15BaseFEvalPlugin7executeEP15inWorkSpace_tag+00001253
[ 37] 0x00007fe65b5563a9 /data/matlab/mcr/v98/bin/glnxa64/libmwmcr.so+00951209
[ 38] 0x00007fe65a6b3130 /data/matlab/mcr/v98/bin/glnxa64/libmwiqm.so+00667952
[ 39] 0x00007fe65a696c39 /data/matlab/mcr/v98/bin/glnxa64/libmwiqm.so+00551993
[ 40] 0x00007fe65a69787b /data/matlab/mcr/v98/bin/glnxa64/libmwiqm.so+00555131
[ 41] 0x00007fe65b53b018 /data/matlab/mcr/v98/bin/glnxa64/libmwmcr.so+00839704
[ 42] 0x00007fe65b53b632 /data/matlab/mcr/v98/bin/glnxa64/libmwmcr.so+00841266
[ 43] 0x00007fe65b53bea4 /data/matlab/mcr/v98/bin/glnxa64/libmwmcr.so+00843428
[ 44] 0x00007fe669913a02 /data/matlab/mcr/v98/bin/glnxa64/libmwboost_thread.so.1.70.0+00064002
[ 45] 0x00007fe6fefbee65 /lib64/libpthread.so.0+00032357
[ 46] 0x00007fe6fe8cd88d /lib64/libc.so.6+01042573 clone+00000109
** This crash report has been saved to disk as /root/matlab_crash_dump.36940-1 **
MATLAB is exiting because of fatal error
请解答,谢谢!!!! segmentation violation detected MATLAB Answers — New Questions
Pipe elbow creation using MATLAB code
Hi
I am done with my MATLAB code which creates as many straight pipes I want. However, I want to connect them using pipe elbow looks like below. Any idea how to create this elbow in MATLAB?Hi
I am done with my MATLAB code which creates as many straight pipes I want. However, I want to connect them using pipe elbow looks like below. Any idea how to create this elbow in MATLAB? Hi
I am done with my MATLAB code which creates as many straight pipes I want. However, I want to connect them using pipe elbow looks like below. Any idea how to create this elbow in MATLAB? pipe MATLAB Answers — New Questions
Inputs and process for thermal model discretization for battery spatial temperature estimation
Hi,
I am building a cell and module level battery model. I am using ECM for electrical model and want to use 3D discretized thermal model which I am building in Ansys.
Is there a way to connect this thermal model from ansys to simscape for spatial temperature distribution analysis? Also, if possible, how can it be done on a module level?
I am refering this example – https://www.mathworks.com/help/simscape-battery/ug/battery-spatial-temperature-variation-during-fast-charge.htmlHi,
I am building a cell and module level battery model. I am using ECM for electrical model and want to use 3D discretized thermal model which I am building in Ansys.
Is there a way to connect this thermal model from ansys to simscape for spatial temperature distribution analysis? Also, if possible, how can it be done on a module level?
I am refering this example – https://www.mathworks.com/help/simscape-battery/ug/battery-spatial-temperature-variation-during-fast-charge.html Hi,
I am building a cell and module level battery model. I am using ECM for electrical model and want to use 3D discretized thermal model which I am building in Ansys.
Is there a way to connect this thermal model from ansys to simscape for spatial temperature distribution analysis? Also, if possible, how can it be done on a module level?
I am refering this example – https://www.mathworks.com/help/simscape-battery/ug/battery-spatial-temperature-variation-during-fast-charge.html battery thermal, battery modeling, ansys MATLAB Answers — New Questions
max value inside a circular region in grided data
Hi and thanks in advance.
I have a set of grided wind data (lat, lon, windspeed) that I am processing. Data is grided every 0.11deg between (0-60Deg South and 50-190Deg E) and I want to find the max wind inside a circle of say 30km. How can I do this?Hi and thanks in advance.
I have a set of grided wind data (lat, lon, windspeed) that I am processing. Data is grided every 0.11deg between (0-60Deg South and 50-190Deg E) and I want to find the max wind inside a circle of say 30km. How can I do this? Hi and thanks in advance.
I have a set of grided wind data (lat, lon, windspeed) that I am processing. Data is grided every 0.11deg between (0-60Deg South and 50-190Deg E) and I want to find the max wind inside a circle of say 30km. How can I do this? plotting, gridded data MATLAB Answers — New Questions
wireless power transfer efficiency
hi, could you help me to find the code of the efficiency curve as a function of frequency, the result will be as the picture shows.hi, could you help me to find the code of the efficiency curve as a function of frequency, the result will be as the picture shows. hi, could you help me to find the code of the efficiency curve as a function of frequency, the result will be as the picture shows. wpt, matlab, efficiency, plot MATLAB Answers — New Questions
Errors integrating Arduino C++ code into Simulink using S-Function Builder
Hi all,
I am currently attempting to integrate Arduino C++ code into my Simulink model using the S-Function builder. I am starting simple by essentially following this tutorial line for line to create a custom function that writes HIGH to a pin of choice on the Arduino board. I had a decent amount of success at first following the tutorial. I am able to compile functions written into C to Matlab executables, and even integrate them into my model to do things like basic things like double an input signal without any errors. However, I have issues as soon as I try to call functions from the standard Arduino library. Here is my header for the S-Function Builder:
/* Includes_BEGIN */
#include <math.h>
# ifndef MATLAB_MEX_FILE
# include <Arduino.h>
# endif
/* Includes_END */
Again, this is just following the guide I linked earlier. This S-Function also successfully builds and compiles into a Mex file, but when I try to run this model in Simulink using Monitor and Tune, I am slammed with dozens of error messages. Most the error messages however are basically identical, they either look like this:
C:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino/Arduino.h:137:16: error: unknown type name ‘uint8_t’; did you mean ‘uint8_T’?
int analogRead(uint8_t pin);
^~~~~~~
uint8_T
Or like this:
C:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino/Arduino.h:170:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘digital_pin_to_bit_mask_PGM’
extern const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[];
^~~~~~~~~~~~~~~~~~~~~~~~~~~
At first I thought this was because I was trying to call C++ functions from a C source file. The workaround to this seems to be to rename the wrapper function file to have .cpp file extension, and insert ‘extern "C"’ before the two function declarations in the file. However after trying this fix, I just get this error message after running in Simulink:
Unable to find S-function module ‘example_wrapper.c’. S-function modules must exist as either source files or pre-compiled object files on the MATLAB path.
This is an error I have not seen other users come into and I am a bit lost where to go from here. I have tried setting the target language to C++ in the S-Function builder instead of inherit from model, but when trying this am I hit with the dozens of same error messages as before. Is there a better way to integrate C++ and Arduino libraries into my model than the S-Function builder? Any help is much appreciated.Hi all,
I am currently attempting to integrate Arduino C++ code into my Simulink model using the S-Function builder. I am starting simple by essentially following this tutorial line for line to create a custom function that writes HIGH to a pin of choice on the Arduino board. I had a decent amount of success at first following the tutorial. I am able to compile functions written into C to Matlab executables, and even integrate them into my model to do things like basic things like double an input signal without any errors. However, I have issues as soon as I try to call functions from the standard Arduino library. Here is my header for the S-Function Builder:
/* Includes_BEGIN */
#include <math.h>
# ifndef MATLAB_MEX_FILE
# include <Arduino.h>
# endif
/* Includes_END */
Again, this is just following the guide I linked earlier. This S-Function also successfully builds and compiles into a Mex file, but when I try to run this model in Simulink using Monitor and Tune, I am slammed with dozens of error messages. Most the error messages however are basically identical, they either look like this:
C:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino/Arduino.h:137:16: error: unknown type name ‘uint8_t’; did you mean ‘uint8_T’?
int analogRead(uint8_t pin);
^~~~~~~
uint8_T
Or like this:
C:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino/Arduino.h:170:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘digital_pin_to_bit_mask_PGM’
extern const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[];
^~~~~~~~~~~~~~~~~~~~~~~~~~~
At first I thought this was because I was trying to call C++ functions from a C source file. The workaround to this seems to be to rename the wrapper function file to have .cpp file extension, and insert ‘extern "C"’ before the two function declarations in the file. However after trying this fix, I just get this error message after running in Simulink:
Unable to find S-function module ‘example_wrapper.c’. S-function modules must exist as either source files or pre-compiled object files on the MATLAB path.
This is an error I have not seen other users come into and I am a bit lost where to go from here. I have tried setting the target language to C++ in the S-Function builder instead of inherit from model, but when trying this am I hit with the dozens of same error messages as before. Is there a better way to integrate C++ and Arduino libraries into my model than the S-Function builder? Any help is much appreciated. Hi all,
I am currently attempting to integrate Arduino C++ code into my Simulink model using the S-Function builder. I am starting simple by essentially following this tutorial line for line to create a custom function that writes HIGH to a pin of choice on the Arduino board. I had a decent amount of success at first following the tutorial. I am able to compile functions written into C to Matlab executables, and even integrate them into my model to do things like basic things like double an input signal without any errors. However, I have issues as soon as I try to call functions from the standard Arduino library. Here is my header for the S-Function Builder:
/* Includes_BEGIN */
#include <math.h>
# ifndef MATLAB_MEX_FILE
# include <Arduino.h>
# endif
/* Includes_END */
Again, this is just following the guide I linked earlier. This S-Function also successfully builds and compiles into a Mex file, but when I try to run this model in Simulink using Monitor and Tune, I am slammed with dozens of error messages. Most the error messages however are basically identical, they either look like this:
C:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino/Arduino.h:137:16: error: unknown type name ‘uint8_t’; did you mean ‘uint8_T’?
int analogRead(uint8_t pin);
^~~~~~~
uint8_T
Or like this:
C:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino/Arduino.h:170:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘digital_pin_to_bit_mask_PGM’
extern const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[];
^~~~~~~~~~~~~~~~~~~~~~~~~~~
At first I thought this was because I was trying to call C++ functions from a C source file. The workaround to this seems to be to rename the wrapper function file to have .cpp file extension, and insert ‘extern "C"’ before the two function declarations in the file. However after trying this fix, I just get this error message after running in Simulink:
Unable to find S-function module ‘example_wrapper.c’. S-function modules must exist as either source files or pre-compiled object files on the MATLAB path.
This is an error I have not seen other users come into and I am a bit lost where to go from here. I have tried setting the target language to C++ in the S-Function builder instead of inherit from model, but when trying this am I hit with the dozens of same error messages as before. Is there a better way to integrate C++ and Arduino libraries into my model than the S-Function builder? Any help is much appreciated. arduino, s-function, simulink, embedded coder MATLAB Answers — New Questions
how to change language in Matlab 2023b (configuration disappered?)
I started to use Matlab 2023b just now, then I can not find the "language setting" (change English/Chinese), I remember it was in "General" setting in older matlab versionI started to use Matlab 2023b just now, then I can not find the "language setting" (change English/Chinese), I remember it was in "General" setting in older matlab version I started to use Matlab 2023b just now, then I can not find the "language setting" (change English/Chinese), I remember it was in "General" setting in older matlab version language, configuration, preference, setting MATLAB Answers — New Questions
How can I call a matlab function that takes no arguments using matlab engine C++ API?
I have a matlab function (myFunc) that takes no arguments and returns a matlab string. I want to call this function using the matlab engine C++ API. In all examples I have found in documentation, the functions used receive at least one argument (like sqrt o gcd). I have tried declaring an empty variable and using it like this:
const matlab::data::Array arg;
auto res = matlabPtr->feval(u"myFunc", arg);
The code compiles OK, but when I run it I get the exception error "Default constructed arguments are not allowed"
Is there a way to call this kind of function?
Thank you for your helpI have a matlab function (myFunc) that takes no arguments and returns a matlab string. I want to call this function using the matlab engine C++ API. In all examples I have found in documentation, the functions used receive at least one argument (like sqrt o gcd). I have tried declaring an empty variable and using it like this:
const matlab::data::Array arg;
auto res = matlabPtr->feval(u"myFunc", arg);
The code compiles OK, but when I run it I get the exception error "Default constructed arguments are not allowed"
Is there a way to call this kind of function?
Thank you for your help I have a matlab function (myFunc) that takes no arguments and returns a matlab string. I want to call this function using the matlab engine C++ API. In all examples I have found in documentation, the functions used receive at least one argument (like sqrt o gcd). I have tried declaring an empty variable and using it like this:
const matlab::data::Array arg;
auto res = matlabPtr->feval(u"myFunc", arg);
The code compiles OK, but when I run it I get the exception error "Default constructed arguments are not allowed"
Is there a way to call this kind of function?
Thank you for your help matlab engine, c++ api, feval MATLAB Answers — New Questions
How to fit kinetic model to estimate kinetic parameter from experimental data
I am getting errors in the output. Please help be solve the problem. I have attached the Excel file of the experimental data.
Thank you.
%Fermentation data
Xdata = readmatrix(‘Batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’e2:e13′);
Gdata = readmatrix(‘Batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’b2:b13′);
Bdata = readmatrix(‘Batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’c2:c13′);
Edata = readmatrix(‘Batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’d2:d13′);
% Group all data into yariable y
yinv =[Xdata’; Gdata’; Bdata’; Edata’];
%Data for time
timeex = readmatrix(‘batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’a2:a13′);
%Set ODE solver
% Initial cell biomass concentration (Initial condition)
y0=[1.04 0.78 0.00 0.00];
%Fermentation time
tspan = linspace(0,72);
%Set optimization problem
%Let b = matrix of paramters to be determined
% b= [um ks k1 K1G K1B k2 K2G YXG m k3]
b = optimvar(‘b’,10,"LowerBound",0,"UpperBound",72);
%Set functions for ODE solver for solving ODE
function solferment = toODE(b,tspan,y0)
sol = ode45(@(t,y)batchferment(t,y,b),tspan,y0);
solferment = deval(sol,tspan);
end
%Convert function for ODE solving to optimization expression
%To use RtoODE in an objective function, convert the function to an
%optimization expression by using fcn2optimexpr.
myfcn = fcn2optimexpr(@toODE,b,timeex,y0);
%Express the objective function as the sum of squared differences between
%the ODE solution and the solution with true parameters.
SSE = sum(sum((myfcn-yinv).^2));
%Create an optimization problem with the objective function SSE.
prob = optimproblem ("Description","Fit ODE parameters",’ObjectiveSense’,’min’);
%Objective function (to be minimized)
prob.Objective = SSE;
%Show structure of problem
show(prob)
%Solve Problem
%To find the best-fitting parameters x, give an initial guess
%x0 for the solver and call solve.
% Set initial guesses of parameters
initialGuess.b = [0.18 1.0 0.61 0.18 5.85 3.20 16.25 0.11 3.40 3.02];
%Solve optimization problem
[sol,optval] = solve(prob,initialGuess);
%Extract the results
%Fitted Parameters
bfinal =sol.b;
%Sum of square Error
SSEfinal = optval;
%Plot the simulated data and experimental data
%Call ODE to solve an equation using Final Fitted Parameters (bfinal)
solysim = ode45(@(t,y)batchferment(t,y,bfinal),tspan,y0);
%Evaluate the simulated results at specified tspan
ysim = deval(solysim,tspan);
%Plot graphs
figure;
plot(timeex,Xdata,’*r’,tspan,ysim(1,:),’-b’)
legend(‘exp’,’sim’)
xlabel(‘Time (h)’)
ylabel(‘X (g/L)’)
figure;
plot(timeex,Gdata’,’*r’,tspan,ysim(2,:),’-b’)
legend(‘exp’,’sim’)
xlabel(‘Time (h)’)
ylabel(‘G (g/L)’)
figure;
plot(timeex,Bdata’,’*r’,tspan,ysim(3,:),’-b’)
legend(‘exp’,’sim’)
xlabel(‘Time (h)’)
ylabel(‘B (g/L)’)
figure;
plot(timeex,Edata’,’*r’,tspan,ysim(4,:),’-b’)
legend(‘exp’,’sim’)
xlabel(‘Time (h)’)
ylabel(‘E (g/L)’)
%Equations for Batch
%y(1) = X = Biomass Concentration (g/l)
%y(2) = G = Glucose Concentration (g/l)
%y(3) = B = Cellobiose Concentration (g/L)
%y(4) = E = Ethanol Concentration (g/l)
function dydt = batchferment(t,y,b)
y(1) = X;
y(2) = G;
y(3) = B;
y(4) = E;
%%%Growth equations
%dx/dt = (um*X*G)/(KG+G)
u = (b(1)*y(1)*y(2))/(b(2)+y(2));
%u = (b(1)*X*G)/(b(2)+G);
%parameters
b(1) = um (1/h);
b(2) = ks (g/L);
%%%Cellobiose equations
C = b(11)-(0.9*y(2))-(0.947*y(3))-(0.9*y(4)/0.511)-(1.137*(y(1)-1.04));
r1 = (b(3)*C)/(1+(y(2)/b(4))+(y(3)/b(5)));
r2 = (b(6)*y(3))/(1+(y(2)/b(7)));
b(3) = k1;
b(4) = K1G;
b(5) = K1B;
b(6) = k2;
b(7) = K2G;
%C = Cellulose concentration (g/l)
%C = C0-(0.9*G)-(0.947*B)-(0.9*E/0.511)-(1.137*(X-X0))
%r1 = (k1*C)/(1+(G/K1G)+(B/K1B))
%r2 = (k2*B)/(1+(G/K2G)
%C = C0-(0.9*G)-(0.947*B)-(0.9*E/0.511)-(1.137*(X-X0))
%C = 83.65-(0.9*y(2))-(0.947*y(3))-(0.9*y(4)/0.511)-(1.137*(y(1)-1.04))
%%% Glucose equations
rG = ((1/b(8))*(dx/dt))-(b(9)*y(1));
b(8) = YXG;
b(9) = m;
%rG = ((1/YXG)*(dX/dt))-(m*X)
%%% Ethanol Concentration
Et = k3*(u*X)*(1/YXG);
b(10) = k3;
%Material balance equations
dXdt = u*X;
dGdt = (r2/0.95)-rG;
dBdt = (r1/0.947)-r2;
dEdt = Et;
dydt = [dXdt;dGdt;dBdt;dEdt];
end
This is the output after running:
>> Batch1
Unrecognized function or variable ‘X’.
Error in Batch1>batchferment (line 110)
y(1) = X;
Error in Batch1>@(t,y)batchferment(t,y,b) (line 30)
sol = ode45(@(t,y)batchferment(t,y,b),tspan,y0);
Error in odearguments (line 92)
f0 = ode(t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ode45 (line 104)
odearguments(odeIsFuncHandle,odeTreatAsMFile, solver_name, ode, tspan, y0, options, varargin);
Error in Batch1>toODE (line 30)
sol = ode45(@(t,y)batchferment(t,y,b),tspan,y0);
Error in optim.problemdef.fcn2optimexpr
Error in optim.problemdef.fcn2optimexpr
Error in fcn2optimexpr
Error in Batch1 (line 38)
myfcn = fcn2optimexpr(@toODE,b,timeex,y0);
Caused by:
Function evaluation failed while attempting to determine output size. The function might contain an error, or might not be well-defined at
the automatically-chosen point. To specify output size without function evaluation, use ‘OutputSize’.
>>I am getting errors in the output. Please help be solve the problem. I have attached the Excel file of the experimental data.
Thank you.
%Fermentation data
Xdata = readmatrix(‘Batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’e2:e13′);
Gdata = readmatrix(‘Batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’b2:b13′);
Bdata = readmatrix(‘Batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’c2:c13′);
Edata = readmatrix(‘Batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’d2:d13′);
% Group all data into yariable y
yinv =[Xdata’; Gdata’; Bdata’; Edata’];
%Data for time
timeex = readmatrix(‘batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’a2:a13′);
%Set ODE solver
% Initial cell biomass concentration (Initial condition)
y0=[1.04 0.78 0.00 0.00];
%Fermentation time
tspan = linspace(0,72);
%Set optimization problem
%Let b = matrix of paramters to be determined
% b= [um ks k1 K1G K1B k2 K2G YXG m k3]
b = optimvar(‘b’,10,"LowerBound",0,"UpperBound",72);
%Set functions for ODE solver for solving ODE
function solferment = toODE(b,tspan,y0)
sol = ode45(@(t,y)batchferment(t,y,b),tspan,y0);
solferment = deval(sol,tspan);
end
%Convert function for ODE solving to optimization expression
%To use RtoODE in an objective function, convert the function to an
%optimization expression by using fcn2optimexpr.
myfcn = fcn2optimexpr(@toODE,b,timeex,y0);
%Express the objective function as the sum of squared differences between
%the ODE solution and the solution with true parameters.
SSE = sum(sum((myfcn-yinv).^2));
%Create an optimization problem with the objective function SSE.
prob = optimproblem ("Description","Fit ODE parameters",’ObjectiveSense’,’min’);
%Objective function (to be minimized)
prob.Objective = SSE;
%Show structure of problem
show(prob)
%Solve Problem
%To find the best-fitting parameters x, give an initial guess
%x0 for the solver and call solve.
% Set initial guesses of parameters
initialGuess.b = [0.18 1.0 0.61 0.18 5.85 3.20 16.25 0.11 3.40 3.02];
%Solve optimization problem
[sol,optval] = solve(prob,initialGuess);
%Extract the results
%Fitted Parameters
bfinal =sol.b;
%Sum of square Error
SSEfinal = optval;
%Plot the simulated data and experimental data
%Call ODE to solve an equation using Final Fitted Parameters (bfinal)
solysim = ode45(@(t,y)batchferment(t,y,bfinal),tspan,y0);
%Evaluate the simulated results at specified tspan
ysim = deval(solysim,tspan);
%Plot graphs
figure;
plot(timeex,Xdata,’*r’,tspan,ysim(1,:),’-b’)
legend(‘exp’,’sim’)
xlabel(‘Time (h)’)
ylabel(‘X (g/L)’)
figure;
plot(timeex,Gdata’,’*r’,tspan,ysim(2,:),’-b’)
legend(‘exp’,’sim’)
xlabel(‘Time (h)’)
ylabel(‘G (g/L)’)
figure;
plot(timeex,Bdata’,’*r’,tspan,ysim(3,:),’-b’)
legend(‘exp’,’sim’)
xlabel(‘Time (h)’)
ylabel(‘B (g/L)’)
figure;
plot(timeex,Edata’,’*r’,tspan,ysim(4,:),’-b’)
legend(‘exp’,’sim’)
xlabel(‘Time (h)’)
ylabel(‘E (g/L)’)
%Equations for Batch
%y(1) = X = Biomass Concentration (g/l)
%y(2) = G = Glucose Concentration (g/l)
%y(3) = B = Cellobiose Concentration (g/L)
%y(4) = E = Ethanol Concentration (g/l)
function dydt = batchferment(t,y,b)
y(1) = X;
y(2) = G;
y(3) = B;
y(4) = E;
%%%Growth equations
%dx/dt = (um*X*G)/(KG+G)
u = (b(1)*y(1)*y(2))/(b(2)+y(2));
%u = (b(1)*X*G)/(b(2)+G);
%parameters
b(1) = um (1/h);
b(2) = ks (g/L);
%%%Cellobiose equations
C = b(11)-(0.9*y(2))-(0.947*y(3))-(0.9*y(4)/0.511)-(1.137*(y(1)-1.04));
r1 = (b(3)*C)/(1+(y(2)/b(4))+(y(3)/b(5)));
r2 = (b(6)*y(3))/(1+(y(2)/b(7)));
b(3) = k1;
b(4) = K1G;
b(5) = K1B;
b(6) = k2;
b(7) = K2G;
%C = Cellulose concentration (g/l)
%C = C0-(0.9*G)-(0.947*B)-(0.9*E/0.511)-(1.137*(X-X0))
%r1 = (k1*C)/(1+(G/K1G)+(B/K1B))
%r2 = (k2*B)/(1+(G/K2G)
%C = C0-(0.9*G)-(0.947*B)-(0.9*E/0.511)-(1.137*(X-X0))
%C = 83.65-(0.9*y(2))-(0.947*y(3))-(0.9*y(4)/0.511)-(1.137*(y(1)-1.04))
%%% Glucose equations
rG = ((1/b(8))*(dx/dt))-(b(9)*y(1));
b(8) = YXG;
b(9) = m;
%rG = ((1/YXG)*(dX/dt))-(m*X)
%%% Ethanol Concentration
Et = k3*(u*X)*(1/YXG);
b(10) = k3;
%Material balance equations
dXdt = u*X;
dGdt = (r2/0.95)-rG;
dBdt = (r1/0.947)-r2;
dEdt = Et;
dydt = [dXdt;dGdt;dBdt;dEdt];
end
This is the output after running:
>> Batch1
Unrecognized function or variable ‘X’.
Error in Batch1>batchferment (line 110)
y(1) = X;
Error in Batch1>@(t,y)batchferment(t,y,b) (line 30)
sol = ode45(@(t,y)batchferment(t,y,b),tspan,y0);
Error in odearguments (line 92)
f0 = ode(t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ode45 (line 104)
odearguments(odeIsFuncHandle,odeTreatAsMFile, solver_name, ode, tspan, y0, options, varargin);
Error in Batch1>toODE (line 30)
sol = ode45(@(t,y)batchferment(t,y,b),tspan,y0);
Error in optim.problemdef.fcn2optimexpr
Error in optim.problemdef.fcn2optimexpr
Error in fcn2optimexpr
Error in Batch1 (line 38)
myfcn = fcn2optimexpr(@toODE,b,timeex,y0);
Caused by:
Function evaluation failed while attempting to determine output size. The function might contain an error, or might not be well-defined at
the automatically-chosen point. To specify output size without function evaluation, use ‘OutputSize’.
>> I am getting errors in the output. Please help be solve the problem. I have attached the Excel file of the experimental data.
Thank you.
%Fermentation data
Xdata = readmatrix(‘Batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’e2:e13′);
Gdata = readmatrix(‘Batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’b2:b13′);
Bdata = readmatrix(‘Batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’c2:c13′);
Edata = readmatrix(‘Batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’d2:d13′);
% Group all data into yariable y
yinv =[Xdata’; Gdata’; Bdata’; Edata’];
%Data for time
timeex = readmatrix(‘batch1.xlsx’,’Sheet’,’sheet1′,’Range’,’a2:a13′);
%Set ODE solver
% Initial cell biomass concentration (Initial condition)
y0=[1.04 0.78 0.00 0.00];
%Fermentation time
tspan = linspace(0,72);
%Set optimization problem
%Let b = matrix of paramters to be determined
% b= [um ks k1 K1G K1B k2 K2G YXG m k3]
b = optimvar(‘b’,10,"LowerBound",0,"UpperBound",72);
%Set functions for ODE solver for solving ODE
function solferment = toODE(b,tspan,y0)
sol = ode45(@(t,y)batchferment(t,y,b),tspan,y0);
solferment = deval(sol,tspan);
end
%Convert function for ODE solving to optimization expression
%To use RtoODE in an objective function, convert the function to an
%optimization expression by using fcn2optimexpr.
myfcn = fcn2optimexpr(@toODE,b,timeex,y0);
%Express the objective function as the sum of squared differences between
%the ODE solution and the solution with true parameters.
SSE = sum(sum((myfcn-yinv).^2));
%Create an optimization problem with the objective function SSE.
prob = optimproblem ("Description","Fit ODE parameters",’ObjectiveSense’,’min’);
%Objective function (to be minimized)
prob.Objective = SSE;
%Show structure of problem
show(prob)
%Solve Problem
%To find the best-fitting parameters x, give an initial guess
%x0 for the solver and call solve.
% Set initial guesses of parameters
initialGuess.b = [0.18 1.0 0.61 0.18 5.85 3.20 16.25 0.11 3.40 3.02];
%Solve optimization problem
[sol,optval] = solve(prob,initialGuess);
%Extract the results
%Fitted Parameters
bfinal =sol.b;
%Sum of square Error
SSEfinal = optval;
%Plot the simulated data and experimental data
%Call ODE to solve an equation using Final Fitted Parameters (bfinal)
solysim = ode45(@(t,y)batchferment(t,y,bfinal),tspan,y0);
%Evaluate the simulated results at specified tspan
ysim = deval(solysim,tspan);
%Plot graphs
figure;
plot(timeex,Xdata,’*r’,tspan,ysim(1,:),’-b’)
legend(‘exp’,’sim’)
xlabel(‘Time (h)’)
ylabel(‘X (g/L)’)
figure;
plot(timeex,Gdata’,’*r’,tspan,ysim(2,:),’-b’)
legend(‘exp’,’sim’)
xlabel(‘Time (h)’)
ylabel(‘G (g/L)’)
figure;
plot(timeex,Bdata’,’*r’,tspan,ysim(3,:),’-b’)
legend(‘exp’,’sim’)
xlabel(‘Time (h)’)
ylabel(‘B (g/L)’)
figure;
plot(timeex,Edata’,’*r’,tspan,ysim(4,:),’-b’)
legend(‘exp’,’sim’)
xlabel(‘Time (h)’)
ylabel(‘E (g/L)’)
%Equations for Batch
%y(1) = X = Biomass Concentration (g/l)
%y(2) = G = Glucose Concentration (g/l)
%y(3) = B = Cellobiose Concentration (g/L)
%y(4) = E = Ethanol Concentration (g/l)
function dydt = batchferment(t,y,b)
y(1) = X;
y(2) = G;
y(3) = B;
y(4) = E;
%%%Growth equations
%dx/dt = (um*X*G)/(KG+G)
u = (b(1)*y(1)*y(2))/(b(2)+y(2));
%u = (b(1)*X*G)/(b(2)+G);
%parameters
b(1) = um (1/h);
b(2) = ks (g/L);
%%%Cellobiose equations
C = b(11)-(0.9*y(2))-(0.947*y(3))-(0.9*y(4)/0.511)-(1.137*(y(1)-1.04));
r1 = (b(3)*C)/(1+(y(2)/b(4))+(y(3)/b(5)));
r2 = (b(6)*y(3))/(1+(y(2)/b(7)));
b(3) = k1;
b(4) = K1G;
b(5) = K1B;
b(6) = k2;
b(7) = K2G;
%C = Cellulose concentration (g/l)
%C = C0-(0.9*G)-(0.947*B)-(0.9*E/0.511)-(1.137*(X-X0))
%r1 = (k1*C)/(1+(G/K1G)+(B/K1B))
%r2 = (k2*B)/(1+(G/K2G)
%C = C0-(0.9*G)-(0.947*B)-(0.9*E/0.511)-(1.137*(X-X0))
%C = 83.65-(0.9*y(2))-(0.947*y(3))-(0.9*y(4)/0.511)-(1.137*(y(1)-1.04))
%%% Glucose equations
rG = ((1/b(8))*(dx/dt))-(b(9)*y(1));
b(8) = YXG;
b(9) = m;
%rG = ((1/YXG)*(dX/dt))-(m*X)
%%% Ethanol Concentration
Et = k3*(u*X)*(1/YXG);
b(10) = k3;
%Material balance equations
dXdt = u*X;
dGdt = (r2/0.95)-rG;
dBdt = (r1/0.947)-r2;
dEdt = Et;
dydt = [dXdt;dGdt;dBdt;dEdt];
end
This is the output after running:
>> Batch1
Unrecognized function or variable ‘X’.
Error in Batch1>batchferment (line 110)
y(1) = X;
Error in Batch1>@(t,y)batchferment(t,y,b) (line 30)
sol = ode45(@(t,y)batchferment(t,y,b),tspan,y0);
Error in odearguments (line 92)
f0 = ode(t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ode45 (line 104)
odearguments(odeIsFuncHandle,odeTreatAsMFile, solver_name, ode, tspan, y0, options, varargin);
Error in Batch1>toODE (line 30)
sol = ode45(@(t,y)batchferment(t,y,b),tspan,y0);
Error in optim.problemdef.fcn2optimexpr
Error in optim.problemdef.fcn2optimexpr
Error in fcn2optimexpr
Error in Batch1 (line 38)
myfcn = fcn2optimexpr(@toODE,b,timeex,y0);
Caused by:
Function evaluation failed while attempting to determine output size. The function might contain an error, or might not be well-defined at
the automatically-chosen point. To specify output size without function evaluation, use ‘OutputSize’.
>> data fitting, parameter estimation, optimization, isqnonlin method MATLAB Answers — New Questions
Where to find which toolbox a MATLAB example belongs to, or which toolboxes I need to run the example?
I am currently working through a MathWorks example using the "fit" function:
https://www.mathworks.com/help/curvefit/fit-exponential-model-to-census-data.html
But the example documentation does not specify which toolbox this "fit" function belongs to. Where can I find which toolboxes I need for running a MATLAB example?I am currently working through a MathWorks example using the "fit" function:
https://www.mathworks.com/help/curvefit/fit-exponential-model-to-census-data.html
But the example documentation does not specify which toolbox this "fit" function belongs to. Where can I find which toolboxes I need for running a MATLAB example? I am currently working through a MathWorks example using the "fit" function:
https://www.mathworks.com/help/curvefit/fit-exponential-model-to-census-data.html
But the example documentation does not specify which toolbox this "fit" function belongs to. Where can I find which toolboxes I need for running a MATLAB example? toolboxes, documentation MATLAB Answers — New Questions
How to set the font of the Diagnostic Viewer in Simulink?
Hi All,
I met some problem in the Diagnostic Viewer in Simulink, the font of the text has became extremely which I can hardly see. Is there anybody know how to fix this problem?
Regards,
KeranHi All,
I met some problem in the Diagnostic Viewer in Simulink, the font of the text has became extremely which I can hardly see. Is there anybody know how to fix this problem?
Regards,
Keran Hi All,
I met some problem in the Diagnostic Viewer in Simulink, the font of the text has became extremely which I can hardly see. Is there anybody know how to fix this problem?
Regards,
Keran simulink, font MATLAB Answers — New Questions
How to implement custom function in Flight Log Analyzer
I am trying to create a custom function within the Flight Log Analyzer app in the UAV Toolbox, and I am getting errors no matter what I try. I am simply trying to plot a Fast-Fourier Transform of Accel and Gyro data. Below is an example of a function I wrote that works on its own, but I can not get it to work within the app. I am wondering what the function sturcture is that the app is looking for. I see what is on the pop up window when you go to create the function, but even when I try creating more arguments for the function I get index mismatch errors. An example of a function that can be passed into the app would be very helpful.
(in this example, "signalData" would be ACC_0 from the workspace file)
function afft = ArdupilotFFT(singalData)
Fs = 2000;
L = length(singalData);
L2 = floor(L/2);
f0 = Fs/L*(0:L2-1);
X0 = fft(singalData(:,5));
X0 = 10*log10(abs(X0(1:L2)));
Y0 = fft(singalData(:,6));
Y0 = 10*log10(abs(Y0(1:L2)));
Z0 = fft(singalData(:,7));
Z0 = 10*log10(abs(Z0(1:L2)));
figure(‘Name’,’FFT’);
%subplot(1,3,1);
semilogx(f0,X0,f0,Y0,f0,Z0)
grid on; xlabel(‘Frequency (Hz)’); xlim([1,1000]);
endI am trying to create a custom function within the Flight Log Analyzer app in the UAV Toolbox, and I am getting errors no matter what I try. I am simply trying to plot a Fast-Fourier Transform of Accel and Gyro data. Below is an example of a function I wrote that works on its own, but I can not get it to work within the app. I am wondering what the function sturcture is that the app is looking for. I see what is on the pop up window when you go to create the function, but even when I try creating more arguments for the function I get index mismatch errors. An example of a function that can be passed into the app would be very helpful.
(in this example, "signalData" would be ACC_0 from the workspace file)
function afft = ArdupilotFFT(singalData)
Fs = 2000;
L = length(singalData);
L2 = floor(L/2);
f0 = Fs/L*(0:L2-1);
X0 = fft(singalData(:,5));
X0 = 10*log10(abs(X0(1:L2)));
Y0 = fft(singalData(:,6));
Y0 = 10*log10(abs(Y0(1:L2)));
Z0 = fft(singalData(:,7));
Z0 = 10*log10(abs(Z0(1:L2)));
figure(‘Name’,’FFT’);
%subplot(1,3,1);
semilogx(f0,X0,f0,Y0,f0,Z0)
grid on; xlabel(‘Frequency (Hz)’); xlim([1,1000]);
end I am trying to create a custom function within the Flight Log Analyzer app in the UAV Toolbox, and I am getting errors no matter what I try. I am simply trying to plot a Fast-Fourier Transform of Accel and Gyro data. Below is an example of a function I wrote that works on its own, but I can not get it to work within the app. I am wondering what the function sturcture is that the app is looking for. I see what is on the pop up window when you go to create the function, but even when I try creating more arguments for the function I get index mismatch errors. An example of a function that can be passed into the app would be very helpful.
(in this example, "signalData" would be ACC_0 from the workspace file)
function afft = ArdupilotFFT(singalData)
Fs = 2000;
L = length(singalData);
L2 = floor(L/2);
f0 = Fs/L*(0:L2-1);
X0 = fft(singalData(:,5));
X0 = 10*log10(abs(X0(1:L2)));
Y0 = fft(singalData(:,6));
Y0 = 10*log10(abs(Y0(1:L2)));
Z0 = fft(singalData(:,7));
Z0 = 10*log10(abs(Z0(1:L2)));
figure(‘Name’,’FFT’);
%subplot(1,3,1);
semilogx(f0,X0,f0,Y0,f0,Z0)
grid on; xlabel(‘Frequency (Hz)’); xlim([1,1000]);
end uav, flightloganalyzer, fft, function MATLAB Answers — New Questions