Category: Matlab
Category Archives: Matlab
MATLAB Randomly Changes Values in Array to Scientific Notation
I have a script that reads inputs from an excel file, then stores specific arrays that I need, as different variables.
These will later need to be written to an output txt file along with other strings (this output needs to be a specific format so it can feed an executable).
My problem is that when I read the data from the excel file, MATLAB keeps changing only two of the values to scientific notation.
My code is structured like so:
DATAINEED = readtable(fullfile(input_location,filename));
array1 = unique(DATAINEED.array1);
array2 = unique(DATAINEED.array2);
My problem is MATLAB then stores "array1" like so when I open the variable:
1000
2000
3000
4e+03
5000
6e+03
If I type "array1" in the command window, it prints out just fine (1000, 2000, 3000, 4000…etc.)
The problem is, if I try to print the variable along with another string so it can feed into the text file, it keeps that weird scientific notation for the couple of values.
I’m using the following code:
OutputRow1 = "array1 has: "+sprintf(‘%d ‘,array1’);
This results in:
OutputRow1 =
"array1 has: 1000 2000 3000 4e+03 5000 6e+03"
Array 2 is completely fine (also an array of numbers, but not in the thousands). I’ve tried format short g and long g, doesn’t help. Wondering if anyone has any insights, suggestions or other ways to accomplish what I need.I have a script that reads inputs from an excel file, then stores specific arrays that I need, as different variables.
These will later need to be written to an output txt file along with other strings (this output needs to be a specific format so it can feed an executable).
My problem is that when I read the data from the excel file, MATLAB keeps changing only two of the values to scientific notation.
My code is structured like so:
DATAINEED = readtable(fullfile(input_location,filename));
array1 = unique(DATAINEED.array1);
array2 = unique(DATAINEED.array2);
My problem is MATLAB then stores "array1" like so when I open the variable:
1000
2000
3000
4e+03
5000
6e+03
If I type "array1" in the command window, it prints out just fine (1000, 2000, 3000, 4000…etc.)
The problem is, if I try to print the variable along with another string so it can feed into the text file, it keeps that weird scientific notation for the couple of values.
I’m using the following code:
OutputRow1 = "array1 has: "+sprintf(‘%d ‘,array1’);
This results in:
OutputRow1 =
"array1 has: 1000 2000 3000 4e+03 5000 6e+03"
Array 2 is completely fine (also an array of numbers, but not in the thousands). I’ve tried format short g and long g, doesn’t help. Wondering if anyone has any insights, suggestions or other ways to accomplish what I need. I have a script that reads inputs from an excel file, then stores specific arrays that I need, as different variables.
These will later need to be written to an output txt file along with other strings (this output needs to be a specific format so it can feed an executable).
My problem is that when I read the data from the excel file, MATLAB keeps changing only two of the values to scientific notation.
My code is structured like so:
DATAINEED = readtable(fullfile(input_location,filename));
array1 = unique(DATAINEED.array1);
array2 = unique(DATAINEED.array2);
My problem is MATLAB then stores "array1" like so when I open the variable:
1000
2000
3000
4e+03
5000
6e+03
If I type "array1" in the command window, it prints out just fine (1000, 2000, 3000, 4000…etc.)
The problem is, if I try to print the variable along with another string so it can feed into the text file, it keeps that weird scientific notation for the couple of values.
I’m using the following code:
OutputRow1 = "array1 has: "+sprintf(‘%d ‘,array1’);
This results in:
OutputRow1 =
"array1 has: 1000 2000 3000 4e+03 5000 6e+03"
Array 2 is completely fine (also an array of numbers, but not in the thousands). I’ve tried format short g and long g, doesn’t help. Wondering if anyone has any insights, suggestions or other ways to accomplish what I need. array, scientific notation, matlab, sprintf, storing variables, double MATLAB Answers — New Questions
Why is MATLAB slow after moving files to network drive?
The execution time in MATLAB is much longer when executed from a network drive compared to a local directory. For example, "genpath" takes a few seconds from a local directory, but it takes several minutes from a network drive.
Why is MATLAB slow during startup and when performing specific operations, such as "genpath", after moving files to a network drive?The execution time in MATLAB is much longer when executed from a network drive compared to a local directory. For example, "genpath" takes a few seconds from a local directory, but it takes several minutes from a network drive.
Why is MATLAB slow during startup and when performing specific operations, such as "genpath", after moving files to a network drive? The execution time in MATLAB is much longer when executed from a network drive compared to a local directory. For example, "genpath" takes a few seconds from a local directory, but it takes several minutes from a network drive.
Why is MATLAB slow during startup and when performing specific operations, such as "genpath", after moving files to a network drive? slow, matalb, network, files MATLAB Answers — New Questions
every restart of Matlab path is lost
where is may pathdef directorywhere is may pathdef directory where is may pathdef directory pathdef MATLAB Answers — New Questions
starting matlab after intall on linux
Iam using Debian. I just installed matlab 2026a. It seemed that everything was fine during installation.
When I try to start matlab, I see a flu window. In front of that window I see a blue small page writing MATLAB. It does not go away and I cannot use matlab. How can I solve this?Iam using Debian. I just installed matlab 2026a. It seemed that everything was fine during installation.
When I try to start matlab, I see a flu window. In front of that window I see a blue small page writing MATLAB. It does not go away and I cannot use matlab. How can I solve this? Iam using Debian. I just installed matlab 2026a. It seemed that everything was fine during installation.
When I try to start matlab, I see a flu window. In front of that window I see a blue small page writing MATLAB. It does not go away and I cannot use matlab. How can I solve this? starting matlab, linux MATLAB Answers — New Questions
It seems like Simulation of Cubesat and eclipse time is not correct
Hello,
I am extending the the cubesat simulation project [open(‘asbCubeSatVehicleTemplate.sltx’)] template with some functions. Therefore I need to know if the sun is in view or not. Fortunately there is a block that calculates it and gives out 1 when sun is in view and 0 when it is not.
But it seems like this is not correct when I compare the boolean to the visualization.
I simulated half an orbit on the dark side of the earth, but in the middle of the simulation the satellite sees the sun again.
Can someone help me to fix this problem mathematecally or doas the visualization is not correct?
Best regards.Hello,
I am extending the the cubesat simulation project [open(‘asbCubeSatVehicleTemplate.sltx’)] template with some functions. Therefore I need to know if the sun is in view or not. Fortunately there is a block that calculates it and gives out 1 when sun is in view and 0 when it is not.
But it seems like this is not correct when I compare the boolean to the visualization.
I simulated half an orbit on the dark side of the earth, but in the middle of the simulation the satellite sees the sun again.
Can someone help me to fix this problem mathematecally or doas the visualization is not correct?
Best regards. Hello,
I am extending the the cubesat simulation project [open(‘asbCubeSatVehicleTemplate.sltx’)] template with some functions. Therefore I need to know if the sun is in view or not. Fortunately there is a block that calculates it and gives out 1 when sun is in view and 0 when it is not.
But it seems like this is not correct when I compare the boolean to the visualization.
I simulated half an orbit on the dark side of the earth, but in the middle of the simulation the satellite sees the sun again.
Can someone help me to fix this problem mathematecally or doas the visualization is not correct?
Best regards. cubesat, aerospace toolbox, sun in view, cubesat simulation project MATLAB Answers — New Questions
Question regarding Virtual Tractor steering logic in the Reverse-Capable Motion Planning example
I am currently exploring the tractor-trailer reversing control logic used in the Navigation Toolbox example titled "Reverse-Capable Motion Planning for Tractor-Trailer Model Using plannerControlRRT." While analyzing the helper files, I came across the virtualToActualSteering function inside exampleHelperPurePursuitGetSteering.m. The code comments explicitly state that this function was generated by the Symbolic Math Toolbox version 8.6.
Here is the generated code block:
function alphaDes = virtualToActualSteering(beta, L1, L2, M)
%virtualToActualSteering Convert trailer’s virtual steer command to truck steering angle
%
% This function was generated by the Symbolic Math Toolbox version 8.6.
% 13-Aug-2020 15:29:19
t2 = sign(beta);
t3 = L2.^2;
t4 = beta.*t2;
t5 = tan(t4);
t6 = t5.^2;
t7 = t6+1.0;
alphaDes = t2.*atan(-(L1.*M.*t5-sqrt(t7).*abs(t5).*sqrt(L1.^2.*t3))./(t3.*t7-M.^2));
end
I would like to deeply understand how this mathematical relationship is derived. Specifically, I want to know which base kinematic equations, differential constraints, and geometric relationships of the truck-trailer system were fed into the Symbolic Math Toolbox to yield this exact analytical solution. Could anyone share the underlying theoretical background, the differential equations involved, or the symbolic derivation steps used to achieve this exact formulation?
Thank you in advance for your help.I am currently exploring the tractor-trailer reversing control logic used in the Navigation Toolbox example titled "Reverse-Capable Motion Planning for Tractor-Trailer Model Using plannerControlRRT." While analyzing the helper files, I came across the virtualToActualSteering function inside exampleHelperPurePursuitGetSteering.m. The code comments explicitly state that this function was generated by the Symbolic Math Toolbox version 8.6.
Here is the generated code block:
function alphaDes = virtualToActualSteering(beta, L1, L2, M)
%virtualToActualSteering Convert trailer’s virtual steer command to truck steering angle
%
% This function was generated by the Symbolic Math Toolbox version 8.6.
% 13-Aug-2020 15:29:19
t2 = sign(beta);
t3 = L2.^2;
t4 = beta.*t2;
t5 = tan(t4);
t6 = t5.^2;
t7 = t6+1.0;
alphaDes = t2.*atan(-(L1.*M.*t5-sqrt(t7).*abs(t5).*sqrt(L1.^2.*t3))./(t3.*t7-M.^2));
end
I would like to deeply understand how this mathematical relationship is derived. Specifically, I want to know which base kinematic equations, differential constraints, and geometric relationships of the truck-trailer system were fed into the Symbolic Math Toolbox to yield this exact analytical solution. Could anyone share the underlying theoretical background, the differential equations involved, or the symbolic derivation steps used to achieve this exact formulation?
Thank you in advance for your help. I am currently exploring the tractor-trailer reversing control logic used in the Navigation Toolbox example titled "Reverse-Capable Motion Planning for Tractor-Trailer Model Using plannerControlRRT." While analyzing the helper files, I came across the virtualToActualSteering function inside exampleHelperPurePursuitGetSteering.m. The code comments explicitly state that this function was generated by the Symbolic Math Toolbox version 8.6.
Here is the generated code block:
function alphaDes = virtualToActualSteering(beta, L1, L2, M)
%virtualToActualSteering Convert trailer’s virtual steer command to truck steering angle
%
% This function was generated by the Symbolic Math Toolbox version 8.6.
% 13-Aug-2020 15:29:19
t2 = sign(beta);
t3 = L2.^2;
t4 = beta.*t2;
t5 = tan(t4);
t6 = t5.^2;
t7 = t6+1.0;
alphaDes = t2.*atan(-(L1.*M.*t5-sqrt(t7).*abs(t5).*sqrt(L1.^2.*t3))./(t3.*t7-M.^2));
end
I would like to deeply understand how this mathematical relationship is derived. Specifically, I want to know which base kinematic equations, differential constraints, and geometric relationships of the truck-trailer system were fed into the Symbolic Math Toolbox to yield this exact analytical solution. Could anyone share the underlying theoretical background, the differential equations involved, or the symbolic derivation steps used to achieve this exact formulation?
Thank you in advance for your help. truck-trailer MATLAB Answers — New Questions
Issue with MATLAB‑Generated PowerPoint Slides
hello,
I am encountering a problem when trying to format a picture that I insert into a PowerPoint slide generated from MATLAB using the Report Generator toolbox, mlreportgen.ppt? Specifically, I cannot apply a solid border around the image.
I’ve attached a MATLAB script that creates a figure and inserts it into the presentation. I’ve tried several approaches (e.g., setting the BorderColor, BorderWidth, and using a PictureStyle), but none of them produce any border, they appears to be ignored. I have tried vers 2022a and 2025a.
Could someone advise on the correct way to add a solid, colored border to an image in a PPT slide.hello,
I am encountering a problem when trying to format a picture that I insert into a PowerPoint slide generated from MATLAB using the Report Generator toolbox, mlreportgen.ppt? Specifically, I cannot apply a solid border around the image.
I’ve attached a MATLAB script that creates a figure and inserts it into the presentation. I’ve tried several approaches (e.g., setting the BorderColor, BorderWidth, and using a PictureStyle), but none of them produce any border, they appears to be ignored. I have tried vers 2022a and 2025a.
Could someone advise on the correct way to add a solid, colored border to an image in a PPT slide. hello,
I am encountering a problem when trying to format a picture that I insert into a PowerPoint slide generated from MATLAB using the Report Generator toolbox, mlreportgen.ppt? Specifically, I cannot apply a solid border around the image.
I’ve attached a MATLAB script that creates a figure and inserts it into the presentation. I’ve tried several approaches (e.g., setting the BorderColor, BorderWidth, and using a PictureStyle), but none of them produce any border, they appears to be ignored. I have tried vers 2022a and 2025a.
Could someone advise on the correct way to add a solid, colored border to an image in a PPT slide. matlab generated powerpoint slides MATLAB Answers — New Questions
installation question. I downloaded for an offline installation since I have an installation key. However, when I run the installer from the downloaded files, nothing runs.
installation question. I downloaded for an offline installation since I have an installation key. However, when I run the installer from the downloaded files, nothing runs. Not even a splash window. How do I fix this? Thanks.
R2026a. Mac Silicon.installation question. I downloaded for an offline installation since I have an installation key. However, when I run the installer from the downloaded files, nothing runs. Not even a splash window. How do I fix this? Thanks.
R2026a. Mac Silicon. installation question. I downloaded for an offline installation since I have an installation key. However, when I run the installer from the downloaded files, nothing runs. Not even a splash window. How do I fix this? Thanks.
R2026a. Mac Silicon. installation, file installation key MATLAB Answers — New Questions
Possible to use box or violin plots, with unequal x and y axis spacing?
We are attempting to show, in one plot, the differences in values (through time) observed by three different instrument types. These instruments were measuring fluctuations in the speed of a fluid at different elevations above the bed, for the same time period (60 seconds). We deployed a vertical transect of 9 instruments of type A, at every 10 cm, recording data at 2 Hz. We delpoyed 2 of instrument type B, at 0.5 and 1.0m, recording data at 32 Hz. We have obsevrations from instrument C, at every 10 cm (up to 1m), at 240 Hz. What I would like to do, is plot the data as:
x axis: shear velocity value
y axis: elevation of observation
data points: box or violins plots of the data observed at that elevation, to represent the distribution of values (variable along the x axis over the entire 60 sec) at a constant elevation (y axis) with colors indicating which instrument.
I’ve attached a sketch of what I envision. The box plots will show the distribution of values in time observed by each instrument, at each elevation. I cannot find a way to create this plot (I’ve searched and searched, but must not be using the right combination of terms). Do any of you know of existing commands? Or perhaps have suggestions for how to write my own function(s) to create this?We are attempting to show, in one plot, the differences in values (through time) observed by three different instrument types. These instruments were measuring fluctuations in the speed of a fluid at different elevations above the bed, for the same time period (60 seconds). We deployed a vertical transect of 9 instruments of type A, at every 10 cm, recording data at 2 Hz. We delpoyed 2 of instrument type B, at 0.5 and 1.0m, recording data at 32 Hz. We have obsevrations from instrument C, at every 10 cm (up to 1m), at 240 Hz. What I would like to do, is plot the data as:
x axis: shear velocity value
y axis: elevation of observation
data points: box or violins plots of the data observed at that elevation, to represent the distribution of values (variable along the x axis over the entire 60 sec) at a constant elevation (y axis) with colors indicating which instrument.
I’ve attached a sketch of what I envision. The box plots will show the distribution of values in time observed by each instrument, at each elevation. I cannot find a way to create this plot (I’ve searched and searched, but must not be using the right combination of terms). Do any of you know of existing commands? Or perhaps have suggestions for how to write my own function(s) to create this? We are attempting to show, in one plot, the differences in values (through time) observed by three different instrument types. These instruments were measuring fluctuations in the speed of a fluid at different elevations above the bed, for the same time period (60 seconds). We deployed a vertical transect of 9 instruments of type A, at every 10 cm, recording data at 2 Hz. We delpoyed 2 of instrument type B, at 0.5 and 1.0m, recording data at 32 Hz. We have obsevrations from instrument C, at every 10 cm (up to 1m), at 240 Hz. What I would like to do, is plot the data as:
x axis: shear velocity value
y axis: elevation of observation
data points: box or violins plots of the data observed at that elevation, to represent the distribution of values (variable along the x axis over the entire 60 sec) at a constant elevation (y axis) with colors indicating which instrument.
I’ve attached a sketch of what I envision. The box plots will show the distribution of values in time observed by each instrument, at each elevation. I cannot find a way to create this plot (I’ve searched and searched, but must not be using the right combination of terms). Do any of you know of existing commands? Or perhaps have suggestions for how to write my own function(s) to create this? box plot, violin plot, scatter plot MATLAB Answers — New Questions
What is actually Normalized Frequency?
I mean how could we define or describes it?
I am new to MATLAB. I have calculated the the Frequency of 1st zero, Level of 1st slobe, Level of 2nd slobe and level of 3rd slobe in Rectangular, Triangular, Hann, Hamming, Blackman etc type in Frequency Domain after typing "wintool" in the window command of the MATLAB. ThanksI mean how could we define or describes it?
I am new to MATLAB. I have calculated the the Frequency of 1st zero, Level of 1st slobe, Level of 2nd slobe and level of 3rd slobe in Rectangular, Triangular, Hann, Hamming, Blackman etc type in Frequency Domain after typing "wintool" in the window command of the MATLAB. Thanks I mean how could we define or describes it?
I am new to MATLAB. I have calculated the the Frequency of 1st zero, Level of 1st slobe, Level of 2nd slobe and level of 3rd slobe in Rectangular, Triangular, Hann, Hamming, Blackman etc type in Frequency Domain after typing "wintool" in the window command of the MATLAB. Thanks #matlab, # glossary MATLAB Answers — New Questions
Can I solve a symetric system using only the lower triangular portion of the matrix?
I have a sparse, complex-valued symmetric matrix, Afull, where I have stored only the lower triangular component (and diagonal) as matrix A.
spy(A) looks like:
mldivide of A is poorly conditioned:
>> u=Ab;
Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 7.011677e-19.
I get the same error when I specify that the matrix is lower-triangular in LINSOLVE:
>> opts.LT=true;u=linsolve(full(A),b,opts);
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate.
RCOND = 7.011677e-19.
When I re-build the full matrix from the LT(+diagonal) component A:
>> Afull=A+A’;
>> for ii=1:size(A,1)
Afull(ii,ii)=A(ii,ii);
end
spy(Afull) looks like:
>> ufull=Afullb;
>>
The matrix condition is now fine.
Is it possible to get Matlab to solve the système with ONLY the lower component (A)?I have a sparse, complex-valued symmetric matrix, Afull, where I have stored only the lower triangular component (and diagonal) as matrix A.
spy(A) looks like:
mldivide of A is poorly conditioned:
>> u=Ab;
Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 7.011677e-19.
I get the same error when I specify that the matrix is lower-triangular in LINSOLVE:
>> opts.LT=true;u=linsolve(full(A),b,opts);
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate.
RCOND = 7.011677e-19.
When I re-build the full matrix from the LT(+diagonal) component A:
>> Afull=A+A’;
>> for ii=1:size(A,1)
Afull(ii,ii)=A(ii,ii);
end
spy(Afull) looks like:
>> ufull=Afullb;
>>
The matrix condition is now fine.
Is it possible to get Matlab to solve the système with ONLY the lower component (A)? I have a sparse, complex-valued symmetric matrix, Afull, where I have stored only the lower triangular component (and diagonal) as matrix A.
spy(A) looks like:
mldivide of A is poorly conditioned:
>> u=Ab;
Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 7.011677e-19.
I get the same error when I specify that the matrix is lower-triangular in LINSOLVE:
>> opts.LT=true;u=linsolve(full(A),b,opts);
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate.
RCOND = 7.011677e-19.
When I re-build the full matrix from the LT(+diagonal) component A:
>> Afull=A+A’;
>> for ii=1:size(A,1)
Afull(ii,ii)=A(ii,ii);
end
spy(Afull) looks like:
>> ufull=Afullb;
>>
The matrix condition is now fine.
Is it possible to get Matlab to solve the système with ONLY the lower component (A)? sparse matrix, symmetric, complex valued, lower triangular, upper triangular, mldivide, linsolve MATLAB Answers — New Questions
Clock domain crossing in hdl coder
I have an application where i’m generating HDL in a cyclone V for an MII interface to an Ethernet PHY. I read the documentation about using a triggered subystem as a separate clock ( https://www.mathworks.com/help/hdlcoder/ug/use-triggered-subsystem-for-asynchronous-clock-domain.html ) and I noticed the verilog code does treat the RXC signal as a true clock. However, I’m having trouble getting the CDC logic to convert properly. It seems even when I use a Dual Rate Dual Port RAM with different sample rates, it still uses a single clock with clock enables to derive the different rates rather than using RXC as the clock for port A and IPCORE_CLK for port B. I also see no option to use an asynchronous FIFO (dcfifo) in the libraray browser. How can i properly implement CDC logic using simulink tools?I have an application where i’m generating HDL in a cyclone V for an MII interface to an Ethernet PHY. I read the documentation about using a triggered subystem as a separate clock ( https://www.mathworks.com/help/hdlcoder/ug/use-triggered-subsystem-for-asynchronous-clock-domain.html ) and I noticed the verilog code does treat the RXC signal as a true clock. However, I’m having trouble getting the CDC logic to convert properly. It seems even when I use a Dual Rate Dual Port RAM with different sample rates, it still uses a single clock with clock enables to derive the different rates rather than using RXC as the clock for port A and IPCORE_CLK for port B. I also see no option to use an asynchronous FIFO (dcfifo) in the libraray browser. How can i properly implement CDC logic using simulink tools? I have an application where i’m generating HDL in a cyclone V for an MII interface to an Ethernet PHY. I read the documentation about using a triggered subystem as a separate clock ( https://www.mathworks.com/help/hdlcoder/ug/use-triggered-subsystem-for-asynchronous-clock-domain.html ) and I noticed the verilog code does treat the RXC signal as a true clock. However, I’m having trouble getting the CDC logic to convert properly. It seems even when I use a Dual Rate Dual Port RAM with different sample rates, it still uses a single clock with clock enables to derive the different rates rather than using RXC as the clock for port A and IPCORE_CLK for port B. I also see no option to use an asynchronous FIFO (dcfifo) in the libraray browser. How can i properly implement CDC logic using simulink tools? hdl coder MATLAB Answers — New Questions
How to call kummerU for a stand alone program
Can someone help me with the question how to call the Matlab function kummerU used in an application which I want to compile for stand alone use?
Thanks in advance,
Ed Veling
Matlab, R2025aCan someone help me with the question how to call the Matlab function kummerU used in an application which I want to compile for stand alone use?
Thanks in advance,
Ed Veling
Matlab, R2025a Can someone help me with the question how to call the Matlab function kummerU used in an application which I want to compile for stand alone use?
Thanks in advance,
Ed Veling
Matlab, R2025a kummeru MATLAB Answers — New Questions
‘untitled_cgxe.mexw64’ removed
I’m learning real-time audio processing with the webinar "Real-time Audio Processing for Algorithm Prototyping and Custom Measurements" (https://se.mathworks.com/videos/real-time-audio-processing-for-algorithm-prototyping-and-custom-measurements-121075.html) videos and scripts.
The scripts work well in Matlab, but when I try to run the simulink model as described in the video,
I got the following errors:
### Build procedure for model: ‘untitled’ aborted due to an error.
Problem creating simulation target for the model ‘untitled’.
Component:Simulink | Category:Model error
Error(s) encountered while building simulation target MEX-file for model ‘untitled’.
Caused by:
F:codematlab_dspmyrealtimeslprj_cgxeuntitledsrc>"D:Matlab 2018bsyslcc64lcc64binlccmake.exe" -f untitled_cgxe.lmk
cannot open 2018bexternlibwin64microsoft
"D:Matlab 2018bsyslcc64lcc64binlcc64.exe" -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -nodeclspec -I"D:Matlab 2018bexterninclude" -I"D:Matlab 2018bsimulinkinclude" -I"D:Matlab 2018brtwcsrc" -I"F:研究生可听化codematlab_dspmyrealtime" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cprj" -I"D:Matlab 2018bsyslcc64lcc64include64" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cgxeuntitledsrc" -I"D:Matlab 2018btoolboxsharedspcsrc_mlexterninclude" "untitled_cgxe.c"
"D:Matlab 2018bsyslcc64lcc64binlcc64.exe" -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -nodeclspec -I"D:Matlab 2018bexterninclude" -I"D:Matlab 2018bsimulinkinclude" -I"D:Matlab 2018brtwcsrc" -I"F:研究生可听化codematlab_dspmyrealtime" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cprj" -I"D:Matlab 2018bsyslcc64lcc64include64" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cgxeuntitledsrc" -I"D:Matlab 2018btoolboxsharedspcsrc_mlexterninclude" "m_Gylj7rInPPNWHHI52iOhLH.c"
"D:Matlab 2018bsyslcc64lcc64binlcc64.exe" -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -nodeclspec -I"D:Matlab 2018bexterninclude" -I"D:Matlab 2018bsimulinkinclude" -I"D:Matlab 2018brtwcsrc" -I"F:研究生可听化codematlab_dspmyrealtime" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cprj" -I"D:Matlab 2018bsyslcc64lcc64include64" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cgxeuntitledsrc" -I"D:Matlab 2018btoolboxsharedspcsrc_mlexterninclude" "untitled_cgxe_registry.c"
"D:Matlab 2018bsyslcc64lcc64binlcclnk64.exe" -s -dll -L"D:Matlab 2018bsyslcc64lcc64lib64" -entry LibMain -map sfun.map -o untitled_cgxe.mexw64 @untitled_cgxe.lmko
D:Matlab 2018bsyslcc64lcc64binlccmake.exe: Error code 1
D:Matlab 2018bsyslcc64lcc64binlccmake.exe: ‘untitled_cgxe.mexw64’ removed.
Thank you!I’m learning real-time audio processing with the webinar "Real-time Audio Processing for Algorithm Prototyping and Custom Measurements" (https://se.mathworks.com/videos/real-time-audio-processing-for-algorithm-prototyping-and-custom-measurements-121075.html) videos and scripts.
The scripts work well in Matlab, but when I try to run the simulink model as described in the video,
I got the following errors:
### Build procedure for model: ‘untitled’ aborted due to an error.
Problem creating simulation target for the model ‘untitled’.
Component:Simulink | Category:Model error
Error(s) encountered while building simulation target MEX-file for model ‘untitled’.
Caused by:
F:codematlab_dspmyrealtimeslprj_cgxeuntitledsrc>"D:Matlab 2018bsyslcc64lcc64binlccmake.exe" -f untitled_cgxe.lmk
cannot open 2018bexternlibwin64microsoft
"D:Matlab 2018bsyslcc64lcc64binlcc64.exe" -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -nodeclspec -I"D:Matlab 2018bexterninclude" -I"D:Matlab 2018bsimulinkinclude" -I"D:Matlab 2018brtwcsrc" -I"F:研究生可听化codematlab_dspmyrealtime" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cprj" -I"D:Matlab 2018bsyslcc64lcc64include64" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cgxeuntitledsrc" -I"D:Matlab 2018btoolboxsharedspcsrc_mlexterninclude" "untitled_cgxe.c"
"D:Matlab 2018bsyslcc64lcc64binlcc64.exe" -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -nodeclspec -I"D:Matlab 2018bexterninclude" -I"D:Matlab 2018bsimulinkinclude" -I"D:Matlab 2018brtwcsrc" -I"F:研究生可听化codematlab_dspmyrealtime" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cprj" -I"D:Matlab 2018bsyslcc64lcc64include64" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cgxeuntitledsrc" -I"D:Matlab 2018btoolboxsharedspcsrc_mlexterninclude" "m_Gylj7rInPPNWHHI52iOhLH.c"
"D:Matlab 2018bsyslcc64lcc64binlcc64.exe" -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -nodeclspec -I"D:Matlab 2018bexterninclude" -I"D:Matlab 2018bsimulinkinclude" -I"D:Matlab 2018brtwcsrc" -I"F:研究生可听化codematlab_dspmyrealtime" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cprj" -I"D:Matlab 2018bsyslcc64lcc64include64" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cgxeuntitledsrc" -I"D:Matlab 2018btoolboxsharedspcsrc_mlexterninclude" "untitled_cgxe_registry.c"
"D:Matlab 2018bsyslcc64lcc64binlcclnk64.exe" -s -dll -L"D:Matlab 2018bsyslcc64lcc64lib64" -entry LibMain -map sfun.map -o untitled_cgxe.mexw64 @untitled_cgxe.lmko
D:Matlab 2018bsyslcc64lcc64binlccmake.exe: Error code 1
D:Matlab 2018bsyslcc64lcc64binlccmake.exe: ‘untitled_cgxe.mexw64’ removed.
Thank you! I’m learning real-time audio processing with the webinar "Real-time Audio Processing for Algorithm Prototyping and Custom Measurements" (https://se.mathworks.com/videos/real-time-audio-processing-for-algorithm-prototyping-and-custom-measurements-121075.html) videos and scripts.
The scripts work well in Matlab, but when I try to run the simulink model as described in the video,
I got the following errors:
### Build procedure for model: ‘untitled’ aborted due to an error.
Problem creating simulation target for the model ‘untitled’.
Component:Simulink | Category:Model error
Error(s) encountered while building simulation target MEX-file for model ‘untitled’.
Caused by:
F:codematlab_dspmyrealtimeslprj_cgxeuntitledsrc>"D:Matlab 2018bsyslcc64lcc64binlccmake.exe" -f untitled_cgxe.lmk
cannot open 2018bexternlibwin64microsoft
"D:Matlab 2018bsyslcc64lcc64binlcc64.exe" -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -nodeclspec -I"D:Matlab 2018bexterninclude" -I"D:Matlab 2018bsimulinkinclude" -I"D:Matlab 2018brtwcsrc" -I"F:研究生可听化codematlab_dspmyrealtime" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cprj" -I"D:Matlab 2018bsyslcc64lcc64include64" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cgxeuntitledsrc" -I"D:Matlab 2018btoolboxsharedspcsrc_mlexterninclude" "untitled_cgxe.c"
"D:Matlab 2018bsyslcc64lcc64binlcc64.exe" -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -nodeclspec -I"D:Matlab 2018bexterninclude" -I"D:Matlab 2018bsimulinkinclude" -I"D:Matlab 2018brtwcsrc" -I"F:研究生可听化codematlab_dspmyrealtime" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cprj" -I"D:Matlab 2018bsyslcc64lcc64include64" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cgxeuntitledsrc" -I"D:Matlab 2018btoolboxsharedspcsrc_mlexterninclude" "m_Gylj7rInPPNWHHI52iOhLH.c"
"D:Matlab 2018bsyslcc64lcc64binlcc64.exe" -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -nodeclspec -I"D:Matlab 2018bexterninclude" -I"D:Matlab 2018bsimulinkinclude" -I"D:Matlab 2018brtwcsrc" -I"F:研究生可听化codematlab_dspmyrealtime" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cprj" -I"D:Matlab 2018bsyslcc64lcc64include64" -I"F:研究生可听化codematlab_dspmyrealtimeslprj_cgxeuntitledsrc" -I"D:Matlab 2018btoolboxsharedspcsrc_mlexterninclude" "untitled_cgxe_registry.c"
"D:Matlab 2018bsyslcc64lcc64binlcclnk64.exe" -s -dll -L"D:Matlab 2018bsyslcc64lcc64lib64" -entry LibMain -map sfun.map -o untitled_cgxe.mexw64 @untitled_cgxe.lmko
D:Matlab 2018bsyslcc64lcc64binlccmake.exe: Error code 1
D:Matlab 2018bsyslcc64lcc64binlccmake.exe: ‘untitled_cgxe.mexw64’ removed.
Thank you! audio MATLAB Answers — New Questions
Parameter stability testing for Austria
Dear all,
I am having a major issue at testing for parameter stability, using ESS procedure, developed by Inoue and Rossi. For Slovenia and Italy, I obtain perfect result, a positive SupLR value, that is result of Andrews (1993) QLR test. However, for Austria, the value is negative! If I make a modification to the formula for Chow test, than the SupLR value becomes positive, however, I can’t change the methodology for consistency reasons.
Does anyone have any idea what is wrong with Austria?
Thank you so much!
Here is the formula, line 53 in attached file:
original with minus in the beginning:
chow=-2* (L-(L1*(t2/T)+(1-t2/T)*L2));
2. modified without minus in the beginning:
chow=2* (L-(L1*(t2/T)+(1-t2/T)*L2));Dear all,
I am having a major issue at testing for parameter stability, using ESS procedure, developed by Inoue and Rossi. For Slovenia and Italy, I obtain perfect result, a positive SupLR value, that is result of Andrews (1993) QLR test. However, for Austria, the value is negative! If I make a modification to the formula for Chow test, than the SupLR value becomes positive, however, I can’t change the methodology for consistency reasons.
Does anyone have any idea what is wrong with Austria?
Thank you so much!
Here is the formula, line 53 in attached file:
original with minus in the beginning:
chow=-2* (L-(L1*(t2/T)+(1-t2/T)*L2));
2. modified without minus in the beginning:
chow=2* (L-(L1*(t2/T)+(1-t2/T)*L2)); Dear all,
I am having a major issue at testing for parameter stability, using ESS procedure, developed by Inoue and Rossi. For Slovenia and Italy, I obtain perfect result, a positive SupLR value, that is result of Andrews (1993) QLR test. However, for Austria, the value is negative! If I make a modification to the formula for Chow test, than the SupLR value becomes positive, however, I can’t change the methodology for consistency reasons.
Does anyone have any idea what is wrong with Austria?
Thank you so much!
Here is the formula, line 53 in attached file:
original with minus in the beginning:
chow=-2* (L-(L1*(t2/T)+(1-t2/T)*L2));
2. modified without minus in the beginning:
chow=2* (L-(L1*(t2/T)+(1-t2/T)*L2)); parameter stability testing MATLAB Answers — New Questions
How do I perform Image segmentation in an RGB image using pattern?
I want to create 2 segment in the attached RGB interference image. 1 segment would be the horseshoe pattern as can be observed in the image and the other segment would be rest of the image. So far I have tried: Edge detection using Canny, Kmeans cluster, imsegkmeans.
The clustering is almost working, but I get cluster within a cluster due to the RGB values. I want to avoid that and have just two segments from the image.I want to create 2 segment in the attached RGB interference image. 1 segment would be the horseshoe pattern as can be observed in the image and the other segment would be rest of the image. So far I have tried: Edge detection using Canny, Kmeans cluster, imsegkmeans.
The clustering is almost working, but I get cluster within a cluster due to the RGB values. I want to avoid that and have just two segments from the image. I want to create 2 segment in the attached RGB interference image. 1 segment would be the horseshoe pattern as can be observed in the image and the other segment would be rest of the image. So far I have tried: Edge detection using Canny, Kmeans cluster, imsegkmeans.
The clustering is almost working, but I get cluster within a cluster due to the RGB values. I want to avoid that and have just two segments from the image. image processing, image segmentation MATLAB Answers — New Questions
como utilizar a licença MatLab 2023b
Olá tenho um modelo feito no MatLab 2023b, mas não abre no MatLab 2026a, gostaria de obter a licença trial para acessar o meu modelo.Olá tenho um modelo feito no MatLab 2023b, mas não abre no MatLab 2026a, gostaria de obter a licença trial para acessar o meu modelo. Olá tenho um modelo feito no MatLab 2023b, mas não abre no MatLab 2026a, gostaria de obter a licença trial para acessar o meu modelo. matlab, r2023b, simulink MATLAB Answers — New Questions
How to speed up Simscape Electrical + Thermal simulation?
Hi everyone,
I’m trying to simulate a detailed DAB converter model on MATLAB simulink using simscape electrical components. I got the reference design from the mathworks page. I changed the component parameters based on my design and i also imported mosfet and diode datasheet values onto the ideal mosfet switches. Till now the simulation was running smoothly. Since i wanted to see a more realistic efficiency value, i turned on the thermal port, after this the simulation started to lag.
The simulation currently takes more than 5 mins to run for 0.5 seconds. I tried playing with different solvers, the best one i could find was ode23t. I also tried to match the relative tolerance and absolute tolerance. Tried playing with max step size as well (multiples of 1/fsw). One other thing i tried was enabling minimal zero crossing impact integration in the configuration parameters. I also commented out all the scopes and displays and instead used the log signal option. All this did help speed the simulation a little bit, but not enough.
I ran the solver profiler to identify the underlying issue, it gives a lot of zero crossing erros, like there’s one zero crossing per switching cycle per switch. I don’t see an option to turn the ZC detection off on the mosfet model. Then there’s ZOH resets in the gate driver signals, I’m not sure how to fix this issue. One other major issue is the integrator block in my gate singal logic which is slowing down my simulation a lot. All the other components are in discrete domain so this continous block integrator is the real culprit here i believe. I tried using a discrete integrator block, but since it doesn’t have a wrap state option I wasn’t getting the right input. I also tried generating sawtooth waveforms using the repeating sequence block but even this was giving the same problem since it has a continous domain clock when looked under the mask.
I want to add more components to the simulation and make a detailed heatsink model, but since the simulation is lagging so much I can’t do much. Could you take a look at my simulation file and tell me how i can optimize the model and how to make it faster? Also how do i find the best tolerance value for my configuration setting?
Thank you so much for the help!Hi everyone,
I’m trying to simulate a detailed DAB converter model on MATLAB simulink using simscape electrical components. I got the reference design from the mathworks page. I changed the component parameters based on my design and i also imported mosfet and diode datasheet values onto the ideal mosfet switches. Till now the simulation was running smoothly. Since i wanted to see a more realistic efficiency value, i turned on the thermal port, after this the simulation started to lag.
The simulation currently takes more than 5 mins to run for 0.5 seconds. I tried playing with different solvers, the best one i could find was ode23t. I also tried to match the relative tolerance and absolute tolerance. Tried playing with max step size as well (multiples of 1/fsw). One other thing i tried was enabling minimal zero crossing impact integration in the configuration parameters. I also commented out all the scopes and displays and instead used the log signal option. All this did help speed the simulation a little bit, but not enough.
I ran the solver profiler to identify the underlying issue, it gives a lot of zero crossing erros, like there’s one zero crossing per switching cycle per switch. I don’t see an option to turn the ZC detection off on the mosfet model. Then there’s ZOH resets in the gate driver signals, I’m not sure how to fix this issue. One other major issue is the integrator block in my gate singal logic which is slowing down my simulation a lot. All the other components are in discrete domain so this continous block integrator is the real culprit here i believe. I tried using a discrete integrator block, but since it doesn’t have a wrap state option I wasn’t getting the right input. I also tried generating sawtooth waveforms using the repeating sequence block but even this was giving the same problem since it has a continous domain clock when looked under the mask.
I want to add more components to the simulation and make a detailed heatsink model, but since the simulation is lagging so much I can’t do much. Could you take a look at my simulation file and tell me how i can optimize the model and how to make it faster? Also how do i find the best tolerance value for my configuration setting?
Thank you so much for the help! Hi everyone,
I’m trying to simulate a detailed DAB converter model on MATLAB simulink using simscape electrical components. I got the reference design from the mathworks page. I changed the component parameters based on my design and i also imported mosfet and diode datasheet values onto the ideal mosfet switches. Till now the simulation was running smoothly. Since i wanted to see a more realistic efficiency value, i turned on the thermal port, after this the simulation started to lag.
The simulation currently takes more than 5 mins to run for 0.5 seconds. I tried playing with different solvers, the best one i could find was ode23t. I also tried to match the relative tolerance and absolute tolerance. Tried playing with max step size as well (multiples of 1/fsw). One other thing i tried was enabling minimal zero crossing impact integration in the configuration parameters. I also commented out all the scopes and displays and instead used the log signal option. All this did help speed the simulation a little bit, but not enough.
I ran the solver profiler to identify the underlying issue, it gives a lot of zero crossing erros, like there’s one zero crossing per switching cycle per switch. I don’t see an option to turn the ZC detection off on the mosfet model. Then there’s ZOH resets in the gate driver signals, I’m not sure how to fix this issue. One other major issue is the integrator block in my gate singal logic which is slowing down my simulation a lot. All the other components are in discrete domain so this continous block integrator is the real culprit here i believe. I tried using a discrete integrator block, but since it doesn’t have a wrap state option I wasn’t getting the right input. I also tried generating sawtooth waveforms using the repeating sequence block but even this was giving the same problem since it has a continous domain clock when looked under the mask.
I want to add more components to the simulation and make a detailed heatsink model, but since the simulation is lagging so much I can’t do much. Could you take a look at my simulation file and tell me how i can optimize the model and how to make it faster? Also how do i find the best tolerance value for my configuration setting?
Thank you so much for the help! simscape, converter, optimization, dualactivebridge MATLAB Answers — New Questions
how to prepare numeric data for classification of faults to import in deep network designer app in matlab
how to prepare numeric data for classification of faults in MMC to import in deep network designer app in matlabhow to prepare numeric data for classification of faults in MMC to import in deep network designer app in matlab how to prepare numeric data for classification of faults in MMC to import in deep network designer app in matlab numeric data MATLAB Answers — New Questions
STFT for state of polarization data
For my master’s thesis, I have a lot of data of state of polarization of light (particularly S1 parameter) from undersea fibre optic cables. Now I want to perform anomaly detection on this data so that I can flag any external events like fibre tampering, nearby vessels or earthquakes. The data is unlabelled and I don’t have any idea what an anomaly can look like. So I decided to preprocess the signals and generate the typical FFT, STFT plots. The following plot is obtained for one file (~60 seconds of data sampled at 44.1KHz). I used the log scale to see the entire frequency distribution properly. Any tips on what to infer from this data and how to move forward would be much appreciated. PS: I am completely new to signal processing domain.For my master’s thesis, I have a lot of data of state of polarization of light (particularly S1 parameter) from undersea fibre optic cables. Now I want to perform anomaly detection on this data so that I can flag any external events like fibre tampering, nearby vessels or earthquakes. The data is unlabelled and I don’t have any idea what an anomaly can look like. So I decided to preprocess the signals and generate the typical FFT, STFT plots. The following plot is obtained for one file (~60 seconds of data sampled at 44.1KHz). I used the log scale to see the entire frequency distribution properly. Any tips on what to infer from this data and how to move forward would be much appreciated. PS: I am completely new to signal processing domain. For my master’s thesis, I have a lot of data of state of polarization of light (particularly S1 parameter) from undersea fibre optic cables. Now I want to perform anomaly detection on this data so that I can flag any external events like fibre tampering, nearby vessels or earthquakes. The data is unlabelled and I don’t have any idea what an anomaly can look like. So I decided to preprocess the signals and generate the typical FFT, STFT plots. The following plot is obtained for one file (~60 seconds of data sampled at 44.1KHz). I used the log scale to see the entire frequency distribution properly. Any tips on what to infer from this data and how to move forward would be much appreciated. PS: I am completely new to signal processing domain. fft, signal processing, digital signal processing, signal, matlab MATLAB Answers — New Questions









