Month: April 2026
How do I access my Online Training Suite?
How do I access my Online Training Suite?How do I access my Online Training Suite? How do I access my Online Training Suite? MATLAB Answers — New Questions
Separate tools setting callbacks for one event
Consider two tools that add annotations to a plot. Both toolA and toolB add annotations that are sensitive to the current YLim of the axis. toolA and toolB are completely independent. Either one or both may be used on any given plot.
Both tools add annotations that must be placed relative to one another within their set. For example, a series of labels that "stair step" down as the x-axis increases. So the position of any individual label has some dependence on the "previous" label (text object).
I have found that just adding a listener on YLim PostSet is insufficient, as the "Restore View" for zoom does not stimulate that callback. I have found I also need the same callback(s) invoked if the figure size is changed. I am aware of the LimitsChanged callback for axis objects and the SizeChanged callback for the figure objects, but as far as I can tell they can only point to a single callback function, not a list of functions.
I have figured out some rather hacky ways to handle this use case, but I’m wondering if there is a preferred method for doing something like this. It seems that addlistener would be the preferred way as that doesn’t overwrite a property, but I’ve been unable to find a way to get that to reliably work for all use cases (like zooming and figure resizing).
[Note that I am currently using R2022b, but there are others in our group that currently need to use MATLAB as old as R2018b. We have a number of mission-critical tools that need to be recertified if the version of MATLAB changes, so there can be lags adopting the lastest version of MATLAB.]Consider two tools that add annotations to a plot. Both toolA and toolB add annotations that are sensitive to the current YLim of the axis. toolA and toolB are completely independent. Either one or both may be used on any given plot.
Both tools add annotations that must be placed relative to one another within their set. For example, a series of labels that "stair step" down as the x-axis increases. So the position of any individual label has some dependence on the "previous" label (text object).
I have found that just adding a listener on YLim PostSet is insufficient, as the "Restore View" for zoom does not stimulate that callback. I have found I also need the same callback(s) invoked if the figure size is changed. I am aware of the LimitsChanged callback for axis objects and the SizeChanged callback for the figure objects, but as far as I can tell they can only point to a single callback function, not a list of functions.
I have figured out some rather hacky ways to handle this use case, but I’m wondering if there is a preferred method for doing something like this. It seems that addlistener would be the preferred way as that doesn’t overwrite a property, but I’ve been unable to find a way to get that to reliably work for all use cases (like zooming and figure resizing).
[Note that I am currently using R2022b, but there are others in our group that currently need to use MATLAB as old as R2018b. We have a number of mission-critical tools that need to be recertified if the version of MATLAB changes, so there can be lags adopting the lastest version of MATLAB.] Consider two tools that add annotations to a plot. Both toolA and toolB add annotations that are sensitive to the current YLim of the axis. toolA and toolB are completely independent. Either one or both may be used on any given plot.
Both tools add annotations that must be placed relative to one another within their set. For example, a series of labels that "stair step" down as the x-axis increases. So the position of any individual label has some dependence on the "previous" label (text object).
I have found that just adding a listener on YLim PostSet is insufficient, as the "Restore View" for zoom does not stimulate that callback. I have found I also need the same callback(s) invoked if the figure size is changed. I am aware of the LimitsChanged callback for axis objects and the SizeChanged callback for the figure objects, but as far as I can tell they can only point to a single callback function, not a list of functions.
I have figured out some rather hacky ways to handle this use case, but I’m wondering if there is a preferred method for doing something like this. It seems that addlistener would be the preferred way as that doesn’t overwrite a property, but I’ve been unable to find a way to get that to reliably work for all use cases (like zooming and figure resizing).
[Note that I am currently using R2022b, but there are others in our group that currently need to use MATLAB as old as R2018b. We have a number of mission-critical tools that need to be recertified if the version of MATLAB changes, so there can be lags adopting the lastest version of MATLAB.] callback, figure MATLAB Answers — New Questions
Looking for addon name
I found a simulink model that contains a missing block from standard library. I have search it on google, but nothing was found. Does anyone know addon/library name/link for this block? Thank you.I found a simulink model that contains a missing block from standard library. I have search it on google, but nothing was found. Does anyone know addon/library name/link for this block? Thank you. I found a simulink model that contains a missing block from standard library. I have search it on google, but nothing was found. Does anyone know addon/library name/link for this block? Thank you. simulink MATLAB Answers — New Questions
raspberry pi connect in HW resource mgr – sudo user privilege test status not enabled
How to get the privilege test status indicatoe to green so that the next provedure ocuresHow to get the privilege test status indicatoe to green so that the next provedure ocures How to get the privilege test status indicatoe to green so that the next provedure ocures pi sudo MATLAB Answers — New Questions
How to Track Changes in Microsoft 365 Groups
Upgrading the Microsoft 365 Groups Change Report Script
Don’t you just love it when people complain when a PowerShell script written ten years ago to accompany a blog post doesn’t work? This happened the other day for a Practical365.com article about a script to report information about new, changed, and deleted Office 365 Groups (now Microsoft 365 Groups). Apparently, the script didn’t complete and the expected email containing the information was never sent.
2016 is eons ago in Microsoft 365 time. So much has changed since, and it’s utterly unsurprising that code written then doesn’t work as well as it once did or fails altogether. My Teams and Groups Activity Report script dates from approximately the same time, and I know how many changes have been necessary to keep the code updated since.
Old Code Might Not Work Today
A quick glance at the code in the Microsoft 365 Groups Change Report script revealed some obvious issues, like the use of the Credential parameter when connecting to Exchange Online. Microsoft has deprecated the Credential parameter and will remove it in July 2026. Settings for the script are in an XML file on a local drive whereas today you might store the file in a SharePoint Online document library, and the email is sent using the old Send-MailMessage cmdlet using basic authentication with SMTP AUTH. All in all, the code is of its time and is a good example of why PowerShell scripts should be reviewed periodically.
In any case, it seems like the major functionality delivered by the script is to highlight the additions, removals, and updates of Microsoft 365 groups and the code accomplishes the goal by checking properties stored in a list (the XML file). If a group isn’t in the list, it’s a newly added group, and if a group is in the list and no longer available, it’s a deleted group.
The reason why this kind of mechanism is used is probably because the unified audit log didn’t exist when the script was written. Additions, deletions, and updates for Entra ID groups are captured in audit events and this removes the need to maintain a separate file to track group changes. Although the audit events include changes for security and mail-enabled security groups too, it’s easy to filter events relating to Microsoft 365 Groups from the full set.
Defining Steps for a Microsoft 365 Groups Change Report Script
A modern version of the Microsoft 365 Groups Change report script might include these steps:
- Connect to Exchange Online.
- Connect to Microsoft Graph.
- Find the set of Microsoft 365 Groups (using the Graph Get-MgGroup cmdlet is faster than the Exchange Get-UnifiedGroup cmdlet).
- Create a hash table containing group details to filter against when checking audit records.
- Search the audit log for group addition, deletion, and update events for the last 30 days.
- Populate a PowerShell list of events for Microsoft 365 Groups.
- Populate a PowerShell list of the Groups, including membership and ownership.
- Generate a HTML report file and either a CSV or XLSX file containing the group list, depending on the availability of the ImportExcel module.
- Send a mail message to a predetermined address (which could be a distribution list) with the HTML report as the message body (Figure 1) and the CSV or XLSX file as an attachment. The mailbox of the signed-in account is used to send the message.

One of the interesting things I found from the data reported by the script is that most of the updates for Microsoft 365 Groups came from system processes that use the Office 365 Exchange Online app or other background apps like the Group Configuration Processor or Microsoft Approval Management. The function of these apps is to make sure that the settings and membership of Microsoft 365 groups are accurate.
Download the Script
You can download my version of the Microsoft 365 Changes Report script from the Office 365 for IT Pros GitHub repository. Assuming that you can sign into a Microsoft Graph PowerShell SDK session with the right permissions, the code should run on any tenant, but you’ll have to update the code to change the recipient of the message.
This is a good example of a script that is well suited for Azure Automation. It would be easy to change the code to sign in with managed identities and have the script executed as a scheduled runbook every week, month, or whatever interval makes sense. Happy scripting!
Adding variables to a plugin interface
Hello,
I’m working on a BiQuad plugin in Matlab. In the code, I generate the coeffients and use these to build the filter. I’m trying to figure out how to display the coefficent variables in the plugin interface window. Would anyone know how to do that and add it to the grid layout? Thank you.Hello,
I’m working on a BiQuad plugin in Matlab. In the code, I generate the coeffients and use these to build the filter. I’m trying to figure out how to display the coefficent variables in the plugin interface window. Would anyone know how to do that and add it to the grid layout? Thank you. Hello,
I’m working on a BiQuad plugin in Matlab. In the code, I generate the coeffients and use these to build the filter. I’m trying to figure out how to display the coefficent variables in the plugin interface window. Would anyone know how to do that and add it to the grid layout? Thank you. plugin, variables MATLAB Answers — New Questions
Kundur Two-Area System Simulink Model (.slx) for MATLAB R2025b and Adding Distributed Generators
I am looking for a Simulink (.slx) file of the Kundur two-area power system model that is compatible with MATLAB/Simulink R2025b.
Specifically, I would like to know:
Where can I find or download a reliable Simulink implementation of Kundur’s two-area system (preferably already validated)?
If an existing model is from an older MATLAB version, what steps are required to make it compatible with R2025b?
Additionally, I want to extend the model by integrating distributed generators (DGs) into the system.
What is the recommended approach to add distributed generation units (e.g., inverter-based DGs or small synchronous generators) into the Kundur two-area system in Simulink?
Which Simulink/Simscape Electrical blocks should be used for modeling DGs?
Are there best practices for:
Connecting DGs to existing buses
Control strategies (e.g., PQ control, droop control)
Maintaining system stability after integration
Any references, example models, or guidance would be greatly appreciated.I am looking for a Simulink (.slx) file of the Kundur two-area power system model that is compatible with MATLAB/Simulink R2025b.
Specifically, I would like to know:
Where can I find or download a reliable Simulink implementation of Kundur’s two-area system (preferably already validated)?
If an existing model is from an older MATLAB version, what steps are required to make it compatible with R2025b?
Additionally, I want to extend the model by integrating distributed generators (DGs) into the system.
What is the recommended approach to add distributed generation units (e.g., inverter-based DGs or small synchronous generators) into the Kundur two-area system in Simulink?
Which Simulink/Simscape Electrical blocks should be used for modeling DGs?
Are there best practices for:
Connecting DGs to existing buses
Control strategies (e.g., PQ control, droop control)
Maintaining system stability after integration
Any references, example models, or guidance would be greatly appreciated. I am looking for a Simulink (.slx) file of the Kundur two-area power system model that is compatible with MATLAB/Simulink R2025b.
Specifically, I would like to know:
Where can I find or download a reliable Simulink implementation of Kundur’s two-area system (preferably already validated)?
If an existing model is from an older MATLAB version, what steps are required to make it compatible with R2025b?
Additionally, I want to extend the model by integrating distributed generators (DGs) into the system.
What is the recommended approach to add distributed generation units (e.g., inverter-based DGs or small synchronous generators) into the Kundur two-area system in Simulink?
Which Simulink/Simscape Electrical blocks should be used for modeling DGs?
Are there best practices for:
Connecting DGs to existing buses
Control strategies (e.g., PQ control, droop control)
Maintaining system stability after integration
Any references, example models, or guidance would be greatly appreciated. kundur’s two area bus system, transient stability MATLAB Answers — New Questions
chebyshev II BPF magnitude response is not equal to 1 in the passband – incorrect magnitude response when using freqz(b,a)
I need to exctract frequency bands of eeg signal using iir filterbanks , i got the optimum order of chebyshev type II BPF , I designed the filter but I get magntitude response not equal to 1 in the passbands , also I get incorrect magntuide response when using freqz(b,a) , code given below and magnitude response figure when using freqz(sos,[],Fs)and freqz(b,a) , kindly check .
clear
close all
clc
% Delta (0.5 – 4) Hz
% theta (4 – 7.9) Hz
% Lower Alpha (7.9 – 10) Hz
% Upper Alpha (10.1 – 12.9) Hz
% LOW BETA (12-15) Hz
% MID BETA (15-18) Hz
Fs=173.61;% Sampling Frequency
Fn=Fs/2; % Nyquist Frequency
Wpm=[0.5 4;4 7.9;7.9 10;10.1 12.9;12 15;15 18];% Passbands
Rp=3;% Passband Ripple
Rs=40;% Stopband Ripple
for m=1:size(Wpm,1)
Wp=Wpm(m,:)/Fn;
Ws=Wp.*[0.9 1.05];
%% Design a bandpass filters
[n(m,:),Ws]=cheb2ord(Wp,Ws,Rp,Rs); % Determine filter Order
[b{m},a{m}]=cheby2(ceil(n(m,:)/2),Rs,Ws,"bandpass");
[z,p,k]=cheby2(ceil(n(m,:)/2),Rs,Ws,"bandpass"); % Transfer Function Coefficients
[sos{m},g{m}]=zp2sos(z,p,k);
[H{m},f]=freqz(sos{m},[],Fs);
[H1{m},f]=freqz(b{m},a{m},[],Fs);
subplot(size(Wpm,1),2,2*m-1)
plot(f,abs(H{m}),"LineWidth",1.5)
title(sprintf(‘Frequency Response of digital Chebyshev II order n = %d’,n(m,:)))
ylim([0 1.2*max(abs(H{m}))]),xlabel(‘Hz’) , ylabel(‘Magnitude’)
grid on , xticks([Wp*Fn Fn])
subplot(size(Wpm,1),2,2*m)
plot(f,abs(H1{m}),"LineWidth",1.5)
title(sprintf(‘Frequency Response of digital Chebyshev II order n = %d’,n(m,:)))
ylim([0 1.2*max(abs(H1{m}))]),xlabel(‘Hz’), ylabel(‘Magnitude’),
grid on , xticks([Wp*Fn Fn])
grid on , xticks([Wp*Fn Fn])
endI need to exctract frequency bands of eeg signal using iir filterbanks , i got the optimum order of chebyshev type II BPF , I designed the filter but I get magntitude response not equal to 1 in the passbands , also I get incorrect magntuide response when using freqz(b,a) , code given below and magnitude response figure when using freqz(sos,[],Fs)and freqz(b,a) , kindly check .
clear
close all
clc
% Delta (0.5 – 4) Hz
% theta (4 – 7.9) Hz
% Lower Alpha (7.9 – 10) Hz
% Upper Alpha (10.1 – 12.9) Hz
% LOW BETA (12-15) Hz
% MID BETA (15-18) Hz
Fs=173.61;% Sampling Frequency
Fn=Fs/2; % Nyquist Frequency
Wpm=[0.5 4;4 7.9;7.9 10;10.1 12.9;12 15;15 18];% Passbands
Rp=3;% Passband Ripple
Rs=40;% Stopband Ripple
for m=1:size(Wpm,1)
Wp=Wpm(m,:)/Fn;
Ws=Wp.*[0.9 1.05];
%% Design a bandpass filters
[n(m,:),Ws]=cheb2ord(Wp,Ws,Rp,Rs); % Determine filter Order
[b{m},a{m}]=cheby2(ceil(n(m,:)/2),Rs,Ws,"bandpass");
[z,p,k]=cheby2(ceil(n(m,:)/2),Rs,Ws,"bandpass"); % Transfer Function Coefficients
[sos{m},g{m}]=zp2sos(z,p,k);
[H{m},f]=freqz(sos{m},[],Fs);
[H1{m},f]=freqz(b{m},a{m},[],Fs);
subplot(size(Wpm,1),2,2*m-1)
plot(f,abs(H{m}),"LineWidth",1.5)
title(sprintf(‘Frequency Response of digital Chebyshev II order n = %d’,n(m,:)))
ylim([0 1.2*max(abs(H{m}))]),xlabel(‘Hz’) , ylabel(‘Magnitude’)
grid on , xticks([Wp*Fn Fn])
subplot(size(Wpm,1),2,2*m)
plot(f,abs(H1{m}),"LineWidth",1.5)
title(sprintf(‘Frequency Response of digital Chebyshev II order n = %d’,n(m,:)))
ylim([0 1.2*max(abs(H1{m}))]),xlabel(‘Hz’), ylabel(‘Magnitude’),
grid on , xticks([Wp*Fn Fn])
grid on , xticks([Wp*Fn Fn])
end I need to exctract frequency bands of eeg signal using iir filterbanks , i got the optimum order of chebyshev type II BPF , I designed the filter but I get magntitude response not equal to 1 in the passbands , also I get incorrect magntuide response when using freqz(b,a) , code given below and magnitude response figure when using freqz(sos,[],Fs)and freqz(b,a) , kindly check .
clear
close all
clc
% Delta (0.5 – 4) Hz
% theta (4 – 7.9) Hz
% Lower Alpha (7.9 – 10) Hz
% Upper Alpha (10.1 – 12.9) Hz
% LOW BETA (12-15) Hz
% MID BETA (15-18) Hz
Fs=173.61;% Sampling Frequency
Fn=Fs/2; % Nyquist Frequency
Wpm=[0.5 4;4 7.9;7.9 10;10.1 12.9;12 15;15 18];% Passbands
Rp=3;% Passband Ripple
Rs=40;% Stopband Ripple
for m=1:size(Wpm,1)
Wp=Wpm(m,:)/Fn;
Ws=Wp.*[0.9 1.05];
%% Design a bandpass filters
[n(m,:),Ws]=cheb2ord(Wp,Ws,Rp,Rs); % Determine filter Order
[b{m},a{m}]=cheby2(ceil(n(m,:)/2),Rs,Ws,"bandpass");
[z,p,k]=cheby2(ceil(n(m,:)/2),Rs,Ws,"bandpass"); % Transfer Function Coefficients
[sos{m},g{m}]=zp2sos(z,p,k);
[H{m},f]=freqz(sos{m},[],Fs);
[H1{m},f]=freqz(b{m},a{m},[],Fs);
subplot(size(Wpm,1),2,2*m-1)
plot(f,abs(H{m}),"LineWidth",1.5)
title(sprintf(‘Frequency Response of digital Chebyshev II order n = %d’,n(m,:)))
ylim([0 1.2*max(abs(H{m}))]),xlabel(‘Hz’) , ylabel(‘Magnitude’)
grid on , xticks([Wp*Fn Fn])
subplot(size(Wpm,1),2,2*m)
plot(f,abs(H1{m}),"LineWidth",1.5)
title(sprintf(‘Frequency Response of digital Chebyshev II order n = %d’,n(m,:)))
ylim([0 1.2*max(abs(H1{m}))]),xlabel(‘Hz’), ylabel(‘Magnitude’),
grid on , xticks([Wp*Fn Fn])
grid on , xticks([Wp*Fn Fn])
end chebyshev ii, bandpass filter, freqz, magnitude response MATLAB Answers — New Questions
Problem with design verifier options
When I have opened the Design Verifier-> Options I can’t able to access the fields of the options How to fix this?When I have opened the Design Verifier-> Options I can’t able to access the fields of the options How to fix this? When I have opened the Design Verifier-> Options I can’t able to access the fields of the options How to fix this? simulink, verifier MATLAB Answers — New Questions
How do I buy a MATLAB License on the Webstore?
What are my options for buying a MATLAB License? Can MATLAB be purchased online on the MathWorks website?What are my options for buying a MATLAB License? Can MATLAB be purchased online on the MathWorks website? What are my options for buying a MATLAB License? Can MATLAB be purchased online on the MathWorks website? MATLAB Answers — New Questions
Error in linking Claude with MATLAB using MCP server
I tried to link my claude with MATLAB using the MCP server. However there is some issue in the connection. I am receing these error messges in claude:
Could not attach to MCP server MATLAB
MCP MATLAB: Server disconnected.
Unable to connect to extension server. Please try disabling and re-enabling the extension.
I downloaded the MCP server from github and added it to the extensions in claude. I tried both – mcpb version (matlab-mcp-core-server.mcpb) and the win64 application (matlab-mcp-core-server-win64) method to try adding the extension. Still some command or settings is blocking the process.
I have also attached the screenshots of the extensions and developer tabs of claude for reference.
Is there any other setting or procedure I am missing? What might be the error here…I tried to link my claude with MATLAB using the MCP server. However there is some issue in the connection. I am receing these error messges in claude:
Could not attach to MCP server MATLAB
MCP MATLAB: Server disconnected.
Unable to connect to extension server. Please try disabling and re-enabling the extension.
I downloaded the MCP server from github and added it to the extensions in claude. I tried both – mcpb version (matlab-mcp-core-server.mcpb) and the win64 application (matlab-mcp-core-server-win64) method to try adding the extension. Still some command or settings is blocking the process.
I have also attached the screenshots of the extensions and developer tabs of claude for reference.
Is there any other setting or procedure I am missing? What might be the error here… I tried to link my claude with MATLAB using the MCP server. However there is some issue in the connection. I am receing these error messges in claude:
Could not attach to MCP server MATLAB
MCP MATLAB: Server disconnected.
Unable to connect to extension server. Please try disabling and re-enabling the extension.
I downloaded the MCP server from github and added it to the extensions in claude. I tried both – mcpb version (matlab-mcp-core-server.mcpb) and the win64 application (matlab-mcp-core-server-win64) method to try adding the extension. Still some command or settings is blocking the process.
I have also attached the screenshots of the extensions and developer tabs of claude for reference.
Is there any other setting or procedure I am missing? What might be the error here… mcp server, claude extensions MATLAB Answers — New Questions
Inconsistent pressure, enthalpy and entropy from thermodynamic properties sensor and pressure sensor compared with CoolProp
I’m looking at the reversible heat pump example found here:
https://www.mathworks.com/help/hydro/ug/ReversibleHeatPumpExample.html
I run the example as-is, and then look at results in Simscape results explorer, focusing on three values calculated within S1: pressure from the Saturation Properties Sensor and enthalpy and entropy from the Thermodynamic Properties Sensor. I then move those plots to a figure and highlight three values at a single time:
The simulink model results give P=0.845676 MPa, H=423.098kJ/kg and S=1.87762kJ/kgK
However, when I use CoolProp within matlab to calculate entropy at the pressure and enthalpy combination I get a different value than given by the saturation properties sensor:
py.CoolProp.CoolProp.PropsSI(‘S’, ‘P’, 0.845676e6, ‘H’, 423.098*1e3, ‘R410A’)/1000
ans =
1.8113
Why is CoolProp giving 1.8113kJ/kgK but the thermodynamic properties sensor is giving 1.87762kJ/kgK?I’m looking at the reversible heat pump example found here:
https://www.mathworks.com/help/hydro/ug/ReversibleHeatPumpExample.html
I run the example as-is, and then look at results in Simscape results explorer, focusing on three values calculated within S1: pressure from the Saturation Properties Sensor and enthalpy and entropy from the Thermodynamic Properties Sensor. I then move those plots to a figure and highlight three values at a single time:
The simulink model results give P=0.845676 MPa, H=423.098kJ/kg and S=1.87762kJ/kgK
However, when I use CoolProp within matlab to calculate entropy at the pressure and enthalpy combination I get a different value than given by the saturation properties sensor:
py.CoolProp.CoolProp.PropsSI(‘S’, ‘P’, 0.845676e6, ‘H’, 423.098*1e3, ‘R410A’)/1000
ans =
1.8113
Why is CoolProp giving 1.8113kJ/kgK but the thermodynamic properties sensor is giving 1.87762kJ/kgK? I’m looking at the reversible heat pump example found here:
https://www.mathworks.com/help/hydro/ug/ReversibleHeatPumpExample.html
I run the example as-is, and then look at results in Simscape results explorer, focusing on three values calculated within S1: pressure from the Saturation Properties Sensor and enthalpy and entropy from the Thermodynamic Properties Sensor. I then move those plots to a figure and highlight three values at a single time:
The simulink model results give P=0.845676 MPa, H=423.098kJ/kg and S=1.87762kJ/kgK
However, when I use CoolProp within matlab to calculate entropy at the pressure and enthalpy combination I get a different value than given by the saturation properties sensor:
py.CoolProp.CoolProp.PropsSI(‘S’, ‘P’, 0.845676e6, ‘H’, 423.098*1e3, ‘R410A’)/1000
ans =
1.8113
Why is CoolProp giving 1.8113kJ/kgK but the thermodynamic properties sensor is giving 1.87762kJ/kgK? simulink, fluid properties, saturation properties sensor, entropy MATLAB Answers — New Questions
Dependency analyzer refuses to work
I have tried to run the Dependency Analyzer from the Apps tab countless times and it has only worked once. I didn’t do anything differently from the previous and next attempt, it just randomly worked. I have tried selecting individual files and whole folders. It shows it’s analyzing each item, then throws an error and says it’s "Updating the graph" forever and all you can do is close the window.
I’ve tried reinstalling and updating Matlab, running as administrator, trying different file types, etc. all to no avail.I have tried to run the Dependency Analyzer from the Apps tab countless times and it has only worked once. I didn’t do anything differently from the previous and next attempt, it just randomly worked. I have tried selecting individual files and whole folders. It shows it’s analyzing each item, then throws an error and says it’s "Updating the graph" forever and all you can do is close the window.
I’ve tried reinstalling and updating Matlab, running as administrator, trying different file types, etc. all to no avail. I have tried to run the Dependency Analyzer from the Apps tab countless times and it has only worked once. I didn’t do anything differently from the previous and next attempt, it just randomly worked. I have tried selecting individual files and whole folders. It shows it’s analyzing each item, then throws an error and says it’s "Updating the graph" forever and all you can do is close the window.
I’ve tried reinstalling and updating Matlab, running as administrator, trying different file types, etc. all to no avail. error MATLAB Answers — New Questions
2 area bus system
I’m unable to find Kundur bus system file.I’m unable to find Kundur bus system file. I’m unable to find Kundur bus system file. kundur-two-area-bus-system MATLAB Answers — New Questions
File Exchange can’t use the publish functionality?
For the past two months at any time I haven’t been able to use FEX’s ‘publish’ feature. After clicking that button, a popup appears saying:
‘The application is currently unavailable.
We’ve been notified of the issue and are looking into it.’
Has anyone else had the same problem as me?
I’m currently in Mainland China; with or without VPN, switching regions, it always shows this error. The browser I’m using is the latest version of Microsoft Edge.”For the past two months at any time I haven’t been able to use FEX’s ‘publish’ feature. After clicking that button, a popup appears saying:
‘The application is currently unavailable.
We’ve been notified of the issue and are looking into it.’
Has anyone else had the same problem as me?
I’m currently in Mainland China; with or without VPN, switching regions, it always shows this error. The browser I’m using is the latest version of Microsoft Edge.” For the past two months at any time I haven’t been able to use FEX’s ‘publish’ feature. After clicking that button, a popup appears saying:
‘The application is currently unavailable.
We’ve been notified of the issue and are looking into it.’
Has anyone else had the same problem as me?
I’m currently in Mainland China; with or without VPN, switching regions, it always shows this error. The browser I’m using is the latest version of Microsoft Edge.” publish, fex, web MATLAB Answers — New Questions
Viva Engage Communities Gain Support for Sensitivity Labels
Viva Engage to Respect Settings in Container Management Labels
In a move that should have happened a long time ago, message center notification MC1250283 (12 March 2026) announces that Viva Engage communities will support Purview sensitivity labels. This change is not for protection (encryption). Rather, it means that Viva Engage communities will detect when the underlying Microsoft 365 groups are assigned container management sensitivity labels. If a container management sensitivity label is present for a group, Viva Engage will inherit settings from the label and apply them to the community.
The update will roll out in late March 2026 and should be available worldwide by early April 2026.
Adopting Container Management
A container is a Microsoft 365 group. Sensitivity labels are often created to apply protection to files and emails, including preventing Microsoft 365 Copilot from processing sensitive content; they can also be configured with settings to control how containers operate such as privacy, external sharing, block download, and guest access (Figure 1).

Container management sensitivity labels first became available in 2021 and are supported by Teams, Outlook group, SharePoint Online sites, Planner plans, and Loop workspaces. Viva Engage is late to the party, probably because much of the time since was occupied moving old Yammer networks to native mode. Native mode is the mechanism that allowed Viva Engage to adopt Microsoft 365 groups, including dynamic groups.
Given the increasingly close relationship between Viva Engage and Teams, the need for Viva Engage to support container management became more pressing, so here we are.
Moving to Container Management
By default, nothing happens. Existing Viva Engage communities can continue to use classification labels (Figure 2), which are simple text “stickers” to help users understand the scope of a community. When container management labels are available, the community administrator can choose to use a label rather than a classification. At that point, the community inherits the privacy setting from the label. Other label settings are inherited by the community’s SharePoint Online site.

You don’t have to wait for the update to show up in your tenant before assigning sensitivity labels to the Microsoft 365 groups used for Viva Engage communities. Labels can be assigned through the Microsoft 365 admin center, SharePoint Online admin center, or with PowerShell using the Set-UnifiedGroup or Update-MgGroup cmdlets. For example:
Set-unifiedgroup -Identity 'Microsoft 365 Questions' -SensitivityLabelId 'c29e68f9-bc4f-413b-a741-6db8e38ad1c6'
Assigning a sensitivity label to a Microsoft 365 group applies settings to the SharePoint site or Planner plan associated with the target Viva Engage communities immediately. The label assignment won’t affect Viva Engage until the change to support sensitivity labels rolls out to a tenant.
Ongoing Management of Container Management Labels
Once container management labels are in use, they’ll need some management. For example, although tenant administrators can assign container management labels to communities, they cannot prevent community owners changing the assigned labels. This is also true for SharePoint Online and Teams.
If you want to be sure that container management labels “stick,” some form of monitoring is required. One approach is to use a custom attribute for groups to track the assigned label and check the assignment periodically to make sure that the correct label is still in place. The periodic check is easily done using a scheduled Azure Automation runbook, and here’s an article describing PowerShell code to check and revert container management labels if necessary.
If all you want to do is to report Microsoft 365 groups and their assigned container management labels (including highlighting of groups without labels), you can use the PowerShell script described in this article (Figure 3).

Microsoft continues to upgrade Viva Engage to eradicate the signs of the past. Another example is in MC1251200 (13 March 2026) with the replacement of yammer.com by engage,microsoft.com as the source for system-generated communications. This change should be complete by mid-April 2026. It just takes time to update software…
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!
Data Processing in a Cell
Hello,
I have imported data into two tables T1 and T2 34243X4 and 1070X8. To Compare the two tables I have padded T2 with string ’empty’ in all columns to match rows of T1. I am comparing T2(:,2) with T1(:,1) and which ever matches I then automatically the that particular row element in 4th Col of T2 will match row element of 1st Col in T1 (This acts as Sanity Check).
All the info in both the table is in string format including numbers
when I tried to use ismember is not able to match.
Did String Compare is not working or not comaring correctly.
Please could someone guide me. I have attached my code/script and also screenshots of my data.
Thank you for your time
PN = importdata("Part Number Summary 20260220.xlsx");
opts = detectImportOptions("Sai_MFGParts_03202026_v2.xlsx", Sheet="Export Worksheet");
% Adjust options if needed, for example set data range:
opts.DataRange = "A2";
T1 = readtable("Sai_MFGParts_03202026_v2.xlsx",opts);
T2 = PN.Summary;
C = T2; % rename for clarity
headers = C(1,1:8);
data = C(2:end,1:8);
varNames = matlab.lang.makeValidName(headers);
T2 = cell2table(data, ‘VariableNames’, varNames);
Part_Number_Data_T2 = T2.PartNumber;
Product_Description_T2 = T2.ProductDescription;
Supplier_T2 = T2.Supplier;
Categoty_T2 = T2.Category;
idx = length(T1.BWC_PART);
Part_Number_Data_T2 = resize(Part_Number_Data_T2,idx); % resize to match T1(34243×4)
Product_Description_T2 = resize(Product_Description_T2,idx);
Supplier_T2 = resize(Supplier_T2,idx);
Categoty_T2 = resize(Categoty_T2,idx);
idx_2 = cellfun(‘isempty’,Part_Number_Data_T2);
idx_3 = cellfun(‘isempty’,Product_Description_T2);
idx_4 = cellfun(‘isempty’,Supplier_T2);
idx_5 = cellfun(‘isempty’,Categoty_T2);
%Replace empty entries in Product_Description_T2, Supplier_T2, and
%Categoty_T2 with string ’empty’.
Part_Number_Data_T2(idx_2) = {’empty’};
Product_Description_T2(idx_3) = {’empty’};
Supplier_T2(idx_4) = {’empty’};
Categoty_T2(idx_5) = {’empty’};
%Ensure T2 columns are column vectors
Part_Number_Data_T2 = Part_Number_Data_T2(:);
Product_Description_T2 = Product_Description_T2(:);
Supplier_T2 = Supplier_T2(:);
Categoty_T2 = Categoty_T2(:);
Ind = cell(size(T1.BWC_PART));
for k = 1:length(Ind)
Ind{k} = T1(strcmp(T1.BWC_PART,Part_Number_Data_T2{k}),:);
endHello,
I have imported data into two tables T1 and T2 34243X4 and 1070X8. To Compare the two tables I have padded T2 with string ’empty’ in all columns to match rows of T1. I am comparing T2(:,2) with T1(:,1) and which ever matches I then automatically the that particular row element in 4th Col of T2 will match row element of 1st Col in T1 (This acts as Sanity Check).
All the info in both the table is in string format including numbers
when I tried to use ismember is not able to match.
Did String Compare is not working or not comaring correctly.
Please could someone guide me. I have attached my code/script and also screenshots of my data.
Thank you for your time
PN = importdata("Part Number Summary 20260220.xlsx");
opts = detectImportOptions("Sai_MFGParts_03202026_v2.xlsx", Sheet="Export Worksheet");
% Adjust options if needed, for example set data range:
opts.DataRange = "A2";
T1 = readtable("Sai_MFGParts_03202026_v2.xlsx",opts);
T2 = PN.Summary;
C = T2; % rename for clarity
headers = C(1,1:8);
data = C(2:end,1:8);
varNames = matlab.lang.makeValidName(headers);
T2 = cell2table(data, ‘VariableNames’, varNames);
Part_Number_Data_T2 = T2.PartNumber;
Product_Description_T2 = T2.ProductDescription;
Supplier_T2 = T2.Supplier;
Categoty_T2 = T2.Category;
idx = length(T1.BWC_PART);
Part_Number_Data_T2 = resize(Part_Number_Data_T2,idx); % resize to match T1(34243×4)
Product_Description_T2 = resize(Product_Description_T2,idx);
Supplier_T2 = resize(Supplier_T2,idx);
Categoty_T2 = resize(Categoty_T2,idx);
idx_2 = cellfun(‘isempty’,Part_Number_Data_T2);
idx_3 = cellfun(‘isempty’,Product_Description_T2);
idx_4 = cellfun(‘isempty’,Supplier_T2);
idx_5 = cellfun(‘isempty’,Categoty_T2);
%Replace empty entries in Product_Description_T2, Supplier_T2, and
%Categoty_T2 with string ’empty’.
Part_Number_Data_T2(idx_2) = {’empty’};
Product_Description_T2(idx_3) = {’empty’};
Supplier_T2(idx_4) = {’empty’};
Categoty_T2(idx_5) = {’empty’};
%Ensure T2 columns are column vectors
Part_Number_Data_T2 = Part_Number_Data_T2(:);
Product_Description_T2 = Product_Description_T2(:);
Supplier_T2 = Supplier_T2(:);
Categoty_T2 = Categoty_T2(:);
Ind = cell(size(T1.BWC_PART));
for k = 1:length(Ind)
Ind{k} = T1(strcmp(T1.BWC_PART,Part_Number_Data_T2{k}),:);
end Hello,
I have imported data into two tables T1 and T2 34243X4 and 1070X8. To Compare the two tables I have padded T2 with string ’empty’ in all columns to match rows of T1. I am comparing T2(:,2) with T1(:,1) and which ever matches I then automatically the that particular row element in 4th Col of T2 will match row element of 1st Col in T1 (This acts as Sanity Check).
All the info in both the table is in string format including numbers
when I tried to use ismember is not able to match.
Did String Compare is not working or not comaring correctly.
Please could someone guide me. I have attached my code/script and also screenshots of my data.
Thank you for your time
PN = importdata("Part Number Summary 20260220.xlsx");
opts = detectImportOptions("Sai_MFGParts_03202026_v2.xlsx", Sheet="Export Worksheet");
% Adjust options if needed, for example set data range:
opts.DataRange = "A2";
T1 = readtable("Sai_MFGParts_03202026_v2.xlsx",opts);
T2 = PN.Summary;
C = T2; % rename for clarity
headers = C(1,1:8);
data = C(2:end,1:8);
varNames = matlab.lang.makeValidName(headers);
T2 = cell2table(data, ‘VariableNames’, varNames);
Part_Number_Data_T2 = T2.PartNumber;
Product_Description_T2 = T2.ProductDescription;
Supplier_T2 = T2.Supplier;
Categoty_T2 = T2.Category;
idx = length(T1.BWC_PART);
Part_Number_Data_T2 = resize(Part_Number_Data_T2,idx); % resize to match T1(34243×4)
Product_Description_T2 = resize(Product_Description_T2,idx);
Supplier_T2 = resize(Supplier_T2,idx);
Categoty_T2 = resize(Categoty_T2,idx);
idx_2 = cellfun(‘isempty’,Part_Number_Data_T2);
idx_3 = cellfun(‘isempty’,Product_Description_T2);
idx_4 = cellfun(‘isempty’,Supplier_T2);
idx_5 = cellfun(‘isempty’,Categoty_T2);
%Replace empty entries in Product_Description_T2, Supplier_T2, and
%Categoty_T2 with string ’empty’.
Part_Number_Data_T2(idx_2) = {’empty’};
Product_Description_T2(idx_3) = {’empty’};
Supplier_T2(idx_4) = {’empty’};
Categoty_T2(idx_5) = {’empty’};
%Ensure T2 columns are column vectors
Part_Number_Data_T2 = Part_Number_Data_T2(:);
Product_Description_T2 = Product_Description_T2(:);
Supplier_T2 = Supplier_T2(:);
Categoty_T2 = Categoty_T2(:);
Ind = cell(size(T1.BWC_PART));
for k = 1:length(Ind)
Ind{k} = T1(strcmp(T1.BWC_PART,Part_Number_Data_T2{k}),:);
end matlab, data processing MATLAB Answers — New Questions
LSTM network time series prediction error occurs at the initial time step
I have trained a LSTM network for time series regression. After training, I want to test its performance based on the test dataset. The testing result of one single sample (extracted from minibatch results) is shown as follows:
The prediction result has a transient response process. I think this issue is caused by the zero states (CellStates and HiddenStates) of LSTM netweok. How to resolve this zero states problem when predicting time sreries ?I have trained a LSTM network for time series regression. After training, I want to test its performance based on the test dataset. The testing result of one single sample (extracted from minibatch results) is shown as follows:
The prediction result has a transient response process. I think this issue is caused by the zero states (CellStates and HiddenStates) of LSTM netweok. How to resolve this zero states problem when predicting time sreries ? I have trained a LSTM network for time series regression. After training, I want to test its performance based on the test dataset. The testing result of one single sample (extracted from minibatch results) is shown as follows:
The prediction result has a transient response process. I think this issue is caused by the zero states (CellStates and HiddenStates) of LSTM netweok. How to resolve this zero states problem when predicting time sreries ? lstm, deep learning, time series MATLAB Answers — New Questions
How to approach iterative data reading?
I’m working with a dataset that has 3 different arrays I’m interested in plotting: time, accel, and gcamp. They are all of equal size.
I’m using the accel variable as a threshold detector, where I define an arbitrary threshold under which any data I ignore. Anything above that threshold I use the index of that data point to grab the equivalent data points from time and gcamp.
How can I store this data in one structure so that I can iterate through it and generate statistics/plots about only the thresholded data points?
Something like:
time = [rand(1, 5000)];
accel = [rand(1,5000)];
gcamp = [rand(1,5000)];
sd = std(accel);
threshold = sd;
dumb = [];
for i = 1:length(accel);
if accel(i) > threshold;
dumber = [time(i), gcamp(i)];
dumb = [dumb, dumber];
end
endI’m working with a dataset that has 3 different arrays I’m interested in plotting: time, accel, and gcamp. They are all of equal size.
I’m using the accel variable as a threshold detector, where I define an arbitrary threshold under which any data I ignore. Anything above that threshold I use the index of that data point to grab the equivalent data points from time and gcamp.
How can I store this data in one structure so that I can iterate through it and generate statistics/plots about only the thresholded data points?
Something like:
time = [rand(1, 5000)];
accel = [rand(1,5000)];
gcamp = [rand(1,5000)];
sd = std(accel);
threshold = sd;
dumb = [];
for i = 1:length(accel);
if accel(i) > threshold;
dumber = [time(i), gcamp(i)];
dumb = [dumb, dumber];
end
end I’m working with a dataset that has 3 different arrays I’m interested in plotting: time, accel, and gcamp. They are all of equal size.
I’m using the accel variable as a threshold detector, where I define an arbitrary threshold under which any data I ignore. Anything above that threshold I use the index of that data point to grab the equivalent data points from time and gcamp.
How can I store this data in one structure so that I can iterate through it and generate statistics/plots about only the thresholded data points?
Something like:
time = [rand(1, 5000)];
accel = [rand(1,5000)];
gcamp = [rand(1,5000)];
sd = std(accel);
threshold = sd;
dumb = [];
for i = 1:length(accel);
if accel(i) > threshold;
dumber = [time(i), gcamp(i)];
dumb = [dumb, dumber];
end
end for loop, storing data MATLAB Answers — New Questions
How do I integrate MATLAB and Simulink Online Courses?
I would like to integrate the self-paced courses for MATLAB and Simulink with a Learning Management System (LMS), how can I do so?I would like to integrate the self-paced courses for MATLAB and Simulink with a Learning Management System (LMS), how can I do so? I would like to integrate the self-paced courses for MATLAB and Simulink with a Learning Management System (LMS), how can I do so? MATLAB Answers — New Questions









