Month: October 2025
How do I report accessibility issues for MATLAB Grader?
How do I report accessibility issues for MATLAB Grader?How do I report accessibility issues for MATLAB Grader? How do I report accessibility issues for MATLAB Grader? accessibility, matlab_grader, grader, distance_learning, matlab grader, vpat MATLAB Answers — New Questions
how to create a volume from the revolution of a variable area trapezoid
I’m looking for the work flow of how to create a volume by revolving a variable area trapezoid around the z axis. I have a formula for the area of the trapezoid and it is a function of the radial distance from the origin. Both the height and this radial distance vary with the angle of revolution.
The figure immediately below shows the elliptical path that the rotation takes. Because the trapezoid area varies with the angle of revolution, the path traced in the x-y plane is an ellipse and not a circle. The figure below shows the path in the x-y plane:
This next figure shows the x-z plane which shows the variable-area trapezoid at phi = 0 degrees and phi = 180 degrees. The rotation occurs around the vertical axis that goes through the point "S". Notice the large reduction in area of the trapezoid.
The radial line length, p, to the ellipse edge is given by,
where is a constant value as are w and R. At = 45 degrees and R = 0.0006, w = 0.0007908.
What I am trying to do is to verify an equation that I have developed for calculating this volume. I want to make sure that my equation, in fact, produces the volume of the revolved variable-area trapezoid. The area of the trapezoid is given by
and h is given by:
where B is a constant and is a constant where p is evaluated at = 90 degrees. For the values of , w and R given above, B = 0.867.
The volume then is given by,
The next figure shows an incremental volume diagram which is then integrated as in the equation immediately above,
And so the final result should look something like the blue portion of each drawing below. How would I go about implementing this in Matlab?I’m looking for the work flow of how to create a volume by revolving a variable area trapezoid around the z axis. I have a formula for the area of the trapezoid and it is a function of the radial distance from the origin. Both the height and this radial distance vary with the angle of revolution.
The figure immediately below shows the elliptical path that the rotation takes. Because the trapezoid area varies with the angle of revolution, the path traced in the x-y plane is an ellipse and not a circle. The figure below shows the path in the x-y plane:
This next figure shows the x-z plane which shows the variable-area trapezoid at phi = 0 degrees and phi = 180 degrees. The rotation occurs around the vertical axis that goes through the point "S". Notice the large reduction in area of the trapezoid.
The radial line length, p, to the ellipse edge is given by,
where is a constant value as are w and R. At = 45 degrees and R = 0.0006, w = 0.0007908.
What I am trying to do is to verify an equation that I have developed for calculating this volume. I want to make sure that my equation, in fact, produces the volume of the revolved variable-area trapezoid. The area of the trapezoid is given by
and h is given by:
where B is a constant and is a constant where p is evaluated at = 90 degrees. For the values of , w and R given above, B = 0.867.
The volume then is given by,
The next figure shows an incremental volume diagram which is then integrated as in the equation immediately above,
And so the final result should look something like the blue portion of each drawing below. How would I go about implementing this in Matlab? I’m looking for the work flow of how to create a volume by revolving a variable area trapezoid around the z axis. I have a formula for the area of the trapezoid and it is a function of the radial distance from the origin. Both the height and this radial distance vary with the angle of revolution.
The figure immediately below shows the elliptical path that the rotation takes. Because the trapezoid area varies with the angle of revolution, the path traced in the x-y plane is an ellipse and not a circle. The figure below shows the path in the x-y plane:
This next figure shows the x-z plane which shows the variable-area trapezoid at phi = 0 degrees and phi = 180 degrees. The rotation occurs around the vertical axis that goes through the point "S". Notice the large reduction in area of the trapezoid.
The radial line length, p, to the ellipse edge is given by,
where is a constant value as are w and R. At = 45 degrees and R = 0.0006, w = 0.0007908.
What I am trying to do is to verify an equation that I have developed for calculating this volume. I want to make sure that my equation, in fact, produces the volume of the revolved variable-area trapezoid. The area of the trapezoid is given by
and h is given by:
where B is a constant and is a constant where p is evaluated at = 90 degrees. For the values of , w and R given above, B = 0.867.
The volume then is given by,
The next figure shows an incremental volume diagram which is then integrated as in the equation immediately above,
And so the final result should look something like the blue portion of each drawing below. How would I go about implementing this in Matlab? volume MATLAB Answers — New Questions
Outlook Gets AI Drafting of Meeting Agendas
Agenda Auto-Draft Available for OWA and the New Outlook
Microsoft is doing its level best to convince Microsoft 365 tenants to invest in Copilot. Given the massive capital investment in datacenters to power AI experiences, it’s unsurprising that engineering groups are busy infusing Copilot features into as many applications as possible. Features like Copilot memory add value and help dissuade tenants from investigating other options, such as the ChatGPT Connector for SharePoint Online and OneDrive for Business.
Of course, a SharePoint connector is limited when compared to the breadth of integration of Copilot across the Microsoft 365 apps. Because Copilot works well for some and not for others, work continues apace to find new ways to integrate AI in daily tasks. This brings me to message center notification MC1171854 (13 Oct 2025), which describes “Intelligent agenda suggestions for calendar events.” The feature is available now, but only to users with Microsoft 365 Copilot licenses.
Agenda Auto-Draft Uses AI to Generate Some Bullet Points
At first glance, I didn’t see much to get excited about. The description says that AI is used “to automatically generate a proposed agenda when users create or edit a calendar event, making it easier to align meeting goals, participants, and discussion topics.” I’ve never had any problems coming up with a few salient points for a draft meeting agenda, and agendas have a nasty habit of changing as soon as meetings start. However, I can see the value of being able to create some bullet points to frame an agenda.
What happens is that Microsoft has updated the calendar scheduling form to add an auto draft an agenda option to the set of prompts available when the Draft with Copilot button is used. When the auto draft option is used, Copilot uses the meeting subject to generate an agenda composed of some introductory text and some bullet points. Copilot has always been good at generating bullet points in document and message summaries!
In Figure 1, the meeting subject is Review Chapter Updates for Office 365 for IT Pros. Copilot’s suggested agenda items seem reasonable, and it looks as if Copilot discovered that Office 365 for IT Pros is an eBook from information found internally or on the web (Bing search).

If the meeting organizer doesn’t like the draft agenda, they can simply instruct Copilot to retry or adjust the text by making the agenda longer or shorter. The changes proposed in further versions are not dramatic, likely due to using the meeting subject as the core input to the AI processing.
Eventually, the suggested text is accepted or rejected. If accepted, it can be further edited before the meeting notice is sent.
Now Available Worldwide
Auto-draft of meeting agendas is now a default feature that is enabled in OWA and the new Outlook. According to Microsoft, the feature was enabled worldwide from October 9, 2025.
There’s no administrative control to enable or disable auto-draft for meeting agendas. Given the dramatic difference between the scheduling interface of Outlook classic, it’s unlikely that auto-draft of agendas will find its way into that client.
New Feature that Won’t Move the Needle
Agenda auto-draft won’t move the needle at all when the time comes for Microsoft 365 tenants to decide whether to embrace Microsoft 365 Copilot. It’s a feature that will please some people (those who scheduled meetings and discover how to use agenda auto-draft). For most, I suspect that this is one of the Copilot features that will pass them by because they never need to create an agenda. But that’s always true for new software features.
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 insights updated monthly into what happens within Microsoft 365, why it happens, and what new features and capabilities mean for your tenant.
Is Assignment from symmatrix/symfunmatrix Consistent with Assignment from sym/symfun ?
I’ve just started using symmatrix and symfunmatrix and noticed a behavior that I don’t understand and seems to be inconsistent with sym and symfun.
clear all
syms t
syms zfun(t)
zfun(t) = t;
class(zfun)
Consider four ways to assign from zfun to a new variable h
h = zfun; class(h), clear h % 1
h = zfun(t); class(h), clear h % 2
h(t) = zfun(t); class(h), clear h % 3
h(t) = zfun; class(h), clear h % 4
Cases 1-4 work as I expect, at least based on experience (not sure what the doc states)
Now try the same thing for assigning from a symfunmatrix
clear all
syms t
zfun = symfunmatrix(‘zfun(t)’,t,[3,1]);
zfun(t) = [t;t;t];
class(zfun)
h = zfun; class(h), clear h % 5
h = zfun(t); class(h), clear h % 6
h(t) = zfun(t); class(h), clear h % 7
try
h(t) = zfun; class(h), clear h % 8
catch ME
ME.message
end
I was expecting cases 5-8 be analagous with cases 1-4.
But case 7 returns a symmatrix into h, contra to a symfun as in case 3, even though the the LHS of the case 7 assignment has a functional form.
Case 8 throws an error altogether, though the caught message seems irrelevant to whatever the error actually was.
Am I missing something as to expected behavior of cases 7 and 8?
The workaround is to define h(t) before the assignment, but that seems inconsistent the symfun cases.
h = symfunmatrix(‘h(t)’,t,[3,1]);
h(t) = zfun(t); class(h)
h(t) = zfun; class(h)
FWIW, we can see the true error for case 8 by executing outside of the try/catch construct.
clear h
h(t) = zfun;I’ve just started using symmatrix and symfunmatrix and noticed a behavior that I don’t understand and seems to be inconsistent with sym and symfun.
clear all
syms t
syms zfun(t)
zfun(t) = t;
class(zfun)
Consider four ways to assign from zfun to a new variable h
h = zfun; class(h), clear h % 1
h = zfun(t); class(h), clear h % 2
h(t) = zfun(t); class(h), clear h % 3
h(t) = zfun; class(h), clear h % 4
Cases 1-4 work as I expect, at least based on experience (not sure what the doc states)
Now try the same thing for assigning from a symfunmatrix
clear all
syms t
zfun = symfunmatrix(‘zfun(t)’,t,[3,1]);
zfun(t) = [t;t;t];
class(zfun)
h = zfun; class(h), clear h % 5
h = zfun(t); class(h), clear h % 6
h(t) = zfun(t); class(h), clear h % 7
try
h(t) = zfun; class(h), clear h % 8
catch ME
ME.message
end
I was expecting cases 5-8 be analagous with cases 1-4.
But case 7 returns a symmatrix into h, contra to a symfun as in case 3, even though the the LHS of the case 7 assignment has a functional form.
Case 8 throws an error altogether, though the caught message seems irrelevant to whatever the error actually was.
Am I missing something as to expected behavior of cases 7 and 8?
The workaround is to define h(t) before the assignment, but that seems inconsistent the symfun cases.
h = symfunmatrix(‘h(t)’,t,[3,1]);
h(t) = zfun(t); class(h)
h(t) = zfun; class(h)
FWIW, we can see the true error for case 8 by executing outside of the try/catch construct.
clear h
h(t) = zfun; I’ve just started using symmatrix and symfunmatrix and noticed a behavior that I don’t understand and seems to be inconsistent with sym and symfun.
clear all
syms t
syms zfun(t)
zfun(t) = t;
class(zfun)
Consider four ways to assign from zfun to a new variable h
h = zfun; class(h), clear h % 1
h = zfun(t); class(h), clear h % 2
h(t) = zfun(t); class(h), clear h % 3
h(t) = zfun; class(h), clear h % 4
Cases 1-4 work as I expect, at least based on experience (not sure what the doc states)
Now try the same thing for assigning from a symfunmatrix
clear all
syms t
zfun = symfunmatrix(‘zfun(t)’,t,[3,1]);
zfun(t) = [t;t;t];
class(zfun)
h = zfun; class(h), clear h % 5
h = zfun(t); class(h), clear h % 6
h(t) = zfun(t); class(h), clear h % 7
try
h(t) = zfun; class(h), clear h % 8
catch ME
ME.message
end
I was expecting cases 5-8 be analagous with cases 1-4.
But case 7 returns a symmatrix into h, contra to a symfun as in case 3, even though the the LHS of the case 7 assignment has a functional form.
Case 8 throws an error altogether, though the caught message seems irrelevant to whatever the error actually was.
Am I missing something as to expected behavior of cases 7 and 8?
The workaround is to define h(t) before the assignment, but that seems inconsistent the symfun cases.
h = symfunmatrix(‘h(t)’,t,[3,1]);
h(t) = zfun(t); class(h)
h(t) = zfun; class(h)
FWIW, we can see the true error for case 8 by executing outside of the try/catch construct.
clear h
h(t) = zfun; symmmatrix, symfunmatrix, assignment MATLAB Answers — New Questions
How can I rescale a patternCustom plot?
I’m plotting multiple patternCustom plots in a tiledlayout, and would like to rescale the individual plots so that they all have the same magnitude. I’ve tried many things (I don’t remember all what I tried, it was over a month ago) and couldn’t get anything to work. The patternCustom function does not support the typical name-value pair arguments and seems really inflexible.I’m plotting multiple patternCustom plots in a tiledlayout, and would like to rescale the individual plots so that they all have the same magnitude. I’ve tried many things (I don’t remember all what I tried, it was over a month ago) and couldn’t get anything to work. The patternCustom function does not support the typical name-value pair arguments and seems really inflexible. I’m plotting multiple patternCustom plots in a tiledlayout, and would like to rescale the individual plots so that they all have the same magnitude. I’ve tried many things (I don’t remember all what I tried, it was over a month ago) and couldn’t get anything to work. The patternCustom function does not support the typical name-value pair arguments and seems really inflexible. patterncustom MATLAB Answers — New Questions
I cannot install or find Specialized Power Systems in MATLAB R2025b.
I am using MATLAB R2025b and I have already installed Simscape and Simscape Electrical.
However, I cannot find the “Specialized Power Systems” library in the Simulink Library Browser.
I also tried running commands like power_init and searching in the Add-On Explorer, but the toolbox does not appear.
How can I install or enable Specialized Power Systems in MATLAB 2025b?
Is it included in Simscape Electrical or do I need to install it separately?I am using MATLAB R2025b and I have already installed Simscape and Simscape Electrical.
However, I cannot find the “Specialized Power Systems” library in the Simulink Library Browser.
I also tried running commands like power_init and searching in the Add-On Explorer, but the toolbox does not appear.
How can I install or enable Specialized Power Systems in MATLAB 2025b?
Is it included in Simscape Electrical or do I need to install it separately? I am using MATLAB R2025b and I have already installed Simscape and Simscape Electrical.
However, I cannot find the “Specialized Power Systems” library in the Simulink Library Browser.
I also tried running commands like power_init and searching in the Add-On Explorer, but the toolbox does not appear.
How can I install or enable Specialized Power Systems in MATLAB 2025b?
Is it included in Simscape Electrical or do I need to install it separately? matlab, simscape, electrical, specialized-power-sy MATLAB Answers — New Questions
How to multiply different size arrays and multiply each element by each element?
I have an equation with 4 arrays in, all of a different size. I want every combination of the arrays possible and multiply all by all because i’m going to filter out the outputs later. It’s almost like a simplex algorithm but in one equation with the limits set by the peson inputting the data. Thanks for all your help!
Alex
Vh = ((Span * ((1 – Ct)+1)*MAC/2) * CoM)/(WingArea*WChord);
% Where, Span, Ct, MAC, and CoM are all differently sized arrays.I have an equation with 4 arrays in, all of a different size. I want every combination of the arrays possible and multiply all by all because i’m going to filter out the outputs later. It’s almost like a simplex algorithm but in one equation with the limits set by the peson inputting the data. Thanks for all your help!
Alex
Vh = ((Span * ((1 – Ct)+1)*MAC/2) * CoM)/(WingArea*WChord);
% Where, Span, Ct, MAC, and CoM are all differently sized arrays. I have an equation with 4 arrays in, all of a different size. I want every combination of the arrays possible and multiply all by all because i’m going to filter out the outputs later. It’s almost like a simplex algorithm but in one equation with the limits set by the peson inputting the data. Thanks for all your help!
Alex
Vh = ((Span * ((1 – Ct)+1)*MAC/2) * CoM)/(WingArea*WChord);
% Where, Span, Ct, MAC, and CoM are all differently sized arrays. array, matrix manipulation, equation MATLAB Answers — New Questions
[Reddit Cross Post] Reading XML data where commas are used as thousands and as separators
I need to extract the data of a lab equipment that only exports an XML file, so I’m trying to have a simple script to convert it to paired data or create a graph. The problem is: whenever the Y values go over 1000 it adds a comma separator. Using simple ‘,’ splits won’t work. What is the best approach for something like this? Why would they make it like that? …
Hopefully it is simple to adjust (already tried the equipment side approach but can’t make any modifications to the export file).
<XVALUES>6.9661,……….1.9950,1.9896,1.9845,1.9791,1.9741,1.9688,1.9632,1.9578,1.9523,1.9459,1.9376,1.9301,1.9233,1.9160,1.9086,1.9020,1.8952,1.8885,1.8820,1.8756,1.8693,1.8630,1.8569,1.8509,1.8446,1.8385,1.8327,1.8267,1.8209,1.8149</XVALUES>
<YVALUES>-10.19,…….11.17,14.56,18.45,………..,1,935.56,1,928.36,1,922.59,1,918.27,1,914.43,1,909.62,1,903.38,1,898.58,1,893.77,1,888.49,1,883.69,1,879.36,1,875.04,1,870.24,1,865.43,1,863.51,1,862.55,1,861.11,1,859.19,1,855.35,1,853.42,1,851.02,1,849.58,1,846.70,1,845.74,1,844.30,1,841.90,1,839.98,1,838.05,1,837.09,1,833.25,1,827.01,1,821.24,1,812.60,1,795.30,1,744.39,1,709.81,1,681.95,1,646.88,1,613.26,1,587.80,1,564.26,1,537.85,1,515.27,1,496.06,1,476.84,1,459.07,1,442.74,1,427.37,1,411.04,1,394.23,1,380.78,1,369.73,1,357.72,1,344.27</YVALUES>
Source: https://www.reddit.com/r/matlab/comments/1o6efqo/reading_xml_data_where_commas_are_used_as/I need to extract the data of a lab equipment that only exports an XML file, so I’m trying to have a simple script to convert it to paired data or create a graph. The problem is: whenever the Y values go over 1000 it adds a comma separator. Using simple ‘,’ splits won’t work. What is the best approach for something like this? Why would they make it like that? …
Hopefully it is simple to adjust (already tried the equipment side approach but can’t make any modifications to the export file).
<XVALUES>6.9661,……….1.9950,1.9896,1.9845,1.9791,1.9741,1.9688,1.9632,1.9578,1.9523,1.9459,1.9376,1.9301,1.9233,1.9160,1.9086,1.9020,1.8952,1.8885,1.8820,1.8756,1.8693,1.8630,1.8569,1.8509,1.8446,1.8385,1.8327,1.8267,1.8209,1.8149</XVALUES>
<YVALUES>-10.19,…….11.17,14.56,18.45,………..,1,935.56,1,928.36,1,922.59,1,918.27,1,914.43,1,909.62,1,903.38,1,898.58,1,893.77,1,888.49,1,883.69,1,879.36,1,875.04,1,870.24,1,865.43,1,863.51,1,862.55,1,861.11,1,859.19,1,855.35,1,853.42,1,851.02,1,849.58,1,846.70,1,845.74,1,844.30,1,841.90,1,839.98,1,838.05,1,837.09,1,833.25,1,827.01,1,821.24,1,812.60,1,795.30,1,744.39,1,709.81,1,681.95,1,646.88,1,613.26,1,587.80,1,564.26,1,537.85,1,515.27,1,496.06,1,476.84,1,459.07,1,442.74,1,427.37,1,411.04,1,394.23,1,380.78,1,369.73,1,357.72,1,344.27</YVALUES>
Source: https://www.reddit.com/r/matlab/comments/1o6efqo/reading_xml_data_where_commas_are_used_as/ I need to extract the data of a lab equipment that only exports an XML file, so I’m trying to have a simple script to convert it to paired data or create a graph. The problem is: whenever the Y values go over 1000 it adds a comma separator. Using simple ‘,’ splits won’t work. What is the best approach for something like this? Why would they make it like that? …
Hopefully it is simple to adjust (already tried the equipment side approach but can’t make any modifications to the export file).
<XVALUES>6.9661,……….1.9950,1.9896,1.9845,1.9791,1.9741,1.9688,1.9632,1.9578,1.9523,1.9459,1.9376,1.9301,1.9233,1.9160,1.9086,1.9020,1.8952,1.8885,1.8820,1.8756,1.8693,1.8630,1.8569,1.8509,1.8446,1.8385,1.8327,1.8267,1.8209,1.8149</XVALUES>
<YVALUES>-10.19,…….11.17,14.56,18.45,………..,1,935.56,1,928.36,1,922.59,1,918.27,1,914.43,1,909.62,1,903.38,1,898.58,1,893.77,1,888.49,1,883.69,1,879.36,1,875.04,1,870.24,1,865.43,1,863.51,1,862.55,1,861.11,1,859.19,1,855.35,1,853.42,1,851.02,1,849.58,1,846.70,1,845.74,1,844.30,1,841.90,1,839.98,1,838.05,1,837.09,1,833.25,1,827.01,1,821.24,1,812.60,1,795.30,1,744.39,1,709.81,1,681.95,1,646.88,1,613.26,1,587.80,1,564.26,1,537.85,1,515.27,1,496.06,1,476.84,1,459.07,1,442.74,1,427.37,1,411.04,1,394.23,1,380.78,1,369.73,1,357.72,1,344.27</YVALUES>
Source: https://www.reddit.com/r/matlab/comments/1o6efqo/reading_xml_data_where_commas_are_used_as/ xml, matlab, data import, reddit MATLAB Answers — New Questions
Using the Secret Management PowerShell Module with Azure Key Vault and Azure Automation
Use Secret Management to Store and Manage Secrets Needed by Azure Automation Runbooks
Storing hard-coded account credentials in PowerShell scripts is a big security no-no. Previously, I’ve discussed using Azure Key Vault to store passwords and other credentials that might be needed by PowerShell scripts or Azure Automation runbooks. Another method that I’ve used with runbooks is to store the credentials as an automation account resource, most recently when using the Connect-IPPSSession cmdlet to update a Microsoft 365 retention policy. Unhappily, the security and compliance cmdlets don’t currently support managed identities.
Although storing credential objects is the easiest way to make credentials available to an automation account, I would prefer to avoid duplication by using Azure Key Vault everywhere. This decision this brought me to the Secret Management PowerShell module. Essentially, the module supports an easy-to-use connection to Azure Key Vault (and other repositories) to access secrets stored in the vault, like usernames and passwords.
Installing the Secret Management Module
First, install the necessary module from the PowerShell gallery.
Install-Module Microsoft.PowerShell.SecretManagement -Repository PSGallery -Force -Scope AllUsers
Remember to make the module available in any Azure Automation runtime environments where runbooks will use the module to fetch secrets. The module only supports PowerShell core, so I tested runbooks with a custom PowerShell 7.4 runtime environment.
Registering Azure Key Vault with Secret Management
Before you can fetch any secrets from a vault, you must register the vault for the current session. The Secret Management module supports access to Azure Key Vault through one of its default extensions, but first a connection is needed an Azure account that’s linked to a subscription. Interactively, you’d do something like this:
Connect-AzAccount -Subscription 25429342-a1a5-4427-9e2d-551840f2ad25
In an Azure automation runbook, you can use a managed identity:
Connect-AzAccount -Identity
In this case, the secrets I need to use are stored in an Azure Key Vault called “Office365ITPros.” To access Azure Key Vault, the signed-in account must have permission to the target vault granted via a legacy access policy or an appropriate Azure RBAC role. This requirement also applies to the automation account used to execute runbooks, where permission is granted to the automation account’s service principal.
With the necessary access, I can use the Register-SecretVault cmdlet to connect to Azure Key Vault for the current session as follows. The call to the Get-SecretVault cmdlet is to confirm that the registration worked.
$parameters = @{
Name = 'Azure'
ModuleName = 'Az.KeyVault'
VaultParameters = @{
AZKVaultName = ‘Office365ITPros'
SubscriptionId = (Get-AzContext).Subscription.Id
}
DefaultVault = $true
}
Register-SecretVault @parameters
Get-SecretVault
Name ModuleName IsDefaultVault
---- ---------- --------------
Azure Az.KeyVault True
Fetching and Using Secrets in an Azure Automation Runbook
Once a vault is properly registered, the Get-Secret cmdlet can fetch secrets from the target vault. We need to combine the secrets holding the username and password for an Exchange Online administrator account into a credentials object. The object can then be used with the Connect-ExchangeOnline and Connect-IPPSSession cmdlets to connect to Exchange Online and the compliance endpoint before running the cmdlets necessary to complete whatever task is required.
This example shows how to list the sensitivity labels defined in the tenant after making all the necessary connections and registrations. The full code is listed below. Figure 1 shows the output from the Azure automation test pane.
Connect-AzAccount -Identity
$parameters = @{
Name = 'Azure'
ModuleName = 'Az.KeyVault'
VaultParameters = @{
AZKVaultName = 'Office365ITPros'
SubscriptionId = (Get-AzContext).Subscription.Id
}
DefaultVault = $true
}
Register-SecretVault @parameters
Get-SecretVault
$UserName = Get-Secret -Name ExoAccountName -AsPlainText -Vault Azure
$Password = Get-Secret -Name ExoAccountPassword -Vault Azure
$Credentials = New-Object 'Management.Automation.PsCredential' $UserName, $Password
Connect-ExchangeOnline -Credential $Credentials -DisableWAM
Connect-IPPSSession -Credential $Credentials
Get-Label | Format-Table ImmutableId, DisplayName

Secret Management is an Alternative to Credential Resources
There’s no doubt that storing credential objects as Azure Automation resources is the easiest way to manage credentials used with runbooks. However, the credential objects are associated with individual automation accounts and not shared elsewhere. Putting credentials in Azure Key Vault and accessing those credentials using the Secret Management module isn’t much harder, and those credentials are available to any user or service principal that’s allowed access to the key vault. You pay your money and make your choice…
Need help to write and manage PowerShell scripts for Microsoft 365, including Azure Automation runbooks? 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.
Vibration of Euler-Bernoulli Beam with Moving Load
Dear fellow MATLABers, I am wanting to produce a graph of u(x,t) [Displacement, y] against the Length [Length of beam, x] for each value of t = 0:100. From the graph I am plotting I would expect to see the max displacement of the beam to shift with the movement of the load going across the beam, instead the mid displacement just grows with each loop.
The equations I am using come from the book ‘Vehicle-Bridge Interaction Dynamics : With Applications to High-Speed Railways’ in Chapter 2. For convenience I will include the equations uderneath:
(Summing for n=1 to n=5)
(Mode shape for simply supported beam)
(Time response for moving loads)
If anyone wants to know more about the terms I am using feel free to ask and I can show them. The code I am using is shown bellow, any help is much appreciated!
clc
clear
% Vehicle properties
P = 1000; % Gravitational force from moving load [N]
v = 1.5; % Speed [m/s] or 100 [km/hour]
% Bridge properties
L = 150; % Length of the beam [m]
m = 3000; % Mass per unit length [kg/m]
EI = 10^6; % Flexural rigidity [N-m^2]
% Arrays for storage
Xl_n_vec = zeros(1,151);
W_x_t_mat = zeros(5,151);
z = 0:150;
for t = (0:100)/50
for n = 1:5
W_n = (((n^2)*pi^2)/L)*(EI/m)^0.5; % Natural frquecies for n modeshape [rad/sec]
Omega_n = n+pi*v/L; % Exciting frequency from moving load [1/sec]
S_n = Omega_n/W_n; % Speed parameter [NA]
for x = 0:L
Xl_n = 1/n^4*sin(n*pi*x/L); % Mode shapes for n modes
Xl_n_vec(x+1) = Xl_n; % Stores values as vectors
end
T_n = (sin(Omega_n*t)-S_n*sin(W_n*t))/(1-S_n^2); % Time response of beam
W_x_t = T_n*Xl_n_vec; % Total deformation of beam
W_x_t_mat(n,:) = W_x_t; % Stores mode shape vectors in matrix
end
Sum_W_x_t = sum(W_x_t_mat);
W_X_T = ((2*P*L^3)/(EI*pi^4))*Sum_W_x_t;
figure(1)
plot(z,W_X_T) % Displacemetn against length of beam
title(‘Time’)
xlabel(‘Position [m]’)
ylabel(‘Displacement [m]’)
pause(0.05)
endDear fellow MATLABers, I am wanting to produce a graph of u(x,t) [Displacement, y] against the Length [Length of beam, x] for each value of t = 0:100. From the graph I am plotting I would expect to see the max displacement of the beam to shift with the movement of the load going across the beam, instead the mid displacement just grows with each loop.
The equations I am using come from the book ‘Vehicle-Bridge Interaction Dynamics : With Applications to High-Speed Railways’ in Chapter 2. For convenience I will include the equations uderneath:
(Summing for n=1 to n=5)
(Mode shape for simply supported beam)
(Time response for moving loads)
If anyone wants to know more about the terms I am using feel free to ask and I can show them. The code I am using is shown bellow, any help is much appreciated!
clc
clear
% Vehicle properties
P = 1000; % Gravitational force from moving load [N]
v = 1.5; % Speed [m/s] or 100 [km/hour]
% Bridge properties
L = 150; % Length of the beam [m]
m = 3000; % Mass per unit length [kg/m]
EI = 10^6; % Flexural rigidity [N-m^2]
% Arrays for storage
Xl_n_vec = zeros(1,151);
W_x_t_mat = zeros(5,151);
z = 0:150;
for t = (0:100)/50
for n = 1:5
W_n = (((n^2)*pi^2)/L)*(EI/m)^0.5; % Natural frquecies for n modeshape [rad/sec]
Omega_n = n+pi*v/L; % Exciting frequency from moving load [1/sec]
S_n = Omega_n/W_n; % Speed parameter [NA]
for x = 0:L
Xl_n = 1/n^4*sin(n*pi*x/L); % Mode shapes for n modes
Xl_n_vec(x+1) = Xl_n; % Stores values as vectors
end
T_n = (sin(Omega_n*t)-S_n*sin(W_n*t))/(1-S_n^2); % Time response of beam
W_x_t = T_n*Xl_n_vec; % Total deformation of beam
W_x_t_mat(n,:) = W_x_t; % Stores mode shape vectors in matrix
end
Sum_W_x_t = sum(W_x_t_mat);
W_X_T = ((2*P*L^3)/(EI*pi^4))*Sum_W_x_t;
figure(1)
plot(z,W_X_T) % Displacemetn against length of beam
title(‘Time’)
xlabel(‘Position [m]’)
ylabel(‘Displacement [m]’)
pause(0.05)
end Dear fellow MATLABers, I am wanting to produce a graph of u(x,t) [Displacement, y] against the Length [Length of beam, x] for each value of t = 0:100. From the graph I am plotting I would expect to see the max displacement of the beam to shift with the movement of the load going across the beam, instead the mid displacement just grows with each loop.
The equations I am using come from the book ‘Vehicle-Bridge Interaction Dynamics : With Applications to High-Speed Railways’ in Chapter 2. For convenience I will include the equations uderneath:
(Summing for n=1 to n=5)
(Mode shape for simply supported beam)
(Time response for moving loads)
If anyone wants to know more about the terms I am using feel free to ask and I can show them. The code I am using is shown bellow, any help is much appreciated!
clc
clear
% Vehicle properties
P = 1000; % Gravitational force from moving load [N]
v = 1.5; % Speed [m/s] or 100 [km/hour]
% Bridge properties
L = 150; % Length of the beam [m]
m = 3000; % Mass per unit length [kg/m]
EI = 10^6; % Flexural rigidity [N-m^2]
% Arrays for storage
Xl_n_vec = zeros(1,151);
W_x_t_mat = zeros(5,151);
z = 0:150;
for t = (0:100)/50
for n = 1:5
W_n = (((n^2)*pi^2)/L)*(EI/m)^0.5; % Natural frquecies for n modeshape [rad/sec]
Omega_n = n+pi*v/L; % Exciting frequency from moving load [1/sec]
S_n = Omega_n/W_n; % Speed parameter [NA]
for x = 0:L
Xl_n = 1/n^4*sin(n*pi*x/L); % Mode shapes for n modes
Xl_n_vec(x+1) = Xl_n; % Stores values as vectors
end
T_n = (sin(Omega_n*t)-S_n*sin(W_n*t))/(1-S_n^2); % Time response of beam
W_x_t = T_n*Xl_n_vec; % Total deformation of beam
W_x_t_mat(n,:) = W_x_t; % Stores mode shape vectors in matrix
end
Sum_W_x_t = sum(W_x_t_mat);
W_X_T = ((2*P*L^3)/(EI*pi^4))*Sum_W_x_t;
figure(1)
plot(z,W_X_T) % Displacemetn against length of beam
title(‘Time’)
xlabel(‘Position [m]’)
ylabel(‘Displacement [m]’)
pause(0.05)
end engineering, vibration, dynamics, bridge, moving loads, pde MATLAB Answers — New Questions
regarding simscape electrical install
i cant install the simscape electrical from mathswork after all the process the access is denied after installationi cant install the simscape electrical from mathswork after all the process the access is denied after installation i cant install the simscape electrical from mathswork after all the process the access is denied after installation simulink MATLAB Answers — New Questions
Reference files in Grader not visible
After adding reference files, I can see them, but students cannot see them, so they don’t know they’re available for their use. Is that normal? Is there a visibility setting?After adding reference files, I can see them, but students cannot see them, so they don’t know they’re available for their use. Is that normal? Is there a visibility setting? After adding reference files, I can see them, but students cannot see them, so they don’t know they’re available for their use. Is that normal? Is there a visibility setting? grader reference files MATLAB Answers — New Questions
The My Sign-Ins Portal, Applications, and Conditional Access
Making Conditional Access and the My Sign-Ins Portal Work Better
A couple of weeks ago, I attended a keynote at the TEC 2025 conference where Alex Simons, Microsoft Corporate VP for Entra, discussed the investments Entra is making to develop agents to help tenant administrators to work smarter. There’s a cost to these agents in the form of Entra premium licenses and the security compute units required to run the agents. Microsoft’s bet is that they can deliver sufficient value to customers through agents to take the cost question off the table. Time will tell.
The Conditional Access optimization agent is one of the agents Microsoft has available in preview. I think both agents can do more and have said so both in print and in person. At this point, the conditional access agent seems more practical and likely to have an impact simply because it’s so easy to screw up conditional access policies.
Which brings me to a LinkedIn post by David Nündel reporting that Microsoft has exposed several additional first-party applications in the Entra admin center. There’s nothing really surprising here because Microsoft 365 and Entra ID are constructed from many multitenant applications. Instances of these applications exist in customer tenants (or rather, service principals for the applications) that can then be used in different aspects of tenant management.
Applications and the My Sign-Ins Portal
What is surprising and useful is that the newly-exposed applications relate to the My Sign-ins portal where users can perform actions such as changing their password, removing themselves as guest accounts from other Microsoft 365 tenants, and viewing recent sign-in activity (Figure 1).

The point is that the My Sign-ins portal relies on access to several applications to display the information revealed by the various menu options. If access to the applications is blocked by something like a conditional access policy, then the portal cannot function. And as it so happens, the newly revealed applications are those that are needed by the My Sign-Ins portal. Six applications are in the set with the following display names and application identifiers:
- My Signins: 19db86c3-b2b9-44cc-b339-36da233a3be2
- My Profile: 8c59ead7-d703-4a27-9e55-c96a0054c8d2
- Microsoft App Access Panel: 0000000c-0000-0000-c000-000000000000
- AADReporting: 1b912ec3-a9dd-4c4d-a53e-76aa7adb28d7
- Windows Azure Active Directory: 00000002-0000-0000-c000-000000000000
- Azure Credential Configuration Endpoint Service: ea890292-c8c8-4433-b5ea-b09d0668e1a6
Checking Service Principals for the My Sign-Ins Portal Applications
Service principals for most or maybe all of these applications are likely already present in your tenant. When I checked using the Microsoft Graph PowerShell SDK command shown below, only the My SignIns application was missing:
Get-MgServicePrincipal -filter "displayName eq 'Azure Credential Configuration Endpoint Service' or displayName eq 'Windows Azure Active Directory' or displayName eq 'AADReporting' or displayName eq 'Microsoft App Access Panel' or displayName eq 'My Profile' or displayName eq 'My SignIns'" | Format-Table DisplayName, Id, AppId DisplayName Id AppId ----------- -- ----- My Profile 1f1f813e-0778-4b5b-a379-a924c97e023f 8c59ead7-d703-4a27-9e55-c96a0054c8d2 AADReporting 31bd9b44-bc6b-42df-9be6-3030109b84a5 1b912ec3-a9dd-4c4d-a53e-76aa7adb28d7 Microsoft App Access Panel 10334c63-ac46-4b2a-a80a-dc9c62e34dd8 0000000c-0000-0000-c000-000000000000 Windows Azure Active Directory 2be71509-6ab9-44d7-bfd8-eff4e50bfc7c 00000002-0000-0000-c000-000000000000 Azure Credential Configuration Endpoint Service 6d1fdc7c-f64b-4aeb-9133-5246b467035c ea890292-c8c8-4433-b5ea-b09d0668e1a6
The problem was easily fixed by running the New-MgServicePrincipal cmdlet:
New-MgServicePrincipal -AppId 19db86c3-b2b9-44cc-b339-36da233a3be2 DisplayName Id AppId SignInAudience ServicePrincipalType ----------- -- ----- -------------- -------------------- My Signins a7cda215-2932-4042-8e3e-631ecf7ae23b 19db86c3-b2b9-44cc-b339-36da233a3be2 AzureADMultipleOrgs Application
The command to create a service principal from an application identifier works because the My SignIns application is a multitenant application owned by Microsoft. We can prove this by using the tenant relationship API to check the value of the identifier for the owning tenant. Using the Find-MgTenantRelationshipTenantInformationByTenantId cmdlet requires the Graph CrossTenantInformation.ReadBasic.All permission:
$AppTenantOwner = (Get-MgServicePrincipal -ServicePrincipalId a7cda215-2932-4042-8e3e-631ecf7ae23b).AppOwnerOrganizationId
Find-MgTenantRelationshipTenantInformationByTenantId -TenantId $AppTenantOwner
Write-Host ("The tenant name is {0} and its default domain is {1}" -f $TenantInfo.displayName, $TenantInfo.DefaultDomainName)
The tenant name is Microsoft Services and its default domain is sharepoint.com
No Point in Repeating What’s Already Available
With all the applications in place, you can use them in conditional access policies. I don’t like repeating information that’s already online, and I hate seeing many different descriptions of a new feature published by people who haven’t bothered to add any personal insight or knowledge to help others understand the technology better.
With that point in mind, you can read about how these applications could be used in a description of configuring conditional access for guest users by MVP Kenneth Van Surksum. Kenneth adds a few more applications to the “must exclude from blocking” list, so it’s important that you read the article. Excluding applications in conditional access policies simply allows users to access applications that they need to do their jobs, or to make functionality work, like the exclusion required by Outlook to handle sensitivity labels.
Now all I want to know is whether the Entra conditional access optimization agent is ready to optimize for this condition. I suspect not, because it’s clear that first generation agents solve immediate issues (like stopping people from locking themselves out) rather than delivering great insight into more subtle policy details.
Combine non integer time steps into daily values
Dear Experts,
I have the following data, which have time and volume (.mat file attached).
time (Days) Volume (L)
0 0
30.6741806 0
1.168E-05 0.006798073
2.2995E-05 0.047292948
4.4165E-05 0.223091253
7.7015E-05 0.833100076
9.636E-05 2.066383935
0.00012045 4.343111658
0.000150745 8.336749383
0.000187975 14.55932459
0.000289445 22.84538025
0.00036135 32.30381193
Unfortunately, the time steps are not consistent, and I would like to group them into values of one day. As volume is linked to those time steps, I can not add the time steps, as they don’t sum 1.
With some effort in Excel I could group the values, with their respective proportional volume:
time (Days) Volume (L)
0.97022767 70827.51996
0.02977233 1854.371465
0.07209406 4490.383105
0.889726556 1.41894918
0.038179384 2757.485994
0.139366106 10065.64395
If I sum the bold and underlined ones, I get tha volume values for 1 day (integer)
time (Days) Volume (L)
1 72681.89142
1 7249.288049
0.139366106 10065.64395
As there are so many values (more than 900), Is it possible to do it on a propper way in MATLAB?
Thank you!Dear Experts,
I have the following data, which have time and volume (.mat file attached).
time (Days) Volume (L)
0 0
30.6741806 0
1.168E-05 0.006798073
2.2995E-05 0.047292948
4.4165E-05 0.223091253
7.7015E-05 0.833100076
9.636E-05 2.066383935
0.00012045 4.343111658
0.000150745 8.336749383
0.000187975 14.55932459
0.000289445 22.84538025
0.00036135 32.30381193
Unfortunately, the time steps are not consistent, and I would like to group them into values of one day. As volume is linked to those time steps, I can not add the time steps, as they don’t sum 1.
With some effort in Excel I could group the values, with their respective proportional volume:
time (Days) Volume (L)
0.97022767 70827.51996
0.02977233 1854.371465
0.07209406 4490.383105
0.889726556 1.41894918
0.038179384 2757.485994
0.139366106 10065.64395
If I sum the bold and underlined ones, I get tha volume values for 1 day (integer)
time (Days) Volume (L)
1 72681.89142
1 7249.288049
0.139366106 10065.64395
As there are so many values (more than 900), Is it possible to do it on a propper way in MATLAB?
Thank you! Dear Experts,
I have the following data, which have time and volume (.mat file attached).
time (Days) Volume (L)
0 0
30.6741806 0
1.168E-05 0.006798073
2.2995E-05 0.047292948
4.4165E-05 0.223091253
7.7015E-05 0.833100076
9.636E-05 2.066383935
0.00012045 4.343111658
0.000150745 8.336749383
0.000187975 14.55932459
0.000289445 22.84538025
0.00036135 32.30381193
Unfortunately, the time steps are not consistent, and I would like to group them into values of one day. As volume is linked to those time steps, I can not add the time steps, as they don’t sum 1.
With some effort in Excel I could group the values, with their respective proportional volume:
time (Days) Volume (L)
0.97022767 70827.51996
0.02977233 1854.371465
0.07209406 4490.383105
0.889726556 1.41894918
0.038179384 2757.485994
0.139366106 10065.64395
If I sum the bold and underlined ones, I get tha volume values for 1 day (integer)
time (Days) Volume (L)
1 72681.89142
1 7249.288049
0.139366106 10065.64395
As there are so many values (more than 900), Is it possible to do it on a propper way in MATLAB?
Thank you! sort timesteps MATLAB Answers — New Questions
Uav toolbox VTOL Ref.App Plant model with PX4 Sitl
Hi. ı am trying to run Vtol plan model of Mathworks wıth PX4 sitl. I am taking HIL_ACTUATOR_CONTROL[16] array and using first 4 elements of it to conrol rotor of vtol. But when i observe the reponse of plant it was so late after i sent manual command from QGC. Almost seconds later and after a while uav will be out control and behaves independently from my commands. There is a big communication problem. How can solve that?
ThanksHi. ı am trying to run Vtol plan model of Mathworks wıth PX4 sitl. I am taking HIL_ACTUATOR_CONTROL[16] array and using first 4 elements of it to conrol rotor of vtol. But when i observe the reponse of plant it was so late after i sent manual command from QGC. Almost seconds later and after a while uav will be out control and behaves independently from my commands. There is a big communication problem. How can solve that?
Thanks Hi. ı am trying to run Vtol plan model of Mathworks wıth PX4 sitl. I am taking HIL_ACTUATOR_CONTROL[16] array and using first 4 elements of it to conrol rotor of vtol. But when i observe the reponse of plant it was so late after i sent manual command from QGC. Almost seconds later and after a while uav will be out control and behaves independently from my commands. There is a big communication problem. How can solve that?
Thanks simulink, px4 sitl, matlab, vtol MATLAB Answers — New Questions
Data loaded successfully but not showing in workspace
I used
load()
to load my data, it shows when I call one of the variables, and when I call
whos
, but the workspace window is empty. Any idea why and how i can fix it so i can see my loaded data?
The workspace currently looks like thisI used
load()
to load my data, it shows when I call one of the variables, and when I call
whos
, but the workspace window is empty. Any idea why and how i can fix it so i can see my loaded data?
The workspace currently looks like this I used
load()
to load my data, it shows when I call one of the variables, and when I call
whos
, but the workspace window is empty. Any idea why and how i can fix it so i can see my loaded data?
The workspace currently looks like this data import MATLAB Answers — New Questions
How can I calculate Dynamic height and Geostrophic Current?
.. . equation MATLAB Answers — New Questions
readtable on xml with single line
I store a table type into a xml file with writetable.
When reading this file with readtable, it parses the xml into a matlab table only if it is composed of multiple lines.
Otherwise, I have to use readstruct and then struct2table to read a "one line" table. If I use readtable instead, it returns an empty table.
Is there a trick to use readtable anyway when the table is composed of one line ?
Thank you very much,
ArthurI store a table type into a xml file with writetable.
When reading this file with readtable, it parses the xml into a matlab table only if it is composed of multiple lines.
Otherwise, I have to use readstruct and then struct2table to read a "one line" table. If I use readtable instead, it returns an empty table.
Is there a trick to use readtable anyway when the table is composed of one line ?
Thank you very much,
Arthur I store a table type into a xml file with writetable.
When reading this file with readtable, it parses the xml into a matlab table only if it is composed of multiple lines.
Otherwise, I have to use readstruct and then struct2table to read a "one line" table. If I use readtable instead, it returns an empty table.
Is there a trick to use readtable anyway when the table is composed of one line ?
Thank you very much,
Arthur matlab, readtable, writetable, xml MATLAB Answers — New Questions
Changing the Offline Access Period for Sensitivity Labels
Offline Access Lets Clients Like Outlook Work with Protected Content
The use of Microsoft Purview sensitivity labels to protect confidential files and messages seems to be more widespread. Although Microsoft doesn’t publish data to say how many Microsoft 365 tenants use sensitivity labels or the percentage of files stored in SharePoint Online and OneDrive for Business that are protected by sensitivity labels, my guess is that use has grown steadily over the last few years. Certainly, Microsoft is encouraging the use of sensitivity labels by increasing its use in different places. For example, implementing dynamic watermarking, preventing Microsoft 365 Copilot from using content from documents with specific sensitivity labels in AI-generated responses, and removing the requirement to pay to use the Graph API to assign sensitivity labels programmatically. These are all good signs that the sensitivity label framework is developing and building out nicely.
Offline Access to Protected Content
Protecting files with encryption applied by assigning a sensitivity label is a core piece of functionality. Encryption is managed by the Azure Rights Management service, which controls the interpretation and enforcement of the access rights assigned to users through sensitivity label settings.
When an authenticated user attempts to access a protected item, they obtain a use license from the Azure Rights Management service. The use license is a certificate containing the access rights for the item (like whether the user can print the item), the encryption key used to encrypt the content, and if access expires at any point. Importantly, the validity of the use license is limited.
If access to the item is not date-limited, the service issues a use license with a validity period based on the offline access setting contained in the sensitivity label (by default, 30 days). The validity period controls when the user must next authenticate to continue to have access to the item. In practical terms, during the validity period, the existence of the use license means that the user doesn’t need to prove their right to access the content. This is the basis for offline access to protected content by clients such as Outlook. The use license is available on the workstation and can be used to access the protected item even when a network connection is unavailable.
Once the validity period expires, the user is prompted to reauthenticate. During the reauthentication process, the service checks the label settings and evaluates group membership (if used to grant access rights) to establish precisely what rights the user has to the item before it issues a new use license.
Setting the Access Period for a Sensitivity Label
You can restrict the maximum period for offline access on a per-label or tenant-wide basis. To change the validity period for a label, edit the Allow offline access setting (Figure 1) and select the number of days for offline access. Always means that the label uses the maximum validity period for the tenant. Never means that items protected by the label cannot be accessed offline.

Changing the Maximum Validity Period for a Tenant
A sensitivity label cannot have a longer offline access period than the tenant maximum validity period. While 30 days is a good balance between frequent user reauthorization and maintaining security for offline content, some believe that a shorter period is better because it limits the ability of people who leave the organization to access sensitive information. A use license is bound to the device where access occurred, so to continue to have access to the protected content, the person who left must have access to the device.
In any case, a tenant administrator can change the validity period setting for the tenant with PowerShell using the Set-AipServiceMaxUseLicenseValidityTime cmdlet from the AIPService module. The AIPService module only supports Windows PowerShell (5.1). Don’t bother trying to run it on PowerShell 7. Here’s an example of setting the period to 14 days:
Import-Module AIPService Connect-AipService Set-AipServiceMaxUseLicenseValidityTime 14 WARNING: The MaxUseLicenseValidityTime will be updated by this operation. Confirm Are you sure you want to perform this action? Performing the operation "Set-AipServiceMaxUseLicenseValidityTime" on target "current organization". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y The MaxUseLicenseValidityTime for the Azure Information Protection service has been successfully set to 14. Get-AipServiceMaxUseLicenseValidityTime 14
The adjusted validity period only applies to newly-issued use licenses. The new value can be anything from 0 to 65535 days (which should be enough for anyone).
Test Before Deployment
As always, it’s best to make changes to settings like the maximum validity period in a test tenant to assess if the change breaks anything. I don’t think it will, but it’s always best to test, assess, and then deploy.
Learn about managing sensitivity labels and the rest of Microsoft Purview Information Protection by subscribing to the Office 365 for IT Pros eBook. Use our experience to understand what’s important and how best to protect your tenant.
What is the difference between different ways to do least square
Here I encounter this problem of using different ways to do least square. And I got different results (some are quite different). I want to know why. Basically, I tried to use different ways to compute ||Aθ-y||min. So I used these three methods.
theta_train_5k = ((A_train_5k’*A_train_5k)^-1)*A_train_5k’*y_train_5k;
% This is the result of least square
theta_train_5k_3 = A_train_5ky_train_5k;
% This is also the result of least square
theta_train_5k_2 = lsqr(A_train_5k,y_train_5k);
% This is result of least square using lsqr
And I found different results.
theta_train_100 = ((A_train_100’*A_train_100)^-1)*A_train_100’*y_train_100;
theta_train_100_3 = A_train_100y_train_100;
% This is also the result of least square for 100 data points
theta_train_100_2 = lsqr(A_train_100,y_train_100);
% This is result of least square using lsqr
For the above one, the result is even more strange. with theta_train_100 1000 to 100000 times larger than theta_train_3 and theta_train_2. So I was wondering when should I use which? Does it have something to do with the condition number or the singular value of the matrix?
Please help. Thank you in advance.
Variables are in the attachmentHere I encounter this problem of using different ways to do least square. And I got different results (some are quite different). I want to know why. Basically, I tried to use different ways to compute ||Aθ-y||min. So I used these three methods.
theta_train_5k = ((A_train_5k’*A_train_5k)^-1)*A_train_5k’*y_train_5k;
% This is the result of least square
theta_train_5k_3 = A_train_5ky_train_5k;
% This is also the result of least square
theta_train_5k_2 = lsqr(A_train_5k,y_train_5k);
% This is result of least square using lsqr
And I found different results.
theta_train_100 = ((A_train_100’*A_train_100)^-1)*A_train_100’*y_train_100;
theta_train_100_3 = A_train_100y_train_100;
% This is also the result of least square for 100 data points
theta_train_100_2 = lsqr(A_train_100,y_train_100);
% This is result of least square using lsqr
For the above one, the result is even more strange. with theta_train_100 1000 to 100000 times larger than theta_train_3 and theta_train_2. So I was wondering when should I use which? Does it have something to do with the condition number or the singular value of the matrix?
Please help. Thank you in advance.
Variables are in the attachment Here I encounter this problem of using different ways to do least square. And I got different results (some are quite different). I want to know why. Basically, I tried to use different ways to compute ||Aθ-y||min. So I used these three methods.
theta_train_5k = ((A_train_5k’*A_train_5k)^-1)*A_train_5k’*y_train_5k;
% This is the result of least square
theta_train_5k_3 = A_train_5ky_train_5k;
% This is also the result of least square
theta_train_5k_2 = lsqr(A_train_5k,y_train_5k);
% This is result of least square using lsqr
And I found different results.
theta_train_100 = ((A_train_100’*A_train_100)^-1)*A_train_100’*y_train_100;
theta_train_100_3 = A_train_100y_train_100;
% This is also the result of least square for 100 data points
theta_train_100_2 = lsqr(A_train_100,y_train_100);
% This is result of least square using lsqr
For the above one, the result is even more strange. with theta_train_100 1000 to 100000 times larger than theta_train_3 and theta_train_2. So I was wondering when should I use which? Does it have something to do with the condition number or the singular value of the matrix?
Please help. Thank you in advance.
Variables are in the attachment leastsquare, matrix MATLAB Answers — New Questions









