Category: Matlab
Category Archives: Matlab
Crosstab by using the same input for both arguments
If I run one of the examples of crosstab, I get the same result as indicated in the crosstab webpage:
rng default; % for reproducibility
x1 = unidrnd(3,50,1);
x2 = unidrnd(3,50,1);
[table,chi2,p] = crosstab(x1,x2)
However, if I use the same input for both arguments of crosstab, I get a p-value basically equal to zero:
rng default; % for reproducibility
x1 = unidrnd(3,50,1);
x2 = unidrnd(3,50,1);
[table,chi2,p] = crosstab(x1,x1)
Shouldn’t I get a p-value higher if I use the same input for both argument of crosstab? (I was thinking about a p-value close to 1 actually)If I run one of the examples of crosstab, I get the same result as indicated in the crosstab webpage:
rng default; % for reproducibility
x1 = unidrnd(3,50,1);
x2 = unidrnd(3,50,1);
[table,chi2,p] = crosstab(x1,x2)
However, if I use the same input for both arguments of crosstab, I get a p-value basically equal to zero:
rng default; % for reproducibility
x1 = unidrnd(3,50,1);
x2 = unidrnd(3,50,1);
[table,chi2,p] = crosstab(x1,x1)
Shouldn’t I get a p-value higher if I use the same input for both argument of crosstab? (I was thinking about a p-value close to 1 actually) If I run one of the examples of crosstab, I get the same result as indicated in the crosstab webpage:
rng default; % for reproducibility
x1 = unidrnd(3,50,1);
x2 = unidrnd(3,50,1);
[table,chi2,p] = crosstab(x1,x2)
However, if I use the same input for both arguments of crosstab, I get a p-value basically equal to zero:
rng default; % for reproducibility
x1 = unidrnd(3,50,1);
x2 = unidrnd(3,50,1);
[table,chi2,p] = crosstab(x1,x1)
Shouldn’t I get a p-value higher if I use the same input for both argument of crosstab? (I was thinking about a p-value close to 1 actually) crosstab, p-value MATLAB Answers — New Questions
Problem during runing the Ansys in batch mode
I have installed student trial version of Matlab and Ansys. During the calculation in Matlab from which I run Ansys in batch mode, there is an error.
While, during the calculation the following error occure
Abort(100) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 100) – process 0I have installed student trial version of Matlab and Ansys. During the calculation in Matlab from which I run Ansys in batch mode, there is an error.
While, during the calculation the following error occure
Abort(100) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 100) – process 0 I have installed student trial version of Matlab and Ansys. During the calculation in Matlab from which I run Ansys in batch mode, there is an error.
While, during the calculation the following error occure
Abort(100) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 100) – process 0 optimization, parallel computing, algorithm, genetic algorithm MATLAB Answers — New Questions
I am trying to solve the system of coupled partial differential equations described in the attachment using the function pdepe. My code runs into this error:
function [c,f,s] = pdefun(x,t,u,dudx) % Equation to solve
c = [1; 1];
f = [-0.6; 1.32].*u;
s = [0; 0];
end
function u0 = pdeic(x) % Initial Conditions
u0 = [sin(pi*x); sin(pi*x)];
end
function [pl,ql,pr,qr] = pdebc(xl,ul,xr,ur,t) % Boundary Conditions
pl = [2.2*ul(2)+ ul(1); 0];
ql = [0; 0];
pr = [0; ur(2)];
qr = [0; 0];
end
x = linspace(0,1,50);
t = linspace(0,2,50);
m = 0;
sol = pdepe(m,@pdefun,@pdeic,@pdebc,x,t);
u1 = sol(:,:,1);
u2 = sol(:,:,2);
surf(x,t,u1)
title(‘u_(x,t)’)
xlabel(‘Distance x’)
ylabel(‘Time t’)function [c,f,s] = pdefun(x,t,u,dudx) % Equation to solve
c = [1; 1];
f = [-0.6; 1.32].*u;
s = [0; 0];
end
function u0 = pdeic(x) % Initial Conditions
u0 = [sin(pi*x); sin(pi*x)];
end
function [pl,ql,pr,qr] = pdebc(xl,ul,xr,ur,t) % Boundary Conditions
pl = [2.2*ul(2)+ ul(1); 0];
ql = [0; 0];
pr = [0; ur(2)];
qr = [0; 0];
end
x = linspace(0,1,50);
t = linspace(0,2,50);
m = 0;
sol = pdepe(m,@pdefun,@pdeic,@pdebc,x,t);
u1 = sol(:,:,1);
u2 = sol(:,:,2);
surf(x,t,u1)
title(‘u_(x,t)’)
xlabel(‘Distance x’)
ylabel(‘Time t’) function [c,f,s] = pdefun(x,t,u,dudx) % Equation to solve
c = [1; 1];
f = [-0.6; 1.32].*u;
s = [0; 0];
end
function u0 = pdeic(x) % Initial Conditions
u0 = [sin(pi*x); sin(pi*x)];
end
function [pl,ql,pr,qr] = pdebc(xl,ul,xr,ur,t) % Boundary Conditions
pl = [2.2*ul(2)+ ul(1); 0];
ql = [0; 0];
pr = [0; ur(2)];
qr = [0; 0];
end
x = linspace(0,1,50);
t = linspace(0,2,50);
m = 0;
sol = pdepe(m,@pdefun,@pdeic,@pdebc,x,t);
u1 = sol(:,:,1);
u2 = sol(:,:,2);
surf(x,t,u1)
title(‘u_(x,t)’)
xlabel(‘Distance x’)
ylabel(‘Time t’) pde, pdepe MATLAB Answers — New Questions
How do I use the unit per mille in Simulink parameters and ports?
In simulink parameters and ports can be specified to use units as described here: https://se.mathworks.com/help/simulink/ug/units-in-simulink.html
For dimensionless pure scaled numbers percent (1e-2), ppm (1e-6), ppb (1e-9) and ppt (1e-12) can be used. But is there a way to specify per mille (‰)? Using 0.001 does not work.In simulink parameters and ports can be specified to use units as described here: https://se.mathworks.com/help/simulink/ug/units-in-simulink.html
For dimensionless pure scaled numbers percent (1e-2), ppm (1e-6), ppb (1e-9) and ppt (1e-12) can be used. But is there a way to specify per mille (‰)? Using 0.001 does not work. In simulink parameters and ports can be specified to use units as described here: https://se.mathworks.com/help/simulink/ug/units-in-simulink.html
For dimensionless pure scaled numbers percent (1e-2), ppm (1e-6), ppb (1e-9) and ppt (1e-12) can be used. But is there a way to specify per mille (‰)? Using 0.001 does not work. per_mille, units, per mille, unit MATLAB Answers — New Questions
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