Tag Archives: matlab
Relationship between back EMF (Ke) and maximum achievable speed
Is there a standard relationship between DC bus voltage and the maximum achivable speed, from which we can calculate the maximum achvable speed of a PMSM motor given the DC bus voltage?
Looking at this thread:
https://e2e.ti.com/support/motor-drivers-group/motor-drivers/f/motor-drivers-forum/1271711/mcf8315a-speed-control-issue
Is the formula given there a valid equation for a general FOC controller?
Eletrical frequency = (DC bus / sqrt(3))/Ke ?
We are trying to run the Motor driver from a C2000 LaunchPad (LAUNCHXL-F28379D + BOOSTXL-3PHGANINV)
https://www.mathworks.com/help/mcb/gs/matlab-project-foc-pmsm-qep.htmlIs there a standard relationship between DC bus voltage and the maximum achivable speed, from which we can calculate the maximum achvable speed of a PMSM motor given the DC bus voltage?
Looking at this thread:
https://e2e.ti.com/support/motor-drivers-group/motor-drivers/f/motor-drivers-forum/1271711/mcf8315a-speed-control-issue
Is the formula given there a valid equation for a general FOC controller?
Eletrical frequency = (DC bus / sqrt(3))/Ke ?
We are trying to run the Motor driver from a C2000 LaunchPad (LAUNCHXL-F28379D + BOOSTXL-3PHGANINV)
https://www.mathworks.com/help/mcb/gs/matlab-project-foc-pmsm-qep.html Is there a standard relationship between DC bus voltage and the maximum achivable speed, from which we can calculate the maximum achvable speed of a PMSM motor given the DC bus voltage?
Looking at this thread:
https://e2e.ti.com/support/motor-drivers-group/motor-drivers/f/motor-drivers-forum/1271711/mcf8315a-speed-control-issue
Is the formula given there a valid equation for a general FOC controller?
Eletrical frequency = (DC bus / sqrt(3))/Ke ?
We are trying to run the Motor driver from a C2000 LaunchPad (LAUNCHXL-F28379D + BOOSTXL-3PHGANINV)
https://www.mathworks.com/help/mcb/gs/matlab-project-foc-pmsm-qep.html foc, pmsm MATLAB Answers — New Questions
how to save my 3d matrix in X,Y,Z coordinates
I have 134* 2d matrix (86*86 each) and they make 86*86*134 matrix.
I need to generate a point cloud of this matrix and that is why I must save the Matrix in xyz coordinates.
how can I save the matrix (I) in xyz table
my matrix (I) was generated by the following code
clear all
close all
names=dir(‘inter the name of your file*.tiff’);
for iii=1:size(names,1)
I(:,:,iii)=imread(strcat(‘inter the name of your file’,names(iii).name));
for j=1:size(names,1)
Img_3D=surface(‘XData’,[0 355;0 355],’YData’,[0 0;355 355],’ZData’,[29.85*j 29.85*j;29.85*j 29.85*j], ‘CData’ ,flipdim(im2double(I(:,:,iii)),1),’FaceColor’,’texturemap’,’EdgeColor’,’none’);
colormap(gray)
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z µm’)
end
endI have 134* 2d matrix (86*86 each) and they make 86*86*134 matrix.
I need to generate a point cloud of this matrix and that is why I must save the Matrix in xyz coordinates.
how can I save the matrix (I) in xyz table
my matrix (I) was generated by the following code
clear all
close all
names=dir(‘inter the name of your file*.tiff’);
for iii=1:size(names,1)
I(:,:,iii)=imread(strcat(‘inter the name of your file’,names(iii).name));
for j=1:size(names,1)
Img_3D=surface(‘XData’,[0 355;0 355],’YData’,[0 0;355 355],’ZData’,[29.85*j 29.85*j;29.85*j 29.85*j], ‘CData’ ,flipdim(im2double(I(:,:,iii)),1),’FaceColor’,’texturemap’,’EdgeColor’,’none’);
colormap(gray)
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z µm’)
end
end I have 134* 2d matrix (86*86 each) and they make 86*86*134 matrix.
I need to generate a point cloud of this matrix and that is why I must save the Matrix in xyz coordinates.
how can I save the matrix (I) in xyz table
my matrix (I) was generated by the following code
clear all
close all
names=dir(‘inter the name of your file*.tiff’);
for iii=1:size(names,1)
I(:,:,iii)=imread(strcat(‘inter the name of your file’,names(iii).name));
for j=1:size(names,1)
Img_3D=surface(‘XData’,[0 355;0 355],’YData’,[0 0;355 355],’ZData’,[29.85*j 29.85*j;29.85*j 29.85*j], ‘CData’ ,flipdim(im2double(I(:,:,iii)),1),’FaceColor’,’texturemap’,’EdgeColor’,’none’);
colormap(gray)
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z µm’)
end
end image-processing, 3d matrix MATLAB Answers — New Questions
Diode fitting with 5 parameters
I used fsolve function (advised by Mischa Kim) to solve the diode equation and it worked (with small modification on (q/nkT).
fun = @(I) Il – Io * exp((V + I*R)/(n*kT_q)) – (V + I*R)/S – I;
Now I need to do a fitting using the same equation but this time I need Matlab to iterate the values for:
Il , Io, R, n, S,
in order to solve I which will give me the best fit against the experimental I (Iexp) where V is the independent variable. I guess I will need the least square function for that but first how do I ask Matlab to do the iteration and eventually solve the I?
Thank you very much for your help.
RosemarieI used fsolve function (advised by Mischa Kim) to solve the diode equation and it worked (with small modification on (q/nkT).
fun = @(I) Il – Io * exp((V + I*R)/(n*kT_q)) – (V + I*R)/S – I;
Now I need to do a fitting using the same equation but this time I need Matlab to iterate the values for:
Il , Io, R, n, S,
in order to solve I which will give me the best fit against the experimental I (Iexp) where V is the independent variable. I guess I will need the least square function for that but first how do I ask Matlab to do the iteration and eventually solve the I?
Thank you very much for your help.
Rosemarie I used fsolve function (advised by Mischa Kim) to solve the diode equation and it worked (with small modification on (q/nkT).
fun = @(I) Il – Io * exp((V + I*R)/(n*kT_q)) – (V + I*R)/S – I;
Now I need to do a fitting using the same equation but this time I need Matlab to iterate the values for:
Il , Io, R, n, S,
in order to solve I which will give me the best fit against the experimental I (Iexp) where V is the independent variable. I guess I will need the least square function for that but first how do I ask Matlab to do the iteration and eventually solve the I?
Thank you very much for your help.
Rosemarie diode equation MATLAB Answers — New Questions
Error: output is inferred as a variable-size matrix, but its size is specified as inherited or fixed.
To simplify the question, when I define the size of my output based on a constant input (it won’t change during the simulation), i receive the following error: ‘y’ is inferred as a variable-size matrix, but its size is specified as inherited or fixed. Verify ‘y’ is defined in terms of non-tunable parameters, or select the ‘Variable Size’ check box and specify the upper bounds in the Size box.
Other people had this problem but I couldn’t really find a way to fix it. I can’t select the variable size check box because it lead to other errors. I also don’t have the coder library. I got that in theory this constant value can me modified and then cause problems, but it isn’t my case, I just want to define it when the simulation starts.
function y = fcn(u)
y = zeros(u,1);To simplify the question, when I define the size of my output based on a constant input (it won’t change during the simulation), i receive the following error: ‘y’ is inferred as a variable-size matrix, but its size is specified as inherited or fixed. Verify ‘y’ is defined in terms of non-tunable parameters, or select the ‘Variable Size’ check box and specify the upper bounds in the Size box.
Other people had this problem but I couldn’t really find a way to fix it. I can’t select the variable size check box because it lead to other errors. I also don’t have the coder library. I got that in theory this constant value can me modified and then cause problems, but it isn’t my case, I just want to define it when the simulation starts.
function y = fcn(u)
y = zeros(u,1); To simplify the question, when I define the size of my output based on a constant input (it won’t change during the simulation), i receive the following error: ‘y’ is inferred as a variable-size matrix, but its size is specified as inherited or fixed. Verify ‘y’ is defined in terms of non-tunable parameters, or select the ‘Variable Size’ check box and specify the upper bounds in the Size box.
Other people had this problem but I couldn’t really find a way to fix it. I can’t select the variable size check box because it lead to other errors. I also don’t have the coder library. I got that in theory this constant value can me modified and then cause problems, but it isn’t my case, I just want to define it when the simulation starts.
function y = fcn(u)
y = zeros(u,1); error, simulink, variables, matlab function MATLAB Answers — New Questions
code to sample a signal
x(t)=cos(180*π*t) at sampling rates of 200 and 1500 samples each second. Then plot the graphs.x(t)=cos(180*π*t) at sampling rates of 200 and 1500 samples each second. Then plot the graphs. x(t)=cos(180*π*t) at sampling rates of 200 and 1500 samples each second. Then plot the graphs. sampling MATLAB Answers — New Questions
How to normalize the scale of an image to make it scaling invariant?
I want to make my image to be scaling invariant by normalizing the scale.I want to make my image to be scaling invariant by normalizing the scale. I want to make my image to be scaling invariant by normalizing the scale. scale normalization MATLAB Answers — New Questions
Curve fitting 3d closed surface
I am trying to curve fit a 3d surface. However, I would like to fit a closed 3d surface onto the points I have in 3d space (ie a sphere, ellisoid, whatever it may be). Is there an easy way to do this with Matlab or any toolbox? I’ve seen curve fitting toolbox but it doesn’t look like it would fit a closed 3d surface since the curve fitting looks polynomial based. Thanks in advance.I am trying to curve fit a 3d surface. However, I would like to fit a closed 3d surface onto the points I have in 3d space (ie a sphere, ellisoid, whatever it may be). Is there an easy way to do this with Matlab or any toolbox? I’ve seen curve fitting toolbox but it doesn’t look like it would fit a closed 3d surface since the curve fitting looks polynomial based. Thanks in advance. I am trying to curve fit a 3d surface. However, I would like to fit a closed 3d surface onto the points I have in 3d space (ie a sphere, ellisoid, whatever it may be). Is there an easy way to do this with Matlab or any toolbox? I’ve seen curve fitting toolbox but it doesn’t look like it would fit a closed 3d surface since the curve fitting looks polynomial based. Thanks in advance. curve fitting, 3d plots MATLAB Answers — New Questions
unable to find signing program ‘smimesign’
Hello! I’m trying to set up git according to this article Set Up Git Source Control. After implementing this step "Enable Signing Commits" including,
“`
!git config –global commit.gpgsign true
!git config –global user.signingkey 3AB5C344325645B2
!git config –global gpg.format x509
!git config –global gpg.x509.program smimesign
“`
The error, unable to find signing program ‘smimesign’, take place while I trying to commit. And the error will be solved by command this,
“`
>> !git config –global –unset gpg.x509.program
>> !git config –global –unset gpg.format
>> !git config –global –unset commit.gpgsign
>> !git config –global –unset user.signingkey
“`Hello! I’m trying to set up git according to this article Set Up Git Source Control. After implementing this step "Enable Signing Commits" including,
“`
!git config –global commit.gpgsign true
!git config –global user.signingkey 3AB5C344325645B2
!git config –global gpg.format x509
!git config –global gpg.x509.program smimesign
“`
The error, unable to find signing program ‘smimesign’, take place while I trying to commit. And the error will be solved by command this,
“`
>> !git config –global –unset gpg.x509.program
>> !git config –global –unset gpg.format
>> !git config –global –unset commit.gpgsign
>> !git config –global –unset user.signingkey
“` Hello! I’m trying to set up git according to this article Set Up Git Source Control. After implementing this step "Enable Signing Commits" including,
“`
!git config –global commit.gpgsign true
!git config –global user.signingkey 3AB5C344325645B2
!git config –global gpg.format x509
!git config –global gpg.x509.program smimesign
“`
The error, unable to find signing program ‘smimesign’, take place while I trying to commit. And the error will be solved by command this,
“`
>> !git config –global –unset gpg.x509.program
>> !git config –global –unset gpg.format
>> !git config –global –unset commit.gpgsign
>> !git config –global –unset user.signingkey
“` git, commit MATLAB Answers — New Questions
How do I change the display language of Optimize LIVE Editor task?
Hi, I’m using Optimize LIVE Editor task on Matlab 2022b, and the display language of Matlab on my PC is Chinese.
But the display of Optimize LIVE Editor task is mainly in English and partially in Chinese. I see all—Chinese version of Optimize LIVE Editor task from the internet. How do I change the language to all Chinese? Would appreciate any help!Hi, I’m using Optimize LIVE Editor task on Matlab 2022b, and the display language of Matlab on my PC is Chinese.
But the display of Optimize LIVE Editor task is mainly in English and partially in Chinese. I see all—Chinese version of Optimize LIVE Editor task from the internet. How do I change the language to all Chinese? Would appreciate any help! Hi, I’m using Optimize LIVE Editor task on Matlab 2022b, and the display language of Matlab on my PC is Chinese.
But the display of Optimize LIVE Editor task is mainly in English and partially in Chinese. I see all—Chinese version of Optimize LIVE Editor task from the internet. How do I change the language to all Chinese? Would appreciate any help! display language, matlab, optimization toolbox MATLAB Answers — New Questions
RoadRunner HD Map create
Building a loadrunner hd map in the c++ language.
I have a problem defining the lane boundary, so I would like to ask you a question.
I defined it in terms of coordinates, and it comes out like this..
The solid orange line is the next boundary.
Is there a separate method for designating lane boundary coordinates?
If not, is there any document to refer to?
Do I have to define lanes, boundaries, and signs daily when building hd maps?Building a loadrunner hd map in the c++ language.
I have a problem defining the lane boundary, so I would like to ask you a question.
I defined it in terms of coordinates, and it comes out like this..
The solid orange line is the next boundary.
Is there a separate method for designating lane boundary coordinates?
If not, is there any document to refer to?
Do I have to define lanes, boundaries, and signs daily when building hd maps? Building a loadrunner hd map in the c++ language.
I have a problem defining the lane boundary, so I would like to ask you a question.
I defined it in terms of coordinates, and it comes out like this..
The solid orange line is the next boundary.
Is there a separate method for designating lane boundary coordinates?
If not, is there any document to refer to?
Do I have to define lanes, boundaries, and signs daily when building hd maps? roadrunner, hdmap, custom, custom data using, c++ MATLAB Answers — New Questions
Why can’t I receive the signal data normally when I use the CAN Receive block
These are my test configurations:
Results below:
Sample Time: 0.01
Fixed Step DiscreteThese are my test configurations:
Results below:
Sample Time: 0.01
Fixed Step Discrete These are my test configurations:
Results below:
Sample Time: 0.01
Fixed Step Discrete can, protocol, simulink MATLAB Answers — New Questions
App designer Locks me out of editing things I need to change
I should be able to edit comments or add a comment at the top of an app created
% Button pushed function: SavingFolderButton
function SavingFolderButtonPushed(app, event)
% Set up the folder and files for output
% Have user browse for a file, from a specified "starting folder."
This is just ugly
2. I accidently got a ‘state’ button when I dragged the push button icon to my design view I have no idea how or when that happened:
% Create RandomizeTrialsButton
app.RandomizeTrialsButton = uibutton(app.TrialsListInput, ‘state’);
Now I can’t change it back to ‘push’ by editing the Creator. Is there some other magic place I can do that?
Thanks,I should be able to edit comments or add a comment at the top of an app created
% Button pushed function: SavingFolderButton
function SavingFolderButtonPushed(app, event)
% Set up the folder and files for output
% Have user browse for a file, from a specified "starting folder."
This is just ugly
2. I accidently got a ‘state’ button when I dragged the push button icon to my design view I have no idea how or when that happened:
% Create RandomizeTrialsButton
app.RandomizeTrialsButton = uibutton(app.TrialsListInput, ‘state’);
Now I can’t change it back to ‘push’ by editing the Creator. Is there some other magic place I can do that?
Thanks, I should be able to edit comments or add a comment at the top of an app created
% Button pushed function: SavingFolderButton
function SavingFolderButtonPushed(app, event)
% Set up the folder and files for output
% Have user browse for a file, from a specified "starting folder."
This is just ugly
2. I accidently got a ‘state’ button when I dragged the push button icon to my design view I have no idea how or when that happened:
% Create RandomizeTrialsButton
app.RandomizeTrialsButton = uibutton(app.TrialsListInput, ‘state’);
Now I can’t change it back to ‘push’ by editing the Creator. Is there some other magic place I can do that?
Thanks, state to push MATLAB Answers — New Questions
uigetfile() goes behind main figure
Hi,
uigetfile(), I think, creates a new figure; it has no parent argument. A number of people complained that its dialog window has unexpeced bahaviour in terms of appearance and focus.
I’m calling it from my main figure (created programmatically with uifigure). The uigetfile() dialog opens as a child of MATLAB window, and NOT as a child of my GUI app which is actually calling it. I.e. it opens behind the main app (problem #1); you need to click on Matlab icon to see this dialog, then, once you select file(s) the focus remains with Matlab window, then, to come back to your app (problem #2), again, manually click on your app to give it the focus.
I found one workaround which seems failing in 2021b on Mac–the dialog still opens behind the main calling app:
f2 = figure(‘Visible’,’off’); % create a dummy figure
drawnow; % give it a focus
[file, path] = uigetfile(…); % call this stubborn thing
delete(f2); % delete dummy
% the above does not work on Mac
% then the 2nd workaround, to give focus back to the calling main fig
% it works fine
drawnow;
figure(f); % f is a handle of the main fig, created with uifigure()
Anybody can help to open this dialog on top of the main app?
I’m on MacOS Monterey. It could be OS dependant, I’m afraid.
The thing is: the new figure is spawned inside uigetfile(), and currently uigetfile() has no way to explicitly mention the parent, therefore, I believe it is Java/OS who decides on the ancestor. And at least on Mac it decides to open it in the main Matlab window. Maybe the dummy figure workaround works on Win (or there is no problem #1 on Win in the first place). One can work with Java window manager to change the focus, but this needs to be done right after the appearance of the dialog, i.e. inside the uigetfile(), not before or after its call.
Eventually, I want to compile the app to a standalone. Thus, there will be no Matlab main window. Maybe then it will behave better. What I’m hearing from others is that this appearance/focus behavior is not consitent between App-Design-created vs programmatical, compiled vs in-Matlab, and diff versions.
ThanksHi,
uigetfile(), I think, creates a new figure; it has no parent argument. A number of people complained that its dialog window has unexpeced bahaviour in terms of appearance and focus.
I’m calling it from my main figure (created programmatically with uifigure). The uigetfile() dialog opens as a child of MATLAB window, and NOT as a child of my GUI app which is actually calling it. I.e. it opens behind the main app (problem #1); you need to click on Matlab icon to see this dialog, then, once you select file(s) the focus remains with Matlab window, then, to come back to your app (problem #2), again, manually click on your app to give it the focus.
I found one workaround which seems failing in 2021b on Mac–the dialog still opens behind the main calling app:
f2 = figure(‘Visible’,’off’); % create a dummy figure
drawnow; % give it a focus
[file, path] = uigetfile(…); % call this stubborn thing
delete(f2); % delete dummy
% the above does not work on Mac
% then the 2nd workaround, to give focus back to the calling main fig
% it works fine
drawnow;
figure(f); % f is a handle of the main fig, created with uifigure()
Anybody can help to open this dialog on top of the main app?
I’m on MacOS Monterey. It could be OS dependant, I’m afraid.
The thing is: the new figure is spawned inside uigetfile(), and currently uigetfile() has no way to explicitly mention the parent, therefore, I believe it is Java/OS who decides on the ancestor. And at least on Mac it decides to open it in the main Matlab window. Maybe the dummy figure workaround works on Win (or there is no problem #1 on Win in the first place). One can work with Java window manager to change the focus, but this needs to be done right after the appearance of the dialog, i.e. inside the uigetfile(), not before or after its call.
Eventually, I want to compile the app to a standalone. Thus, there will be no Matlab main window. Maybe then it will behave better. What I’m hearing from others is that this appearance/focus behavior is not consitent between App-Design-created vs programmatical, compiled vs in-Matlab, and diff versions.
Thanks Hi,
uigetfile(), I think, creates a new figure; it has no parent argument. A number of people complained that its dialog window has unexpeced bahaviour in terms of appearance and focus.
I’m calling it from my main figure (created programmatically with uifigure). The uigetfile() dialog opens as a child of MATLAB window, and NOT as a child of my GUI app which is actually calling it. I.e. it opens behind the main app (problem #1); you need to click on Matlab icon to see this dialog, then, once you select file(s) the focus remains with Matlab window, then, to come back to your app (problem #2), again, manually click on your app to give it the focus.
I found one workaround which seems failing in 2021b on Mac–the dialog still opens behind the main calling app:
f2 = figure(‘Visible’,’off’); % create a dummy figure
drawnow; % give it a focus
[file, path] = uigetfile(…); % call this stubborn thing
delete(f2); % delete dummy
% the above does not work on Mac
% then the 2nd workaround, to give focus back to the calling main fig
% it works fine
drawnow;
figure(f); % f is a handle of the main fig, created with uifigure()
Anybody can help to open this dialog on top of the main app?
I’m on MacOS Monterey. It could be OS dependant, I’m afraid.
The thing is: the new figure is spawned inside uigetfile(), and currently uigetfile() has no way to explicitly mention the parent, therefore, I believe it is Java/OS who decides on the ancestor. And at least on Mac it decides to open it in the main Matlab window. Maybe the dummy figure workaround works on Win (or there is no problem #1 on Win in the first place). One can work with Java window manager to change the focus, but this needs to be done right after the appearance of the dialog, i.e. inside the uigetfile(), not before or after its call.
Eventually, I want to compile the app to a standalone. Thus, there will be no Matlab main window. Maybe then it will behave better. What I’m hearing from others is that this appearance/focus behavior is not consitent between App-Design-created vs programmatical, compiled vs in-Matlab, and diff versions.
Thanks uigetfile, uifigure, focus MATLAB Answers — New Questions
matlab compiled application crashes after macos signing
I am trying to compile the mac os (ARM) application and get it signed using instructions from this.
My application works fine before signing, but after signing, it crashes during the start.
Stack Trace (from fault):
[ 0] 0x0000000101746ca0 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00011424 _ZN10foundation4core4diag15stacktrace_base7captureERKNS1_14thread_contextEm+00000064
[ 1] 0x0000000101749b68 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00023400 _ZN10foundation4core4test17terminate_handledERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE+00002144
[ 2] 0x0000000101749028 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00020520 _ZN10foundation4core4diag13terminate_logEPKcPK17__darwin_ucontext+00000140
[ 3] 0x0000000104661de0 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00482784 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00011892
[ 4] 0x000000010465fc80 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00474240 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00003348
[ 5] 0x000000010465d720 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00464672 mnFatalSignalHandler+00000140
[ 6] 0x000000019eb57584 /usr/lib/system/libsystem_platform.dylib+00017796 _sigtramp+00000056
[ 7] 0x000000012599351c /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+07222556 _ZN7Threads9create_vmEP14JavaVMInitArgsPb+00000096
[ 8] 0x000000012599351c /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+07222556 _ZN7Threads9create_vmEP14JavaVMInitArgsPb+00000096
[ 9] 0x00000001256406d4 /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+03737300 JNI_CreateJavaVM+00000120
[ 10] 0x000000010e780814 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00395284 _Z9InitSunVMRKN7mwboost8optionalINSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEEEE+00001392
[ 11] 0x000000010e783b8c /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00408460 _Z16InitJavaExtendedbRKN8services6config14JmiInitOptionsE+00000372
[ 12] 0x000000010e74bfe4 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00180196 _Z15mljInitExtendedRKN8services6config14JmiInitOptionsE+00000044
[ 13] 0x0000000123398054 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/matlab_startup_plugins/jmi/mwjmiloader.dylib+00016468 _ZN9jmiloader15createJmiLoaderEN16cppmicroservices13BundleContextE+00006044
[ 14] 0x000000010462fd30 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00277808 _ZN3mcr7runtime9jmi_proxy7mljInitEv+00000244
[ 15] 0x0000000104625f24 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00237348 _Z15mcr_initialize0PKDsPS0_RKN7mwboost10shared_ptrIN10foundation7msg_svc8eventmgr8EventMgrEEEN6mlutil10contextmgr5MvmIDE+00002952
[ 16] 0x0000000104641cc4 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00351428 _ZN3tbb10interface519concurrent_hash_mapIlP11mcrInstanceNS_16tbb_hash_compareIlEENS_13tbb_allocatorINSt3__14pairIKlS3_EEEEE28allocate_node_move_constructERNS6_INSC_4nodeEEERS9_PKS3_+00002452
[ 17] 0x000000010461a03c /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00188476 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__18functionIFvvEEENS2_7promiseIvEE+00000348
[ 18] 0x000000010461b908 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00194824 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__18functionIFvvEEENS2_7promiseIvEE+00006696
[ 19] 0x0000000100abe868 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwboost_thread.dylib+00010344 _ZN7mwboost6thread21start_thread_noexceptEv+00000444
[ 20] 0x000000019eb26f94 /usr/lib/system/libsystem_pthread.dylib+00028564 _pthread_start+00000136
[ 21] 0x000000019eb21d34 /usr/lib/system/libsystem_pthread.dylib+00007476 thread_start+00000008
I tried reinstalling Amazon Corretto and updating Matlab to the latest version, but nothing worked.
I tried using the most basic applications with no code, even if it was crashing.
Attached is the code, compiled unsigned application, logs, crash dump, and entitlements file.I am trying to compile the mac os (ARM) application and get it signed using instructions from this.
My application works fine before signing, but after signing, it crashes during the start.
Stack Trace (from fault):
[ 0] 0x0000000101746ca0 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00011424 _ZN10foundation4core4diag15stacktrace_base7captureERKNS1_14thread_contextEm+00000064
[ 1] 0x0000000101749b68 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00023400 _ZN10foundation4core4test17terminate_handledERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE+00002144
[ 2] 0x0000000101749028 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00020520 _ZN10foundation4core4diag13terminate_logEPKcPK17__darwin_ucontext+00000140
[ 3] 0x0000000104661de0 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00482784 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00011892
[ 4] 0x000000010465fc80 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00474240 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00003348
[ 5] 0x000000010465d720 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00464672 mnFatalSignalHandler+00000140
[ 6] 0x000000019eb57584 /usr/lib/system/libsystem_platform.dylib+00017796 _sigtramp+00000056
[ 7] 0x000000012599351c /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+07222556 _ZN7Threads9create_vmEP14JavaVMInitArgsPb+00000096
[ 8] 0x000000012599351c /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+07222556 _ZN7Threads9create_vmEP14JavaVMInitArgsPb+00000096
[ 9] 0x00000001256406d4 /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+03737300 JNI_CreateJavaVM+00000120
[ 10] 0x000000010e780814 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00395284 _Z9InitSunVMRKN7mwboost8optionalINSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEEEE+00001392
[ 11] 0x000000010e783b8c /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00408460 _Z16InitJavaExtendedbRKN8services6config14JmiInitOptionsE+00000372
[ 12] 0x000000010e74bfe4 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00180196 _Z15mljInitExtendedRKN8services6config14JmiInitOptionsE+00000044
[ 13] 0x0000000123398054 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/matlab_startup_plugins/jmi/mwjmiloader.dylib+00016468 _ZN9jmiloader15createJmiLoaderEN16cppmicroservices13BundleContextE+00006044
[ 14] 0x000000010462fd30 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00277808 _ZN3mcr7runtime9jmi_proxy7mljInitEv+00000244
[ 15] 0x0000000104625f24 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00237348 _Z15mcr_initialize0PKDsPS0_RKN7mwboost10shared_ptrIN10foundation7msg_svc8eventmgr8EventMgrEEEN6mlutil10contextmgr5MvmIDE+00002952
[ 16] 0x0000000104641cc4 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00351428 _ZN3tbb10interface519concurrent_hash_mapIlP11mcrInstanceNS_16tbb_hash_compareIlEENS_13tbb_allocatorINSt3__14pairIKlS3_EEEEE28allocate_node_move_constructERNS6_INSC_4nodeEEERS9_PKS3_+00002452
[ 17] 0x000000010461a03c /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00188476 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__18functionIFvvEEENS2_7promiseIvEE+00000348
[ 18] 0x000000010461b908 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00194824 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__18functionIFvvEEENS2_7promiseIvEE+00006696
[ 19] 0x0000000100abe868 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwboost_thread.dylib+00010344 _ZN7mwboost6thread21start_thread_noexceptEv+00000444
[ 20] 0x000000019eb26f94 /usr/lib/system/libsystem_pthread.dylib+00028564 _pthread_start+00000136
[ 21] 0x000000019eb21d34 /usr/lib/system/libsystem_pthread.dylib+00007476 thread_start+00000008
I tried reinstalling Amazon Corretto and updating Matlab to the latest version, but nothing worked.
I tried using the most basic applications with no code, even if it was crashing.
Attached is the code, compiled unsigned application, logs, crash dump, and entitlements file. I am trying to compile the mac os (ARM) application and get it signed using instructions from this.
My application works fine before signing, but after signing, it crashes during the start.
Stack Trace (from fault):
[ 0] 0x0000000101746ca0 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00011424 _ZN10foundation4core4diag15stacktrace_base7captureERKNS1_14thread_contextEm+00000064
[ 1] 0x0000000101749b68 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00023400 _ZN10foundation4core4test17terminate_handledERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE+00002144
[ 2] 0x0000000101749028 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00020520 _ZN10foundation4core4diag13terminate_logEPKcPK17__darwin_ucontext+00000140
[ 3] 0x0000000104661de0 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00482784 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00011892
[ 4] 0x000000010465fc80 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00474240 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00003348
[ 5] 0x000000010465d720 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00464672 mnFatalSignalHandler+00000140
[ 6] 0x000000019eb57584 /usr/lib/system/libsystem_platform.dylib+00017796 _sigtramp+00000056
[ 7] 0x000000012599351c /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+07222556 _ZN7Threads9create_vmEP14JavaVMInitArgsPb+00000096
[ 8] 0x000000012599351c /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+07222556 _ZN7Threads9create_vmEP14JavaVMInitArgsPb+00000096
[ 9] 0x00000001256406d4 /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+03737300 JNI_CreateJavaVM+00000120
[ 10] 0x000000010e780814 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00395284 _Z9InitSunVMRKN7mwboost8optionalINSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEEEE+00001392
[ 11] 0x000000010e783b8c /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00408460 _Z16InitJavaExtendedbRKN8services6config14JmiInitOptionsE+00000372
[ 12] 0x000000010e74bfe4 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00180196 _Z15mljInitExtendedRKN8services6config14JmiInitOptionsE+00000044
[ 13] 0x0000000123398054 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/matlab_startup_plugins/jmi/mwjmiloader.dylib+00016468 _ZN9jmiloader15createJmiLoaderEN16cppmicroservices13BundleContextE+00006044
[ 14] 0x000000010462fd30 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00277808 _ZN3mcr7runtime9jmi_proxy7mljInitEv+00000244
[ 15] 0x0000000104625f24 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00237348 _Z15mcr_initialize0PKDsPS0_RKN7mwboost10shared_ptrIN10foundation7msg_svc8eventmgr8EventMgrEEEN6mlutil10contextmgr5MvmIDE+00002952
[ 16] 0x0000000104641cc4 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00351428 _ZN3tbb10interface519concurrent_hash_mapIlP11mcrInstanceNS_16tbb_hash_compareIlEENS_13tbb_allocatorINSt3__14pairIKlS3_EEEEE28allocate_node_move_constructERNS6_INSC_4nodeEEERS9_PKS3_+00002452
[ 17] 0x000000010461a03c /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00188476 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__18functionIFvvEEENS2_7promiseIvEE+00000348
[ 18] 0x000000010461b908 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00194824 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__18functionIFvvEEENS2_7promiseIvEE+00006696
[ 19] 0x0000000100abe868 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwboost_thread.dylib+00010344 _ZN7mwboost6thread21start_thread_noexceptEv+00000444
[ 20] 0x000000019eb26f94 /usr/lib/system/libsystem_pthread.dylib+00028564 _pthread_start+00000136
[ 21] 0x000000019eb21d34 /usr/lib/system/libsystem_pthread.dylib+00007476 thread_start+00000008
I tried reinstalling Amazon Corretto and updating Matlab to the latest version, but nothing worked.
I tried using the most basic applications with no code, even if it was crashing.
Attached is the code, compiled unsigned application, logs, crash dump, and entitlements file. matlab compiler, mac, arm, signing, apple, application MATLAB Answers — New Questions
About the solution type in OOPs OnRamp course in Matlab
There is one particular course in Matlab called OOPs OnRamp which is really hard to solve even with the help of the solutions nearby. I feel that it is because of the file format. In that course, we are to type our solutions in different files and run them seperately and finally solve them which is really difficult for me and many of my friends. Is there any explanation for the course to solve? All the lessons in that course is hard to do.There is one particular course in Matlab called OOPs OnRamp which is really hard to solve even with the help of the solutions nearby. I feel that it is because of the file format. In that course, we are to type our solutions in different files and run them seperately and finally solve them which is really difficult for me and many of my friends. Is there any explanation for the course to solve? All the lessons in that course is hard to do. There is one particular course in Matlab called OOPs OnRamp which is really hard to solve even with the help of the solutions nearby. I feel that it is because of the file format. In that course, we are to type our solutions in different files and run them seperately and finally solve them which is really difficult for me and many of my friends. Is there any explanation for the course to solve? All the lessons in that course is hard to do. oops onramp, object-oriented programming onramp MATLAB Answers — New Questions
Why do not the Select part table display in the Block Parameterization Manager: Battery?
I want to select the Panasonic NCA593446 battery for Battery (Table-Based) block in my model and the Select part table don’t display anything in the Block Parameterization Manager: Battery. Please tell me how to fix this problem.I want to select the Panasonic NCA593446 battery for Battery (Table-Based) block in my model and the Select part table don’t display anything in the Block Parameterization Manager: Battery. Please tell me how to fix this problem. I want to select the Panasonic NCA593446 battery for Battery (Table-Based) block in my model and the Select part table don’t display anything in the Block Parameterization Manager: Battery. Please tell me how to fix this problem. battery, block parameterization manager MATLAB Answers — New Questions
Error encountered in the Deep Signal Anomaly detector while running the official SIMULINK example
Hi all,
I am runnining this official Simulink example here: fault_localization in 3-phase power line.
I had a somewhat different circuit and thus I trained a new model following this guideline. However, after training my deep anamoly detector and while trying to apply this trained model to my detection model, I keep getting this error as shown in this screenshot:
Any suggestions on how to fix this? I’m pretty sure I used the
saveModel
command to save the parameters of my trained model. It looks like the model parameters file in the provided example works here, but mine wouldn’t work. I spent quite some time on this but still haven’t figured out a solution.Hi all,
I am runnining this official Simulink example here: fault_localization in 3-phase power line.
I had a somewhat different circuit and thus I trained a new model following this guideline. However, after training my deep anamoly detector and while trying to apply this trained model to my detection model, I keep getting this error as shown in this screenshot:
Any suggestions on how to fix this? I’m pretty sure I used the
saveModel
command to save the parameters of my trained model. It looks like the model parameters file in the provided example works here, but mine wouldn’t work. I spent quite some time on this but still haven’t figured out a solution. Hi all,
I am runnining this official Simulink example here: fault_localization in 3-phase power line.
I had a somewhat different circuit and thus I trained a new model following this guideline. However, after training my deep anamoly detector and while trying to apply this trained model to my detection model, I keep getting this error as shown in this screenshot:
Any suggestions on how to fix this? I’m pretty sure I used the
saveModel
command to save the parameters of my trained model. It looks like the model parameters file in the provided example works here, but mine wouldn’t work. I spent quite some time on this but still haven’t figured out a solution. deep learning, simulink MATLAB Answers — New Questions
Unexpected behavior resulting from the Three-Phase-Fault block in my simulated circuit (Simulink)
Hi all,
I am simulating a circuit with a 3-phase fault inserted as shown here:
My goal is to simulate the fault at different locations by varying the length of the Distributed Parameters Line blocks many many times, and then collect the 3-phase voltage + current data for training a deep neural network for fault localization. Thus, I used an external control signal to somewhat randomly switch on and off the three-phase-fault block as shown here:
Where SysModel is the one I just showed earlier.
However, the weird thing happens. The external control signal to the 3-phase-fault occurs at around 0.01 second (determined by the pulse generator and delay), and lasts for 0.01 seconds. But the resulting 3-phase voltage and currents in the Time Scope look like this:
this does not make sense because:
There is no transient resposne in the currents at all
The transient response in the voltages should die out shortly after 0.02, but somehow it automatically turns up again toward the end of the simulation.
Here is the time scope for the external control signal that’s going into the 3-phase-fault block (From "Composite Signal 1" in the previous screenshot):
In addition, I am using the following settings for the Distributed Parameters Line blocks:
I’d greatly appreciate any help!Hi all,
I am simulating a circuit with a 3-phase fault inserted as shown here:
My goal is to simulate the fault at different locations by varying the length of the Distributed Parameters Line blocks many many times, and then collect the 3-phase voltage + current data for training a deep neural network for fault localization. Thus, I used an external control signal to somewhat randomly switch on and off the three-phase-fault block as shown here:
Where SysModel is the one I just showed earlier.
However, the weird thing happens. The external control signal to the 3-phase-fault occurs at around 0.01 second (determined by the pulse generator and delay), and lasts for 0.01 seconds. But the resulting 3-phase voltage and currents in the Time Scope look like this:
this does not make sense because:
There is no transient resposne in the currents at all
The transient response in the voltages should die out shortly after 0.02, but somehow it automatically turns up again toward the end of the simulation.
Here is the time scope for the external control signal that’s going into the 3-phase-fault block (From "Composite Signal 1" in the previous screenshot):
In addition, I am using the following settings for the Distributed Parameters Line blocks:
I’d greatly appreciate any help! Hi all,
I am simulating a circuit with a 3-phase fault inserted as shown here:
My goal is to simulate the fault at different locations by varying the length of the Distributed Parameters Line blocks many many times, and then collect the 3-phase voltage + current data for training a deep neural network for fault localization. Thus, I used an external control signal to somewhat randomly switch on and off the three-phase-fault block as shown here:
Where SysModel is the one I just showed earlier.
However, the weird thing happens. The external control signal to the 3-phase-fault occurs at around 0.01 second (determined by the pulse generator and delay), and lasts for 0.01 seconds. But the resulting 3-phase voltage and currents in the Time Scope look like this:
this does not make sense because:
There is no transient resposne in the currents at all
The transient response in the voltages should die out shortly after 0.02, but somehow it automatically turns up again toward the end of the simulation.
Here is the time scope for the external control signal that’s going into the 3-phase-fault block (From "Composite Signal 1" in the previous screenshot):
In addition, I am using the following settings for the Distributed Parameters Line blocks:
I’d greatly appreciate any help! simulink, simscape, circuits MATLAB Answers — New Questions
Why isn’t the 5G toolbox available for students/home users?
I have recently downloaded Matlab 2021b but I am unable to download the 5G toolbox for some unknown reason.
Thanks, BettyI have recently downloaded Matlab 2021b but I am unable to download the 5G toolbox for some unknown reason.
Thanks, Betty I have recently downloaded Matlab 2021b but I am unable to download the 5G toolbox for some unknown reason.
Thanks, Betty 5g toolbox MATLAB Answers — New Questions
In the Simulink, Model settings there is no Coverage option and no Requirement option in Matlab Simulink R2023b
Firstly, In the Simulink, Model settings there is no ‘Coverage’ option for me.
Second, Under APPS Tab in Simulink, I cannot find ‘Requirement Manager’ option. Also When I want to add requirement by copying the description and right-click the subsytem to add requirement, the requirement option is faded out(not clickable).
Using Matlab Simulink R2023b (using student version).Firstly, In the Simulink, Model settings there is no ‘Coverage’ option for me.
Second, Under APPS Tab in Simulink, I cannot find ‘Requirement Manager’ option. Also When I want to add requirement by copying the description and right-click the subsytem to add requirement, the requirement option is faded out(not clickable).
Using Matlab Simulink R2023b (using student version). Firstly, In the Simulink, Model settings there is no ‘Coverage’ option for me.
Second, Under APPS Tab in Simulink, I cannot find ‘Requirement Manager’ option. Also When I want to add requirement by copying the description and right-click the subsytem to add requirement, the requirement option is faded out(not clickable).
Using Matlab Simulink R2023b (using student version). coverage, matlab, simulink, requirement MATLAB Answers — New Questions