Category: News
Changes Coming to Smoothen Edges in Microsoft Authenticator App
Better Use of Number Matching and a Refined First Run Experience

The developers of the Microsoft Authenticator app have certainly been busy recently. Following on their announcement that a September 2025 update will make backup and restore easier, we now have the news released in message center notification MC1117816 (18 July 2025) that an update around the same time to simplify the sign-in experience and improve onboarding for users.
Modified Number Matching
In 2022, Microsoft added number matching to the Microsoft Authenticator app to reduce “MFA fatigue,” a symptom that can happen when users are asked to approve a stream of multifactor authentication challenges and can do so with a simple click. If a user responds with a series of clicks (without too much thinking), it makes it easier for an attacker to slip a bad challenge into the stream. Displaying a number and asking the user to match the number from a set of choices forces the user to pay attention. If they don’t, they probably won’t satisfy the challenge. Number matching became generally available in May 2023.
Good as number matching is at seizing user attention, it can sometimes run into difficulties. The most obvious is when Authenticator responds to a sign-in request for an app running on the app. The notification that a response is necessary can appear over the sign-in screen, meaning that the user can’t see the number they need to enter to satisfy the response.
To solve the problem, Microsoft is replacing the number choice with a simple yes or no. The experience is seamless on Android because all apps will pick up the new mechanism. On iOS, users of the Single Sign On (SSO) plug-in will still need to switch to the Authenticator app to complete the sign-in, but number matching won’t be required.
Users signing in from another device will still use number matching to satisfy the multifactor authentication challenge.
I have not seen the change in action, but I am familiar with the issue that Microsoft is attempting to solve. Indeed, so many notifications can pop-up on a busy device that tracking down authentication requests can be challenging. Anything that’s done to smoothen the user experience will be welcome.
Improving the First-Run Experience (FRX)
Microsoft is also making changes to the initial setup of the Authenticator app to give Entra ID accounts priority over personal accounts. I think this makes sense. The more that can be done to make multifactor authentication seamless for Entra ID users, the better the chances of driving the adoption of multifactor authentication in Microsoft 365 tenants. Attackers still target vulnerable accounts with techniques like password sprays.
According to Microsoft, 99.9% of compromised Entra ID accounts don’t use multifactor authentication. That figure should be sobering enough for any tenant administrator to take immediate action to improve their security stance by insisting that all user accounts are protected with multifactor authentication.
And if the Microsoft Authenticator app is easier for people to use, the resistance to moving from more traditional methods of satisfying challenges, like SMS, will be reduced. Some nagging is likely still needed (here’s a script to help) to convince tenant users to adopt strong multifactor authentication methods, but anything to remove barriers is a good idea.
Microsoft also says that they plan to make the option to scan a QR code more obvious. Again, this is goodness because many sites use QR codes as part of the multifactor authentication enrolment process.
Not Big Changes
Neither of the changes described here are in the category of earthshattering updates. Instead, the changes refine how the Microsoft Authenticator app works to make it easier for the average person to use. That’s a good thing, and I look forward to seeing the changes appear in September 2025.
Support the work of the Office 365 for IT Pros team by subscribing to the Office 365 for IT Pros eBook. Your support pays for the time we need to track, analyze, and document the changing world of Microsoft 365 and Office 365. Only humans contribute to our work!
Why Matlab in 2025, instead of Julia etc.?
I’m planning to start a personal scientific software project. I used to be familiar with Matlab (quite some time ago), so Matlab would be my first choice. But I keep hearing that Matlab is old stuff and I should use Julia or something like that. I wouldn’t find learning Julia difficult, so familiarity with Matlab is not an important factor. Neither is cost, because I can afford a home license for Matlab, Simulink and a few toolboxes. So I’m thinking. Please give me your input! Why should I use Matlab in 2025 instead of alternatives?I’m planning to start a personal scientific software project. I used to be familiar with Matlab (quite some time ago), so Matlab would be my first choice. But I keep hearing that Matlab is old stuff and I should use Julia or something like that. I wouldn’t find learning Julia difficult, so familiarity with Matlab is not an important factor. Neither is cost, because I can afford a home license for Matlab, Simulink and a few toolboxes. So I’m thinking. Please give me your input! Why should I use Matlab in 2025 instead of alternatives? I’m planning to start a personal scientific software project. I used to be familiar with Matlab (quite some time ago), so Matlab would be my first choice. But I keep hearing that Matlab is old stuff and I should use Julia or something like that. I wouldn’t find learning Julia difficult, so familiarity with Matlab is not an important factor. Neither is cost, because I can afford a home license for Matlab, Simulink and a few toolboxes. So I’m thinking. Please give me your input! Why should I use Matlab in 2025 instead of alternatives? matlab, julia MATLAB Answers — New Questions
Function to copy to clickboard in App Designer?
I am making an application that outputs results in Edit Fields (both text and numeric). I would like to add a function that automatically copies the contents of an Edit Field to the clipboard when the Edit Field is selected (clicked). However, I do not see a callback function for Edit Fields like "ClickedFcn" for Drop Down lists.
Is it possible to do this directly or perhaps via some workaround?I am making an application that outputs results in Edit Fields (both text and numeric). I would like to add a function that automatically copies the contents of an Edit Field to the clipboard when the Edit Field is selected (clicked). However, I do not see a callback function for Edit Fields like "ClickedFcn" for Drop Down lists.
Is it possible to do this directly or perhaps via some workaround? I am making an application that outputs results in Edit Fields (both text and numeric). I would like to add a function that automatically copies the contents of an Edit Field to the clipboard when the Edit Field is selected (clicked). However, I do not see a callback function for Edit Fields like "ClickedFcn" for Drop Down lists.
Is it possible to do this directly or perhaps via some workaround? appdesigner, clickedfcn, clipboard, callback MATLAB Answers — New Questions
Where to get a zip code for free 30 days trial
Hi I am a student at University of Johannesburg. I created the MATLAB account online. I want to start the 30 day free trial but when I tap to student trial version, I am required to type in a zip code. Please help because I don not know the zip code.Hi I am a student at University of Johannesburg. I created the MATLAB account online. I want to start the 30 day free trial but when I tap to student trial version, I am required to type in a zip code. Please help because I don not know the zip code. Hi I am a student at University of Johannesburg. I created the MATLAB account online. I want to start the 30 day free trial but when I tap to student trial version, I am required to type in a zip code. Please help because I don not know the zip code. power_electronics_control MATLAB Answers — New Questions
Random lags while running app
I have an App Designed application that collects data from an Arduino Pico.
The Pico runs individual trials with accurate to submillisecond timing. MATLAB starts each trial as soon as the previous one is complete. Data is saved in tables as I found that writing to disk after each trial took too long. Even so, the time between trials is longer than it should be AND it can be extremely long on occasion. I’ve plotted each trial duration and the timing of the end of one to the start of the next. Any ideas as to why MATLAB occasionally takes long breaks? I’ve tried clearing variables between each trial (doesn’t seem to affect my app tables). Removed calls to get time of day (useing Pico Timer for data) various other attemps with Profiler but no luck since the error is rare. Copilot wasn’t much help either.
I tried updating to version R2025a and that was much worse!
Any help much appreciated. Code for the app is here, it’s big:
https://drive.google.com/file/d/1mwCtRJ-l_2fhk26JYzz2IxidDqkU3IV1/view?usp=sharingI have an App Designed application that collects data from an Arduino Pico.
The Pico runs individual trials with accurate to submillisecond timing. MATLAB starts each trial as soon as the previous one is complete. Data is saved in tables as I found that writing to disk after each trial took too long. Even so, the time between trials is longer than it should be AND it can be extremely long on occasion. I’ve plotted each trial duration and the timing of the end of one to the start of the next. Any ideas as to why MATLAB occasionally takes long breaks? I’ve tried clearing variables between each trial (doesn’t seem to affect my app tables). Removed calls to get time of day (useing Pico Timer for data) various other attemps with Profiler but no luck since the error is rare. Copilot wasn’t much help either.
I tried updating to version R2025a and that was much worse!
Any help much appreciated. Code for the app is here, it’s big:
https://drive.google.com/file/d/1mwCtRJ-l_2fhk26JYzz2IxidDqkU3IV1/view?usp=sharing I have an App Designed application that collects data from an Arduino Pico.
The Pico runs individual trials with accurate to submillisecond timing. MATLAB starts each trial as soon as the previous one is complete. Data is saved in tables as I found that writing to disk after each trial took too long. Even so, the time between trials is longer than it should be AND it can be extremely long on occasion. I’ve plotted each trial duration and the timing of the end of one to the start of the next. Any ideas as to why MATLAB occasionally takes long breaks? I’ve tried clearing variables between each trial (doesn’t seem to affect my app tables). Removed calls to get time of day (useing Pico Timer for data) various other attemps with Profiler but no luck since the error is rare. Copilot wasn’t much help either.
I tried updating to version R2025a and that was much worse!
Any help much appreciated. Code for the app is here, it’s big:
https://drive.google.com/file/d/1mwCtRJ-l_2fhk26JYzz2IxidDqkU3IV1/view?usp=sharing lagging MATLAB Answers — New Questions
Gradient descent with a simple function
Hi everyone, I am currently practicing this method on a simple function, however I keep getting this error and I do not know how to fix it.
Here is my programe:
fplot(@(x)myfun(x),[-10,10]);
alpha = 0.01;
x0 = -5;
% ——-using GD———————-
[x grad] = gradient(alpha,x0)
% hold on
% figure;
fprintf(‘x = %fn’,x);
fprintf(‘grad = %fn’,grad);
% ——————————
function f = myfun(x)
f = x^2+5*sin(x);
end
function [x,grad] = gradient(alpha,x0)
grad = 2*x0+5*cos(x0);
x = x0;
for i = 0:50
x = x – alpha*grad;
if abs(grad(x))< 0.01
break
display(x);
% grad = grad(x);
end
end
Here is the error that I got
Array indices must be positive integers or logical values.
Error in gradient (line 6)
if abs(grad(x))< 0.01
Error in Gradient_descent_1 (line 5)
[x grad] = gradient(alpha,x0)Hi everyone, I am currently practicing this method on a simple function, however I keep getting this error and I do not know how to fix it.
Here is my programe:
fplot(@(x)myfun(x),[-10,10]);
alpha = 0.01;
x0 = -5;
% ——-using GD———————-
[x grad] = gradient(alpha,x0)
% hold on
% figure;
fprintf(‘x = %fn’,x);
fprintf(‘grad = %fn’,grad);
% ——————————
function f = myfun(x)
f = x^2+5*sin(x);
end
function [x,grad] = gradient(alpha,x0)
grad = 2*x0+5*cos(x0);
x = x0;
for i = 0:50
x = x – alpha*grad;
if abs(grad(x))< 0.01
break
display(x);
% grad = grad(x);
end
end
Here is the error that I got
Array indices must be positive integers or logical values.
Error in gradient (line 6)
if abs(grad(x))< 0.01
Error in Gradient_descent_1 (line 5)
[x grad] = gradient(alpha,x0) Hi everyone, I am currently practicing this method on a simple function, however I keep getting this error and I do not know how to fix it.
Here is my programe:
fplot(@(x)myfun(x),[-10,10]);
alpha = 0.01;
x0 = -5;
% ——-using GD———————-
[x grad] = gradient(alpha,x0)
% hold on
% figure;
fprintf(‘x = %fn’,x);
fprintf(‘grad = %fn’,grad);
% ——————————
function f = myfun(x)
f = x^2+5*sin(x);
end
function [x,grad] = gradient(alpha,x0)
grad = 2*x0+5*cos(x0);
x = x0;
for i = 0:50
x = x – alpha*grad;
if abs(grad(x))< 0.01
break
display(x);
% grad = grad(x);
end
end
Here is the error that I got
Array indices must be positive integers or logical values.
Error in gradient (line 6)
if abs(grad(x))< 0.01
Error in Gradient_descent_1 (line 5)
[x grad] = gradient(alpha,x0) machine learning MATLAB Answers — New Questions
Create an index based Schmitt Trigger
Hello, I have a function that mimics a Schmitt Trigger to translate an analog sine wave into a digital square wave. So far, I have accomplished this with a for loop and the function works as planned. However, since I have a significant amount of data to process, I would like to do this index based for speed. I cannot think of a way to make this index based so the function performes faster.
My function is below, any suggestions on how to make this index based? Is it possible?
Thanks.
function [y] = Schmitt_Trigger(x,tL,tH)
%x is the input array that contains the analog sine wave to process.
%tL is the lower bound of the hysteresis and tH is the upper bound.
N = length(x);
y = zeros(1,N);
for i = 2:N
y(i) = y(i-1);
if y(i-1) == 0 && x(i)>tH
y(i) = 1;
end
if y(i-1) == 1 && x(i)<tL
y(i) = 0;
end
end
endHello, I have a function that mimics a Schmitt Trigger to translate an analog sine wave into a digital square wave. So far, I have accomplished this with a for loop and the function works as planned. However, since I have a significant amount of data to process, I would like to do this index based for speed. I cannot think of a way to make this index based so the function performes faster.
My function is below, any suggestions on how to make this index based? Is it possible?
Thanks.
function [y] = Schmitt_Trigger(x,tL,tH)
%x is the input array that contains the analog sine wave to process.
%tL is the lower bound of the hysteresis and tH is the upper bound.
N = length(x);
y = zeros(1,N);
for i = 2:N
y(i) = y(i-1);
if y(i-1) == 0 && x(i)>tH
y(i) = 1;
end
if y(i-1) == 1 && x(i)<tL
y(i) = 0;
end
end
end Hello, I have a function that mimics a Schmitt Trigger to translate an analog sine wave into a digital square wave. So far, I have accomplished this with a for loop and the function works as planned. However, since I have a significant amount of data to process, I would like to do this index based for speed. I cannot think of a way to make this index based so the function performes faster.
My function is below, any suggestions on how to make this index based? Is it possible?
Thanks.
function [y] = Schmitt_Trigger(x,tL,tH)
%x is the input array that contains the analog sine wave to process.
%tL is the lower bound of the hysteresis and tH is the upper bound.
N = length(x);
y = zeros(1,N);
for i = 2:N
y(i) = y(i-1);
if y(i-1) == 0 && x(i)>tH
y(i) = 1;
end
if y(i-1) == 1 && x(i)<tL
y(i) = 0;
end
end
end matlab, schmitt trigger, speed, index based MATLAB Answers — New Questions
Motion analysis in captured video
I have a camera mounted on a car capturing video. The car starts and stops frequently. I want to figure out when the car stops and starts. There is enough disturbance in the environment with uneven ground and even a breeze can cause huge changes in the environment. Just looking for difference from frame to frame does not give me what I need. I have tried that already. There are no markers either to distinguish when the car stops. This is not inline analysis. I have to do this offline.
Any ideas to try would be greatly appreciated.I have a camera mounted on a car capturing video. The car starts and stops frequently. I want to figure out when the car stops and starts. There is enough disturbance in the environment with uneven ground and even a breeze can cause huge changes in the environment. Just looking for difference from frame to frame does not give me what I need. I have tried that already. There are no markers either to distinguish when the car stops. This is not inline analysis. I have to do this offline.
Any ideas to try would be greatly appreciated. I have a camera mounted on a car capturing video. The car starts and stops frequently. I want to figure out when the car stops and starts. There is enough disturbance in the environment with uneven ground and even a breeze can cause huge changes in the environment. Just looking for difference from frame to frame does not give me what I need. I have tried that already. There are no markers either to distinguish when the car stops. This is not inline analysis. I have to do this offline.
Any ideas to try would be greatly appreciated. motion, image analysis, image processing, video analysis MATLAB Answers — New Questions
Microsoft Media Foundation while using audioread
Hi,
I have a brand new PC at my lab where Windows 10 Pro Education N (Version 10.0 (Build 19042)) is installed. I already checked for every update and Windows Update says all is updated, however I’m getting the following error on Matlab (9.5.0.1586782 (R2018b) Update 8):
"Error using audioread (line 104)
Audio file I/O requires Microsoft(R) Media Foundation.
Install this on your system and restart MATLAB."
I already searched for the Microsoft Media Foundation installer and I’m getting an error saying that the PC is incompatible with that installation. I believe that is due to the fact that the PC is already updated according to what I found on the internet.
Does anybody know a permanent solution for this? I know I probably should contact to my university IT department since computer’s updates are linked to the university, but first I wanted to ask here since you know better how to deal with Matlab.
Thanks in advance,
Javi.Hi,
I have a brand new PC at my lab where Windows 10 Pro Education N (Version 10.0 (Build 19042)) is installed. I already checked for every update and Windows Update says all is updated, however I’m getting the following error on Matlab (9.5.0.1586782 (R2018b) Update 8):
"Error using audioread (line 104)
Audio file I/O requires Microsoft(R) Media Foundation.
Install this on your system and restart MATLAB."
I already searched for the Microsoft Media Foundation installer and I’m getting an error saying that the PC is incompatible with that installation. I believe that is due to the fact that the PC is already updated according to what I found on the internet.
Does anybody know a permanent solution for this? I know I probably should contact to my university IT department since computer’s updates are linked to the university, but first I wanted to ask here since you know better how to deal with Matlab.
Thanks in advance,
Javi. Hi,
I have a brand new PC at my lab where Windows 10 Pro Education N (Version 10.0 (Build 19042)) is installed. I already checked for every update and Windows Update says all is updated, however I’m getting the following error on Matlab (9.5.0.1586782 (R2018b) Update 8):
"Error using audioread (line 104)
Audio file I/O requires Microsoft(R) Media Foundation.
Install this on your system and restart MATLAB."
I already searched for the Microsoft Media Foundation installer and I’m getting an error saying that the PC is incompatible with that installation. I believe that is due to the fact that the PC is already updated according to what I found on the internet.
Does anybody know a permanent solution for this? I know I probably should contact to my university IT department since computer’s updates are linked to the university, but first I wanted to ask here since you know better how to deal with Matlab.
Thanks in advance,
Javi. microsoft media foundation, microsoft, media foundation, audioread error MATLAB Answers — New Questions
Why can’t i draw pcolor() plots anymore with Matlab 2025a?
Hi, i recently upgraded from 2021b to 2025a and now the canvas of my figure is white and Matlab throws the warning:
Warning: An error occurred while drawing the scene: Error in web draw traversal: RangeError: Array buffer allocation failed
For better understanding:
I call the pcolor() function and the figure out of a Matlab app. Plotting that into the UIAxes in Matlab 2021b gave me the same error. My workaround was to create a standard figure and plot into this. Now with Matlab 2025a, i do not have this workaround anymore and i get the same error either way.Hi, i recently upgraded from 2021b to 2025a and now the canvas of my figure is white and Matlab throws the warning:
Warning: An error occurred while drawing the scene: Error in web draw traversal: RangeError: Array buffer allocation failed
For better understanding:
I call the pcolor() function and the figure out of a Matlab app. Plotting that into the UIAxes in Matlab 2021b gave me the same error. My workaround was to create a standard figure and plot into this. Now with Matlab 2025a, i do not have this workaround anymore and i get the same error either way. Hi, i recently upgraded from 2021b to 2025a and now the canvas of my figure is white and Matlab throws the warning:
Warning: An error occurred while drawing the scene: Error in web draw traversal: RangeError: Array buffer allocation failed
For better understanding:
I call the pcolor() function and the figure out of a Matlab app. Plotting that into the UIAxes in Matlab 2021b gave me the same error. My workaround was to create a standard figure and plot into this. Now with Matlab 2025a, i do not have this workaround anymore and i get the same error either way. figure MATLAB Answers — New Questions
Question about entry-wise product of general plant and weighting function matrix using Hinfstruct for multi-objective design
When I obtained the transfer matrix T from exogenous input w to real (unweighted) output z, entrywise product of matrix T and weighted transfer function matrix W is expected to be calculated and optimized. I use connect command to obtain T, which is a 4*2 transfer function matrix with adjustable parameters, reflecting the tranfer relation from input w=[Pref, wg]’ to output z=[Pref-p, p, wu, q+V/Dq]’. W is a constant transfer function matrix. Direct entrywise product of T and W cannot be implemented with MATLAB. As mentioned in P. Apkarian’s paper "Structured Hinfinity Synthesis in MATLAB", it should be formulated as Standard Form like H=blkdiag(Tij*Wij), then "Hinfstruct" can be used on H to find the tuned controllers. So I use the command like this:
H=blkdiag(T(1,1)*W11, T(1,2)*W12, T(2,1)*W21, T(2,2)*W22, T(3,1)*W31, T(3,2)*W32, T(4,1)*W41, T(4,2)*W42);
T = hinfstruct(H,opt);
However, above code cannot get the correct results. The reason I think should be the increased system order. For example, original system T has only 12 states. But system H has 103 states, where 7 states are from weighting fucntions, and the remaining 96 states are the 8 repeated states of system T, that is, 12*8=96.
Take a more realistic case with official Matlab’s "hinfstruct" example as follows. The goal is to minimize the H-infinity norm from [r, nw]’ to [y, ew]’. An important difference is that there is no entrywise product of Tij and Wij. It means the goal is to minimize 4 transfer functions: T(y,r), T(y,nw), T(ew,r), T(ew,nw).
The official command is given as follows, which works well:
T0 = connect(G,Wn,We,C0,F0,Sum1,Sum2,{‘r’,’nw’},{‘y’,’ew’});
T = hinfstruct(T0);
If I want to formulate the above 4 optimization goals T(y,r), T(y,nw), T(ew,r), T(ew,nw) into Standard From (diagnol form), I revise the above code as follows:
T0 = connect(G,Wn,We,C0,F0,Sum1,Sum2,{‘r’,’nw’},{‘y’,’ew’});
T0_revised = blkdiag(T0(1,1),T0(1,2),T0(2,1),T0(2,2));
T = hinfstruct(T0_revised);
It also cannot operate correctly. Only revise it as follows can work:
T0 = connect(G,Wn,We,C0,F0,Sum1,Sum2,{‘r’,’nw’},{‘y’,’ew’});
T0_revised=blkdiag(1,LS)*T0*blkdiag(1,1/LS);
T = hinfstruct(T0_revised,opt);
But it is still not the entry-wise product case, just the traditonal single transfer function connection as shown in the above figure.
Therefore, could you share your idea about this solution then I can learn based on it, and further do more improvement. I am looking forward to your reply. Thanks a lot for your help!When I obtained the transfer matrix T from exogenous input w to real (unweighted) output z, entrywise product of matrix T and weighted transfer function matrix W is expected to be calculated and optimized. I use connect command to obtain T, which is a 4*2 transfer function matrix with adjustable parameters, reflecting the tranfer relation from input w=[Pref, wg]’ to output z=[Pref-p, p, wu, q+V/Dq]’. W is a constant transfer function matrix. Direct entrywise product of T and W cannot be implemented with MATLAB. As mentioned in P. Apkarian’s paper "Structured Hinfinity Synthesis in MATLAB", it should be formulated as Standard Form like H=blkdiag(Tij*Wij), then "Hinfstruct" can be used on H to find the tuned controllers. So I use the command like this:
H=blkdiag(T(1,1)*W11, T(1,2)*W12, T(2,1)*W21, T(2,2)*W22, T(3,1)*W31, T(3,2)*W32, T(4,1)*W41, T(4,2)*W42);
T = hinfstruct(H,opt);
However, above code cannot get the correct results. The reason I think should be the increased system order. For example, original system T has only 12 states. But system H has 103 states, where 7 states are from weighting fucntions, and the remaining 96 states are the 8 repeated states of system T, that is, 12*8=96.
Take a more realistic case with official Matlab’s "hinfstruct" example as follows. The goal is to minimize the H-infinity norm from [r, nw]’ to [y, ew]’. An important difference is that there is no entrywise product of Tij and Wij. It means the goal is to minimize 4 transfer functions: T(y,r), T(y,nw), T(ew,r), T(ew,nw).
The official command is given as follows, which works well:
T0 = connect(G,Wn,We,C0,F0,Sum1,Sum2,{‘r’,’nw’},{‘y’,’ew’});
T = hinfstruct(T0);
If I want to formulate the above 4 optimization goals T(y,r), T(y,nw), T(ew,r), T(ew,nw) into Standard From (diagnol form), I revise the above code as follows:
T0 = connect(G,Wn,We,C0,F0,Sum1,Sum2,{‘r’,’nw’},{‘y’,’ew’});
T0_revised = blkdiag(T0(1,1),T0(1,2),T0(2,1),T0(2,2));
T = hinfstruct(T0_revised);
It also cannot operate correctly. Only revise it as follows can work:
T0 = connect(G,Wn,We,C0,F0,Sum1,Sum2,{‘r’,’nw’},{‘y’,’ew’});
T0_revised=blkdiag(1,LS)*T0*blkdiag(1,1/LS);
T = hinfstruct(T0_revised,opt);
But it is still not the entry-wise product case, just the traditonal single transfer function connection as shown in the above figure.
Therefore, could you share your idea about this solution then I can learn based on it, and further do more improvement. I am looking forward to your reply. Thanks a lot for your help! When I obtained the transfer matrix T from exogenous input w to real (unweighted) output z, entrywise product of matrix T and weighted transfer function matrix W is expected to be calculated and optimized. I use connect command to obtain T, which is a 4*2 transfer function matrix with adjustable parameters, reflecting the tranfer relation from input w=[Pref, wg]’ to output z=[Pref-p, p, wu, q+V/Dq]’. W is a constant transfer function matrix. Direct entrywise product of T and W cannot be implemented with MATLAB. As mentioned in P. Apkarian’s paper "Structured Hinfinity Synthesis in MATLAB", it should be formulated as Standard Form like H=blkdiag(Tij*Wij), then "Hinfstruct" can be used on H to find the tuned controllers. So I use the command like this:
H=blkdiag(T(1,1)*W11, T(1,2)*W12, T(2,1)*W21, T(2,2)*W22, T(3,1)*W31, T(3,2)*W32, T(4,1)*W41, T(4,2)*W42);
T = hinfstruct(H,opt);
However, above code cannot get the correct results. The reason I think should be the increased system order. For example, original system T has only 12 states. But system H has 103 states, where 7 states are from weighting fucntions, and the remaining 96 states are the 8 repeated states of system T, that is, 12*8=96.
Take a more realistic case with official Matlab’s "hinfstruct" example as follows. The goal is to minimize the H-infinity norm from [r, nw]’ to [y, ew]’. An important difference is that there is no entrywise product of Tij and Wij. It means the goal is to minimize 4 transfer functions: T(y,r), T(y,nw), T(ew,r), T(ew,nw).
The official command is given as follows, which works well:
T0 = connect(G,Wn,We,C0,F0,Sum1,Sum2,{‘r’,’nw’},{‘y’,’ew’});
T = hinfstruct(T0);
If I want to formulate the above 4 optimization goals T(y,r), T(y,nw), T(ew,r), T(ew,nw) into Standard From (diagnol form), I revise the above code as follows:
T0 = connect(G,Wn,We,C0,F0,Sum1,Sum2,{‘r’,’nw’},{‘y’,’ew’});
T0_revised = blkdiag(T0(1,1),T0(1,2),T0(2,1),T0(2,2));
T = hinfstruct(T0_revised);
It also cannot operate correctly. Only revise it as follows can work:
T0 = connect(G,Wn,We,C0,F0,Sum1,Sum2,{‘r’,’nw’},{‘y’,’ew’});
T0_revised=blkdiag(1,LS)*T0*blkdiag(1,1/LS);
T = hinfstruct(T0_revised,opt);
But it is still not the entry-wise product case, just the traditonal single transfer function connection as shown in the above figure.
Therefore, could you share your idea about this solution then I can learn based on it, and further do more improvement. I am looking forward to your reply. Thanks a lot for your help! hinfstruct, robust control, control system toolbox MATLAB Answers — New Questions
Variable might be set by a nonscalar (three variables in pythagorean triplet)
Hi everyone,
Im working for project euler and I try to do #9 (Special Pythagorean Triplet). I have encountered couples of errors, one of which is something that occurs from my trying to make 3 arrays probably, some of them are named Variable might be set by a nonscalar and other errors which I don’t understand.
function y = pythtrip(a,b,c)
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
y = a*b*c;
a = 0:750;
b = 0:750;
c = 0:750;
while (a>b) && b>c && (a^2)+(b^2)==(c^2) && a+b+c == 1000;
pythtrip(a,b,c)
y;
endHi everyone,
Im working for project euler and I try to do #9 (Special Pythagorean Triplet). I have encountered couples of errors, one of which is something that occurs from my trying to make 3 arrays probably, some of them are named Variable might be set by a nonscalar and other errors which I don’t understand.
function y = pythtrip(a,b,c)
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
y = a*b*c;
a = 0:750;
b = 0:750;
c = 0:750;
while (a>b) && b>c && (a^2)+(b^2)==(c^2) && a+b+c == 1000;
pythtrip(a,b,c)
y;
end Hi everyone,
Im working for project euler and I try to do #9 (Special Pythagorean Triplet). I have encountered couples of errors, one of which is something that occurs from my trying to make 3 arrays probably, some of them are named Variable might be set by a nonscalar and other errors which I don’t understand.
function y = pythtrip(a,b,c)
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
y = a*b*c;
a = 0:750;
b = 0:750;
c = 0:750;
while (a>b) && b>c && (a^2)+(b^2)==(c^2) && a+b+c == 1000;
pythtrip(a,b,c)
y;
end project_euler, pythagorean triplet, arrays, while loop, function MATLAB Answers — New Questions
Trying to determine locations of markers in image
I’m trying to obtain the pixel coordinates of the dot pattern image data that is stored in the attached file; I’m using this image to spatially calibrate my camera image. Is there a way to automate the detection of these dots? Thanks in advance for any guidance.I’m trying to obtain the pixel coordinates of the dot pattern image data that is stored in the attached file; I’m using this image to spatially calibrate my camera image. Is there a way to automate the detection of these dots? Thanks in advance for any guidance. I’m trying to obtain the pixel coordinates of the dot pattern image data that is stored in the attached file; I’m using this image to spatially calibrate my camera image. Is there a way to automate the detection of these dots? Thanks in advance for any guidance. image analysis, feature detection, spatial calibration MATLAB Answers — New Questions
Read datastore with variables of mixed classes
I have a large datastore as a csv file. A couple of variables have occasional alphabetical letters (e.g., "C") mixed in with observations that are otherwise numerals. dsread reports errors as seen below. What steps allow me to read the datastore, correcting for occasional errors?
Are there methods to construct/define the datastore such that a read recognizes the letters?
Error using matlab.io.datastore.TabularTextDatastore/readData (line 78)
Unable to parse a "Numeric" field when reading row 81, field 16.
Actual Text: "C,27108,16,16,C"
Expected: A number or literal "NaN", "Inf". (possibly signed, case insensitive)
Error in matlab.io.datastore.TabularDatastore/read (line 174)
[t, info] = ds.readData();
Error in untitled (line 11)
dC = read(ds);
Caused by:
Reading the variable name ‘RET’ using format ‘%f’ from file:
‘C:UsersdbrownBoxBrown_CarldatarawDistributionsDaily_Returns_CRSP_S&P500_1962-2024.csv’
starting at offset 1787951.I have a large datastore as a csv file. A couple of variables have occasional alphabetical letters (e.g., "C") mixed in with observations that are otherwise numerals. dsread reports errors as seen below. What steps allow me to read the datastore, correcting for occasional errors?
Are there methods to construct/define the datastore such that a read recognizes the letters?
Error using matlab.io.datastore.TabularTextDatastore/readData (line 78)
Unable to parse a "Numeric" field when reading row 81, field 16.
Actual Text: "C,27108,16,16,C"
Expected: A number or literal "NaN", "Inf". (possibly signed, case insensitive)
Error in matlab.io.datastore.TabularDatastore/read (line 174)
[t, info] = ds.readData();
Error in untitled (line 11)
dC = read(ds);
Caused by:
Reading the variable name ‘RET’ using format ‘%f’ from file:
‘C:UsersdbrownBoxBrown_CarldatarawDistributionsDaily_Returns_CRSP_S&P500_1962-2024.csv’
starting at offset 1787951. I have a large datastore as a csv file. A couple of variables have occasional alphabetical letters (e.g., "C") mixed in with observations that are otherwise numerals. dsread reports errors as seen below. What steps allow me to read the datastore, correcting for occasional errors?
Are there methods to construct/define the datastore such that a read recognizes the letters?
Error using matlab.io.datastore.TabularTextDatastore/readData (line 78)
Unable to parse a "Numeric" field when reading row 81, field 16.
Actual Text: "C,27108,16,16,C"
Expected: A number or literal "NaN", "Inf". (possibly signed, case insensitive)
Error in matlab.io.datastore.TabularDatastore/read (line 174)
[t, info] = ds.readData();
Error in untitled (line 11)
dC = read(ds);
Caused by:
Reading the variable name ‘RET’ using format ‘%f’ from file:
‘C:UsersdbrownBoxBrown_CarldatarawDistributionsDaily_Returns_CRSP_S&P500_1962-2024.csv’
starting at offset 1787951. datastore, mixed class variables MATLAB Answers — New Questions
To apply Naive Bayes as weight calculater with ELM
Now, I want to implement Naive Bayes algorithm to calculate the weight metrices of ELM. Can some one help me to perform this and give me a code fro this in matlabNow, I want to implement Naive Bayes algorithm to calculate the weight metrices of ELM. Can some one help me to perform this and give me a code fro this in matlab Now, I want to implement Naive Bayes algorithm to calculate the weight metrices of ELM. Can some one help me to perform this and give me a code fro this in matlab naive bayes, elm MATLAB Answers — New Questions
how to evaluate the integral of the expression involving bessel functions.
I have the following expression which i need to find.
then how i can find the integration? here this k is vector which contain k0,k1,k2, and same d and e is also a vector which contain d1,d2,d3 and e1, e2 ,e3 . and is also given. Then how i can evaluate this integration.I have the following expression which i need to find.
then how i can find the integration? here this k is vector which contain k0,k1,k2, and same d and e is also a vector which contain d1,d2,d3 and e1, e2 ,e3 . and is also given. Then how i can evaluate this integration. I have the following expression which i need to find.
then how i can find the integration? here this k is vector which contain k0,k1,k2, and same d and e is also a vector which contain d1,d2,d3 and e1, e2 ,e3 . and is also given. Then how i can evaluate this integration. numerical integration MATLAB Answers — New Questions
Teams Gains New Accent Colors
Keep the Default Accent Color or Choose New One
I thought that life was complete when Teams delivered multiple emoji reactions for messages. Now I know I was mistaken because MC1115312 (14 July 2025, Microsoft 365 roadmap item Microsoft 365 roadmap item 497139) announces the arrival of customizable accent colors, which begin to roll out for Teams desktop and browser (but not mobile) clients in late July 2025. Worldwide deployment is scheduled to be complete by the end of August 2025.
I’m unsure of quite how many people have ever woken up saying how nice it would be if Teams supported a selectable accent color – or how many people understand the purpose of an accent color. Mozilla documentation explains that an accent color is a cascading style sheet (CSS) property that sets the color of certain user interface controls.
Selecting a Theme Accent Color
Given that the Teams UX is basically a big browser app, it doesn’t come as a surprise that a style sheet property is involved, but what does it do? Well, users can select a color from a set presented in the Appearance section of the Settings app (Figure 1). According to Microsoft, this is a “visual customization” of the Teams interface that “enhances the user experience.”

The ten colors in the set range from the default (a wishy-washy light blue) to Red to Teal to Pink to Grey. You can’t add extra colors, so Teams can’t comply with expensive corporate brandings that feature an exact shade defined in a Pantone code. There is no administrative control available to set an accent color for users or to disable the option to select an accent color. Choosing an accent color is a purely cosmetic change that is user-driven to reflect personal rather than corporate choice.
You might scoff about the need to respect corporate branding, but I remember a heated debate inside Digital Equipment Corporation when a new CEO decided to refresh the iconic logo with new colors. Cue a surprisingly vicious fight between people who liked different shades of burgundy…
How Teams Uses an Accent Color
When you select a new accent color, Teams uses that color for many different elements in its user interface. The best example I could come up with is from the new threaded layout for channels where the accent color is used to highlight the base topic for a thread. I chose Red as my account color, and you can see the effect in Figure 2. Other elements that use the color include the count of notifications at the top of the screen, hyperlinks, and the display names of conversation participants.

After selecting such a bold color, you can appreciate why the Teams developers chose a muted color as the default (the first color in the list of available accent colors). Figure 3 shows an even more garish appearance using a yellow accent. Of course, beauty is in the eye of the beholder, and you might consider this to be just the kind of thing you want to see when browsing conversations.

Teams uses the chosen accent color in both home and host tenants, so if you’re a guest member of teams in other tenants, your selected color shows up there too. However, the color choice is specific to a workstation, and if you use Teams on another device, you’ll get whatever color is selected there.
One oddity I noticed is that selecting a color in Teams affects the display of other applications. For example, this blog is hosted by WordPress, and the Jetpack stats view (of page views, etc.) changed its color when I selected a new color in Teams. This might just be coincidence, but that’s less likely when the same thing happens on two PCs.
Customization is Good
I don’t think anyone can argue that the provision of options to allow users to customize their working environment is a bad thing. However, sometimes I wonder why effort is expended on developments like selectable accent colors when so much else could be done to address other issues.
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.
How can I change the font size of MsgBox?
if f==0 || f <0
Message = sprintf(‘Serbestlik derecesi %dn DENGELEME YOK!!! ‘,f);
h = msgbox(Message,…
‘Dikkat’, ‘warn’);
endif f==0 || f <0
Message = sprintf(‘Serbestlik derecesi %dn DENGELEME YOK!!! ‘,f);
h = msgbox(Message,…
‘Dikkat’, ‘warn’);
end if f==0 || f <0
Message = sprintf(‘Serbestlik derecesi %dn DENGELEME YOK!!! ‘,f);
h = msgbox(Message,…
‘Dikkat’, ‘warn’);
end msgbox, fontsize, font, size MATLAB Answers — New Questions
sinus wave with chosen number of variating period
Hi,
I am trying to simulate a refractive index change in a medium, to do that I need to accurately model the evolution of said index with a sinusoidal function with variating period (see picture below for an exemple).
The function is written as n(z)=n0+n1*cos(phi(z)) (n being the index), with phi(z)=alpha/(z+beta), I would expect that fixing beta and calculating alpha for alpha=nT*2*pi*(zmax+beta) (with nT the number of period in the interval from z=0 to z=zmax) would give me a function with nT period but it does not, where did I go wrong?
ThanksHi,
I am trying to simulate a refractive index change in a medium, to do that I need to accurately model the evolution of said index with a sinusoidal function with variating period (see picture below for an exemple).
The function is written as n(z)=n0+n1*cos(phi(z)) (n being the index), with phi(z)=alpha/(z+beta), I would expect that fixing beta and calculating alpha for alpha=nT*2*pi*(zmax+beta) (with nT the number of period in the interval from z=0 to z=zmax) would give me a function with nT period but it does not, where did I go wrong?
Thanks Hi,
I am trying to simulate a refractive index change in a medium, to do that I need to accurately model the evolution of said index with a sinusoidal function with variating period (see picture below for an exemple).
The function is written as n(z)=n0+n1*cos(phi(z)) (n being the index), with phi(z)=alpha/(z+beta), I would expect that fixing beta and calculating alpha for alpha=nT*2*pi*(zmax+beta) (with nT the number of period in the interval from z=0 to z=zmax) would give me a function with nT period but it does not, where did I go wrong?
Thanks matlab, mathematics MATLAB Answers — New Questions
The export of MATLAB graphics may not be suitable for high-resolution screens
When I export an existing fig graph, its size does not match the content within the display interface.
Initially I found there is an error in HiDPI adaption.
My coumputer’s screen is in 200% scale. When I export the figure, the size seems to be double itself. As I halving the lenght or the width, it become normal.When I export an existing fig graph, its size does not match the content within the display interface.
Initially I found there is an error in HiDPI adaption.
My coumputer’s screen is in 200% scale. When I export the figure, the size seems to be double itself. As I halving the lenght or the width, it become normal. When I export an existing fig graph, its size does not match the content within the display interface.
Initially I found there is an error in HiDPI adaption.
My coumputer’s screen is in 200% scale. When I export the figure, the size seems to be double itself. As I halving the lenght or the width, it become normal. figure, export MATLAB Answers — New Questions