Category: Matlab
Category Archives: Matlab
Leader follower approach formation control problem
Hello everyone, I’m Enrica. For a university project I have a task consisting on modeling on simulink three robots of which one leader and two followers. In the first scenario the robot has to follow a linear trajectory while in the second one the trajectory to follow is circular. In both scenarios the robots must start from different positions. For what concern the initial position of the robots, through the delay present in the loops, I tried to set the initial conditions inside the delay block but there is something that doesn’t work. The robots are described through a space-state block on both x and y axes and they are controlled by two different discrete PID, the internal one controls the velocity (that must be mantained constant) while the external one regulates the position. I tried to model the trajectories using the matlab function block and I tuned the PID with the "tune" button. Plotting the robots on the XY graph they don’t follow each other and I’m not able to identify where is the problem, if it’s related to the structure and connections of the simulink scheme or if it’s related to the space-state block or PID settinggs.
For a better understanding, attached you can find simulink and matlab codes (matlab versione R2023A).
Thank you to those who can help meHello everyone, I’m Enrica. For a university project I have a task consisting on modeling on simulink three robots of which one leader and two followers. In the first scenario the robot has to follow a linear trajectory while in the second one the trajectory to follow is circular. In both scenarios the robots must start from different positions. For what concern the initial position of the robots, through the delay present in the loops, I tried to set the initial conditions inside the delay block but there is something that doesn’t work. The robots are described through a space-state block on both x and y axes and they are controlled by two different discrete PID, the internal one controls the velocity (that must be mantained constant) while the external one regulates the position. I tried to model the trajectories using the matlab function block and I tuned the PID with the "tune" button. Plotting the robots on the XY graph they don’t follow each other and I’m not able to identify where is the problem, if it’s related to the structure and connections of the simulink scheme or if it’s related to the space-state block or PID settinggs.
For a better understanding, attached you can find simulink and matlab codes (matlab versione R2023A).
Thank you to those who can help me Hello everyone, I’m Enrica. For a university project I have a task consisting on modeling on simulink three robots of which one leader and two followers. In the first scenario the robot has to follow a linear trajectory while in the second one the trajectory to follow is circular. In both scenarios the robots must start from different positions. For what concern the initial position of the robots, through the delay present in the loops, I tried to set the initial conditions inside the delay block but there is something that doesn’t work. The robots are described through a space-state block on both x and y axes and they are controlled by two different discrete PID, the internal one controls the velocity (that must be mantained constant) while the external one regulates the position. I tried to model the trajectories using the matlab function block and I tuned the PID with the "tune" button. Plotting the robots on the XY graph they don’t follow each other and I’m not able to identify where is the problem, if it’s related to the structure and connections of the simulink scheme or if it’s related to the space-state block or PID settinggs.
For a better understanding, attached you can find simulink and matlab codes (matlab versione R2023A).
Thank you to those who can help me simulink MATLAB Answers — New Questions
where can i find help for simulink models
Hello,
i have a question about simulink in matlab. I am working on my thesis for my uni for which i created a boat navigation system and i want to simulate that system in simulink to tune my pid. In this system there is a gps receiver, an arduino and the rudder component (which is the actuator, the speed is constant). I also have the code required to operate the system. Are there any premade gps objects/models that i can find without purchasing extra toolboxes for matlab? And if there arent, where should i start as a begginer of simulink? All i find is models that i dont understand what they do or how they work.Hello,
i have a question about simulink in matlab. I am working on my thesis for my uni for which i created a boat navigation system and i want to simulate that system in simulink to tune my pid. In this system there is a gps receiver, an arduino and the rudder component (which is the actuator, the speed is constant). I also have the code required to operate the system. Are there any premade gps objects/models that i can find without purchasing extra toolboxes for matlab? And if there arent, where should i start as a begginer of simulink? All i find is models that i dont understand what they do or how they work. Hello,
i have a question about simulink in matlab. I am working on my thesis for my uni for which i created a boat navigation system and i want to simulate that system in simulink to tune my pid. In this system there is a gps receiver, an arduino and the rudder component (which is the actuator, the speed is constant). I also have the code required to operate the system. Are there any premade gps objects/models that i can find without purchasing extra toolboxes for matlab? And if there arent, where should i start as a begginer of simulink? All i find is models that i dont understand what they do or how they work. gps, simulation MATLAB Answers — New Questions
Relative/ Absolute path in Baseline Text
Is it possible to use relative path instead of absolute when adding baseline criteria?Is it possible to use relative path instead of absolute when adding baseline criteria? Is it possible to use relative path instead of absolute when adding baseline criteria? baseline, relative path MATLAB Answers — New Questions
parpool memory allocation per worker
Hello, I’m learning to submit batch jobs on SLURM. Realistically, I can request at most
#SBATCH -n 32
#SBATCH –mem-per-cpu=4G
In other words, I can request 32 cores and 128G of memory.
Now, I want to run a global optimization function (MultiStart) in parallel. Currently, I set the number of workers in parpool to be 32 (equal to the number of cores), but I constantly run into out of memory.
I’m curious if setting the number of workers in parpool to be, say, 16 can resolve this issue. If I’m not mistaken, if I set the number of workers in parpool to be 32, each worker has at most 4G of memory to use, whereas if I set the number of workers in parpool to be 16, each worker has at most 8G of memory to use.
I’d be grateful if you can correct me, or confirm what I wrote. Obviously, I can just try, but the problem is it takes a long time to get out of the queue, and the optimization itself takes days, so I want to make sure what I try makes sense before submitting.
Next, assuming what I wrote makes sense, what happens if I set the number of workers in parpool to be, say, 20, so 32/20 = 1.6 is not an integer.
Thank you for your guidance.Hello, I’m learning to submit batch jobs on SLURM. Realistically, I can request at most
#SBATCH -n 32
#SBATCH –mem-per-cpu=4G
In other words, I can request 32 cores and 128G of memory.
Now, I want to run a global optimization function (MultiStart) in parallel. Currently, I set the number of workers in parpool to be 32 (equal to the number of cores), but I constantly run into out of memory.
I’m curious if setting the number of workers in parpool to be, say, 16 can resolve this issue. If I’m not mistaken, if I set the number of workers in parpool to be 32, each worker has at most 4G of memory to use, whereas if I set the number of workers in parpool to be 16, each worker has at most 8G of memory to use.
I’d be grateful if you can correct me, or confirm what I wrote. Obviously, I can just try, but the problem is it takes a long time to get out of the queue, and the optimization itself takes days, so I want to make sure what I try makes sense before submitting.
Next, assuming what I wrote makes sense, what happens if I set the number of workers in parpool to be, say, 20, so 32/20 = 1.6 is not an integer.
Thank you for your guidance. Hello, I’m learning to submit batch jobs on SLURM. Realistically, I can request at most
#SBATCH -n 32
#SBATCH –mem-per-cpu=4G
In other words, I can request 32 cores and 128G of memory.
Now, I want to run a global optimization function (MultiStart) in parallel. Currently, I set the number of workers in parpool to be 32 (equal to the number of cores), but I constantly run into out of memory.
I’m curious if setting the number of workers in parpool to be, say, 16 can resolve this issue. If I’m not mistaken, if I set the number of workers in parpool to be 32, each worker has at most 4G of memory to use, whereas if I set the number of workers in parpool to be 16, each worker has at most 8G of memory to use.
I’d be grateful if you can correct me, or confirm what I wrote. Obviously, I can just try, but the problem is it takes a long time to get out of the queue, and the optimization itself takes days, so I want to make sure what I try makes sense before submitting.
Next, assuming what I wrote makes sense, what happens if I set the number of workers in parpool to be, say, 20, so 32/20 = 1.6 is not an integer.
Thank you for your guidance. parpool, numworkers, memory MATLAB Answers — New Questions
In the NewMaze function, get the text of the selected branching mode and use it as the second input to the amaze function.
In the NewMaze function, get the text of the selected branching mode and use it as the second input to the amaze function. In these que, in code view iam writing the correct still it shows "Does the NewMaze callback use the value from the branching mode button group?" What to do now??In the NewMaze function, get the text of the selected branching mode and use it as the second input to the amaze function. In these que, in code view iam writing the correct still it shows "Does the NewMaze callback use the value from the branching mode button group?" What to do now?? In the NewMaze function, get the text of the selected branching mode and use it as the second input to the amaze function. In these que, in code view iam writing the correct still it shows "Does the NewMaze callback use the value from the branching mode button group?" What to do now?? newmaze MATLAB Answers — New Questions
unable to add state in model
how to resolve below error?
Getting error on adding state: missing enumeration for statehow to resolve below error?
Getting error on adding state: missing enumeration for state how to resolve below error?
Getting error on adding state: missing enumeration for state stateflow MATLAB Answers — New Questions
can someone explain this error?
Unrecognized method, property, or field ‘CurrentFileIndex’ for class ‘matlab.io.datastore.CombinedDatastore’.
Error in snake (line 41)
if allImages.CurrentFileIndex <= height(aplostisiImages.Files)Unrecognized method, property, or field ‘CurrentFileIndex’ for class ‘matlab.io.datastore.CombinedDatastore’.
Error in snake (line 41)
if allImages.CurrentFileIndex <= height(aplostisiImages.Files) Unrecognized method, property, or field ‘CurrentFileIndex’ for class ‘matlab.io.datastore.CombinedDatastore’.
Error in snake (line 41)
if allImages.CurrentFileIndex <= height(aplostisiImages.Files) image processing, data acquisition MATLAB Answers — New Questions
Same error values are copied for different input parameters when using MATLAB Experiment Manager
I am trying to run the find gains for PID controller for a powertrain using genetic algorithm. In order to find optimal generations and populations of the genetic algorithm I run almost 1600 experminets in which the following parameters change. So, the input of the model is a WLTP drive cycle (1800s) long. I want to see if I train the Genetic Algorithm on only 30s and find the gains and then using those gains run the whole cycle to calculate the error.
But when I run the experiment I get the same error for all the 3 times with same population and generation combinantion:
However, when i check the simulink model the gains are different for each iteration which means the errors are somehow not updated in the table. I have tried different changes in the code but noting works. Here is the code, if someone could suggest some improvements:
function [mean_abs_error] = Experiment2Function1(params)
tend = params.time;
% Measure the current time before running the simulation
start_simulation_time = tic;
no_var = 2;
lb = [params.lbP params.lbI];
ub = [params.ubP params.ubI];
%GA options
ga_opt = optimoptions(‘ga’,’Display’,’off’,’Generations’,params.generations,’PopulationSize’,params.population,’PlotFcns’,@gaplotbestf);
obj_fn = @(k) optimization_PID(k);
%GA Command
[k, best] = ga((obj_fn),no_var,[],[],[],[],lb,ub,[],ga_opt)
% Measure the simulation time
simulation_time = toc(start_simulation_time);
%%
% Calculate Error
tend = 1800;
sim("Model1.slx")
driveCycleTime = DriveCycle(:,1);
driveCycleSpeed = DriveCycle(:,2);
index1800s = driveCycleTime <= tend;
driveCycle1800s = [driveCycleTime(index1800s), driveCycleSpeed(index1800s)];
% Extract the simulated result for the first 1800 seconds
simulatedTime = tout(tout <= tend);
simulatedSpeed = v_act_lim(tout <= tend);
% Interpolate the simulated result to match the drive cycle time points
simulatedSpeedInterp = interp1(simulatedTime, simulatedSpeed, driveCycle1800s(:, 1), ‘linear’);
% Calculate and plot the error
error = (driveCycle1800s(:, 2) – simulatedSpeedInterp)./ driveCycle1800s(:,2)*100;
abs_error = abs(error);
% Exclude Infinite Values
validIndices = isfinite(abs_error);
validAbsError = abs_error(validIndices);
mean_abs_error = mean(validAbsError)
end
The objective function is as follows:
function cost = optimization_PID(k)
assignin("base", "k", k);
sim("Model1.slx");
itae_values = ITAE.Data;
cost = sum(itae_values);
endI am trying to run the find gains for PID controller for a powertrain using genetic algorithm. In order to find optimal generations and populations of the genetic algorithm I run almost 1600 experminets in which the following parameters change. So, the input of the model is a WLTP drive cycle (1800s) long. I want to see if I train the Genetic Algorithm on only 30s and find the gains and then using those gains run the whole cycle to calculate the error.
But when I run the experiment I get the same error for all the 3 times with same population and generation combinantion:
However, when i check the simulink model the gains are different for each iteration which means the errors are somehow not updated in the table. I have tried different changes in the code but noting works. Here is the code, if someone could suggest some improvements:
function [mean_abs_error] = Experiment2Function1(params)
tend = params.time;
% Measure the current time before running the simulation
start_simulation_time = tic;
no_var = 2;
lb = [params.lbP params.lbI];
ub = [params.ubP params.ubI];
%GA options
ga_opt = optimoptions(‘ga’,’Display’,’off’,’Generations’,params.generations,’PopulationSize’,params.population,’PlotFcns’,@gaplotbestf);
obj_fn = @(k) optimization_PID(k);
%GA Command
[k, best] = ga((obj_fn),no_var,[],[],[],[],lb,ub,[],ga_opt)
% Measure the simulation time
simulation_time = toc(start_simulation_time);
%%
% Calculate Error
tend = 1800;
sim("Model1.slx")
driveCycleTime = DriveCycle(:,1);
driveCycleSpeed = DriveCycle(:,2);
index1800s = driveCycleTime <= tend;
driveCycle1800s = [driveCycleTime(index1800s), driveCycleSpeed(index1800s)];
% Extract the simulated result for the first 1800 seconds
simulatedTime = tout(tout <= tend);
simulatedSpeed = v_act_lim(tout <= tend);
% Interpolate the simulated result to match the drive cycle time points
simulatedSpeedInterp = interp1(simulatedTime, simulatedSpeed, driveCycle1800s(:, 1), ‘linear’);
% Calculate and plot the error
error = (driveCycle1800s(:, 2) – simulatedSpeedInterp)./ driveCycle1800s(:,2)*100;
abs_error = abs(error);
% Exclude Infinite Values
validIndices = isfinite(abs_error);
validAbsError = abs_error(validIndices);
mean_abs_error = mean(validAbsError)
end
The objective function is as follows:
function cost = optimization_PID(k)
assignin("base", "k", k);
sim("Model1.slx");
itae_values = ITAE.Data;
cost = sum(itae_values);
end I am trying to run the find gains for PID controller for a powertrain using genetic algorithm. In order to find optimal generations and populations of the genetic algorithm I run almost 1600 experminets in which the following parameters change. So, the input of the model is a WLTP drive cycle (1800s) long. I want to see if I train the Genetic Algorithm on only 30s and find the gains and then using those gains run the whole cycle to calculate the error.
But when I run the experiment I get the same error for all the 3 times with same population and generation combinantion:
However, when i check the simulink model the gains are different for each iteration which means the errors are somehow not updated in the table. I have tried different changes in the code but noting works. Here is the code, if someone could suggest some improvements:
function [mean_abs_error] = Experiment2Function1(params)
tend = params.time;
% Measure the current time before running the simulation
start_simulation_time = tic;
no_var = 2;
lb = [params.lbP params.lbI];
ub = [params.ubP params.ubI];
%GA options
ga_opt = optimoptions(‘ga’,’Display’,’off’,’Generations’,params.generations,’PopulationSize’,params.population,’PlotFcns’,@gaplotbestf);
obj_fn = @(k) optimization_PID(k);
%GA Command
[k, best] = ga((obj_fn),no_var,[],[],[],[],lb,ub,[],ga_opt)
% Measure the simulation time
simulation_time = toc(start_simulation_time);
%%
% Calculate Error
tend = 1800;
sim("Model1.slx")
driveCycleTime = DriveCycle(:,1);
driveCycleSpeed = DriveCycle(:,2);
index1800s = driveCycleTime <= tend;
driveCycle1800s = [driveCycleTime(index1800s), driveCycleSpeed(index1800s)];
% Extract the simulated result for the first 1800 seconds
simulatedTime = tout(tout <= tend);
simulatedSpeed = v_act_lim(tout <= tend);
% Interpolate the simulated result to match the drive cycle time points
simulatedSpeedInterp = interp1(simulatedTime, simulatedSpeed, driveCycle1800s(:, 1), ‘linear’);
% Calculate and plot the error
error = (driveCycle1800s(:, 2) – simulatedSpeedInterp)./ driveCycle1800s(:,2)*100;
abs_error = abs(error);
% Exclude Infinite Values
validIndices = isfinite(abs_error);
validAbsError = abs_error(validIndices);
mean_abs_error = mean(validAbsError)
end
The objective function is as follows:
function cost = optimization_PID(k)
assignin("base", "k", k);
sim("Model1.slx");
itae_values = ITAE.Data;
cost = sum(itae_values);
end experiment manager, genetic algorithm, error MATLAB Answers — New Questions
s_function 2dof
Hello!!!!
l try to use s_function in simulink and I get this error:
Error in ‘BRAS_2DOF/S-Function1’ while executing MATLAB S-function ‘Dynamique2DOF’, flag = 0 (initialize), at start of simulation.
Caused by:
Subscript indices must either be real positive integers or logicals.
this is my code in joint pieceHello!!!!
l try to use s_function in simulink and I get this error:
Error in ‘BRAS_2DOF/S-Function1’ while executing MATLAB S-function ‘Dynamique2DOF’, flag = 0 (initialize), at start of simulation.
Caused by:
Subscript indices must either be real positive integers or logicals.
this is my code in joint piece Hello!!!!
l try to use s_function in simulink and I get this error:
Error in ‘BRAS_2DOF/S-Function1’ while executing MATLAB S-function ‘Dynamique2DOF’, flag = 0 (initialize), at start of simulation.
Caused by:
Subscript indices must either be real positive integers or logicals.
this is my code in joint piece error sfuntion 2dof MATLAB Answers — New Questions
How do I implement typedefs of unions + structure variables in Simulink?
How can I implement a union + structure variable in Simulink so that when I generate code I will get a variable structure with shared access?
I want to duplicate the behaviour of the C-code below so I can use typedef struct in several similar data sets.
%Code using C
typedef struct st_module_data{
struct st_FaultInfo{
union{
uint8 AllFaults;
struct {
uint8 OVP :1;
uint8 OVW :1;
uint8 UVP :1;
uint8 UVW :1;
uint8 OCP :1;
uint8 OCW :1;
uint8 OTP :1;
uint8 OTW :1;
}
}
}Fault;
struct st_MeasuredData{
uint8 voltage = 0;
uint8 current = 0;
uint8 temperature = 0;
}Measured;
};
st_module_data s_module_01;
s_module_01.Fault.AllFaults = 0; % Clears all flags
s_module_01.Fault.OVP = 1; % Sets only the OVP flag
s_module_01.Measured.voltage = ui8_ADC_5V; % Sets the measured voltage to 5V
I was able to recreate the structure and "typedef"-ish callbacks in matlab by using bus editor:
But I am unable to get the union thing working and can only access the lowest heirarchy of the structure – e.g.:
s_module_01.Fault.AllFaults = 0; % How do I implement this?
s_module_01.Fault = 0; % Does not work…
s_module_01.Fault.OVP = 1; % OK – works in Matlab Functions, Simulink and Stateflow
s_module_01.Measured.voltage = ui8_ADC_5V; % OK – works in Matlab Functions, Simulink and StateflowHow can I implement a union + structure variable in Simulink so that when I generate code I will get a variable structure with shared access?
I want to duplicate the behaviour of the C-code below so I can use typedef struct in several similar data sets.
%Code using C
typedef struct st_module_data{
struct st_FaultInfo{
union{
uint8 AllFaults;
struct {
uint8 OVP :1;
uint8 OVW :1;
uint8 UVP :1;
uint8 UVW :1;
uint8 OCP :1;
uint8 OCW :1;
uint8 OTP :1;
uint8 OTW :1;
}
}
}Fault;
struct st_MeasuredData{
uint8 voltage = 0;
uint8 current = 0;
uint8 temperature = 0;
}Measured;
};
st_module_data s_module_01;
s_module_01.Fault.AllFaults = 0; % Clears all flags
s_module_01.Fault.OVP = 1; % Sets only the OVP flag
s_module_01.Measured.voltage = ui8_ADC_5V; % Sets the measured voltage to 5V
I was able to recreate the structure and "typedef"-ish callbacks in matlab by using bus editor:
But I am unable to get the union thing working and can only access the lowest heirarchy of the structure – e.g.:
s_module_01.Fault.AllFaults = 0; % How do I implement this?
s_module_01.Fault = 0; % Does not work…
s_module_01.Fault.OVP = 1; % OK – works in Matlab Functions, Simulink and Stateflow
s_module_01.Measured.voltage = ui8_ADC_5V; % OK – works in Matlab Functions, Simulink and Stateflow How can I implement a union + structure variable in Simulink so that when I generate code I will get a variable structure with shared access?
I want to duplicate the behaviour of the C-code below so I can use typedef struct in several similar data sets.
%Code using C
typedef struct st_module_data{
struct st_FaultInfo{
union{
uint8 AllFaults;
struct {
uint8 OVP :1;
uint8 OVW :1;
uint8 UVP :1;
uint8 UVW :1;
uint8 OCP :1;
uint8 OCW :1;
uint8 OTP :1;
uint8 OTW :1;
}
}
}Fault;
struct st_MeasuredData{
uint8 voltage = 0;
uint8 current = 0;
uint8 temperature = 0;
}Measured;
};
st_module_data s_module_01;
s_module_01.Fault.AllFaults = 0; % Clears all flags
s_module_01.Fault.OVP = 1; % Sets only the OVP flag
s_module_01.Measured.voltage = ui8_ADC_5V; % Sets the measured voltage to 5V
I was able to recreate the structure and "typedef"-ish callbacks in matlab by using bus editor:
But I am unable to get the union thing working and can only access the lowest heirarchy of the structure – e.g.:
s_module_01.Fault.AllFaults = 0; % How do I implement this?
s_module_01.Fault = 0; % Does not work…
s_module_01.Fault.OVP = 1; % OK – works in Matlab Functions, Simulink and Stateflow
s_module_01.Measured.voltage = ui8_ADC_5V; % OK – works in Matlab Functions, Simulink and Stateflow simulink, stateflow, simulink bus editor, structures, union MATLAB Answers — New Questions
Can I export all the trained model from the classification learner app, using a single command?
Dear experts,
I am trying to find out which model performs on a specific dataset. There are 34 models available in the classification learner app. Do we have any option to export all the 34 trained model using a single command? Presently, I’m doing it one at a time.
Thank you in advance.Dear experts,
I am trying to find out which model performs on a specific dataset. There are 34 models available in the classification learner app. Do we have any option to export all the 34 trained model using a single command? Presently, I’m doing it one at a time.
Thank you in advance. Dear experts,
I am trying to find out which model performs on a specific dataset. There are 34 models available in the classification learner app. Do we have any option to export all the 34 trained model using a single command? Presently, I’m doing it one at a time.
Thank you in advance. matlab classification learner app MATLAB Answers — New Questions
Decrease Existing UIGridLayout RowHeight (or ColumnWidth)
I’m trying to decrease an existing uigridlayout’s number of rows and columns. Below I created the figure and grid.
fig = uifigure; % make uifigure
g = uigridlayout(fig); % put uigridlayout in fig
g.RowHeight = {‘1x’ ‘1x’ ‘1x’ ‘1x’}; % assign to uigridlayout 4 rows
g.ColumnWidth = {‘1x’ ‘1x’}; % assign to uigridlayout 2 columns
So, it already exists and has a specified row height and column width dimensions. And I want to change the number of rows and columns in this existing uigridlayout (g)… instead of deleting it and making a new one with the desired number of rows and columnns (e.g. a grid with 3 rows and 3 columns).
I am able to add rows or columns –>
g.ColumnWidth = {‘1x’ ‘1x’ ‘1x’} % assign greater amount of columns to g.ColumnWidth property
output –>
g =
GridLayout with properties:
RowHeight: {‘1x’ ‘1x’ ‘1x’ ‘1x’}
ColumnWidth: {‘1x’ ‘1x’ ‘1x’}
But I can’t seem to be able to remove rows or columns –>
g.RowHeight = {‘1x’ ‘1x’ ‘1x’} % assign lower amount of columns to g.RowHeight property
output –>
g =
GridLayout with properties:
RowHeight: {‘1x’ ‘1x’ ‘1x’ ‘1x’}
ColumnWidth: {‘1x’ ‘1x’ ‘1x’}
How do I decrease the number of rows or columns in this existing uigridlayout?I’m trying to decrease an existing uigridlayout’s number of rows and columns. Below I created the figure and grid.
fig = uifigure; % make uifigure
g = uigridlayout(fig); % put uigridlayout in fig
g.RowHeight = {‘1x’ ‘1x’ ‘1x’ ‘1x’}; % assign to uigridlayout 4 rows
g.ColumnWidth = {‘1x’ ‘1x’}; % assign to uigridlayout 2 columns
So, it already exists and has a specified row height and column width dimensions. And I want to change the number of rows and columns in this existing uigridlayout (g)… instead of deleting it and making a new one with the desired number of rows and columnns (e.g. a grid with 3 rows and 3 columns).
I am able to add rows or columns –>
g.ColumnWidth = {‘1x’ ‘1x’ ‘1x’} % assign greater amount of columns to g.ColumnWidth property
output –>
g =
GridLayout with properties:
RowHeight: {‘1x’ ‘1x’ ‘1x’ ‘1x’}
ColumnWidth: {‘1x’ ‘1x’ ‘1x’}
But I can’t seem to be able to remove rows or columns –>
g.RowHeight = {‘1x’ ‘1x’ ‘1x’} % assign lower amount of columns to g.RowHeight property
output –>
g =
GridLayout with properties:
RowHeight: {‘1x’ ‘1x’ ‘1x’ ‘1x’}
ColumnWidth: {‘1x’ ‘1x’ ‘1x’}
How do I decrease the number of rows or columns in this existing uigridlayout? I’m trying to decrease an existing uigridlayout’s number of rows and columns. Below I created the figure and grid.
fig = uifigure; % make uifigure
g = uigridlayout(fig); % put uigridlayout in fig
g.RowHeight = {‘1x’ ‘1x’ ‘1x’ ‘1x’}; % assign to uigridlayout 4 rows
g.ColumnWidth = {‘1x’ ‘1x’}; % assign to uigridlayout 2 columns
So, it already exists and has a specified row height and column width dimensions. And I want to change the number of rows and columns in this existing uigridlayout (g)… instead of deleting it and making a new one with the desired number of rows and columnns (e.g. a grid with 3 rows and 3 columns).
I am able to add rows or columns –>
g.ColumnWidth = {‘1x’ ‘1x’ ‘1x’} % assign greater amount of columns to g.ColumnWidth property
output –>
g =
GridLayout with properties:
RowHeight: {‘1x’ ‘1x’ ‘1x’ ‘1x’}
ColumnWidth: {‘1x’ ‘1x’ ‘1x’}
But I can’t seem to be able to remove rows or columns –>
g.RowHeight = {‘1x’ ‘1x’ ‘1x’} % assign lower amount of columns to g.RowHeight property
output –>
g =
GridLayout with properties:
RowHeight: {‘1x’ ‘1x’ ‘1x’ ‘1x’}
ColumnWidth: {‘1x’ ‘1x’ ‘1x’}
How do I decrease the number of rows or columns in this existing uigridlayout? uifigure, uigridlayout, rows and columns, editing properties MATLAB Answers — New Questions
How to continue drawing bar charts on the basis of drawing maps
How to continue drawing bar charts on the basis of drawing maps using MATLAB softwore? Just like this one.How to continue drawing bar charts on the basis of drawing maps using MATLAB softwore? Just like this one. How to continue drawing bar charts on the basis of drawing maps using MATLAB softwore? Just like this one. mapping toolbox MATLAB Answers — New Questions
try catch does not catch an error in save function
Consider
try
statements
save("/gpfs/home/jk23bd/kimjmp_25may2024/MATLAB/kimscalprr.mat","kimScalingPriors");
catch ME
disp(ME.message)
end
where statements is a block of codes. I’m sure that statements is a good block of codes, i.e., without errors. This leads to no display of message, and it fails to save (because the directory does not exist).
On the other hand,
statements
try
save("/gpfs/home/jk23bd/kimjmp_25may2024/MATLAB/kimscalprr.mat","kimScalingPriors");
catch ME
disp(ME.message)
end
Now, this does lead to displaying
Cannot create ‘kimscalprr.mat’ because ‘gpfshomejk23bdkimjmp_25may2024MATLAB’ does not exist.
as it should. I’m finding that save has a lot of issues besides this, but this seems the most basic. Can anyone tell me why this difference occurs?
Thank youConsider
try
statements
save("/gpfs/home/jk23bd/kimjmp_25may2024/MATLAB/kimscalprr.mat","kimScalingPriors");
catch ME
disp(ME.message)
end
where statements is a block of codes. I’m sure that statements is a good block of codes, i.e., without errors. This leads to no display of message, and it fails to save (because the directory does not exist).
On the other hand,
statements
try
save("/gpfs/home/jk23bd/kimjmp_25may2024/MATLAB/kimscalprr.mat","kimScalingPriors");
catch ME
disp(ME.message)
end
Now, this does lead to displaying
Cannot create ‘kimscalprr.mat’ because ‘gpfshomejk23bdkimjmp_25may2024MATLAB’ does not exist.
as it should. I’m finding that save has a lot of issues besides this, but this seems the most basic. Can anyone tell me why this difference occurs?
Thank you Consider
try
statements
save("/gpfs/home/jk23bd/kimjmp_25may2024/MATLAB/kimscalprr.mat","kimScalingPriors");
catch ME
disp(ME.message)
end
where statements is a block of codes. I’m sure that statements is a good block of codes, i.e., without errors. This leads to no display of message, and it fails to save (because the directory does not exist).
On the other hand,
statements
try
save("/gpfs/home/jk23bd/kimjmp_25may2024/MATLAB/kimscalprr.mat","kimScalingPriors");
catch ME
disp(ME.message)
end
Now, this does lead to displaying
Cannot create ‘kimscalprr.mat’ because ‘gpfshomejk23bdkimjmp_25may2024MATLAB’ does not exist.
as it should. I’m finding that save has a lot of issues besides this, but this seems the most basic. Can anyone tell me why this difference occurs?
Thank you try, catch, error, save MATLAB Answers — New Questions
我不知道应该输入的密钥是什么?
已经安装好,但是启动需要密钥。我不知道应该输入什么?已经安装好,但是启动需要密钥。我不知道应该输入什么? 已经安装好,但是启动需要密钥。我不知道应该输入什么? secrete key MATLAB Answers — New Questions
Matlab Engine API for Python: multidimarray for python
I am trying to install matlab engine api for python and i am using google colab for python. I installed matlab engine api for python using the steps mentioned in the documentation for MacOS but multidimarrayforpython is not getting downloaded.I am trying to install matlab engine api for python and i am using google colab for python. I installed matlab engine api for python using the steps mentioned in the documentation for MacOS but multidimarrayforpython is not getting downloaded. I am trying to install matlab engine api for python and i am using google colab for python. I installed matlab engine api for python using the steps mentioned in the documentation for MacOS but multidimarrayforpython is not getting downloaded. matlab engine api for python, multidimarrayforpython MATLAB Answers — New Questions
Error in sym (line 268) S.s = tomupad(x); Error in untit2121led (line 33) An=simplify(sym(strrep(char(An), ‘sin (pi*n)’,’O’))); Related documentation
a parece este error en el codigo:
clc
clear all
close all
syms t n
A=[0 1 2];
f=[t -t+2];
t=sym(f);
T=max(A)-min(A);
wo=2*pi/T;
Ao=0;
for i=1:length (f)
Ao=Ao+int(f(i), ‘t’,A(i),A(i+1));
end
Ao=simplify(Ao/(T));
An=0;
for i=i:length (f)
An=An+int(f(i) *cos(n*wo*t), A(i),A(i+1));
end
An=simplify(2*An/T);
Bn=0;
for i=1:length (f)
Bn=Bn+int(f(i) *sin(n*wo*t), A(i),A(i+1));
end
Bn=simplify(2*Bn/T);
An=char(An);
Bn=char(Bn);
An=simplify(sym(strrep(char(An), ‘sin (pi*n)’,’O’)));
Bn=simplify(sym(atrrep(char(Bn), ‘sin (pi*n)’,’O’)));
An=simplify(sym(strrep(char(An), ‘cos (pi*n)’, ‘(-1)^O’)));
Bn=simplify(sym(strrep(char(Bn), ‘cos (pi*n)’, ‘(-1)^O’)));
An=simplify(sym(strrep(char(An), ‘sin (2*pi*n)’,’O’)));
Bn=simplify(sym(strrep(char(Bn), ‘sin (2*pi*n)’,’O’)));
An=simplify(sym(strrep(char(An), ‘sin (2*pi*n)’,’1′)));
Bn=simplify(sym(strrep(char(Bn), ‘sin (2*pi*n)’,’1′)));
disp(‘Ao’)
pretty(An)
disp(‘An’)
pretty(Bn)
disp(‘Bn’)
pretty(Bn)
x=linspace(min(A), max(A),1000);
fx=0;
for i=1:length(A)-1
if nod (i,2)==1
fx=fx+((x>=A(i)) & (x<=A(i+1))).*subs(f(i),x);
else
fx=fx+((x>A(i)) & (x<A(i+1))).*subs(f(i),x);
end
end
plot(x,fx,’Linewidth’,2); hold on
plot(x+max(x)-min(x),fx,’Linewidth’,2)
plot(x-max(x)+min(x),fx,’Linewidth’,2)
plot([max(x) max(x)] ,[fx(i) fx(end)],’Linewidth’,2)
plot([min(x) min(x)] ,[fx(end) fx(i)],’Linewidth’,2)
grid ona parece este error en el codigo:
clc
clear all
close all
syms t n
A=[0 1 2];
f=[t -t+2];
t=sym(f);
T=max(A)-min(A);
wo=2*pi/T;
Ao=0;
for i=1:length (f)
Ao=Ao+int(f(i), ‘t’,A(i),A(i+1));
end
Ao=simplify(Ao/(T));
An=0;
for i=i:length (f)
An=An+int(f(i) *cos(n*wo*t), A(i),A(i+1));
end
An=simplify(2*An/T);
Bn=0;
for i=1:length (f)
Bn=Bn+int(f(i) *sin(n*wo*t), A(i),A(i+1));
end
Bn=simplify(2*Bn/T);
An=char(An);
Bn=char(Bn);
An=simplify(sym(strrep(char(An), ‘sin (pi*n)’,’O’)));
Bn=simplify(sym(atrrep(char(Bn), ‘sin (pi*n)’,’O’)));
An=simplify(sym(strrep(char(An), ‘cos (pi*n)’, ‘(-1)^O’)));
Bn=simplify(sym(strrep(char(Bn), ‘cos (pi*n)’, ‘(-1)^O’)));
An=simplify(sym(strrep(char(An), ‘sin (2*pi*n)’,’O’)));
Bn=simplify(sym(strrep(char(Bn), ‘sin (2*pi*n)’,’O’)));
An=simplify(sym(strrep(char(An), ‘sin (2*pi*n)’,’1′)));
Bn=simplify(sym(strrep(char(Bn), ‘sin (2*pi*n)’,’1′)));
disp(‘Ao’)
pretty(An)
disp(‘An’)
pretty(Bn)
disp(‘Bn’)
pretty(Bn)
x=linspace(min(A), max(A),1000);
fx=0;
for i=1:length(A)-1
if nod (i,2)==1
fx=fx+((x>=A(i)) & (x<=A(i+1))).*subs(f(i),x);
else
fx=fx+((x>A(i)) & (x<A(i+1))).*subs(f(i),x);
end
end
plot(x,fx,’Linewidth’,2); hold on
plot(x+max(x)-min(x),fx,’Linewidth’,2)
plot(x-max(x)+min(x),fx,’Linewidth’,2)
plot([max(x) max(x)] ,[fx(i) fx(end)],’Linewidth’,2)
plot([min(x) min(x)] ,[fx(end) fx(i)],’Linewidth’,2)
grid on a parece este error en el codigo:
clc
clear all
close all
syms t n
A=[0 1 2];
f=[t -t+2];
t=sym(f);
T=max(A)-min(A);
wo=2*pi/T;
Ao=0;
for i=1:length (f)
Ao=Ao+int(f(i), ‘t’,A(i),A(i+1));
end
Ao=simplify(Ao/(T));
An=0;
for i=i:length (f)
An=An+int(f(i) *cos(n*wo*t), A(i),A(i+1));
end
An=simplify(2*An/T);
Bn=0;
for i=1:length (f)
Bn=Bn+int(f(i) *sin(n*wo*t), A(i),A(i+1));
end
Bn=simplify(2*Bn/T);
An=char(An);
Bn=char(Bn);
An=simplify(sym(strrep(char(An), ‘sin (pi*n)’,’O’)));
Bn=simplify(sym(atrrep(char(Bn), ‘sin (pi*n)’,’O’)));
An=simplify(sym(strrep(char(An), ‘cos (pi*n)’, ‘(-1)^O’)));
Bn=simplify(sym(strrep(char(Bn), ‘cos (pi*n)’, ‘(-1)^O’)));
An=simplify(sym(strrep(char(An), ‘sin (2*pi*n)’,’O’)));
Bn=simplify(sym(strrep(char(Bn), ‘sin (2*pi*n)’,’O’)));
An=simplify(sym(strrep(char(An), ‘sin (2*pi*n)’,’1′)));
Bn=simplify(sym(strrep(char(Bn), ‘sin (2*pi*n)’,’1′)));
disp(‘Ao’)
pretty(An)
disp(‘An’)
pretty(Bn)
disp(‘Bn’)
pretty(Bn)
x=linspace(min(A), max(A),1000);
fx=0;
for i=1:length(A)-1
if nod (i,2)==1
fx=fx+((x>=A(i)) & (x<=A(i+1))).*subs(f(i),x);
else
fx=fx+((x>A(i)) & (x<A(i+1))).*subs(f(i),x);
end
end
plot(x,fx,’Linewidth’,2); hold on
plot(x+max(x)-min(x),fx,’Linewidth’,2)
plot(x-max(x)+min(x),fx,’Linewidth’,2)
plot([max(x) max(x)] ,[fx(i) fx(end)],’Linewidth’,2)
plot([min(x) min(x)] ,[fx(end) fx(i)],’Linewidth’,2)
grid on error, s.s = tomupad(x) MATLAB Answers — New Questions
How to compute the mean of several stochastic realizations
I have a code that can be used to plot sample paths of the stochastic differential equation competition model
clear
a10=2; a20=1.5; a11=0.03;
a12=0.02; a21=0.01; a22=0.04;
x1(1)=50; x2(1)=25;
k=5000; T=5; dt=T/k;
num_realizations=10;
for j=1:num_realizations
for i=1:k
rn=randn(2,1);
f1=x1(i)*(a10-a11*x1(i)-a12*x2(i));
f2=x2(i)*(a20-a21*x1(i)-a22*x2(i));
g1=x1(i)*(a10+a11*x1(i)+a12*x2(i));
g2=x2(i)*(a20+a21*x1(i)+a22*x2(i));
x1(i+1)=x1(i)+f1*dt+sqrt(g1*dt)*rn(1);
x2(i+1)=x2(i)+f2*dt+sqrt(g2*dt)*rn(2);
x1p=[x1(i+1)>0];
x2p=[x2(i+1)>0];
x1(i+1)=x1(i+1)*x1p;
x2(i+1)=x2(i+1)*x2p;
end
plot([0:dt:T],x1,’Color’,rand(1,3),’LineWidth’,1);
hold on
plot([0:dt:T],x2,’Color’,rand(1,3),’LineWidth’,1);
ylabel(‘Population Size’); xlabel(‘Time’);
end
My question is how to plot the average of each population, including the initial conditions?I have a code that can be used to plot sample paths of the stochastic differential equation competition model
clear
a10=2; a20=1.5; a11=0.03;
a12=0.02; a21=0.01; a22=0.04;
x1(1)=50; x2(1)=25;
k=5000; T=5; dt=T/k;
num_realizations=10;
for j=1:num_realizations
for i=1:k
rn=randn(2,1);
f1=x1(i)*(a10-a11*x1(i)-a12*x2(i));
f2=x2(i)*(a20-a21*x1(i)-a22*x2(i));
g1=x1(i)*(a10+a11*x1(i)+a12*x2(i));
g2=x2(i)*(a20+a21*x1(i)+a22*x2(i));
x1(i+1)=x1(i)+f1*dt+sqrt(g1*dt)*rn(1);
x2(i+1)=x2(i)+f2*dt+sqrt(g2*dt)*rn(2);
x1p=[x1(i+1)>0];
x2p=[x2(i+1)>0];
x1(i+1)=x1(i+1)*x1p;
x2(i+1)=x2(i+1)*x2p;
end
plot([0:dt:T],x1,’Color’,rand(1,3),’LineWidth’,1);
hold on
plot([0:dt:T],x2,’Color’,rand(1,3),’LineWidth’,1);
ylabel(‘Population Size’); xlabel(‘Time’);
end
My question is how to plot the average of each population, including the initial conditions? I have a code that can be used to plot sample paths of the stochastic differential equation competition model
clear
a10=2; a20=1.5; a11=0.03;
a12=0.02; a21=0.01; a22=0.04;
x1(1)=50; x2(1)=25;
k=5000; T=5; dt=T/k;
num_realizations=10;
for j=1:num_realizations
for i=1:k
rn=randn(2,1);
f1=x1(i)*(a10-a11*x1(i)-a12*x2(i));
f2=x2(i)*(a20-a21*x1(i)-a22*x2(i));
g1=x1(i)*(a10+a11*x1(i)+a12*x2(i));
g2=x2(i)*(a20+a21*x1(i)+a22*x2(i));
x1(i+1)=x1(i)+f1*dt+sqrt(g1*dt)*rn(1);
x2(i+1)=x2(i)+f2*dt+sqrt(g2*dt)*rn(2);
x1p=[x1(i+1)>0];
x2p=[x2(i+1)>0];
x1(i+1)=x1(i+1)*x1p;
x2(i+1)=x2(i+1)*x2p;
end
plot([0:dt:T],x1,’Color’,rand(1,3),’LineWidth’,1);
hold on
plot([0:dt:T],x2,’Color’,rand(1,3),’LineWidth’,1);
ylabel(‘Population Size’); xlabel(‘Time’);
end
My question is how to plot the average of each population, including the initial conditions? the euler-maruyama method, sde models MATLAB Answers — New Questions
Stop/Delete Timer Issues While Closing GUI
Hi,
I use a timer to update an axes in a GUI. I want to handle the case in which the user closes the window while the timer is still running, i.e., the axes still beeing updated.
The Problem:
However, every so often the execution time of the TimerFcn is longer than the timers period (depending on the pc’s performance). This can cause an error when closing the GUI while the timer is still running.
Error while evaluating TimerFcn for timer ‘timer-1’
Bad handle
FYI, I use
T = timerfind;
if ~isempty(T)
stop(T)
delete(T)
end
in the figure’s delete function. Apparently, the TimerFcn is still being called after the execution of the figure’s delete function. Hence, within my TimerFcn an error occurs during a call to
cla(myaxes),
for cla expects a valid figure handle (though the GUI’s figure has just been deleted).
All in all, it seems that the execution time being larger than the timer period is causing this. Of course I could reduce the timer period, but this is not desirable. I figured out a workaround by using a try-catch phrase within the TimerFcn, however it’s not a proper solution.
Question:
Is there any way to force the TimerFcn to stop and somehow flush its executin queue/event buffer, regardless of its current state? Any thoughts about solving this issue are very welcome!
Thank you in advance!
HannesHi,
I use a timer to update an axes in a GUI. I want to handle the case in which the user closes the window while the timer is still running, i.e., the axes still beeing updated.
The Problem:
However, every so often the execution time of the TimerFcn is longer than the timers period (depending on the pc’s performance). This can cause an error when closing the GUI while the timer is still running.
Error while evaluating TimerFcn for timer ‘timer-1’
Bad handle
FYI, I use
T = timerfind;
if ~isempty(T)
stop(T)
delete(T)
end
in the figure’s delete function. Apparently, the TimerFcn is still being called after the execution of the figure’s delete function. Hence, within my TimerFcn an error occurs during a call to
cla(myaxes),
for cla expects a valid figure handle (though the GUI’s figure has just been deleted).
All in all, it seems that the execution time being larger than the timer period is causing this. Of course I could reduce the timer period, but this is not desirable. I figured out a workaround by using a try-catch phrase within the TimerFcn, however it’s not a proper solution.
Question:
Is there any way to force the TimerFcn to stop and somehow flush its executin queue/event buffer, regardless of its current state? Any thoughts about solving this issue are very welcome!
Thank you in advance!
Hannes Hi,
I use a timer to update an axes in a GUI. I want to handle the case in which the user closes the window while the timer is still running, i.e., the axes still beeing updated.
The Problem:
However, every so often the execution time of the TimerFcn is longer than the timers period (depending on the pc’s performance). This can cause an error when closing the GUI while the timer is still running.
Error while evaluating TimerFcn for timer ‘timer-1’
Bad handle
FYI, I use
T = timerfind;
if ~isempty(T)
stop(T)
delete(T)
end
in the figure’s delete function. Apparently, the TimerFcn is still being called after the execution of the figure’s delete function. Hence, within my TimerFcn an error occurs during a call to
cla(myaxes),
for cla expects a valid figure handle (though the GUI’s figure has just been deleted).
All in all, it seems that the execution time being larger than the timer period is causing this. Of course I could reduce the timer period, but this is not desirable. I figured out a workaround by using a try-catch phrase within the TimerFcn, however it’s not a proper solution.
Question:
Is there any way to force the TimerFcn to stop and somehow flush its executin queue/event buffer, regardless of its current state? Any thoughts about solving this issue are very welcome!
Thank you in advance!
Hannes timer, closing gui MATLAB Answers — New Questions
How do I generate a native crash dump for MATLAB on a hp ?
MotoHawk 2023a & MatLABR2023a MATLAB Log File: C:UsersHPAppDataLocalTempmatlab_crash_dump.19880-1
————————————————
MATLAB Log File
————————————————
——————————————————————————–
Unknown exception 0xe0434352 detected at 2024-07-17 02:56:27 +0300
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Graphics Driver : Uninitialized hardware
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) Iris(R) Plus Graphics Version 27.20.100.9316 (2021-2-18)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 3514034
MATLAB Root : C:Program FilesMATLABR2023a
MATLAB Version : 9.14.0.2489007 (R2023a) Update 6
OpenGL : hardware
Operating System : Microsoft Windows 10 Entreprise
Process ID : 19880
Processor ID : x86 Family 6 Model 126 Stepping 5, GenuineIntel
Session Key : 8649544e-ea37-4935-bc46-e5404932964b
Window System : Version 10.0 (Build 19045)
Fault Count: 1
Abnormal termination:
Unknown exception 0xe0434352
Current Thread: ‘MCR 0 interpreter thread’ id 26564
Register State (from fault):
RAX = 00007ff9ba9663e8 RBX = 000000411e3f65a0
RCX = 000000411e3f5220 RDX = 000000411e3f5d80
RSP = 000000411e3f49e0 RBP = 000000411e3f50c0
RSI = 000000411e3f73b0 RDI = 000000411e3f5860
R8 = 0000000000000001 R9 = 000000411e3f4250
R10 = 00007ff9d18c2554 R11 = 0000000000000000
R12 = 0000000000000000 R13 = 000000411e3f4b48
R14 = 000000411e3f5860 R15 = 000000411e3f59c8
RIP = 00007ff9cf27b699 EFL = 00000206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ff9cf27b699 C:WindowsSystem32KERNELBASE.dll+00243353 RaiseException+00000105
[ 1] 0x00007ff9ba0c2743 C:WindowsSYSTEM32VCRUNTIME140_1_CLR0400.dll+00010051 _NLG_Return2+00005619
[ 2] 0x00007ff9d1911c96 C:WindowsSYSTEM32ntdll.dll+00662678 RtlCaptureContext2+00001190
[ 3] 0x00007ff9ba16e012 C:WindowsMicrosoft.NETFramework64v4.0.30319clr.dll+00319506 StrongNameTokenFromPublicKey+00192754
[ 4] 0x00007ff9ba185e56 C:WindowsMicrosoft.NETFramework64v4.0.30319clr.dll+00417366 StrongNameTokenFromPublicKey+00290614
[ 5] 0x00007ff9ba15891b C:WindowsMicrosoft.NETFramework64v4.0.30319clr.dll+00231707 StrongNameTokenFromPublicKey+00104955
[ 6] 0x00007ff9ba2ae7b5 C:WindowsMicrosoft.NETFramework64v4.0.30319clr.dll+01632181 DllCanUnloadNowInternal+00011525
[ 7] 0x00007ff95abb1ce7 <unknown-module>+00000000
[ 8] 0x00007ff955214238 C:Program Files (x86)WoodwardMCSMotoHawk2023a_sp3.3213BlocksMainmotohawk_sfun_check_license.mexw64+00016952 mexFunction+00012856
[ 9] 0x00007ff95521422c C:Program Files (x86)WoodwardMCSMotoHawk2023a_sp3.3213BlocksMainmotohawk_sfun_check_license.mexw64+00016940 mexFunction+00012844
[ 10] 0x0000000000000001 <unknown-module>+00000000
This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.MotoHawk 2023a & MatLABR2023a MATLAB Log File: C:UsersHPAppDataLocalTempmatlab_crash_dump.19880-1
————————————————
MATLAB Log File
————————————————
——————————————————————————–
Unknown exception 0xe0434352 detected at 2024-07-17 02:56:27 +0300
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Graphics Driver : Uninitialized hardware
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) Iris(R) Plus Graphics Version 27.20.100.9316 (2021-2-18)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 3514034
MATLAB Root : C:Program FilesMATLABR2023a
MATLAB Version : 9.14.0.2489007 (R2023a) Update 6
OpenGL : hardware
Operating System : Microsoft Windows 10 Entreprise
Process ID : 19880
Processor ID : x86 Family 6 Model 126 Stepping 5, GenuineIntel
Session Key : 8649544e-ea37-4935-bc46-e5404932964b
Window System : Version 10.0 (Build 19045)
Fault Count: 1
Abnormal termination:
Unknown exception 0xe0434352
Current Thread: ‘MCR 0 interpreter thread’ id 26564
Register State (from fault):
RAX = 00007ff9ba9663e8 RBX = 000000411e3f65a0
RCX = 000000411e3f5220 RDX = 000000411e3f5d80
RSP = 000000411e3f49e0 RBP = 000000411e3f50c0
RSI = 000000411e3f73b0 RDI = 000000411e3f5860
R8 = 0000000000000001 R9 = 000000411e3f4250
R10 = 00007ff9d18c2554 R11 = 0000000000000000
R12 = 0000000000000000 R13 = 000000411e3f4b48
R14 = 000000411e3f5860 R15 = 000000411e3f59c8
RIP = 00007ff9cf27b699 EFL = 00000206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ff9cf27b699 C:WindowsSystem32KERNELBASE.dll+00243353 RaiseException+00000105
[ 1] 0x00007ff9ba0c2743 C:WindowsSYSTEM32VCRUNTIME140_1_CLR0400.dll+00010051 _NLG_Return2+00005619
[ 2] 0x00007ff9d1911c96 C:WindowsSYSTEM32ntdll.dll+00662678 RtlCaptureContext2+00001190
[ 3] 0x00007ff9ba16e012 C:WindowsMicrosoft.NETFramework64v4.0.30319clr.dll+00319506 StrongNameTokenFromPublicKey+00192754
[ 4] 0x00007ff9ba185e56 C:WindowsMicrosoft.NETFramework64v4.0.30319clr.dll+00417366 StrongNameTokenFromPublicKey+00290614
[ 5] 0x00007ff9ba15891b C:WindowsMicrosoft.NETFramework64v4.0.30319clr.dll+00231707 StrongNameTokenFromPublicKey+00104955
[ 6] 0x00007ff9ba2ae7b5 C:WindowsMicrosoft.NETFramework64v4.0.30319clr.dll+01632181 DllCanUnloadNowInternal+00011525
[ 7] 0x00007ff95abb1ce7 <unknown-module>+00000000
[ 8] 0x00007ff955214238 C:Program Files (x86)WoodwardMCSMotoHawk2023a_sp3.3213BlocksMainmotohawk_sfun_check_license.mexw64+00016952 mexFunction+00012856
[ 9] 0x00007ff95521422c C:Program Files (x86)WoodwardMCSMotoHawk2023a_sp3.3213BlocksMainmotohawk_sfun_check_license.mexw64+00016940 mexFunction+00012844
[ 10] 0x0000000000000001 <unknown-module>+00000000
This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files. MotoHawk 2023a & MatLABR2023a MATLAB Log File: C:UsersHPAppDataLocalTempmatlab_crash_dump.19880-1
————————————————
MATLAB Log File
————————————————
——————————————————————————–
Unknown exception 0xe0434352 detected at 2024-07-17 02:56:27 +0300
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Graphics Driver : Uninitialized hardware
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) Iris(R) Plus Graphics Version 27.20.100.9316 (2021-2-18)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 3514034
MATLAB Root : C:Program FilesMATLABR2023a
MATLAB Version : 9.14.0.2489007 (R2023a) Update 6
OpenGL : hardware
Operating System : Microsoft Windows 10 Entreprise
Process ID : 19880
Processor ID : x86 Family 6 Model 126 Stepping 5, GenuineIntel
Session Key : 8649544e-ea37-4935-bc46-e5404932964b
Window System : Version 10.0 (Build 19045)
Fault Count: 1
Abnormal termination:
Unknown exception 0xe0434352
Current Thread: ‘MCR 0 interpreter thread’ id 26564
Register State (from fault):
RAX = 00007ff9ba9663e8 RBX = 000000411e3f65a0
RCX = 000000411e3f5220 RDX = 000000411e3f5d80
RSP = 000000411e3f49e0 RBP = 000000411e3f50c0
RSI = 000000411e3f73b0 RDI = 000000411e3f5860
R8 = 0000000000000001 R9 = 000000411e3f4250
R10 = 00007ff9d18c2554 R11 = 0000000000000000
R12 = 0000000000000000 R13 = 000000411e3f4b48
R14 = 000000411e3f5860 R15 = 000000411e3f59c8
RIP = 00007ff9cf27b699 EFL = 00000206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ff9cf27b699 C:WindowsSystem32KERNELBASE.dll+00243353 RaiseException+00000105
[ 1] 0x00007ff9ba0c2743 C:WindowsSYSTEM32VCRUNTIME140_1_CLR0400.dll+00010051 _NLG_Return2+00005619
[ 2] 0x00007ff9d1911c96 C:WindowsSYSTEM32ntdll.dll+00662678 RtlCaptureContext2+00001190
[ 3] 0x00007ff9ba16e012 C:WindowsMicrosoft.NETFramework64v4.0.30319clr.dll+00319506 StrongNameTokenFromPublicKey+00192754
[ 4] 0x00007ff9ba185e56 C:WindowsMicrosoft.NETFramework64v4.0.30319clr.dll+00417366 StrongNameTokenFromPublicKey+00290614
[ 5] 0x00007ff9ba15891b C:WindowsMicrosoft.NETFramework64v4.0.30319clr.dll+00231707 StrongNameTokenFromPublicKey+00104955
[ 6] 0x00007ff9ba2ae7b5 C:WindowsMicrosoft.NETFramework64v4.0.30319clr.dll+01632181 DllCanUnloadNowInternal+00011525
[ 7] 0x00007ff95abb1ce7 <unknown-module>+00000000
[ 8] 0x00007ff955214238 C:Program Files (x86)WoodwardMCSMotoHawk2023a_sp3.3213BlocksMainmotohawk_sfun_check_license.mexw64+00016952 mexFunction+00012856
[ 9] 0x00007ff95521422c C:Program Files (x86)WoodwardMCSMotoHawk2023a_sp3.3213BlocksMainmotohawk_sfun_check_license.mexw64+00016940 mexFunction+00012844
[ 10] 0x0000000000000001 <unknown-module>+00000000
This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files. motohawk 2023a matlabr2023a MATLAB Answers — New Questions