Category: News
Make MATLAB output in strict ASCII
MATLAB console output used high-ASCII sometimes, e.g. for its prompt ( » ). In R2025A it may output UTF8, e.g., for zpk() output:
z =
0×1 empty double column vector
p =
9.900494692205900e-01
k =
9.950657811787363e-03
This ‘feature’ is a nuisance when interchanging text with other programs. Is there a built-in function to convert these occasional UTF non-ASCII characters to a reasonable approximation in standard ASCII? ( like ‘x’ or ‘>>’) ?
Or is this behavior to be considered a bug that will be fixed (there appear to be quite a few nuisance bugs in R2025a).
-marcelMATLAB console output used high-ASCII sometimes, e.g. for its prompt ( » ). In R2025A it may output UTF8, e.g., for zpk() output:
z =
0×1 empty double column vector
p =
9.900494692205900e-01
k =
9.950657811787363e-03
This ‘feature’ is a nuisance when interchanging text with other programs. Is there a built-in function to convert these occasional UTF non-ASCII characters to a reasonable approximation in standard ASCII? ( like ‘x’ or ‘>>’) ?
Or is this behavior to be considered a bug that will be fixed (there appear to be quite a few nuisance bugs in R2025a).
-marcel MATLAB console output used high-ASCII sometimes, e.g. for its prompt ( » ). In R2025A it may output UTF8, e.g., for zpk() output:
z =
0×1 empty double column vector
p =
9.900494692205900e-01
k =
9.950657811787363e-03
This ‘feature’ is a nuisance when interchanging text with other programs. Is there a built-in function to convert these occasional UTF non-ASCII characters to a reasonable approximation in standard ASCII? ( like ‘x’ or ‘>>’) ?
Or is this behavior to be considered a bug that will be fixed (there appear to be quite a few nuisance bugs in R2025a).
-marcel ascii, ut8, approximated text conversion MATLAB Answers — New Questions
how to create column vector by inputs with matlab app designer to have final vector throught inputs
i want get a column vector or row using app designer to use it in its final form not one by one throught user inputs which are changed.
thanks for helpi want get a column vector or row using app designer to use it in its final form not one by one throught user inputs which are changed.
thanks for help i want get a column vector or row using app designer to use it in its final form not one by one throught user inputs which are changed.
thanks for help refractive index n, app designer MATLAB Answers — New Questions
Please help me. I want to run this attached simple code
%Error using ^
%Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To perform elementwise matrix powers,
%use ‘.^’.
%Error in proj/projfun (line 42)
% dy(2) = (4*b1*m^2+4*m^2*(b2-lamda).*p+4*b3*m^2*(p).^2+4*b4*m^2*(p).^3+4*b5*m^2.*p^4+a*(2*m+1)*(dp).^2)/(-2*a*m(2*m+1)*p);
%
%code%
function sol= proj
clc;clf;clear;
myLegend1 = {};myLegend2 = {};
rr = [1 2 4]
for i =1:numel(rr)
b1 = rr(i)
b2=0.5;b3=0.5;b4=0.5;
lamda=0.5;
y0 = [1,0,1,0,0,1,0,1];options =bvpset(‘stats’,’on’,’RelTol’,1e-5);
m = linspace(-20,20);
solinit = bvpinit(m,y0);
sol= bvp4c(@projfun,@projbc,solinit,options);
figure(1)
plot(sol.x,(sol.y(1,:))^0.5)
% axis([0 4 0 1])
grid on,hold on
myLegend1{i}=[‘n= ‘,num2str(rr(i))];
figure(2)
plot(sol.x,(sol.y(2,:)))
%axis([0 4 -0.8 0])
grid on,hold on
myLegend2{i}=[‘n = ‘,num2str(rr(i))];
i=i+1;
end
figure(1)
legend(myLegend1)
hold on
figure(2)
legend(myLegend2)
function dy= projfun(~,y)
dy= zeros(8,1);
% alignComments
p = y(1);
dp = y(2);
dy(1) = dp;
dy(2) = (4*b1*m^2+4*m^2*(b2-lamda).*p+4*b3*m^2*(p).^2+4*b4*m^2*(p).^3+4*b5*m^2.*p^4+a*(2*m+1)*(dp).^2)/(-2*a*m(2*m+1)*p);
end
end
function res= projbc(ya,yb)
res= [ya(1);
ya(2);
yb(1);
yb(2);
% yb(7);
];
end%Error using ^
%Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To perform elementwise matrix powers,
%use ‘.^’.
%Error in proj/projfun (line 42)
% dy(2) = (4*b1*m^2+4*m^2*(b2-lamda).*p+4*b3*m^2*(p).^2+4*b4*m^2*(p).^3+4*b5*m^2.*p^4+a*(2*m+1)*(dp).^2)/(-2*a*m(2*m+1)*p);
%
%code%
function sol= proj
clc;clf;clear;
myLegend1 = {};myLegend2 = {};
rr = [1 2 4]
for i =1:numel(rr)
b1 = rr(i)
b2=0.5;b3=0.5;b4=0.5;
lamda=0.5;
y0 = [1,0,1,0,0,1,0,1];options =bvpset(‘stats’,’on’,’RelTol’,1e-5);
m = linspace(-20,20);
solinit = bvpinit(m,y0);
sol= bvp4c(@projfun,@projbc,solinit,options);
figure(1)
plot(sol.x,(sol.y(1,:))^0.5)
% axis([0 4 0 1])
grid on,hold on
myLegend1{i}=[‘n= ‘,num2str(rr(i))];
figure(2)
plot(sol.x,(sol.y(2,:)))
%axis([0 4 -0.8 0])
grid on,hold on
myLegend2{i}=[‘n = ‘,num2str(rr(i))];
i=i+1;
end
figure(1)
legend(myLegend1)
hold on
figure(2)
legend(myLegend2)
function dy= projfun(~,y)
dy= zeros(8,1);
% alignComments
p = y(1);
dp = y(2);
dy(1) = dp;
dy(2) = (4*b1*m^2+4*m^2*(b2-lamda).*p+4*b3*m^2*(p).^2+4*b4*m^2*(p).^3+4*b5*m^2.*p^4+a*(2*m+1)*(dp).^2)/(-2*a*m(2*m+1)*p);
end
end
function res= projbc(ya,yb)
res= [ya(1);
ya(2);
yb(1);
yb(2);
% yb(7);
];
end %Error using ^
%Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To perform elementwise matrix powers,
%use ‘.^’.
%Error in proj/projfun (line 42)
% dy(2) = (4*b1*m^2+4*m^2*(b2-lamda).*p+4*b3*m^2*(p).^2+4*b4*m^2*(p).^3+4*b5*m^2.*p^4+a*(2*m+1)*(dp).^2)/(-2*a*m(2*m+1)*p);
%
%code%
function sol= proj
clc;clf;clear;
myLegend1 = {};myLegend2 = {};
rr = [1 2 4]
for i =1:numel(rr)
b1 = rr(i)
b2=0.5;b3=0.5;b4=0.5;
lamda=0.5;
y0 = [1,0,1,0,0,1,0,1];options =bvpset(‘stats’,’on’,’RelTol’,1e-5);
m = linspace(-20,20);
solinit = bvpinit(m,y0);
sol= bvp4c(@projfun,@projbc,solinit,options);
figure(1)
plot(sol.x,(sol.y(1,:))^0.5)
% axis([0 4 0 1])
grid on,hold on
myLegend1{i}=[‘n= ‘,num2str(rr(i))];
figure(2)
plot(sol.x,(sol.y(2,:)))
%axis([0 4 -0.8 0])
grid on,hold on
myLegend2{i}=[‘n = ‘,num2str(rr(i))];
i=i+1;
end
figure(1)
legend(myLegend1)
hold on
figure(2)
legend(myLegend2)
function dy= projfun(~,y)
dy= zeros(8,1);
% alignComments
p = y(1);
dp = y(2);
dy(1) = dp;
dy(2) = (4*b1*m^2+4*m^2*(b2-lamda).*p+4*b3*m^2*(p).^2+4*b4*m^2*(p).^3+4*b5*m^2.*p^4+a*(2*m+1)*(dp).^2)/(-2*a*m(2*m+1)*p);
end
end
function res= projbc(ya,yb)
res= [ya(1);
ya(2);
yb(1);
yb(2);
% yb(7);
];
end pvp4c, ode MATLAB Answers — New Questions
The below code takes much time to just compute till N=5. But I wanna know how to do it for N=100 or more a bit faster.
syms z;
N = 5; % Compute up to g_5′
alpha = -1; % α_n = -1 for all n
C = sym(‘C’, [1, N]); % Integration constants C0..CN
% Initialize
g_prime = cell(1, N+1);
g = cell(1, N+1);
g_prime{1} = z^2; % g_0′(z)
g{1} = z^3/3 % g_0(z)
% Iterate
for n = 1:N
% Step 1: Compute g_n'(z) = [ (g_{n-1} + C_{n-1})^2 / g_{n-1}’ ]^{α}
numerator = (g{n} + C(n))^2;
denominator = g_prime{n};
g_prime{n+1} = (numerator / denominator); % α = -1 ⇒ flip fraction
% Step 2: Simplify CRITICALLY here to prevent blowup
g_prime{n+1} = simplify(g_prime{n+1});
% Step 3: Compute g_{n}(z) for next step (if not last iteration)
if n < N
g{n+1} = int(g_prime{n+1}, z) + C(n+1);
g{n+1} = simplify(g{n+1}); % Simplify after integration
end
end
% Display fully simplified results
for k = 1:N
fprintf(‘g_%d”(z) = ‘, k);
disp(g_prime{k+1});
endsyms z;
N = 5; % Compute up to g_5′
alpha = -1; % α_n = -1 for all n
C = sym(‘C’, [1, N]); % Integration constants C0..CN
% Initialize
g_prime = cell(1, N+1);
g = cell(1, N+1);
g_prime{1} = z^2; % g_0′(z)
g{1} = z^3/3 % g_0(z)
% Iterate
for n = 1:N
% Step 1: Compute g_n'(z) = [ (g_{n-1} + C_{n-1})^2 / g_{n-1}’ ]^{α}
numerator = (g{n} + C(n))^2;
denominator = g_prime{n};
g_prime{n+1} = (numerator / denominator); % α = -1 ⇒ flip fraction
% Step 2: Simplify CRITICALLY here to prevent blowup
g_prime{n+1} = simplify(g_prime{n+1});
% Step 3: Compute g_{n}(z) for next step (if not last iteration)
if n < N
g{n+1} = int(g_prime{n+1}, z) + C(n+1);
g{n+1} = simplify(g{n+1}); % Simplify after integration
end
end
% Display fully simplified results
for k = 1:N
fprintf(‘g_%d”(z) = ‘, k);
disp(g_prime{k+1});
end syms z;
N = 5; % Compute up to g_5′
alpha = -1; % α_n = -1 for all n
C = sym(‘C’, [1, N]); % Integration constants C0..CN
% Initialize
g_prime = cell(1, N+1);
g = cell(1, N+1);
g_prime{1} = z^2; % g_0′(z)
g{1} = z^3/3 % g_0(z)
% Iterate
for n = 1:N
% Step 1: Compute g_n'(z) = [ (g_{n-1} + C_{n-1})^2 / g_{n-1}’ ]^{α}
numerator = (g{n} + C(n))^2;
denominator = g_prime{n};
g_prime{n+1} = (numerator / denominator); % α = -1 ⇒ flip fraction
% Step 2: Simplify CRITICALLY here to prevent blowup
g_prime{n+1} = simplify(g_prime{n+1});
% Step 3: Compute g_{n}(z) for next step (if not last iteration)
if n < N
g{n+1} = int(g_prime{n+1}, z) + C(n+1);
g{n+1} = simplify(g{n+1}); % Simplify after integration
end
end
% Display fully simplified results
for k = 1:N
fprintf(‘g_%d”(z) = ‘, k);
disp(g_prime{k+1});
end symbolic integration MATLAB Answers — New Questions
Fedora 42 – Unable to launch MVM server: License Error: Licensing shutdown
I installed Matlab 2025a on Fedora 42 (which is not in the official list of supported OSes but still, RHEL is) but when opening Matlab and logging in, it crashes with the error:
Unable to communicate with required MathWorks services (error 5201).
For help with this issue, contact support:
https://www.mathworks.com/support/contact_us.html
Unable to launch MVM server: License Error: Licensing shutdown
Matlab support cut me off with "Fedora isn’t supported", so we are not helping.
Are there any solutions? How do I lauch the MVM server?
ThanksI installed Matlab 2025a on Fedora 42 (which is not in the official list of supported OSes but still, RHEL is) but when opening Matlab and logging in, it crashes with the error:
Unable to communicate with required MathWorks services (error 5201).
For help with this issue, contact support:
https://www.mathworks.com/support/contact_us.html
Unable to launch MVM server: License Error: Licensing shutdown
Matlab support cut me off with "Fedora isn’t supported", so we are not helping.
Are there any solutions? How do I lauch the MVM server?
Thanks I installed Matlab 2025a on Fedora 42 (which is not in the official list of supported OSes but still, RHEL is) but when opening Matlab and logging in, it crashes with the error:
Unable to communicate with required MathWorks services (error 5201).
For help with this issue, contact support:
https://www.mathworks.com/support/contact_us.html
Unable to launch MVM server: License Error: Licensing shutdown
Matlab support cut me off with "Fedora isn’t supported", so we are not helping.
Are there any solutions? How do I lauch the MVM server?
Thanks fedora, linux, matlab, 2025a MATLAB Answers — New Questions
Populating the Simulink BLDC block for behavioral simulation of the motor
Hello MathWorks community,
I am building a control system simulation model for a BLDC motor used in an electric vehicle.
However, I cannot find some data to enter in the fields:
Maximum permanent magnet flux linkage
Rotor angle range over which the permanent magnet flux linking the stator winding is constant
possibly use:
Maximum rotor-induced back EMF
In addition, I should also characterize the motor from a thermal aspect, so that I can make assessments on the type of cooling to be used and the working conditions under which it might operate: how could I “theoretically” derive the values to be entered in the fields:
1) Temperature Dependence
2) Thermal Port
Thank you in advance.Hello MathWorks community,
I am building a control system simulation model for a BLDC motor used in an electric vehicle.
However, I cannot find some data to enter in the fields:
Maximum permanent magnet flux linkage
Rotor angle range over which the permanent magnet flux linking the stator winding is constant
possibly use:
Maximum rotor-induced back EMF
In addition, I should also characterize the motor from a thermal aspect, so that I can make assessments on the type of cooling to be used and the working conditions under which it might operate: how could I “theoretically” derive the values to be entered in the fields:
1) Temperature Dependence
2) Thermal Port
Thank you in advance. Hello MathWorks community,
I am building a control system simulation model for a BLDC motor used in an electric vehicle.
However, I cannot find some data to enter in the fields:
Maximum permanent magnet flux linkage
Rotor angle range over which the permanent magnet flux linking the stator winding is constant
possibly use:
Maximum rotor-induced back EMF
In addition, I should also characterize the motor from a thermal aspect, so that I can make assessments on the type of cooling to be used and the working conditions under which it might operate: how could I “theoretically” derive the values to be entered in the fields:
1) Temperature Dependence
2) Thermal Port
Thank you in advance. simulink, simscape, electric_motor_control, matlab MATLAB Answers — New Questions
How to write a timetable to excel with rowtimes as dates without times?
Take this simple example:
m = (1:3)’;
dates = datetime(2025,m,15);
tt = timetable(dates,m);
writetimetable(tt,’tt.xlsx’)
tt is a 3×1 timetable with dates but no times 00:00:
dates m
___________ _
15-Jan-2025 1
15-Feb-2025 2
15-Mar-2025 3
But the resulting excel sheet tt.xlsx includes the times 00:00:
dates m
1/15/25 00:00 1
2/15/25 00:00 2
3/15/25 00:00 3
How can I make writetimetable create an excel sheet with dates but no times 00:00?Take this simple example:
m = (1:3)’;
dates = datetime(2025,m,15);
tt = timetable(dates,m);
writetimetable(tt,’tt.xlsx’)
tt is a 3×1 timetable with dates but no times 00:00:
dates m
___________ _
15-Jan-2025 1
15-Feb-2025 2
15-Mar-2025 3
But the resulting excel sheet tt.xlsx includes the times 00:00:
dates m
1/15/25 00:00 1
2/15/25 00:00 2
3/15/25 00:00 3
How can I make writetimetable create an excel sheet with dates but no times 00:00? Take this simple example:
m = (1:3)’;
dates = datetime(2025,m,15);
tt = timetable(dates,m);
writetimetable(tt,’tt.xlsx’)
tt is a 3×1 timetable with dates but no times 00:00:
dates m
___________ _
15-Jan-2025 1
15-Feb-2025 2
15-Mar-2025 3
But the resulting excel sheet tt.xlsx includes the times 00:00:
dates m
1/15/25 00:00 1
2/15/25 00:00 2
3/15/25 00:00 3
How can I make writetimetable create an excel sheet with dates but no times 00:00? writetimetable excel, dates no times MATLAB Answers — New Questions
Why does the output time of my transfer function not change dependant on the input
Hello,
I have modeled a system using a transfer function for a new and existing moving bogie system to evalue if the system can be improved for efficiency. When simulating in Matlab, the step response time remains the same irrepsective of the step input value, im not sure why this is happening. Can anyone explain?
the system transfer fucntion is
sys500000 = tf([6.1*10^-3], [1 0.02805 3.05*10^-3])
step((sys50000*0.5)*9025)Hello,
I have modeled a system using a transfer function for a new and existing moving bogie system to evalue if the system can be improved for efficiency. When simulating in Matlab, the step response time remains the same irrepsective of the step input value, im not sure why this is happening. Can anyone explain?
the system transfer fucntion is
sys500000 = tf([6.1*10^-3], [1 0.02805 3.05*10^-3])
step((sys50000*0.5)*9025) Hello,
I have modeled a system using a transfer function for a new and existing moving bogie system to evalue if the system can be improved for efficiency. When simulating in Matlab, the step response time remains the same irrepsective of the step input value, im not sure why this is happening. Can anyone explain?
the system transfer fucntion is
sys500000 = tf([6.1*10^-3], [1 0.02805 3.05*10^-3])
step((sys50000*0.5)*9025) matlab, transfer function, control MATLAB Answers — New Questions
Apps created with app designer are not displaying components positioned correctly
I replied with this issue to a Mathworks support comment on this thread:
https://www.mathworks.com/matlabcentral/answers/395508-why-does-the-app-not-resize-properly-for-different-screen-resolutions-in-app-designer
But did not get a reply. I will briefly describe the issue here, but that post has some information also. I have been using app designer since its inception and before that had been hand coding GUIs. I have never had a problem porting apps or GUIs from one machine to another until now.
I wrte apps for classes I teach as well as in consulting work and have for past several years been writing apps on these two machines currently with MATLAB 2024b, although I have been installing new releases as they came out for years, with no troubles
Dell Precision 5680 laptop running Windows 11. The app appears equally well when displayed on a connected DellUZ2715H 1920×1080 external monitor and when that monitor is disconnected and the display is the laptop display itself (1920×1200).
Dell Precision Tower 5810 runing Windows 10 and a Samsung S34CG50 wide screen monitor (3440×1440).
I have been running the apps on these machines as well as in MATLAB online and some Windows PCs the university owns for which we have a site MATLAB license, but I don’t right now have the specs of those machines, but they are economical machines.
This week I wanted to move my online presentation activities to another location in my home and use a machine that is there:
Dell Micro Tower Optiplex Small Form Factor Plus 7010, running Windows 11 with a Dell UZ2315H 1920×1080 monitor on which I have installed MATLAB 2024b, with all of the recommended display settings.
The genesis of the problem, with some screen shots of the simple projectile app I was trying to use, etc can be found in the linked thread. I also wound up with a workaround there in which I experimentally deliberately mis-positioned components so that they will after the app opens be repositioned so that it looks roughly like it should. Here I show what I did to display the problem. I opened up App Designer and created a dummy app by simply dragging two axes components from the component library and also dragging 8 buttons on the figure. I did nothing else. No code no boxes checked etc. Here is a screenshot of what that looked like.
Then I clicked the green "run" diamond button in the Designer tab and the app executed and created components to look like this:
This shows the opened app backlit by my screen background. The positions of the components have been shifted from original , with several being outside the figure. I tried one of the suggestions in the other thread, checking the "Scrollable" box under interactivity for the UIFigure and this is the result of that
In none of these cases does resizing the figures improve the component locations. In the other thread I reported that I also tried the suggested code in the startup function and that did not fix the problem either. In the apps I was trying to run, if the execute button showed and I could click it, the numerical, plotting, and table entry parts of the codes work and for the components visible disply on the app. I would very much appreciate some advice on this. As it is now this machine (and hence the new location) is unusable if I want to show apps during presentations, which I do routinely. I have never seen this problem before, peculiar to what is otherwise a relatively standard configuration computer.I replied with this issue to a Mathworks support comment on this thread:
https://www.mathworks.com/matlabcentral/answers/395508-why-does-the-app-not-resize-properly-for-different-screen-resolutions-in-app-designer
But did not get a reply. I will briefly describe the issue here, but that post has some information also. I have been using app designer since its inception and before that had been hand coding GUIs. I have never had a problem porting apps or GUIs from one machine to another until now.
I wrte apps for classes I teach as well as in consulting work and have for past several years been writing apps on these two machines currently with MATLAB 2024b, although I have been installing new releases as they came out for years, with no troubles
Dell Precision 5680 laptop running Windows 11. The app appears equally well when displayed on a connected DellUZ2715H 1920×1080 external monitor and when that monitor is disconnected and the display is the laptop display itself (1920×1200).
Dell Precision Tower 5810 runing Windows 10 and a Samsung S34CG50 wide screen monitor (3440×1440).
I have been running the apps on these machines as well as in MATLAB online and some Windows PCs the university owns for which we have a site MATLAB license, but I don’t right now have the specs of those machines, but they are economical machines.
This week I wanted to move my online presentation activities to another location in my home and use a machine that is there:
Dell Micro Tower Optiplex Small Form Factor Plus 7010, running Windows 11 with a Dell UZ2315H 1920×1080 monitor on which I have installed MATLAB 2024b, with all of the recommended display settings.
The genesis of the problem, with some screen shots of the simple projectile app I was trying to use, etc can be found in the linked thread. I also wound up with a workaround there in which I experimentally deliberately mis-positioned components so that they will after the app opens be repositioned so that it looks roughly like it should. Here I show what I did to display the problem. I opened up App Designer and created a dummy app by simply dragging two axes components from the component library and also dragging 8 buttons on the figure. I did nothing else. No code no boxes checked etc. Here is a screenshot of what that looked like.
Then I clicked the green "run" diamond button in the Designer tab and the app executed and created components to look like this:
This shows the opened app backlit by my screen background. The positions of the components have been shifted from original , with several being outside the figure. I tried one of the suggestions in the other thread, checking the "Scrollable" box under interactivity for the UIFigure and this is the result of that
In none of these cases does resizing the figures improve the component locations. In the other thread I reported that I also tried the suggested code in the startup function and that did not fix the problem either. In the apps I was trying to run, if the execute button showed and I could click it, the numerical, plotting, and table entry parts of the codes work and for the components visible disply on the app. I would very much appreciate some advice on this. As it is now this machine (and hence the new location) is unusable if I want to show apps during presentations, which I do routinely. I have never seen this problem before, peculiar to what is otherwise a relatively standard configuration computer. I replied with this issue to a Mathworks support comment on this thread:
https://www.mathworks.com/matlabcentral/answers/395508-why-does-the-app-not-resize-properly-for-different-screen-resolutions-in-app-designer
But did not get a reply. I will briefly describe the issue here, but that post has some information also. I have been using app designer since its inception and before that had been hand coding GUIs. I have never had a problem porting apps or GUIs from one machine to another until now.
I wrte apps for classes I teach as well as in consulting work and have for past several years been writing apps on these two machines currently with MATLAB 2024b, although I have been installing new releases as they came out for years, with no troubles
Dell Precision 5680 laptop running Windows 11. The app appears equally well when displayed on a connected DellUZ2715H 1920×1080 external monitor and when that monitor is disconnected and the display is the laptop display itself (1920×1200).
Dell Precision Tower 5810 runing Windows 10 and a Samsung S34CG50 wide screen monitor (3440×1440).
I have been running the apps on these machines as well as in MATLAB online and some Windows PCs the university owns for which we have a site MATLAB license, but I don’t right now have the specs of those machines, but they are economical machines.
This week I wanted to move my online presentation activities to another location in my home and use a machine that is there:
Dell Micro Tower Optiplex Small Form Factor Plus 7010, running Windows 11 with a Dell UZ2315H 1920×1080 monitor on which I have installed MATLAB 2024b, with all of the recommended display settings.
The genesis of the problem, with some screen shots of the simple projectile app I was trying to use, etc can be found in the linked thread. I also wound up with a workaround there in which I experimentally deliberately mis-positioned components so that they will after the app opens be repositioned so that it looks roughly like it should. Here I show what I did to display the problem. I opened up App Designer and created a dummy app by simply dragging two axes components from the component library and also dragging 8 buttons on the figure. I did nothing else. No code no boxes checked etc. Here is a screenshot of what that looked like.
Then I clicked the green "run" diamond button in the Designer tab and the app executed and created components to look like this:
This shows the opened app backlit by my screen background. The positions of the components have been shifted from original , with several being outside the figure. I tried one of the suggestions in the other thread, checking the "Scrollable" box under interactivity for the UIFigure and this is the result of that
In none of these cases does resizing the figures improve the component locations. In the other thread I reported that I also tried the suggested code in the startup function and that did not fix the problem either. In the apps I was trying to run, if the execute button showed and I could click it, the numerical, plotting, and table entry parts of the codes work and for the components visible disply on the app. I would very much appreciate some advice on this. As it is now this machine (and hence the new location) is unusable if I want to show apps during presentations, which I do routinely. I have never seen this problem before, peculiar to what is otherwise a relatively standard configuration computer. app designer component positioning fails MATLAB Answers — New Questions
Differences in C Code Generation for Switch blocks between Matlab 2021b and Matlab 2024b
Hi, recently Matlab 2024b was rolled out in our company, and when I startet a new project based on an old project created with Matlab 2021b, I noticed a strange difference in the generated C code for switch blocks:
I use a switch block to set an uint32 output to 1 of 2 different values based on a boolean input.
In Matlab 2021b, I always get an if-else in the code.
In Matlab 2024b, but only if the 2 values are 1 and 0, I get the ternary conditional operator (also called "question mark operator") instead (for other values than 1 and 0, I still get if-else though). Unfortunately, this operator is not permitted according to our company coding standard.
Is there a way to make the embedded coder also always produce if-else in Matlab 2024b? I have not found any settings and also not found any mention of this change in the release notes.
Background info: When using datatype conversion from boolean to uint32, Matlab 2021b also produces the ternary conditional operator. That’s why I used the switch blocks to avoid this construct. Now this exact workaround does not work anymore due to the different behaviour. So alternatively, if there is an easy way to tell the datatype conversion to use a simple cast (after all, the values can only be 1 or 0) instead of either ternary conditional operator or if-else, that would also solve my problem.Hi, recently Matlab 2024b was rolled out in our company, and when I startet a new project based on an old project created with Matlab 2021b, I noticed a strange difference in the generated C code for switch blocks:
I use a switch block to set an uint32 output to 1 of 2 different values based on a boolean input.
In Matlab 2021b, I always get an if-else in the code.
In Matlab 2024b, but only if the 2 values are 1 and 0, I get the ternary conditional operator (also called "question mark operator") instead (for other values than 1 and 0, I still get if-else though). Unfortunately, this operator is not permitted according to our company coding standard.
Is there a way to make the embedded coder also always produce if-else in Matlab 2024b? I have not found any settings and also not found any mention of this change in the release notes.
Background info: When using datatype conversion from boolean to uint32, Matlab 2021b also produces the ternary conditional operator. That’s why I used the switch blocks to avoid this construct. Now this exact workaround does not work anymore due to the different behaviour. So alternatively, if there is an easy way to tell the datatype conversion to use a simple cast (after all, the values can only be 1 or 0) instead of either ternary conditional operator or if-else, that would also solve my problem. Hi, recently Matlab 2024b was rolled out in our company, and when I startet a new project based on an old project created with Matlab 2021b, I noticed a strange difference in the generated C code for switch blocks:
I use a switch block to set an uint32 output to 1 of 2 different values based on a boolean input.
In Matlab 2021b, I always get an if-else in the code.
In Matlab 2024b, but only if the 2 values are 1 and 0, I get the ternary conditional operator (also called "question mark operator") instead (for other values than 1 and 0, I still get if-else though). Unfortunately, this operator is not permitted according to our company coding standard.
Is there a way to make the embedded coder also always produce if-else in Matlab 2024b? I have not found any settings and also not found any mention of this change in the release notes.
Background info: When using datatype conversion from boolean to uint32, Matlab 2021b also produces the ternary conditional operator. That’s why I used the switch blocks to avoid this construct. Now this exact workaround does not work anymore due to the different behaviour. So alternatively, if there is an easy way to tell the datatype conversion to use a simple cast (after all, the values can only be 1 or 0) instead of either ternary conditional operator or if-else, that would also solve my problem. switch block embedded coder MATLAB Answers — New Questions
How to have a same size of the image with out distortion in a subplot along with the graph?
Hello all,
I am trying to place an image along with a plot in subplot. But when i am trying to plot the image is small compared to the size of the plot. I need both of them to be in the same size. I also used "imagesc(img);" , but the image looks distorted. Please help me with this. Thanks in advance.
My code:
set(0,’Units’,’pixels’);
scrsz = get(0,’ScreenSize’);
scr_width = scrsz(3);
scr_heigth = scrsz(4);
img = imread(‘Geometry.jpg’);
Z = readtable(‘Fig1.xlsx’);
alpha = 0.1;
figure(‘Position’, round([alpha*scr_width alpha*scr_heigth (1-2*alpha)*scr_width (1-2*alpha)*scr_heigth ]));
% 1. Image subplot
subplot(1,4,1);
% imagesc(img);
imshow(img);
axis off
data = table2array(Z) ;
subplot(1,4,2)
plot(data(:,1), data(:,2), ‘k’,’linewidth’, 2);
hold off
grid on
xlabel(‘xxx’);
ylabel(‘yyy’);
subplot(1,4,3)
plot(data(:,3), data(:,4), ‘linewidth’, 2);
hold on
str = ‘#0072BD’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,5), data(:,6), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,7), data(:,8), ‘linewidth’, 2);
hold on
str = ‘#EDB120’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,9), data(:,10), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,11), data(:,12), ‘linewidth’, 2);
hold on
str = ‘#77AC30’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,13), data(:,14), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,15), data(:,16), ‘linewidth’, 2);
hold on
str = ‘#A2142F’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,17), data(:,18), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold off
% legend(‘Wygnanski&Fiedler (1969)’, ‘Standard k-in’, ‘RNG k-in’, ‘Realizable k-in’,…
% ‘SST k-omega’, ‘Location’, ‘northeast’);
grid on
xlabel(‘xxx’);
ylabel(‘yyy’);
subplot(1,4,4)
plot(data(:,19), data(:,20), ‘linewidth’, 2);
hold on
str = ‘#0072BD’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,21), data(:,22), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,23), data(:,24), ‘linewidth’, 2);
hold on
str = ‘#EDB120’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,25), data(:,26), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,27), data(:,28), ‘linewidth’, 2);
hold on
str = ‘#77AC30’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,29), data(:,30), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,31), data(:,32), ‘linewidth’, 2);
hold on
str = ‘#A2142F’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,33), data(:,34), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold off
% legend(‘Wygnanski&Fiedler (1969)’, ‘Standard k-in’, ‘RNG k-in’, ‘Realizable k-in’,…
% ‘SST k-omega’, ‘Location’, ‘northeast’);
grid on
xlabel(‘xxx’);
ylabel(‘yyy’);Hello all,
I am trying to place an image along with a plot in subplot. But when i am trying to plot the image is small compared to the size of the plot. I need both of them to be in the same size. I also used "imagesc(img);" , but the image looks distorted. Please help me with this. Thanks in advance.
My code:
set(0,’Units’,’pixels’);
scrsz = get(0,’ScreenSize’);
scr_width = scrsz(3);
scr_heigth = scrsz(4);
img = imread(‘Geometry.jpg’);
Z = readtable(‘Fig1.xlsx’);
alpha = 0.1;
figure(‘Position’, round([alpha*scr_width alpha*scr_heigth (1-2*alpha)*scr_width (1-2*alpha)*scr_heigth ]));
% 1. Image subplot
subplot(1,4,1);
% imagesc(img);
imshow(img);
axis off
data = table2array(Z) ;
subplot(1,4,2)
plot(data(:,1), data(:,2), ‘k’,’linewidth’, 2);
hold off
grid on
xlabel(‘xxx’);
ylabel(‘yyy’);
subplot(1,4,3)
plot(data(:,3), data(:,4), ‘linewidth’, 2);
hold on
str = ‘#0072BD’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,5), data(:,6), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,7), data(:,8), ‘linewidth’, 2);
hold on
str = ‘#EDB120’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,9), data(:,10), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,11), data(:,12), ‘linewidth’, 2);
hold on
str = ‘#77AC30’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,13), data(:,14), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,15), data(:,16), ‘linewidth’, 2);
hold on
str = ‘#A2142F’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,17), data(:,18), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold off
% legend(‘Wygnanski&Fiedler (1969)’, ‘Standard k-in’, ‘RNG k-in’, ‘Realizable k-in’,…
% ‘SST k-omega’, ‘Location’, ‘northeast’);
grid on
xlabel(‘xxx’);
ylabel(‘yyy’);
subplot(1,4,4)
plot(data(:,19), data(:,20), ‘linewidth’, 2);
hold on
str = ‘#0072BD’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,21), data(:,22), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,23), data(:,24), ‘linewidth’, 2);
hold on
str = ‘#EDB120’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,25), data(:,26), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,27), data(:,28), ‘linewidth’, 2);
hold on
str = ‘#77AC30’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,29), data(:,30), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,31), data(:,32), ‘linewidth’, 2);
hold on
str = ‘#A2142F’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,33), data(:,34), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold off
% legend(‘Wygnanski&Fiedler (1969)’, ‘Standard k-in’, ‘RNG k-in’, ‘Realizable k-in’,…
% ‘SST k-omega’, ‘Location’, ‘northeast’);
grid on
xlabel(‘xxx’);
ylabel(‘yyy’); Hello all,
I am trying to place an image along with a plot in subplot. But when i am trying to plot the image is small compared to the size of the plot. I need both of them to be in the same size. I also used "imagesc(img);" , but the image looks distorted. Please help me with this. Thanks in advance.
My code:
set(0,’Units’,’pixels’);
scrsz = get(0,’ScreenSize’);
scr_width = scrsz(3);
scr_heigth = scrsz(4);
img = imread(‘Geometry.jpg’);
Z = readtable(‘Fig1.xlsx’);
alpha = 0.1;
figure(‘Position’, round([alpha*scr_width alpha*scr_heigth (1-2*alpha)*scr_width (1-2*alpha)*scr_heigth ]));
% 1. Image subplot
subplot(1,4,1);
% imagesc(img);
imshow(img);
axis off
data = table2array(Z) ;
subplot(1,4,2)
plot(data(:,1), data(:,2), ‘k’,’linewidth’, 2);
hold off
grid on
xlabel(‘xxx’);
ylabel(‘yyy’);
subplot(1,4,3)
plot(data(:,3), data(:,4), ‘linewidth’, 2);
hold on
str = ‘#0072BD’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,5), data(:,6), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,7), data(:,8), ‘linewidth’, 2);
hold on
str = ‘#EDB120’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,9), data(:,10), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,11), data(:,12), ‘linewidth’, 2);
hold on
str = ‘#77AC30’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,13), data(:,14), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,15), data(:,16), ‘linewidth’, 2);
hold on
str = ‘#A2142F’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,17), data(:,18), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold off
% legend(‘Wygnanski&Fiedler (1969)’, ‘Standard k-in’, ‘RNG k-in’, ‘Realizable k-in’,…
% ‘SST k-omega’, ‘Location’, ‘northeast’);
grid on
xlabel(‘xxx’);
ylabel(‘yyy’);
subplot(1,4,4)
plot(data(:,19), data(:,20), ‘linewidth’, 2);
hold on
str = ‘#0072BD’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,21), data(:,22), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,23), data(:,24), ‘linewidth’, 2);
hold on
str = ‘#EDB120’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,25), data(:,26), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,27), data(:,28), ‘linewidth’, 2);
hold on
str = ‘#77AC30’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,29), data(:,30), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold on
plot(data(:,31), data(:,32), ‘linewidth’, 2);
hold on
str = ‘#A2142F’;
color = sscanf(str(2:end),’%2x%2x%2x’,[1 3])/255;
plot(data(:,33), data(:,34), ‘*’, ‘Color’, color, ‘linewidth’, 2);
hold off
% legend(‘Wygnanski&Fiedler (1969)’, ‘Standard k-in’, ‘RNG k-in’, ‘Realizable k-in’,…
% ‘SST k-omega’, ‘Location’, ‘northeast’);
grid on
xlabel(‘xxx’);
ylabel(‘yyy’); subplot, image MATLAB Answers — New Questions
Positive Roots of bessel functions.
i have this type of potential and i want to find the positive roots of the bessel functions(also for the derivative in denomerator)
i want to find out this wave number. How i can find it?i have this type of potential and i want to find the positive roots of the bessel functions(also for the derivative in denomerator)
i want to find out this wave number. How i can find it? i have this type of potential and i want to find the positive roots of the bessel functions(also for the derivative in denomerator)
i want to find out this wave number. How i can find it? roots of bessel functions MATLAB Answers — New Questions
How to observe a superimposed low frequency component on a power frequency signal?
I cannot find a way to observe the 27 Hz component in the Torque graphs of the "power_thermal" file for SSR simulation. The help section associated with this file describes the schematic and concludes that a 27 Hz sub-synchronous component is present and leads to torque amplification. However, there has been no mention of how this mode is to be observed. Please, help me with this problem. Thank you.I cannot find a way to observe the 27 Hz component in the Torque graphs of the "power_thermal" file for SSR simulation. The help section associated with this file describes the schematic and concludes that a 27 Hz sub-synchronous component is present and leads to torque amplification. However, there has been no mention of how this mode is to be observed. Please, help me with this problem. Thank you. I cannot find a way to observe the 27 Hz component in the Torque graphs of the "power_thermal" file for SSR simulation. The help section associated with this file describes the schematic and concludes that a 27 Hz sub-synchronous component is present and leads to torque amplification. However, there has been no mention of how this mode is to be observed. Please, help me with this problem. Thank you. simulink, simpowersystems, frequency observation, frequency spectrum analysis, fft MATLAB Answers — New Questions
Create an extra row in a table that show the means of all columns (but without any extra headings)
Hello, I have a table that I have created and display it in text area
This is my code:
params = ["ROI_L";"ROI_C";"ROI_R"];
tbl = table(params,FWHMX,FWHMY,FWHM2D,CenInt);
str = formattedDisplayText(tbl);
str = regexprep(str,'</?strong>’,”);
ReportMessage(app,str); % My own function, see below
At the bottom I have attempted to add the means of each column by doing this:
% Get Means
M = varfun(@mean, tbl, ‘InputVariables’, @isnumeric);
M1=table2cell(M)
M1=[{‘Mens:’},M1]
str = formattedDisplayText(M1)
str = regexprep(str,'</?strong>’,”);
ReportMessage(app,str); % My own fucntion, see below
But its wrapping and not aligned to the table. The same thing happens if I DONT convert the table to a cell array via (as well as adding exctra headings
M1=table2cell(M)
M1=[{‘Mens:’},M1]
This is how it looks without the table2cell step:
Is there a way in table format to get the means of the columns (but without any column header)
heres my report message function
function ReportMessage(app,msg)
currString=get(app.MessagesTextArea,’Value’);
%currString=[{char(msg)};currString]; %add to top of message box
currString=[currString; {char(msg)}]; %add to bottom of message box
app.MessagesTextArea.Value=currString;
drawnow;
scroll(app.MessagesTextArea,’bottom’);
endHello, I have a table that I have created and display it in text area
This is my code:
params = ["ROI_L";"ROI_C";"ROI_R"];
tbl = table(params,FWHMX,FWHMY,FWHM2D,CenInt);
str = formattedDisplayText(tbl);
str = regexprep(str,'</?strong>’,”);
ReportMessage(app,str); % My own function, see below
At the bottom I have attempted to add the means of each column by doing this:
% Get Means
M = varfun(@mean, tbl, ‘InputVariables’, @isnumeric);
M1=table2cell(M)
M1=[{‘Mens:’},M1]
str = formattedDisplayText(M1)
str = regexprep(str,'</?strong>’,”);
ReportMessage(app,str); % My own fucntion, see below
But its wrapping and not aligned to the table. The same thing happens if I DONT convert the table to a cell array via (as well as adding exctra headings
M1=table2cell(M)
M1=[{‘Mens:’},M1]
This is how it looks without the table2cell step:
Is there a way in table format to get the means of the columns (but without any column header)
heres my report message function
function ReportMessage(app,msg)
currString=get(app.MessagesTextArea,’Value’);
%currString=[{char(msg)};currString]; %add to top of message box
currString=[currString; {char(msg)}]; %add to bottom of message box
app.MessagesTextArea.Value=currString;
drawnow;
scroll(app.MessagesTextArea,’bottom’);
end Hello, I have a table that I have created and display it in text area
This is my code:
params = ["ROI_L";"ROI_C";"ROI_R"];
tbl = table(params,FWHMX,FWHMY,FWHM2D,CenInt);
str = formattedDisplayText(tbl);
str = regexprep(str,'</?strong>’,”);
ReportMessage(app,str); % My own function, see below
At the bottom I have attempted to add the means of each column by doing this:
% Get Means
M = varfun(@mean, tbl, ‘InputVariables’, @isnumeric);
M1=table2cell(M)
M1=[{‘Mens:’},M1]
str = formattedDisplayText(M1)
str = regexprep(str,'</?strong>’,”);
ReportMessage(app,str); % My own fucntion, see below
But its wrapping and not aligned to the table. The same thing happens if I DONT convert the table to a cell array via (as well as adding exctra headings
M1=table2cell(M)
M1=[{‘Mens:’},M1]
This is how it looks without the table2cell step:
Is there a way in table format to get the means of the columns (but without any column header)
heres my report message function
function ReportMessage(app,msg)
currString=get(app.MessagesTextArea,’Value’);
%currString=[{char(msg)};currString]; %add to top of message box
currString=[currString; {char(msg)}]; %add to bottom of message box
app.MessagesTextArea.Value=currString;
drawnow;
scroll(app.MessagesTextArea,’bottom’);
end table, varfun, formatteddisplaytext MATLAB Answers — New Questions
rendererinfo outputs are missing. What are the consequences?
I am on R2025a.
—
Test Case #1
If I enter these commands.
info = rendererinfo;
disp(info)
disp(info.Details)
Then, these are the outputs.
GraphicsRenderer: ‘WebGL’
Vendor: ”
Version: ”
RendererDevice: ”
Details: [1×1 struct]
HardwareSupportLevel: ‘Full’
SupportsDepthPeelTransparency: 1
SupportsAlignVertexCenters: 1
SupportsGraphicsSmoothing: 1
MaxTextureSize: 0
MaxFrameBufferSize: 0
—
Test Case #2
If I enter these commands.
surf(peaks);
ax = gca;
info = rendererinfo(ax);
disp(info);
disp(info.Details);
Then, these are the outputs.
GraphicsRenderer: ‘OpenGL Software’
Vendor: ‘Microsoft Corporation’
Version: ‘1.1.0’
RendererDevice: ‘GDI Generic’
Details: [1×1 struct]
HardwareSupportLevel: ‘None’
SupportsDepthPeelTransparency: 0
SupportsAlignVertexCenters: 0
SupportsGraphicsSmoothing: 0
MaxTextureSize: 1024
MaxFrameBufferSize: 0
—
These are the system specs:
—
The CPU is Intel i3-2310M with its integrated GPU of Intel HD Graphics 3000.
The GPU supports OpenGL 3.1 and the CPU supports OpenCL 1.1 according to AIDA64.
Also with DirectX DDI 11.1, it suports Feature Level 10_1, Shader Model 4.1, and WDDM 1.2
—
From webglreport.com, it states that the system support both WebGL 1.0 and WebGL 2.0
—
Questions
In Test Case #1, why are the values for Vendor, Version, RendererDevice, MaxTextureSize, and MaxFrameBufferSize missing from the rendererinfo output? What are the consequences?
In Test Case #2, If OpenGL has been completely removed in R2025a, why does it still use the OpenGL 1.1 software renderer instead of WebGL? What went wrong?
How do I choose the WebGL version and its ANGLE backend (D3D9, D3D11, OpenGL, etc.) to compare the performance?I am on R2025a.
—
Test Case #1
If I enter these commands.
info = rendererinfo;
disp(info)
disp(info.Details)
Then, these are the outputs.
GraphicsRenderer: ‘WebGL’
Vendor: ”
Version: ”
RendererDevice: ”
Details: [1×1 struct]
HardwareSupportLevel: ‘Full’
SupportsDepthPeelTransparency: 1
SupportsAlignVertexCenters: 1
SupportsGraphicsSmoothing: 1
MaxTextureSize: 0
MaxFrameBufferSize: 0
—
Test Case #2
If I enter these commands.
surf(peaks);
ax = gca;
info = rendererinfo(ax);
disp(info);
disp(info.Details);
Then, these are the outputs.
GraphicsRenderer: ‘OpenGL Software’
Vendor: ‘Microsoft Corporation’
Version: ‘1.1.0’
RendererDevice: ‘GDI Generic’
Details: [1×1 struct]
HardwareSupportLevel: ‘None’
SupportsDepthPeelTransparency: 0
SupportsAlignVertexCenters: 0
SupportsGraphicsSmoothing: 0
MaxTextureSize: 1024
MaxFrameBufferSize: 0
—
These are the system specs:
—
The CPU is Intel i3-2310M with its integrated GPU of Intel HD Graphics 3000.
The GPU supports OpenGL 3.1 and the CPU supports OpenCL 1.1 according to AIDA64.
Also with DirectX DDI 11.1, it suports Feature Level 10_1, Shader Model 4.1, and WDDM 1.2
—
From webglreport.com, it states that the system support both WebGL 1.0 and WebGL 2.0
—
Questions
In Test Case #1, why are the values for Vendor, Version, RendererDevice, MaxTextureSize, and MaxFrameBufferSize missing from the rendererinfo output? What are the consequences?
In Test Case #2, If OpenGL has been completely removed in R2025a, why does it still use the OpenGL 1.1 software renderer instead of WebGL? What went wrong?
How do I choose the WebGL version and its ANGLE backend (D3D9, D3D11, OpenGL, etc.) to compare the performance? I am on R2025a.
—
Test Case #1
If I enter these commands.
info = rendererinfo;
disp(info)
disp(info.Details)
Then, these are the outputs.
GraphicsRenderer: ‘WebGL’
Vendor: ”
Version: ”
RendererDevice: ”
Details: [1×1 struct]
HardwareSupportLevel: ‘Full’
SupportsDepthPeelTransparency: 1
SupportsAlignVertexCenters: 1
SupportsGraphicsSmoothing: 1
MaxTextureSize: 0
MaxFrameBufferSize: 0
—
Test Case #2
If I enter these commands.
surf(peaks);
ax = gca;
info = rendererinfo(ax);
disp(info);
disp(info.Details);
Then, these are the outputs.
GraphicsRenderer: ‘OpenGL Software’
Vendor: ‘Microsoft Corporation’
Version: ‘1.1.0’
RendererDevice: ‘GDI Generic’
Details: [1×1 struct]
HardwareSupportLevel: ‘None’
SupportsDepthPeelTransparency: 0
SupportsAlignVertexCenters: 0
SupportsGraphicsSmoothing: 0
MaxTextureSize: 1024
MaxFrameBufferSize: 0
—
These are the system specs:
—
The CPU is Intel i3-2310M with its integrated GPU of Intel HD Graphics 3000.
The GPU supports OpenGL 3.1 and the CPU supports OpenCL 1.1 according to AIDA64.
Also with DirectX DDI 11.1, it suports Feature Level 10_1, Shader Model 4.1, and WDDM 1.2
—
From webglreport.com, it states that the system support both WebGL 1.0 and WebGL 2.0
—
Questions
In Test Case #1, why are the values for Vendor, Version, RendererDevice, MaxTextureSize, and MaxFrameBufferSize missing from the rendererinfo output? What are the consequences?
In Test Case #2, If OpenGL has been completely removed in R2025a, why does it still use the OpenGL 1.1 software renderer instead of WebGL? What went wrong?
How do I choose the WebGL version and its ANGLE backend (D3D9, D3D11, OpenGL, etc.) to compare the performance? gpu, renderer, graphics, opengl, webgl, rendererinfo, intel, angle, d3d, directx, hardware MATLAB Answers — New Questions
Exchange Server Subscription Edition Now Generally Available
July 1 Announcement of Exchange Server SE Launches the Subscription Era for Exchange Server
Right on schedule, July 1 saw the Exchange engineering team celebrating Microsoft’s new fiscal year by announcing the general availability of Exchange Server Subscription Edition (SE). I’m always suspicious about announcements just made at the end or start of a fiscal year because updates can be timed to satisfy artificial deadlines set by executives (to justify their bonuses). I don’t think that applies in this case because Exchange Server SE is a lightly rebranded version of Exchange 2019. At least, that’s what you might conclude by reading the slim list of changes (like a version number update).
Mentioning the Release to Manufacturing (RTM) build brought back memories of waiting for physical media containing a new release of Exchange Server, going right back to 1994 and the initial builds of “Touchdown” made available to customers. It was a charming look back into the past. Now we simply head online to grab the latest bits (Figure 1) and read the deployment instructions.

Moving to Evergreen Support
The big change is the move away from Exchange development based on three-year cycles (extended to six for Exchange 2019) to “evergreen” development. In some respects, the quarterly cumulative updates for Exchange Server showed the way forward in terms of keeping software refreshed. However, Exchange Server still followed the traditional support model based on versions whereas Exchange Server SE remains supported if customers keep the software refreshed with updates released by Microsoft.
Nine months ago, Microsoft flagged the end of support for Exchange 2016 and Exchange 2019 on October 14, 2025. After this date, Microsoft will no longer provide technical support for problems (aka bugs). The writing is on the wall: to continue in a supported state, customers must adopt Exchange Server SE or move to Exchange Online. Obviously, we’re now deep into the prime vacation period and thoughts might be more focused on suntan lotion than server upgrades, but this is an issue that cannot be overlooked, especially in hybrid environments where Microsoft requires on-premises servers that host connectors to Exchange Online to remain supported.
Email Bombs Away
If you don’t read the Microsoft Defender for Office 365 blog, you might have missed the update about protection against “email bombs.” Essentially, an email bomb is a form of attack against a mailbox where a large volume of messages (the bomb) hit a mailbox. The messages often originate from legitimate sources such as newsletters, but the target user never signed up receive the messages. Given the large quotas assigned to Exchange Online mailboxes, it’s unlikely that an email bomb will cause the mailbox to exceed quota, but the arrival of large numbers of unwanted and unexpected messages is certainly a distraction. And when someone’s distracted, they might make bad decisions, such as accepting help from an attacker who poses as a support representative.
In any case, an update to Microsoft Defender for Office 365 can monitor for the characteristics of email bombs, such as a sudden significant spike in the number of messages received by a mailbox. The spike is detected by comparison against the historical pattern of email traffic observed for the mailbox together with spam signals. When an attack is detected, Defender redirects the problem messages into the mailbox’s Junk Email folder. Microsoft says that they have blocked between 20K and 30K email bombs daily since the initial deployment of the technology in early May 2025.
Microsoft Defender for Office 365 includes a lot of useful protection against different types of email threat. For more details, including licensing, see the service description.
Ongoing Updates
Email security is never a static topic. Whether you’re upgrading on-premises servers to the latest version of Exchange Server to harden servers against external attack or deploying new software to detect and deflect attacks, this is an area we need continuous focus on. The joys of staying up-to-date!
So much change, all the time. It’s a challenge to stay abreast of all the updates Microsoft makes across the Microsoft 365 ecosystem. Subscribe to the Office 365 for IT Pros eBook to receive monthly insights into what happens, why it happens, and what new features and capabilities mean for your tenant.
Why doesn’t the Simulink Editor window open automatically when I double-click a .slx file on Windows?
When I double-click any Simulink .slx file, MATLAB opens, but it only stays in the Command Window without launching the Simulink Editor window to display the model.
I’ve already made sure that MATLAB is set as the default program to open .slx files in the Windows settings. The file icon also shows the MATLAB logo, and when I double-click, it does open MATLAB — but it doesn’t automatically open the Simulink model in the Simulink Editor.
How can I fix this behavior and make .slx files open directly in the Simulink Editor when double-clicked, as expected?
I’m using MATLAB R2022b on Windows, with MATLAB installed on a drive other than C:, but all cache and preferences are still located in C:Users<user>AppDataLocalMathWorks as usual.When I double-click any Simulink .slx file, MATLAB opens, but it only stays in the Command Window without launching the Simulink Editor window to display the model.
I’ve already made sure that MATLAB is set as the default program to open .slx files in the Windows settings. The file icon also shows the MATLAB logo, and when I double-click, it does open MATLAB — but it doesn’t automatically open the Simulink model in the Simulink Editor.
How can I fix this behavior and make .slx files open directly in the Simulink Editor when double-clicked, as expected?
I’m using MATLAB R2022b on Windows, with MATLAB installed on a drive other than C:, but all cache and preferences are still located in C:Users<user>AppDataLocalMathWorks as usual. When I double-click any Simulink .slx file, MATLAB opens, but it only stays in the Command Window without launching the Simulink Editor window to display the model.
I’ve already made sure that MATLAB is set as the default program to open .slx files in the Windows settings. The file icon also shows the MATLAB logo, and when I double-click, it does open MATLAB — but it doesn’t automatically open the Simulink model in the Simulink Editor.
How can I fix this behavior and make .slx files open directly in the Simulink Editor when double-clicked, as expected?
I’m using MATLAB R2022b on Windows, with MATLAB installed on a drive other than C:, but all cache and preferences are still located in C:Users<user>AppDataLocalMathWorks as usual. simulink, slx-open, windows, editor-window, file-a MATLAB Answers — New Questions
EEGLAB error- unrecognize the ‘eeglab_options’
Hi I recently copy pasted the matlab files from C: to D: and it was really bad idea. So I downloaded again Matlab and eeglab but the eeglab doesn’t work, when I write in the command window ‘eeglab’ it opens the GUI but only if I’m in the eeg file on CP, then I try to run a preprocessing code (which was working since ever) matlab suggests to move to this folder and the code start to run but the there is the ‘unrecognized function or variable ‘EEGLAB_OPTIONSPATH’. I know that the eeglab_options.m is on C users/user please help me figure this outHi I recently copy pasted the matlab files from C: to D: and it was really bad idea. So I downloaded again Matlab and eeglab but the eeglab doesn’t work, when I write in the command window ‘eeglab’ it opens the GUI but only if I’m in the eeg file on CP, then I try to run a preprocessing code (which was working since ever) matlab suggests to move to this folder and the code start to run but the there is the ‘unrecognized function or variable ‘EEGLAB_OPTIONSPATH’. I know that the eeglab_options.m is on C users/user please help me figure this out Hi I recently copy pasted the matlab files from C: to D: and it was really bad idea. So I downloaded again Matlab and eeglab but the eeglab doesn’t work, when I write in the command window ‘eeglab’ it opens the GUI but only if I’m in the eeg file on CP, then I try to run a preprocessing code (which was working since ever) matlab suggests to move to this folder and the code start to run but the there is the ‘unrecognized function or variable ‘EEGLAB_OPTIONSPATH’. I know that the eeglab_options.m is on C users/user please help me figure this out path problem eeglab MATLAB Answers — New Questions
How to create a concave signal step/ramp in Simulink?
I’m not sure how to properly phrase my question, but my problem is the following:
I want to implement a step in a programmable three phase source, which I need to compare to the one of another program (RSCADFX). The problem is, I don’t know how to model the signal in order to look like the following signal from RSCADFX:
To me it’s almost concave looking, it’s neither a step nor a ramp. How can I achieve this result in Simulink?I’m not sure how to properly phrase my question, but my problem is the following:
I want to implement a step in a programmable three phase source, which I need to compare to the one of another program (RSCADFX). The problem is, I don’t know how to model the signal in order to look like the following signal from RSCADFX:
To me it’s almost concave looking, it’s neither a step nor a ramp. How can I achieve this result in Simulink? I’m not sure how to properly phrase my question, but my problem is the following:
I want to implement a step in a programmable three phase source, which I need to compare to the one of another program (RSCADFX). The problem is, I don’t know how to model the signal in order to look like the following signal from RSCADFX:
To me it’s almost concave looking, it’s neither a step nor a ramp. How can I achieve this result in Simulink? simulink, signal, signal processing, source MATLAB Answers — New Questions
Apache Log4j Vulnerability CVE-2021-44228 – How does it affect Matlab?
Regarding the Apache Log4j Vulnerability CVE-2021-44228. How does it affect these software products:
Regular locally installed Matlab (Mac, PC, and Linux). All versions : current, plus old/historical.
MATLAB online (web-based version of MATLAB)
The MATLAB MCR runtime library (needed to run standalone executables someone compiled with the MATLAB Compiler Toolbox)
Installers for any Mathworks software product.
MATLAB uses log4j < v2.15
Will you provide a patch, if one is needed?Regarding the Apache Log4j Vulnerability CVE-2021-44228. How does it affect these software products:
Regular locally installed Matlab (Mac, PC, and Linux). All versions : current, plus old/historical.
MATLAB online (web-based version of MATLAB)
The MATLAB MCR runtime library (needed to run standalone executables someone compiled with the MATLAB Compiler Toolbox)
Installers for any Mathworks software product.
MATLAB uses log4j < v2.15
Will you provide a patch, if one is needed? Regarding the Apache Log4j Vulnerability CVE-2021-44228. How does it affect these software products:
Regular locally installed Matlab (Mac, PC, and Linux). All versions : current, plus old/historical.
MATLAB online (web-based version of MATLAB)
The MATLAB MCR runtime library (needed to run standalone executables someone compiled with the MATLAB Compiler Toolbox)
Installers for any Mathworks software product.
MATLAB uses log4j < v2.15
Will you provide a patch, if one is needed? log4j, malware, vulnerability, security MATLAB Answers — New Questions