Category: News
Create figures with different number of images but same sizes
I try to create 2 figures in 2 different scripts.
Script 1 looks like this:
img_sos = rand(64);
img_oar_pixel = rand(64);
img_oar_block = rand(64);
img_sos = img_sos / max(img_sos(:));
img_oar_pixel = img_oar_pixel / max(img_oar_pixel(:));
img_oar_block = img_oar_block / max(img_oar_block(:));
f = figure;
tl = tiledlayout(1, 3, ‘TileSpacing’, ‘compact’, ‘Padding’, ‘compact’);
clim1 = [0 1];
cmap1 = jet;
ax1 = [];
ax1(1) = nexttile;
imagesc(img_sos, clim1);
axis image off;
title(‘Sum-of-Squares’, ‘FontSize’, 10);
ax1(2) = nexttile;
imagesc(img_oar_pixel, clim1);
axis image off;
title(‘Adaptive Kombination (Pixelweise)’, ‘FontSize’, 10);
ax1(3) = nexttile;
imagesc(img_oar_block, clim1);
axis image off;
title(‘Adaptive Kombination (Blockweise)’, ‘FontSize’, 10);
set(ax1, ‘Colormap’, cmap1);
cb1 = colorbar(ax1(end), ‘eastoutside’);
cb1.Label.String = ‘Normierte Signalintensität’;
cb1.Label.FontSize = 10;
cb1.Ticks = 0:0.2:1;
My second script looks like this:
figure; %<—Matt J added
img_oar_rec = rand(64);
img_oar_rec = img_oar_rec/max(img_oar_rec(:));
img_mask = rand(64);
tiledlayout(1, 2, ‘TileSpacing’, ‘compact’, ‘Padding’, ‘compact’);
ax1 = nexttile;
imagesc(img_oar_rec, [0 1]);
axis image off;
colormap(ax1, ‘jet’);
cb = colorbar;
cb.Label.String = ‘Normierte Signalintensität’;
cb.Label.FontSize = 10;
title(‘Adaptive Kombination’, ‘FontSize’, 10);
ax2 = nexttile;
imagesc(img_mask);
axis image off;
colormap(ax2, ‘gray’);
title(‘Binäre Maske’, ‘FontSize’, 10);
As I want to use these figures in a latex report, I want to save these figures as jpg.
But in both figures, the images should have the same size. Same for the titles and colorbar strings.
How can I do that? I should not scale figures in latex.I try to create 2 figures in 2 different scripts.
Script 1 looks like this:
img_sos = rand(64);
img_oar_pixel = rand(64);
img_oar_block = rand(64);
img_sos = img_sos / max(img_sos(:));
img_oar_pixel = img_oar_pixel / max(img_oar_pixel(:));
img_oar_block = img_oar_block / max(img_oar_block(:));
f = figure;
tl = tiledlayout(1, 3, ‘TileSpacing’, ‘compact’, ‘Padding’, ‘compact’);
clim1 = [0 1];
cmap1 = jet;
ax1 = [];
ax1(1) = nexttile;
imagesc(img_sos, clim1);
axis image off;
title(‘Sum-of-Squares’, ‘FontSize’, 10);
ax1(2) = nexttile;
imagesc(img_oar_pixel, clim1);
axis image off;
title(‘Adaptive Kombination (Pixelweise)’, ‘FontSize’, 10);
ax1(3) = nexttile;
imagesc(img_oar_block, clim1);
axis image off;
title(‘Adaptive Kombination (Blockweise)’, ‘FontSize’, 10);
set(ax1, ‘Colormap’, cmap1);
cb1 = colorbar(ax1(end), ‘eastoutside’);
cb1.Label.String = ‘Normierte Signalintensität’;
cb1.Label.FontSize = 10;
cb1.Ticks = 0:0.2:1;
My second script looks like this:
figure; %<—Matt J added
img_oar_rec = rand(64);
img_oar_rec = img_oar_rec/max(img_oar_rec(:));
img_mask = rand(64);
tiledlayout(1, 2, ‘TileSpacing’, ‘compact’, ‘Padding’, ‘compact’);
ax1 = nexttile;
imagesc(img_oar_rec, [0 1]);
axis image off;
colormap(ax1, ‘jet’);
cb = colorbar;
cb.Label.String = ‘Normierte Signalintensität’;
cb.Label.FontSize = 10;
title(‘Adaptive Kombination’, ‘FontSize’, 10);
ax2 = nexttile;
imagesc(img_mask);
axis image off;
colormap(ax2, ‘gray’);
title(‘Binäre Maske’, ‘FontSize’, 10);
As I want to use these figures in a latex report, I want to save these figures as jpg.
But in both figures, the images should have the same size. Same for the titles and colorbar strings.
How can I do that? I should not scale figures in latex. I try to create 2 figures in 2 different scripts.
Script 1 looks like this:
img_sos = rand(64);
img_oar_pixel = rand(64);
img_oar_block = rand(64);
img_sos = img_sos / max(img_sos(:));
img_oar_pixel = img_oar_pixel / max(img_oar_pixel(:));
img_oar_block = img_oar_block / max(img_oar_block(:));
f = figure;
tl = tiledlayout(1, 3, ‘TileSpacing’, ‘compact’, ‘Padding’, ‘compact’);
clim1 = [0 1];
cmap1 = jet;
ax1 = [];
ax1(1) = nexttile;
imagesc(img_sos, clim1);
axis image off;
title(‘Sum-of-Squares’, ‘FontSize’, 10);
ax1(2) = nexttile;
imagesc(img_oar_pixel, clim1);
axis image off;
title(‘Adaptive Kombination (Pixelweise)’, ‘FontSize’, 10);
ax1(3) = nexttile;
imagesc(img_oar_block, clim1);
axis image off;
title(‘Adaptive Kombination (Blockweise)’, ‘FontSize’, 10);
set(ax1, ‘Colormap’, cmap1);
cb1 = colorbar(ax1(end), ‘eastoutside’);
cb1.Label.String = ‘Normierte Signalintensität’;
cb1.Label.FontSize = 10;
cb1.Ticks = 0:0.2:1;
My second script looks like this:
figure; %<—Matt J added
img_oar_rec = rand(64);
img_oar_rec = img_oar_rec/max(img_oar_rec(:));
img_mask = rand(64);
tiledlayout(1, 2, ‘TileSpacing’, ‘compact’, ‘Padding’, ‘compact’);
ax1 = nexttile;
imagesc(img_oar_rec, [0 1]);
axis image off;
colormap(ax1, ‘jet’);
cb = colorbar;
cb.Label.String = ‘Normierte Signalintensität’;
cb.Label.FontSize = 10;
title(‘Adaptive Kombination’, ‘FontSize’, 10);
ax2 = nexttile;
imagesc(img_mask);
axis image off;
colormap(ax2, ‘gray’);
title(‘Binäre Maske’, ‘FontSize’, 10);
As I want to use these figures in a latex report, I want to save these figures as jpg.
But in both figures, the images should have the same size. Same for the titles and colorbar strings.
How can I do that? I should not scale figures in latex. figure, subplot, image, export MATLAB Answers — New Questions
I want to convert matlab code to verilog for my image processing project using hdl coder, i have the code but i dont know how to divide my code into function and test bench, please help me. I m using matlab r2018a version.
if true
% code
endif true
% code
end if true
% code
end image processing MATLAB Answers — New Questions
Request for Guidance and Resources for Electric Powertrain Control Project – Formula Student
I am currently developing a Simulink-based model for controlling the current delivered to a dual-motor inverter system in an electric powertrain, as part of a Formula Student vehicle project.
The controller will run on an embedded unit and will be responsible for computing the reference currents based on various inputs, such as vehicle speed, throttle position, and steering angle. The model will eventually be converted to C code using MATLAB tools for deployment on the ECU.
I already have experience using MATLAB and Simulink and would like to ask if you have any guidance, documentation, or reference Simulink models relevant to electric powertrain current control, inverter control, or electric motor control systems. I would also appreciate your advice on which MATLAB/Simulink toolboxes or add-ons are best suited for this type of application.
Thank you in advance for your time and support.I am currently developing a Simulink-based model for controlling the current delivered to a dual-motor inverter system in an electric powertrain, as part of a Formula Student vehicle project.
The controller will run on an embedded unit and will be responsible for computing the reference currents based on various inputs, such as vehicle speed, throttle position, and steering angle. The model will eventually be converted to C code using MATLAB tools for deployment on the ECU.
I already have experience using MATLAB and Simulink and would like to ask if you have any guidance, documentation, or reference Simulink models relevant to electric powertrain current control, inverter control, or electric motor control systems. I would also appreciate your advice on which MATLAB/Simulink toolboxes or add-ons are best suited for this type of application.
Thank you in advance for your time and support. I am currently developing a Simulink-based model for controlling the current delivered to a dual-motor inverter system in an electric powertrain, as part of a Formula Student vehicle project.
The controller will run on an embedded unit and will be responsible for computing the reference currents based on various inputs, such as vehicle speed, throttle position, and steering angle. The model will eventually be converted to C code using MATLAB tools for deployment on the ECU.
I already have experience using MATLAB and Simulink and would like to ask if you have any guidance, documentation, or reference Simulink models relevant to electric powertrain current control, inverter control, or electric motor control systems. I would also appreciate your advice on which MATLAB/Simulink toolboxes or add-ons are best suited for this type of application.
Thank you in advance for your time and support. racinglounge, inverter_controller MATLAB Answers — New Questions
Merging multiple dictionaries with dictionaries
Related to this question, how can one merge two dictionaries that have dictionaries as the keys and values?
A = dictionary(dictionary(["key1"], {1}), dictionary(["key2"], {2}));
A(dictionary(["key3"], {3})) = dictionary(["key4"], {4})
B = dictionary(dictionary(["key5"], {5}), dictionary(["key6"], {6}));
B(dictionary(["key7"], {7})) = dictionary(["key8"], {8})
C = dictionary(A.keys, A.values)
C(B.keys) = B.valuesRelated to this question, how can one merge two dictionaries that have dictionaries as the keys and values?
A = dictionary(dictionary(["key1"], {1}), dictionary(["key2"], {2}));
A(dictionary(["key3"], {3})) = dictionary(["key4"], {4})
B = dictionary(dictionary(["key5"], {5}), dictionary(["key6"], {6}));
B(dictionary(["key7"], {7})) = dictionary(["key8"], {8})
C = dictionary(A.keys, A.values)
C(B.keys) = B.values Related to this question, how can one merge two dictionaries that have dictionaries as the keys and values?
A = dictionary(dictionary(["key1"], {1}), dictionary(["key2"], {2}));
A(dictionary(["key3"], {3})) = dictionary(["key4"], {4})
B = dictionary(dictionary(["key5"], {5}), dictionary(["key6"], {6}));
B(dictionary(["key7"], {7})) = dictionary(["key8"], {8})
C = dictionary(A.keys, A.values)
C(B.keys) = B.values dictionary MATLAB Answers — New Questions
Cap Maximum ODE solve time
I am solving a set of ODEs with several different initial conditions some of which will be badly conditioned and get bogged down. I want to cap the run time of an individual solve to say 100 seconds. If it reaches 100 seconds, I want to exit and just mark the solve as fail. I haven’t been able to find a way to do this on the forum. Does anyone have any suggestions?I am solving a set of ODEs with several different initial conditions some of which will be badly conditioned and get bogged down. I want to cap the run time of an individual solve to say 100 seconds. If it reaches 100 seconds, I want to exit and just mark the solve as fail. I haven’t been able to find a way to do this on the forum. Does anyone have any suggestions? I am solving a set of ODEs with several different initial conditions some of which will be badly conditioned and get bogged down. I want to cap the run time of an individual solve to say 100 seconds. If it reaches 100 seconds, I want to exit and just mark the solve as fail. I haven’t been able to find a way to do this on the forum. Does anyone have any suggestions? ode MATLAB Answers — New Questions
How to Apply Multiple BC Types (Dirichlet, Robin, Neumann) on a Single 3D Face?
Hello MATLAB Community,
I am trying to solve a 3D transient heat transfer problem on a simple cuboid using the PDE Toolbox.
My main challenge is applying three different types of boundary conditions to different regions of a single face.
Problem Description:
The geometry is a simple 3D block. The boundary conditions are:
Back Face (x=0): Constant temperature (Dirichlet condition).
All 4 Side Faces (in Y and Z): Adiabatic (zero flux / Neumann).
Front Face (x=L): This face needs a composite boundary condition, as shown in this diagram:
A central rectangular region with a constant temperature (Dirichlet).
Regions above and below the central patch with convection (Robin).
Regions to the left and right of the central patch which are adiabatic (Neumann).
What is the correct programmatic method to define these different types of boundary conditions on sub-regions of a single face, especially in a version of MATLAB that does not seem to support the more recent, flexible function handle syntaxes?Hello MATLAB Community,
I am trying to solve a 3D transient heat transfer problem on a simple cuboid using the PDE Toolbox.
My main challenge is applying three different types of boundary conditions to different regions of a single face.
Problem Description:
The geometry is a simple 3D block. The boundary conditions are:
Back Face (x=0): Constant temperature (Dirichlet condition).
All 4 Side Faces (in Y and Z): Adiabatic (zero flux / Neumann).
Front Face (x=L): This face needs a composite boundary condition, as shown in this diagram:
A central rectangular region with a constant temperature (Dirichlet).
Regions above and below the central patch with convection (Robin).
Regions to the left and right of the central patch which are adiabatic (Neumann).
What is the correct programmatic method to define these different types of boundary conditions on sub-regions of a single face, especially in a version of MATLAB that does not seem to support the more recent, flexible function handle syntaxes? Hello MATLAB Community,
I am trying to solve a 3D transient heat transfer problem on a simple cuboid using the PDE Toolbox.
My main challenge is applying three different types of boundary conditions to different regions of a single face.
Problem Description:
The geometry is a simple 3D block. The boundary conditions are:
Back Face (x=0): Constant temperature (Dirichlet condition).
All 4 Side Faces (in Y and Z): Adiabatic (zero flux / Neumann).
Front Face (x=L): This face needs a composite boundary condition, as shown in this diagram:
A central rectangular region with a constant temperature (Dirichlet).
Regions above and below the central patch with convection (Robin).
Regions to the left and right of the central patch which are adiabatic (Neumann).
What is the correct programmatic method to define these different types of boundary conditions on sub-regions of a single face, especially in a version of MATLAB that does not seem to support the more recent, flexible function handle syntaxes? pde, pde-toolbox, boundary-conditions, 3d, fem MATLAB Answers — New Questions
How to find the MATLAB code in the MATLAB Simulink example file
how to check the code for timing calculations (SVPWM Generator (3 Level)) in the MATLAB simulink example file Power_SVPWM_3Levelhow to check the code for timing calculations (SVPWM Generator (3 Level)) in the MATLAB simulink example file Power_SVPWM_3Level how to check the code for timing calculations (SVPWM Generator (3 Level)) in the MATLAB simulink example file Power_SVPWM_3Level simulink example file MATLAB Answers — New Questions
How can I create user accounts for MATLAB Web App Server?
I am using MATLAB Web App Server to host apps for a group of end users outside my organization. I notice that MATLAB Web App Server supports user authentication, and I would like to use this to grant access to my end users and monitor their app usage. However, since these are external users, I do not want to set up authentication using my existing internal company identity provider.
Is there a good way to create and manage user accounts for external users for MATLAB Web App Server?I am using MATLAB Web App Server to host apps for a group of end users outside my organization. I notice that MATLAB Web App Server supports user authentication, and I would like to use this to grant access to my end users and monitor their app usage. However, since these are external users, I do not want to set up authentication using my existing internal company identity provider.
Is there a good way to create and manage user accounts for external users for MATLAB Web App Server? I am using MATLAB Web App Server to host apps for a group of end users outside my organization. I notice that MATLAB Web App Server supports user authentication, and I would like to use this to grant access to my end users and monitor their app usage. However, since these are external users, I do not want to set up authentication using my existing internal company identity provider.
Is there a good way to create and manage user accounts for external users for MATLAB Web App Server? MATLAB Answers — New Questions
ISSUE WITH SIMULATING BATTERY CELL AFTER PARAMETER ESTIMATION TASK?
Hello,
I have estimated the 2RC equivalent circuit model battery using parameter estimation task. all my updated parameters (SOC,V0,R0,R1, TAU1,R2,TAU2) are of size 21X1 (double). when i am using this parametrized cell with discharger block at 1C discharge(which is for 3600 seconds duration), the results are confusing to me. The cell get discharged completely at 1200 seconds,i.e. reaching to cut off voltage of 2.5V and not showing any effect after it. I am unable to understand what is wrong? Please help.
Thanks,
SudeepHello,
I have estimated the 2RC equivalent circuit model battery using parameter estimation task. all my updated parameters (SOC,V0,R0,R1, TAU1,R2,TAU2) are of size 21X1 (double). when i am using this parametrized cell with discharger block at 1C discharge(which is for 3600 seconds duration), the results are confusing to me. The cell get discharged completely at 1200 seconds,i.e. reaching to cut off voltage of 2.5V and not showing any effect after it. I am unable to understand what is wrong? Please help.
Thanks,
Sudeep Hello,
I have estimated the 2RC equivalent circuit model battery using parameter estimation task. all my updated parameters (SOC,V0,R0,R1, TAU1,R2,TAU2) are of size 21X1 (double). when i am using this parametrized cell with discharger block at 1C discharge(which is for 3600 seconds duration), the results are confusing to me. The cell get discharged completely at 1200 seconds,i.e. reaching to cut off voltage of 2.5V and not showing any effect after it. I am unable to understand what is wrong? Please help.
Thanks,
Sudeep parameter estimation, optimization, battery_system_management MATLAB Answers — New Questions
Automatic line selection bug
When I click on a line in the Editor and scroll the mouse cursor up or down, MATLAB automatically selects and highlights across lines as in the screenhot enclosed. This started to happen only recently. I wonder if this has anything to do with the latest macOS update 15.1 or the latest MATLAB update 224b.When I click on a line in the Editor and scroll the mouse cursor up or down, MATLAB automatically selects and highlights across lines as in the screenhot enclosed. This started to happen only recently. I wonder if this has anything to do with the latest macOS update 15.1 or the latest MATLAB update 224b. When I click on a line in the Editor and scroll the mouse cursor up or down, MATLAB automatically selects and highlights across lines as in the screenhot enclosed. This started to happen only recently. I wonder if this has anything to do with the latest macOS update 15.1 or the latest MATLAB update 224b. bug MATLAB Answers — New Questions
Volume Property in trackerGNN
What exactly is Volume property of trackerGNN? Won’t this volume change from one measurement bin to next depending upon distance from Sensor? If so, how to choose an appropriate value for this parameter?What exactly is Volume property of trackerGNN? Won’t this volume change from one measurement bin to next depending upon distance from Sensor? If so, how to choose an appropriate value for this parameter? What exactly is Volume property of trackerGNN? Won’t this volume change from one measurement bin to next depending upon distance from Sensor? If so, how to choose an appropriate value for this parameter? trackergnn MATLAB Answers — New Questions
Microsoft Graph PowerShell SDK V2.29 Now Available
New Version Released on July 9
On July 9, 2025, Microsoft released V2.29 of the Microsoft Graph PowerShell SDK to the PowerShell Gallery (Figure 1). The release notes are available but don’t really throw much light into what’s been updated and the set of issues registered in GitHub for the SDK hasn’t gone down, so it’s hard to know exactly what changes Microsoft has made in V2.29. The only way to check is to install V2.29 and run some cmdlets, which is what I did. I used the script described in this article to refresh my PC and picked up recent updates for SharePoint Online and Teams along with the SDK.

Azure AD PowerShell Finally Going Away
Microsoft recently set the final (no, it won’t be shifted again) retirement date for the Azure AD and Azure AD Preview modules. The underlying infrastructure powering these modules will be turned off in mid-October 2025. It’s not like the slow withdrawal of the MSOL module where some cmdlets (license management) stopped working and others limped on until the module’s retirement in March 2025. Once the shutters come down in mid-October, the Azure AD cmdlets stop working and scripts fail. It’s time to migrate code to use the Microsoft Graph PowerShell SDK, or if you insist, the Entra module (which is based on the SDK).
Testing Microsoft Graph PowerShell SDK V2.29
Migrating to an unstable platform is a bad idea, and the sad fact about the Microsoft Graph PowerShell SDK is that some recent versions have been unmitigated disasters. Released in May, V2.28 of the SDK fixed many problems. The good news is that the suite of commands that I use to test new SDK versions uncovered no problems in dealing with users, groups, sites, mailboxes, and other objects. The new version seems to be as stable as V2.28.
Given the size of the SDK and the number of cmdlets (44,555 spread across the V1.0 and beta modules according to the Get-Command cmdlet), there’s no way that the tests I do will reveal every potential problem in an SDK release. All I can say is that the code in the scripts that I use for testing work without a problem. You can download many of the scripts that I test with from the Office 365 for IT Pros GitHub repository.
Before committing to upgrading a production environment to V2.29, I suggest that you update a couple of workstations and test scripts there. If everything checks out, you can then proceed with a tenant-wide rollout.
Azure Automation Blues
When Microsoft released V2.28 of the SDK, they acknowledged a problem with PowerShell V7.2/V7.1 runtime support in Azure Automation. In a nutshell, it all comes down to the version of .NET supported by the SDK. Microsoft said that the problem would be resolved when Azure Automation supported the V7.4 PowerShell runtime. At the time, support was supposed to appear around June 15. That date was missed and when I checked today, only Azure Automation runbooks configured for the V5.1 runtime worked. V7.1 and V7.2 runbooks barf with an “Invalid JWT access token” error caused because the Connect-MgGraph cmdlet cannot run to authenticate the session.
Until you hear differently, stay with PowerShell V5.1 for your Azure Automation runbooks. Microsoft will eventually get all of the pieces that it owns and maintains into alignment. It’s just sad when obvious gaps appear between important Microsoft 365 automation components.
Still Positive
Despite the recent issues with the Microsoft Graph PowerShell SDK, I’m still very positive about the SDK. Sure, there’s a learning curve to master when coming from more traditional modules like Azure AD. Yes, the issues are maddening and Microsoft’s seeming inability to drive quality in an essential component is infuriating. But despite all that, the SDK allows you to get behind the scenes of Microsoft 365 in a PowerShell-friendly manner, and that’s what really counts.
Need some assistance to write and manage PowerShell scripts for Microsoft 365? Get a copy of the Automating Microsoft 365 with PowerShell eBook, available standalone or as part of the Office 365 for IT Pros eBook bundle.
MATLAB /Simulink Fundamental question
Hey guys – just wondering, what is the best way to model a given system ? I understand matlab code may look messy and hard to follow, especially for a big model but my gut feeling is that it would run faster than a simulink equivalent (I’ve tested this with a dummy model).
What do you guys think ? Is there a particular set of factors that are key in making a decision as to whether a system should be modelled in matlab or simulink ? Any thoughts appreciated !
Many thanks
BHey guys – just wondering, what is the best way to model a given system ? I understand matlab code may look messy and hard to follow, especially for a big model but my gut feeling is that it would run faster than a simulink equivalent (I’ve tested this with a dummy model).
What do you guys think ? Is there a particular set of factors that are key in making a decision as to whether a system should be modelled in matlab or simulink ? Any thoughts appreciated !
Many thanks
B Hey guys – just wondering, what is the best way to model a given system ? I understand matlab code may look messy and hard to follow, especially for a big model but my gut feeling is that it would run faster than a simulink equivalent (I’ve tested this with a dummy model).
What do you guys think ? Is there a particular set of factors that are key in making a decision as to whether a system should be modelled in matlab or simulink ? Any thoughts appreciated !
Many thanks
B simulink matlab modelling MATLAB Answers — New Questions
Wonky solutions for mixed parabolic-hyperbolic PDEs
I’m solving the equations:
I’m using the finite volume method with a constant spacing on dh, so it seems to be a simple solution. The boundary conditions are functions of nu, and I compute the boundary terms by using a simple polynomial. I conpute the density which is 1/nu, but I get funky boundary values that I don’ understand. can anyone explain what is wrong?I’m solving the equations:
I’m using the finite volume method with a constant spacing on dh, so it seems to be a simple solution. The boundary conditions are functions of nu, and I compute the boundary terms by using a simple polynomial. I conpute the density which is 1/nu, but I get funky boundary values that I don’ understand. can anyone explain what is wrong? I’m solving the equations:
I’m using the finite volume method with a constant spacing on dh, so it seems to be a simple solution. The boundary conditions are functions of nu, and I compute the boundary terms by using a simple polynomial. I conpute the density which is 1/nu, but I get funky boundary values that I don’ understand. can anyone explain what is wrong? ode15, pde MATLAB Answers — New Questions
Easier Configuration Promised for the Microsoft Authenticator App
Authenticator Embraces a New Method for Account Backup and Restore
My article about adding QR codes to the Microsoft Authenticator app for Entra ID guest accounts is one of the more popular on the Office365itpros.com site. Given the increasing use of multifactor authentication to protect Microsoft 365 accounts and the need for stronger authentication methods to replace insecure SMS-based challenges, it’s unsurprising that the Authenticator app is a popular choice. The app is easy to use and it’s a strong authentication method, so many boxes are ticked.
Where the Authenticator app falls down is when a user gets a new phone, either by choice or through necessity. The gloss of buying a brand-new iPhone is diminished by the pain of reconfiguring the authenticator app to regain access to accounts. Microsoft wants to remove that pain with a “more seamless and secure backup and restore experience using iCloud and iCloud Keychain.”
The change is reported in message center notification MC1111780 (8 July 2025) and will be delivered in an app update that’s expected to roll out in September 2025 with full worldwide deployment scheduled to complete in October 2025. Tenant administrators cannot affect the progress of the roll out, and the change is effective after the installation of the updated app on an iOS device (the Authenticator app also supports iPad devices).
Eliminating the Need for a Microsoft Personal Account
Today, the Authenticator app needs a Microsoft personal account (Figure 1) to backup account names and third-party time-based one-time password (TOTP) credentials used by sites like GitHub and Twitter (the site issues a challenge that is satisfied by a six-digit number generated by the Authenticator app).

Instead of using a Microsoft account for backup and recovery, Authenticator will use the iCloud keychain. Setup of new devices is therefore performed completely within the iOS ecosystem, so it’s smoother and less prone to error. Users don’t have to do anything to benefit from the update. It is enabled automatically if the device runs iOS 16.0 or later and the user’s iOS account enables iCloud and iCloud keychain. It’s likely that relatively few iOS users don’t have these components enabled. Apple is very successful at convincing iOS users to move to new versions of the operating system, so the iOS 16.0 requirement is unlikely to be an issue either, especially in corporate environments.
After the update, Authenticator backs up all account names and third-party TOTP credentials using the iCloud keychain. Nothing else is backed up, specifically Entra ID credentials are not stored, so after moving to a new iOS device, users must sign into their accounts to complete setup.
A Need for User Communication
During the period between now and September 2025, Microsoft will flag the upcoming change with messages in the Authenticator app to inform users about a “new way to backup your account” on its main screen. The settings screen will have a message about replacing the existing iCloud backup mechanism with an enhanced version. It’s possible that users will generate some help desk calls when they read these messages, so organizations should consider some proactive communications to explain what’s happening in non-technical, practical terms.
Finding iOS Devices That Might be Affected
With an eye on communications, the need exists to identify the users of iOS devices that might use the Authenticator app. One of the advantages of having a large repository of PowerShell scripts is the availability of code that can be repurposed. The trick is to figure out what bits to use.
After thinking about it, I decided to reuse some code to report user-preferred authentication methods to find users who’ve opted to use push-based methods. The devices in use can be Android or iOS, so it’s necessary to refine the set to select those who use iOS. The Get-MobileDevice and Get-MobileDevice Statistics cmdlets reveal the operating system used by devices that synchronize with Exchange Online with apps like Outlook for iOS. By checking the devices used by the folks who’ve signed up for push-based methods, we can find and report the people who are actively using iOS. You can download the script from the Office 365 for IT Pros repository. Some sample output is shown below.
Users of iOS devices that are actively in use --------------------------------------------- User UPN DeviceOS ---- --- -------- Jeff Guillet Jeff.Guillet@office365itpros.com iOS 18.5 22F76 John James John.James@office365itpros.com iOS 18.5 22F76 Tony Redmond Tony.Redmond@office365itpros.com iOS 18.5 22F76
This is a good example of using different sources of Microsoft 365 data to answer a question. Of course, you must know about the sources available to you, but that comes with experience.
Looking Forward to the Upgraded Authenticator App
I’m looking forward to the upgraded Authenticator app. My iPhone 14 is showing signs of age and it’s time to consider moving to a new iOS device (I’ve never used Android). If Microsoft’s promise is correct, the transition should be easier than ever before, and that’s a worthwhile change.
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!
”Simulink Linearization Issue”
"MATLAB 2025a features a more professional user interface and improved computational speed, but it also introduces new error messages. I encountered a linearization failure error in Simulink while working with a jet engine model composed of T-MATS (a NASA-developed turbofan engine modeling toolbox) components. The current error message is as follows: ‘Error: STD exception ‘class std::bad_function_call’: ‘bad function call’ caught.’ It appears to be an issue with the underlying MEX function. How can I resolve this?""MATLAB 2025a features a more professional user interface and improved computational speed, but it also introduces new error messages. I encountered a linearization failure error in Simulink while working with a jet engine model composed of T-MATS (a NASA-developed turbofan engine modeling toolbox) components. The current error message is as follows: ‘Error: STD exception ‘class std::bad_function_call’: ‘bad function call’ caught.’ It appears to be an issue with the underlying MEX function. How can I resolve this?" "MATLAB 2025a features a more professional user interface and improved computational speed, but it also introduces new error messages. I encountered a linearization failure error in Simulink while working with a jet engine model composed of T-MATS (a NASA-developed turbofan engine modeling toolbox) components. The current error message is as follows: ‘Error: STD exception ‘class std::bad_function_call’: ‘bad function call’ caught.’ It appears to be an issue with the underlying MEX function. How can I resolve this?" simulink, mex MATLAB Answers — New Questions
Transforming graphs horizontally and vertically to properly compare
I have several files of data which, when plotted, look like the image presented. My problem is that i need them all to be laid on top of each other, with the beginning of the rise of the first sinusoidal wave matched up in the x and y. This is so that I can create an average waveform to reduce noise in the readings. Currently, my code impoorts all my text files, 30 of them, into an array and plots them using the following loop
for K = 1 : 30 %open and read the text files
S{K} = readtable(files(K));
Sr{K} = rmmissing(S{K}); %remove NaN values from the text files
end
for K = 1 : 30 %plot each indivdual graph for comparisons
plot(Sr{K}.(1), Sr{K}.(2), ‘displayname’, files(K));
hold on
end
I know how to transform them all individually, but cannot figure out how to make it all happen at once. I attempted to use a matchFeatures command, but could not figure out precisely how to do what I wished.
The goal is for the first graph to look similar to the second, where the initial rise is matched, allowing the peaks to be easily compared.
Any help would be appreciated, thank you!I have several files of data which, when plotted, look like the image presented. My problem is that i need them all to be laid on top of each other, with the beginning of the rise of the first sinusoidal wave matched up in the x and y. This is so that I can create an average waveform to reduce noise in the readings. Currently, my code impoorts all my text files, 30 of them, into an array and plots them using the following loop
for K = 1 : 30 %open and read the text files
S{K} = readtable(files(K));
Sr{K} = rmmissing(S{K}); %remove NaN values from the text files
end
for K = 1 : 30 %plot each indivdual graph for comparisons
plot(Sr{K}.(1), Sr{K}.(2), ‘displayname’, files(K));
hold on
end
I know how to transform them all individually, but cannot figure out how to make it all happen at once. I attempted to use a matchFeatures command, but could not figure out precisely how to do what I wished.
The goal is for the first graph to look similar to the second, where the initial rise is matched, allowing the peaks to be easily compared.
Any help would be appreciated, thank you! I have several files of data which, when plotted, look like the image presented. My problem is that i need them all to be laid on top of each other, with the beginning of the rise of the first sinusoidal wave matched up in the x and y. This is so that I can create an average waveform to reduce noise in the readings. Currently, my code impoorts all my text files, 30 of them, into an array and plots them using the following loop
for K = 1 : 30 %open and read the text files
S{K} = readtable(files(K));
Sr{K} = rmmissing(S{K}); %remove NaN values from the text files
end
for K = 1 : 30 %plot each indivdual graph for comparisons
plot(Sr{K}.(1), Sr{K}.(2), ‘displayname’, files(K));
hold on
end
I know how to transform them all individually, but cannot figure out how to make it all happen at once. I attempted to use a matchFeatures command, but could not figure out precisely how to do what I wished.
The goal is for the first graph to look similar to the second, where the initial rise is matched, allowing the peaks to be easily compared.
Any help would be appreciated, thank you! graph, transformation MATLAB Answers — New Questions
After exiting MATLAB, it doesn’t truly terminate in the Task Manager.
After exiting MATLAB, it doesn’t truly terminate in the Task Manager.
Even after closing the MATLAB software (including using the exit command), the memory usage remains the same as when MATLAB was running, and the related processes don’t exit.
When MATLAB is reopened, new related tasks are created.
Consequently, after repeatedly opening and closing the software several times, the memory becomes completely full, causing the computer to malfunction.After exiting MATLAB, it doesn’t truly terminate in the Task Manager.
Even after closing the MATLAB software (including using the exit command), the memory usage remains the same as when MATLAB was running, and the related processes don’t exit.
When MATLAB is reopened, new related tasks are created.
Consequently, after repeatedly opening and closing the software several times, the memory becomes completely full, causing the computer to malfunction. After exiting MATLAB, it doesn’t truly terminate in the Task Manager.
Even after closing the MATLAB software (including using the exit command), the memory usage remains the same as when MATLAB was running, and the related processes don’t exit.
When MATLAB is reopened, new related tasks are created.
Consequently, after repeatedly opening and closing the software several times, the memory becomes completely full, causing the computer to malfunction. matlab memory leak, matlab process remaining MATLAB Answers — New Questions
Find the centers of multiple polygons
I have an nx3 matrix that holds the locations for the vertices of a chain of hexagonal shapes (images 1, 2).
Side-note: The coordinates for the vertices of these hexagons are not in any logical order within the matrix. The coordinates were retrieved from an STL file which may be the reason why.
<</matlabcentral/answers/uploaded_files/14983/1.png>>
<</matlabcentral/answers/uploaded_files/14984/2.png>>
I’m trying to find the centroid of each of these hexagons and index those six points to its respective centroid. Once I’ve indexed these, I plan on writing some more code to manipulate the six points farther away from their respective centroids – making the hexagons larger and making my structure thicker [ _they are currently too thin_ ] (image 3).
<</matlabcentral/answers/uploaded_files/14985/3.png>>
My problem is the centroid and indexing part. I’ve tried clustering the hexagons into n/6 clusters using the k-means and subclust functions, but there’re always points that do not fall in the center of a hexagon (image 4).
<</matlabcentral/answers/uploaded_files/14986/4.png>>
Would anyone know what I should try?
[I’ve also attached the matrix, in case you would like to play around with the data as well.]I have an nx3 matrix that holds the locations for the vertices of a chain of hexagonal shapes (images 1, 2).
Side-note: The coordinates for the vertices of these hexagons are not in any logical order within the matrix. The coordinates were retrieved from an STL file which may be the reason why.
<</matlabcentral/answers/uploaded_files/14983/1.png>>
<</matlabcentral/answers/uploaded_files/14984/2.png>>
I’m trying to find the centroid of each of these hexagons and index those six points to its respective centroid. Once I’ve indexed these, I plan on writing some more code to manipulate the six points farther away from their respective centroids – making the hexagons larger and making my structure thicker [ _they are currently too thin_ ] (image 3).
<</matlabcentral/answers/uploaded_files/14985/3.png>>
My problem is the centroid and indexing part. I’ve tried clustering the hexagons into n/6 clusters using the k-means and subclust functions, but there’re always points that do not fall in the center of a hexagon (image 4).
<</matlabcentral/answers/uploaded_files/14986/4.png>>
Would anyone know what I should try?
[I’ve also attached the matrix, in case you would like to play around with the data as well.] I have an nx3 matrix that holds the locations for the vertices of a chain of hexagonal shapes (images 1, 2).
Side-note: The coordinates for the vertices of these hexagons are not in any logical order within the matrix. The coordinates were retrieved from an STL file which may be the reason why.
<</matlabcentral/answers/uploaded_files/14983/1.png>>
<</matlabcentral/answers/uploaded_files/14984/2.png>>
I’m trying to find the centroid of each of these hexagons and index those six points to its respective centroid. Once I’ve indexed these, I plan on writing some more code to manipulate the six points farther away from their respective centroids – making the hexagons larger and making my structure thicker [ _they are currently too thin_ ] (image 3).
<</matlabcentral/answers/uploaded_files/14985/3.png>>
My problem is the centroid and indexing part. I’ve tried clustering the hexagons into n/6 clusters using the k-means and subclust functions, but there’re always points that do not fall in the center of a hexagon (image 4).
<</matlabcentral/answers/uploaded_files/14986/4.png>>
Would anyone know what I should try?
[I’ve also attached the matrix, in case you would like to play around with the data as well.] kmeans, centroids, indexing MATLAB Answers — New Questions
Why will MATLAB not start up properly on my Windows based system?
MATLAB will not start up on my Windows system, and I am not receiving license manager errors.MATLAB will not start up on my Windows system, and I am not receiving license manager errors. MATLAB will not start up on my Windows system, and I am not receiving license manager errors. MATLAB Answers — New Questions