Category: Matlab
Category Archives: Matlab
Starting pump-controller failed: Not all expected federates logged in in time: missing federates:
This problem occurs when I use Simulink and prescan for CO simulation.After searching for the cause of the problem for many times, it is found that the problem is not caused by prescan. And the corresponding solution can not be found on the Internet. So I hope to get help from mathwork technicians.This problem occurs when I use Simulink and prescan for CO simulation.After searching for the cause of the problem for many times, it is found that the problem is not caused by prescan. And the corresponding solution can not be found on the Internet. So I hope to get help from mathwork technicians. This problem occurs when I use Simulink and prescan for CO simulation.After searching for the cause of the problem for many times, it is found that the problem is not caused by prescan. And the corresponding solution can not be found on the Internet. So I hope to get help from mathwork technicians. prescan, pump-controller MATLAB Answers — New Questions
How to obtain time-averaged wavelet spectral density by the new version of CWT?
I know how to obtain time-averaged wavelet spectral density by the old version of CWT, and the result is similar to the power spectral density (PSD) by function PWELCH. But how to obtain wavelet spectral density by the new version of CWT? Given that the old version is no longger recommended. Thank you. Here is the code and signal I used.
load u.mat
Fs=800; % sampling frequency of signal ‘u’, in Hz;
% PSD by pwelch
SegOvlp=75;
windowL=1024;
window=hamming(windowL);
noverlap=fix(SegOvlp/100*windowL);
nfft=windowL;
[pu_F,f]=pwelch(u,window,noverlap,nfft,Fs);
Pu_F=pu_F*var(u)/trapz(f,pu_F); %normalization
% WSD by old version of CWT, which gives similar results to pwelch
wavename=’gaus3′;
wcf=centfrq(wavename);
fre=10.^(linspace(-0.11,2.6,100));
scal=wcf*Fs./fre;
coefs=cwt(u,scal,wavename);
pu_w=sum(abs(coefs).^2,2)/Fs;
Pu_w=pu_w*var(u)/abs(trapz(fre,pu_w)); %normalization
% figure
loglog(f,Pu_F,’k’);
hold on
loglog(fre,Pu_w,’r’);
xlabel(‘itf/Hz’);ylabel(‘itPSD’);
legend(‘PSD’,’WSD by old CWT’)
set(gcf,’Units’,’centimeters’,’Position’,[10 5 15 8]);
set(gcf,’Color’,’w’);
set(gcf, ‘PaperPositionMode’, ‘auto’);I know how to obtain time-averaged wavelet spectral density by the old version of CWT, and the result is similar to the power spectral density (PSD) by function PWELCH. But how to obtain wavelet spectral density by the new version of CWT? Given that the old version is no longger recommended. Thank you. Here is the code and signal I used.
load u.mat
Fs=800; % sampling frequency of signal ‘u’, in Hz;
% PSD by pwelch
SegOvlp=75;
windowL=1024;
window=hamming(windowL);
noverlap=fix(SegOvlp/100*windowL);
nfft=windowL;
[pu_F,f]=pwelch(u,window,noverlap,nfft,Fs);
Pu_F=pu_F*var(u)/trapz(f,pu_F); %normalization
% WSD by old version of CWT, which gives similar results to pwelch
wavename=’gaus3′;
wcf=centfrq(wavename);
fre=10.^(linspace(-0.11,2.6,100));
scal=wcf*Fs./fre;
coefs=cwt(u,scal,wavename);
pu_w=sum(abs(coefs).^2,2)/Fs;
Pu_w=pu_w*var(u)/abs(trapz(fre,pu_w)); %normalization
% figure
loglog(f,Pu_F,’k’);
hold on
loglog(fre,Pu_w,’r’);
xlabel(‘itf/Hz’);ylabel(‘itPSD’);
legend(‘PSD’,’WSD by old CWT’)
set(gcf,’Units’,’centimeters’,’Position’,[10 5 15 8]);
set(gcf,’Color’,’w’);
set(gcf, ‘PaperPositionMode’, ‘auto’); I know how to obtain time-averaged wavelet spectral density by the old version of CWT, and the result is similar to the power spectral density (PSD) by function PWELCH. But how to obtain wavelet spectral density by the new version of CWT? Given that the old version is no longger recommended. Thank you. Here is the code and signal I used.
load u.mat
Fs=800; % sampling frequency of signal ‘u’, in Hz;
% PSD by pwelch
SegOvlp=75;
windowL=1024;
window=hamming(windowL);
noverlap=fix(SegOvlp/100*windowL);
nfft=windowL;
[pu_F,f]=pwelch(u,window,noverlap,nfft,Fs);
Pu_F=pu_F*var(u)/trapz(f,pu_F); %normalization
% WSD by old version of CWT, which gives similar results to pwelch
wavename=’gaus3′;
wcf=centfrq(wavename);
fre=10.^(linspace(-0.11,2.6,100));
scal=wcf*Fs./fre;
coefs=cwt(u,scal,wavename);
pu_w=sum(abs(coefs).^2,2)/Fs;
Pu_w=pu_w*var(u)/abs(trapz(fre,pu_w)); %normalization
% figure
loglog(f,Pu_F,’k’);
hold on
loglog(fre,Pu_w,’r’);
xlabel(‘itf/Hz’);ylabel(‘itPSD’);
legend(‘PSD’,’WSD by old CWT’)
set(gcf,’Units’,’centimeters’,’Position’,[10 5 15 8]);
set(gcf,’Color’,’w’);
set(gcf, ‘PaperPositionMode’, ‘auto’); cwt, psd MATLAB Answers — New Questions
Booster in LLC resonant converter
Hii, Can anyone help me how to add booster in my LLC resonant converter proposed model? I need to add a booster with the diode rectifier so as to enhance the output voltage. But i have no idea how to do. Can someone give me a direction to place the booster in the system. I have added the pic of my model.Hii, Can anyone help me how to add booster in my LLC resonant converter proposed model? I need to add a booster with the diode rectifier so as to enhance the output voltage. But i have no idea how to do. Can someone give me a direction to place the booster in the system. I have added the pic of my model. Hii, Can anyone help me how to add booster in my LLC resonant converter proposed model? I need to add a booster with the diode rectifier so as to enhance the output voltage. But i have no idea how to do. Can someone give me a direction to place the booster in the system. I have added the pic of my model. llc resonant converter, buck booster, matlab, output voltage MATLAB Answers — New Questions
exportgraphic crops the 10^N of scientific notation of the tickvalues
Hi all,
I am running at an annoying issue on the exportgraphic. Here is a simplified example.
X = 1:10;
Y = 10000*X;
plot(X,Y)
exportgraphics(gcf,’myfigure1.jpg’,’Resolution’,300)
After exporting, the 10^N of scientific notation of the y-axis tickvalues is cropped. Can anyone give some advice?Hi all,
I am running at an annoying issue on the exportgraphic. Here is a simplified example.
X = 1:10;
Y = 10000*X;
plot(X,Y)
exportgraphics(gcf,’myfigure1.jpg’,’Resolution’,300)
After exporting, the 10^N of scientific notation of the y-axis tickvalues is cropped. Can anyone give some advice? Hi all,
I am running at an annoying issue on the exportgraphic. Here is a simplified example.
X = 1:10;
Y = 10000*X;
plot(X,Y)
exportgraphics(gcf,’myfigure1.jpg’,’Resolution’,300)
After exporting, the 10^N of scientific notation of the y-axis tickvalues is cropped. Can anyone give some advice? exportgraphic, figure MATLAB Answers — New Questions
If the structure is like a.b(1,1).c then how to get the value of ‘c’ using matlab mex
If the structure is a.b.c then I kow below will be the code:
For a value
const mxArray *L1=mxGetField(*Pointer array, index,"field_name");
For b value
const mxArray *L2= mxGetField(*L1,index,"field_name");
For C value
const mxArray *L3 = mxGetField(*L2, index, "field_name");
But how to acccess data for a.b(1,1).c?If the structure is a.b.c then I kow below will be the code:
For a value
const mxArray *L1=mxGetField(*Pointer array, index,"field_name");
For b value
const mxArray *L2= mxGetField(*L1,index,"field_name");
For C value
const mxArray *L3 = mxGetField(*L2, index, "field_name");
But how to acccess data for a.b(1,1).c? If the structure is a.b.c then I kow below will be the code:
For a value
const mxArray *L1=mxGetField(*Pointer array, index,"field_name");
For b value
const mxArray *L2= mxGetField(*L1,index,"field_name");
For C value
const mxArray *L3 = mxGetField(*L2, index, "field_name");
But how to acccess data for a.b(1,1).c? mex, mex compiler, structures MATLAB Answers — New Questions
How to code a pulse function in differential equations
Hello everyone,
could you help me with my problem described below?
assuming I have a simple model dX/dt = -k*X/V, where X is amount, t is time (between 0 and 24 hours), V is volume, and k is rate.
I would like to add a certain amount of mass (M) into my system every 1 hour, in other words, adding mass on 1, 2, 3…23 hour. It does not need to be exactly on every hour, but could be a small interval (tau) around 1, 2, 3, … so equation becomes something like
dX/dt = -k*X/V + M/tau, M is zero when t is out of these small intervals.
I just cannot figure out a smart way to code this, and then solve the ODE. Could you give me some idea? Thanks in advance!
RuiHello everyone,
could you help me with my problem described below?
assuming I have a simple model dX/dt = -k*X/V, where X is amount, t is time (between 0 and 24 hours), V is volume, and k is rate.
I would like to add a certain amount of mass (M) into my system every 1 hour, in other words, adding mass on 1, 2, 3…23 hour. It does not need to be exactly on every hour, but could be a small interval (tau) around 1, 2, 3, … so equation becomes something like
dX/dt = -k*X/V + M/tau, M is zero when t is out of these small intervals.
I just cannot figure out a smart way to code this, and then solve the ODE. Could you give me some idea? Thanks in advance!
Rui Hello everyone,
could you help me with my problem described below?
assuming I have a simple model dX/dt = -k*X/V, where X is amount, t is time (between 0 and 24 hours), V is volume, and k is rate.
I would like to add a certain amount of mass (M) into my system every 1 hour, in other words, adding mass on 1, 2, 3…23 hour. It does not need to be exactly on every hour, but could be a small interval (tau) around 1, 2, 3, … so equation becomes something like
dX/dt = -k*X/V + M/tau, M is zero when t is out of these small intervals.
I just cannot figure out a smart way to code this, and then solve the ODE. Could you give me some idea? Thanks in advance!
Rui pulse function, differential equation MATLAB Answers — New Questions
Can anyone help me with these practice questions? trying to get the hang of MATLAB solo. Thanks
Polynomial interpolation using MATLAB
img = imread(‘Screenshot 2024-05-09 083558.png’);
imshow(img)Polynomial interpolation using MATLAB
img = imread(‘Screenshot 2024-05-09 083558.png’);
imshow(img) Polynomial interpolation using MATLAB
img = imread(‘Screenshot 2024-05-09 083558.png’);
imshow(img) matlab, matrix, interpolation MATLAB Answers — New Questions
model predictive control toolbox
What is the difference between mpcobj and sim commands in model predictive control toolbox. mpcobj command runs open loop system or closed loop systemWhat is the difference between mpcobj and sim commands in model predictive control toolbox. mpcobj command runs open loop system or closed loop system What is the difference between mpcobj and sim commands in model predictive control toolbox. mpcobj command runs open loop system or closed loop system model predictive control toolbox MATLAB Answers — New Questions
Please tell me save as text file !!!!!!!!!!!!!!!!!!!!
I want to change my result to text file
I use ascii file(change at origin), fi and fitmelting curves.m
After calculating using the ascii file(change at origin) and fitmelting curves.m, I got the resultant red graph. The black graph is the data I tried to calculate and the result is the red graph.
But the red graph is only saved as an image such as png, bmp. I want to change the red graph to a text file!!!!
Can you tell me how to do it ? ;(I want to change my result to text file
I use ascii file(change at origin), fi and fitmelting curves.m
After calculating using the ascii file(change at origin) and fitmelting curves.m, I got the resultant red graph. The black graph is the data I tried to calculate and the result is the red graph.
But the red graph is only saved as an image such as png, bmp. I want to change the red graph to a text file!!!!
Can you tell me how to do it ? ;( I want to change my result to text file
I use ascii file(change at origin), fi and fitmelting curves.m
After calculating using the ascii file(change at origin) and fitmelting curves.m, I got the resultant red graph. The black graph is the data I tried to calculate and the result is the red graph.
But the red graph is only saved as an image such as png, bmp. I want to change the red graph to a text file!!!!
Can you tell me how to do it ? ;( save method, text MATLAB Answers — New Questions
How do I convert decimals to exponents in a matrix?
I am trying to generate a matrix with exponents (ie. (8)^5), but the numbers appear as decimals instead. How do I fix this?
This is the code I used:
A=[1 (2)^1 (2)^2 (2)^3 (2)^4 (2)^5 0.20;1 (5)^1 (5)^2 (5)^3 (5)^4 (5)^5 0.29;1 (8)^1 (8)^2 (8)^3 (8)^4 (8)^5 0.44;1 (11)^1 (11)^2 (11)^3 (11)^4 (11)^5 0.50;1 (14)^1 (14)^2 (14)^3 (14)^4 (14)^5 0.66;1 (20)^1 (20)^2 (20)^3 (20)^4 (20)^5 0.56]
B=rref(A)I am trying to generate a matrix with exponents (ie. (8)^5), but the numbers appear as decimals instead. How do I fix this?
This is the code I used:
A=[1 (2)^1 (2)^2 (2)^3 (2)^4 (2)^5 0.20;1 (5)^1 (5)^2 (5)^3 (5)^4 (5)^5 0.29;1 (8)^1 (8)^2 (8)^3 (8)^4 (8)^5 0.44;1 (11)^1 (11)^2 (11)^3 (11)^4 (11)^5 0.50;1 (14)^1 (14)^2 (14)^3 (14)^4 (14)^5 0.66;1 (20)^1 (20)^2 (20)^3 (20)^4 (20)^5 0.56]
B=rref(A) I am trying to generate a matrix with exponents (ie. (8)^5), but the numbers appear as decimals instead. How do I fix this?
This is the code I used:
A=[1 (2)^1 (2)^2 (2)^3 (2)^4 (2)^5 0.20;1 (5)^1 (5)^2 (5)^3 (5)^4 (5)^5 0.29;1 (8)^1 (8)^2 (8)^3 (8)^4 (8)^5 0.44;1 (11)^1 (11)^2 (11)^3 (11)^4 (11)^5 0.50;1 (14)^1 (14)^2 (14)^3 (14)^4 (14)^5 0.66;1 (20)^1 (20)^2 (20)^3 (20)^4 (20)^5 0.56]
B=rref(A) matrix MATLAB Answers — New Questions
How to put the inputs for audiorecording in a Drop Down on appdesigner?
Hello!. I’m trying to create a Drop Down on appdesigner where you can chosse the input for an audiorecording. I mean, choose the microphone. I need to record an audio and then play it. Some ideas? . I puted an image for giving u an idea. Thanks a lot!Hello!. I’m trying to create a Drop Down on appdesigner where you can chosse the input for an audiorecording. I mean, choose the microphone. I need to record an audio and then play it. Some ideas? . I puted an image for giving u an idea. Thanks a lot! Hello!. I’m trying to create a Drop Down on appdesigner where you can chosse the input for an audiorecording. I mean, choose the microphone. I need to record an audio and then play it. Some ideas? . I puted an image for giving u an idea. Thanks a lot! appdesigner, drop down, audiorecording MATLAB Answers — New Questions
how can i solve eps y”+ mu a(x) y’-b(x)y=f(x) with boundary condition y(0)=y(1)=0
i want to know the function code for reaction convection diffusion equation in ode with two paremeter epsilon and mui want to know the function code for reaction convection diffusion equation in ode with two paremeter epsilon and mu i want to know the function code for reaction convection diffusion equation in ode with two paremeter epsilon and mu reaction convection diffusion equation, two parameter, singluarly perturbed ode prob MATLAB Answers — New Questions
Is there a generic modal dialog for appdesigner that can be customized?
I like the modal uialert and uiconfirm dialogs in appdesigner.
Is there a way to make custom dialogs that behave like those (that is, stick within the bounds of the UIFigure and darken it)
I would like to make dialogs like that but be able to add custom buttons, check boxes, pulldown menus, etc to themI like the modal uialert and uiconfirm dialogs in appdesigner.
Is there a way to make custom dialogs that behave like those (that is, stick within the bounds of the UIFigure and darken it)
I would like to make dialogs like that but be able to add custom buttons, check boxes, pulldown menus, etc to them I like the modal uialert and uiconfirm dialogs in appdesigner.
Is there a way to make custom dialogs that behave like those (that is, stick within the bounds of the UIFigure and darken it)
I would like to make dialogs like that but be able to add custom buttons, check boxes, pulldown menus, etc to them appdesigner, uialert, uiconfirm MATLAB Answers — New Questions
is possible to Simulink coder Integrate with another base code
I generated code with the help of Simulink coder. I don’t have Embedded coder, so I used that, Integrate Simulink coder with other code is possible?I generated code with the help of Simulink coder. I don’t have Embedded coder, so I used that, Integrate Simulink coder with other code is possible? I generated code with the help of Simulink coder. I don’t have Embedded coder, so I used that, Integrate Simulink coder with other code is possible? simulink coder, integration MATLAB Answers — New Questions
Pass variable name through variable of a custome save function made error
Hello guy
I am making a custom save function. I tried declare the variable name, file name first in the script then pass them to my custom save function. However when do that the save function in my custom function return error.
Error using save
The argument to -STRUCT must be the name of a scalar structure variable.
But if I call save function with the same declared variables like before, it work. Here is my code. The saveModel function is my custom function. I removed it by the comment line. Thank for your help.
folderName = "E:KLTNtrained_modelgait_regression"
modelName = "knee_toruqe_trainedModel"
fileName = folderName + "" + modelName + ".mat"
%saveModel(fileName,modelName)
save(fileName,"-struct",modelName)
function saveModel(file,model)
save(file,"-struct",model)
disp("Save model")
disp(model)
disp("as file")
disp(file)
endHello guy
I am making a custom save function. I tried declare the variable name, file name first in the script then pass them to my custom save function. However when do that the save function in my custom function return error.
Error using save
The argument to -STRUCT must be the name of a scalar structure variable.
But if I call save function with the same declared variables like before, it work. Here is my code. The saveModel function is my custom function. I removed it by the comment line. Thank for your help.
folderName = "E:KLTNtrained_modelgait_regression"
modelName = "knee_toruqe_trainedModel"
fileName = folderName + "" + modelName + ".mat"
%saveModel(fileName,modelName)
save(fileName,"-struct",modelName)
function saveModel(file,model)
save(file,"-struct",model)
disp("Save model")
disp(model)
disp("as file")
disp(file)
end Hello guy
I am making a custom save function. I tried declare the variable name, file name first in the script then pass them to my custom save function. However when do that the save function in my custom function return error.
Error using save
The argument to -STRUCT must be the name of a scalar structure variable.
But if I call save function with the same declared variables like before, it work. Here is my code. The saveModel function is my custom function. I removed it by the comment line. Thank for your help.
folderName = "E:KLTNtrained_modelgait_regression"
modelName = "knee_toruqe_trainedModel"
fileName = folderName + "" + modelName + ".mat"
%saveModel(fileName,modelName)
save(fileName,"-struct",modelName)
function saveModel(file,model)
save(file,"-struct",model)
disp("Save model")
disp(model)
disp("as file")
disp(file)
end save, struct, error, function MATLAB Answers — New Questions
Where can i access the variables defined in the official Double Lane Change Reference Application example by matlab?
This example " Double lane change example " by matlab has no access to change variables defined such as VEH.FrontAxlePositionfromCG and others. I have no access to the script file in this example.
Please tell me how to access the script file to change variable values . Below are the ss to the values i am speaking ofThis example " Double lane change example " by matlab has no access to change variables defined such as VEH.FrontAxlePositionfromCG and others. I have no access to the script file in this example.
Please tell me how to access the script file to change variable values . Below are the ss to the values i am speaking of This example " Double lane change example " by matlab has no access to change variables defined such as VEH.FrontAxlePositionfromCG and others. I have no access to the script file in this example.
Please tell me how to access the script file to change variable values . Below are the ss to the values i am speaking of simulink, simulation, vehicle dynamics, examples, matlab script, double lane, driver assesment MATLAB Answers — New Questions
CODE MATLAB TO CALCULATE THE AREA BY USING SIMPSON METHOD ?
THIS AREA HAS 4 COORDINATES
x = [10.7869, 10.7779, 10.7585, 10.7612, 10.7655, 10.7677, 10.7760];
y = [106.6645, 106.6561, 106.6616, 106.6748, 106.6815, 106.6744, 106.6828];THIS AREA HAS 4 COORDINATES
x = [10.7869, 10.7779, 10.7585, 10.7612, 10.7655, 10.7677, 10.7760];
y = [106.6645, 106.6561, 106.6616, 106.6748, 106.6815, 106.6744, 106.6828]; THIS AREA HAS 4 COORDINATES
x = [10.7869, 10.7779, 10.7585, 10.7612, 10.7655, 10.7677, 10.7760];
y = [106.6645, 106.6561, 106.6616, 106.6748, 106.6815, 106.6744, 106.6828]; #code #simpson method MATLAB Answers — New Questions
How does transfer signals through store memory swapping in different software components? use the System Composer toolbox.
Hi,
I am using System Composer to build software architecture and ultimately implement code generation.
My software architecture includes multiple parallel running tasks, and I use different components in the system composer to represent them.
Different components plan to use swapped memory for signal transmission. For example, the sensor module will receive data from external sensors for processing, and then transmit the processed signal to other tasks for calculation.
Our software architecture plan will be implemented using the following methods. Store memory and store write models were created in the sensor module for signal transmission. In the task module (task 2), use the store read module to read the signals written into memory by the sensor module.
However, during the simulation process, it was found that the data written by the sensor module could not be read in the task component. Is there any suggestion to implement this architecture?
Thanks,Hi,
I am using System Composer to build software architecture and ultimately implement code generation.
My software architecture includes multiple parallel running tasks, and I use different components in the system composer to represent them.
Different components plan to use swapped memory for signal transmission. For example, the sensor module will receive data from external sensors for processing, and then transmit the processed signal to other tasks for calculation.
Our software architecture plan will be implemented using the following methods. Store memory and store write models were created in the sensor module for signal transmission. In the task module (task 2), use the store read module to read the signals written into memory by the sensor module.
However, during the simulation process, it was found that the data written by the sensor module could not be read in the task component. Is there any suggestion to implement this architecture?
Thanks, Hi,
I am using System Composer to build software architecture and ultimately implement code generation.
My software architecture includes multiple parallel running tasks, and I use different components in the system composer to represent them.
Different components plan to use swapped memory for signal transmission. For example, the sensor module will receive data from external sensors for processing, and then transmit the processed signal to other tasks for calculation.
Our software architecture plan will be implemented using the following methods. Store memory and store write models were created in the sensor module for signal transmission. In the task module (task 2), use the store read module to read the signals written into memory by the sensor module.
However, during the simulation process, it was found that the data written by the sensor module could not be read in the task component. Is there any suggestion to implement this architecture?
Thanks, system composer, simulink, data store memory, matlab, software architecture MATLAB Answers — New Questions
Please support hot reload with Visual Studio 2022
Visual Studio 2022 was released in November and includes hot reload support for C/C++ development. It would be great if MATLAB and Simulink S-Functions building this code using the MEX tool could use hot reload to let developers get through multiple edit/build cycles faster. Right now, to change one line of code in a mex binary after finding a bug in a Simulink S-Function, you have to stop Simulink, clear mex, make the change, run mex to build the mexw64 binary, then "update model" in Simulink to cause the mex binaries to be reloaded into the MATLAB process space, and then run your Simulink model.Visual Studio 2022 was released in November and includes hot reload support for C/C++ development. It would be great if MATLAB and Simulink S-Functions building this code using the MEX tool could use hot reload to let developers get through multiple edit/build cycles faster. Right now, to change one line of code in a mex binary after finding a bug in a Simulink S-Function, you have to stop Simulink, clear mex, make the change, run mex to build the mexw64 binary, then "update model" in Simulink to cause the mex binaries to be reloaded into the MATLAB process space, and then run your Simulink model. Visual Studio 2022 was released in November and includes hot reload support for C/C++ development. It would be great if MATLAB and Simulink S-Functions building this code using the MEX tool could use hot reload to let developers get through multiple edit/build cycles faster. Right now, to change one line of code in a mex binary after finding a bug in a Simulink S-Function, you have to stop Simulink, clear mex, make the change, run mex to build the mexw64 binary, then "update model" in Simulink to cause the mex binaries to be reloaded into the MATLAB process space, and then run your Simulink model. visual studio mex s-function simulink MATLAB Answers — New Questions
SImulation termination for SiC-base converter in simscape electriacal
I tried to use SIC MOSFET devices to build DAB converter, but it was difficult to converge. The model of the device I am using is CAS30012BM2 of Wolfspeed. Compared to ordinary MOSFETs, the characteristic is that the parasitic capacitance is very large. I cannot find a suitable solver configurtation to achieve stable operation. Even if I use discrete and open the local solver to run for a while, an error will be reported, and the waveform of the system will also be distorted. The reason why I think it is related to parasitic capacitance is because I can simulate correctly using the built-in MOSFET in Matlab under the default configuration of the solver. So I wonder how to set this simulation condition, because this circuit is not actually complicated. (I used the MATLAB version as 2020a). Thank you very much.I tried to use SIC MOSFET devices to build DAB converter, but it was difficult to converge. The model of the device I am using is CAS30012BM2 of Wolfspeed. Compared to ordinary MOSFETs, the characteristic is that the parasitic capacitance is very large. I cannot find a suitable solver configurtation to achieve stable operation. Even if I use discrete and open the local solver to run for a while, an error will be reported, and the waveform of the system will also be distorted. The reason why I think it is related to parasitic capacitance is because I can simulate correctly using the built-in MOSFET in Matlab under the default configuration of the solver. So I wonder how to set this simulation condition, because this circuit is not actually complicated. (I used the MATLAB version as 2020a). Thank you very much. I tried to use SIC MOSFET devices to build DAB converter, but it was difficult to converge. The model of the device I am using is CAS30012BM2 of Wolfspeed. Compared to ordinary MOSFETs, the characteristic is that the parasitic capacitance is very large. I cannot find a suitable solver configurtation to achieve stable operation. Even if I use discrete and open the local solver to run for a while, an error will be reported, and the waveform of the system will also be distorted. The reason why I think it is related to parasitic capacitance is because I can simulate correctly using the built-in MOSFET in Matlab under the default configuration of the solver. So I wonder how to set this simulation condition, because this circuit is not actually complicated. (I used the MATLAB version as 2020a). Thank you very much. simpscape, sover configuration, sic, inconvergence MATLAB Answers — New Questions