Category: News
using sparse matrix and vpa function simultaneously
i am using the following code in my 3D FEM analysis
digits(16)
k_bc=vpa(k_bc);
U=k_bcf_bc.
residual=norm(k_bc*U-f_bc).
Now to decrease the residual i have taken the variable to symbolic domain.Now when i use vpa i loose my sparcity of stiffness matrix causing a slow calculation rate but give lower value of residual and when i use sparse matrix the residual value is high because of the large condition number of k_bc of the order 10e14(i think it is a result of lagrange shape function beig used in Galerkin’s FEM).how to use both sparcity and vpa simultaneously to have lowervalue to residual and still have higher speedi am using the following code in my 3D FEM analysis
digits(16)
k_bc=vpa(k_bc);
U=k_bcf_bc.
residual=norm(k_bc*U-f_bc).
Now to decrease the residual i have taken the variable to symbolic domain.Now when i use vpa i loose my sparcity of stiffness matrix causing a slow calculation rate but give lower value of residual and when i use sparse matrix the residual value is high because of the large condition number of k_bc of the order 10e14(i think it is a result of lagrange shape function beig used in Galerkin’s FEM).how to use both sparcity and vpa simultaneously to have lowervalue to residual and still have higher speed i am using the following code in my 3D FEM analysis
digits(16)
k_bc=vpa(k_bc);
U=k_bcf_bc.
residual=norm(k_bc*U-f_bc).
Now to decrease the residual i have taken the variable to symbolic domain.Now when i use vpa i loose my sparcity of stiffness matrix causing a slow calculation rate but give lower value of residual and when i use sparse matrix the residual value is high because of the large condition number of k_bc of the order 10e14(i think it is a result of lagrange shape function beig used in Galerkin’s FEM).how to use both sparcity and vpa simultaneously to have lowervalue to residual and still have higher speed vpa, sparse MATLAB Answers — New Questions
How to control the speed of the synchronus motor in simscape?
I want to cntrol the speed of the synchronous motor , i used the spwm inverter circuit ans attached a synchronous motor but the motor is giving the speed in negative direction couls u please help me with this problem.I attached the model design and the output screen of the motor.I want to cntrol the speed of the synchronous motor , i used the spwm inverter circuit ans attached a synchronous motor but the motor is giving the speed in negative direction couls u please help me with this problem.I attached the model design and the output screen of the motor. I want to cntrol the speed of the synchronous motor , i used the spwm inverter circuit ans attached a synchronous motor but the motor is giving the speed in negative direction couls u please help me with this problem.I attached the model design and the output screen of the motor. control the speed of the motor MATLAB Answers — New Questions
Distinguish the different curves and identify the points corresponding to each way
I have this figure but it is difficult to distinguish the different curves and identify the points corresponding to each approach. Is there any other way to represent each method?
Thanks in advanceI have this figure but it is difficult to distinguish the different curves and identify the points corresponding to each approach. Is there any other way to represent each method?
Thanks in advance I have this figure but it is difficult to distinguish the different curves and identify the points corresponding to each approach. Is there any other way to represent each method?
Thanks in advance cureve MATLAB Answers — New Questions
Retrieve requirement information linked to a test assessment step programmatically
Guys, do you know how to retrieve the requirement information linked to an assessment step? Normally slreq.outLinks function works for blocks. But I couldn’t make it for the test assessment step. Anyone help?Guys, do you know how to retrieve the requirement information linked to an assessment step? Normally slreq.outLinks function works for blocks. But I couldn’t make it for the test assessment step. Anyone help? Guys, do you know how to retrieve the requirement information linked to an assessment step? Normally slreq.outLinks function works for blocks. But I couldn’t make it for the test assessment step. Anyone help? test assessment step linked to a requirement MATLAB Answers — New Questions
Why do I receive a warning regarding exhausted change notification handles when I open MATLAB?
When I open MATLAB, I see a warning similar to the following:
Warning: Could not get change notification handle for remote <directory_name>. Windows has exhausted its pool of handles for this file server. Cannot determine whether this server supports directory timestamp updates. Type ‘help change_notification’ for more info
How can I resolve this?When I open MATLAB, I see a warning similar to the following:
Warning: Could not get change notification handle for remote <directory_name>. Windows has exhausted its pool of handles for this file server. Cannot determine whether this server supports directory timestamp updates. Type ‘help change_notification’ for more info
How can I resolve this? When I open MATLAB, I see a warning similar to the following:
Warning: Could not get change notification handle for remote <directory_name>. Windows has exhausted its pool of handles for this file server. Cannot determine whether this server supports directory timestamp updates. Type ‘help change_notification’ for more info
How can I resolve this? responsive, change_notification, entries, path, supply MATLAB Answers — New Questions
How do I configure a MATLAB worker in a cluster to have the security setting of a user who submits the job?
I am trying to run a parallel MATLAB job on a cluster. The parallel code writes the results to a folder which requires specific group/user permissions.
When I run code on the workers running locally on my machine, I am able to read or write to/from the folder without any issues since I am a user who has permission to do that folder. However, when I submit the code to the cluster, the workers can not access the folder.I am trying to run a parallel MATLAB job on a cluster. The parallel code writes the results to a folder which requires specific group/user permissions.
When I run code on the workers running locally on my machine, I am able to read or write to/from the folder without any issues since I am a user who has permission to do that folder. However, when I submit the code to the cluster, the workers can not access the folder. I am trying to run a parallel MATLAB job on a cluster. The parallel code writes the results to a folder which requires specific group/user permissions.
When I run code on the workers running locally on my machine, I am able to read or write to/from the folder without any issues since I am a user who has permission to do that folder. However, when I submit the code to the cluster, the workers can not access the folder. security, workers, group, permission, mdcs, parallel, job, distributed, jobmanager MATLAB Answers — New Questions
edge detection and comparison
How to compare these two images to find the length and area of distortion in the final imageHow to compare these two images to find the length and area of distortion in the final image How to compare these two images to find the length and area of distortion in the final image edge detection, image comparison, gauging, metrology, image segmentation, caliper dimensions MATLAB Answers — New Questions
QPSK simulation with AWGN and BER using Simulink
Hi
What wrong with this block diagram and how to make monte carlo simulation and i am wondering if there any resources for this kind of modulationHi
What wrong with this block diagram and how to make monte carlo simulation and i am wondering if there any resources for this kind of modulation Hi
What wrong with this block diagram and how to make monte carlo simulation and i am wondering if there any resources for this kind of modulation qpsk MATLAB Answers — New Questions
Microsoft Graph PowerShell SDK Needs to Fix Its Password Problem
Graph SDK Plain Text Passwords are Unacceptable in Today’s Threat Climate

Many PowerShell developers are all too aware that time is running out for the Azure AD and MSOL modules. Microsoft will retire the MSOL module in April 2025 and the Azure AD module in Q3 2025. The result is that a lot of work is going on to upgrade scripts to replace MSOL and Azure AD cmdlets with equivalents from the Microsoft Graph PowerShell SDK or Entra module.
Microsoft launched the Entra module in June 2024 and made its V1.0 release generally available in January 2025. The Entra module is built on top of the Microsoft Graph PowerShell SDK. The major difference is that the Entra module comes with a set of hand-crafted cmdlets intended to mimic how Azure AD cmdlets work. I say hand-crafted because Microsoft engineers upgrade the automatically-generated versions created for the SDK to add support for features like piping.
The AutoRest process, which generates the SDK cmdlets, uses the metadata of the underlying Graph APIs to guide what it generates. That metadata is not constructed with PowerShell in mind, which is why the SDK cmdlets can be difficult to work with at times. For instance, the SDK cmdlets don’t support piping, which is a fundamental PowerShell feature. Output from SDK cmdlets is often a set of identifiers rather than human-understandable objects, and so on.
You could ask why Microsoft doesn’t intervene to add support for piping, make cmdlet output more useful, and address the other SDK foibles. One reason is the sheer number of Graph APIs that end up as SDK cmdlets.
[array]$Command = Get-Command -Module Microsoft.Graph* $Command.count 42474
The 42,474 cmdlets are broken down into 15,259 V1.0 and 27,215 beta cmdlets. Updating all the cmdlets in V2.25 of the Microsoft Graph PowerShell SDK would take enormous effort. The number of cmdlets grows with each version of the SDK to reflect newly-added Graph APIs. The automatic generation process would need to change (and testing of the generated cmdlets). Whether the world’s largest software company should do this is an argument that’s been going on for years.
All of which brings me to issue 3119 reported in the SDK’s GitHub repository reported by MVP Aleksandar Nikolić, a well-known PowerShell expert. The problem report is terse and accurate:
The Update-MgUserPassword command’s parameters, -CurrentPassword and -NewPassword, expect a string value instead of a SecureString value.
Using Graph SDK Plain Text Passwords to Update User Accounts
The Update-MgUserPassword cmdlet is designed to allow users to change their own password. For instance, this code updates the user who’s signed into an SDK interactive session.
$User = Get-MgUser -UserId (Get-MgContext).Account Update-MgUserPassword -UserId $User.Id -NewPassword "P@sswOrD" -CurrentPassword "Galway2020!!!"
If an administrator is changing someone’s password, they should use the Update-MgUser cmdlet.
$NewPasswordProfile = @{} $NewPasswordProfile["Password"]= "$!FDGmso13@" Update-MgUser -UserId $User.Id -PasswordProfile $NewPassword
Notice that in both cases, the password is in clear text. I don’t know how many tenants have coded solutions to allow users to change their own passwords and use the Update-MgUserPassword cmdlet, but I know that many have processes to change user passwords with Update-MgUser, so that’s the more serious problem.
By comparison, the equivalent cmdlets from the now-deprecated modules both take SecureString values when changing passwords.
$NewPassword | ConvertTo-SecureString -AsPlainText -Force Set-MsolUserPassword -UserPrincipalName $userPrincipalName -NewPassword $NewPassword -ForceChangePassword $true Set-AzureADUserPassword -ObjectId $User.Id" -Password $NewPassword
Using Secure Strings for Password Changes
Microsoft defines a SecureString as “text that should be kept confidential.” In terms of security, Microsoft says that A SecureString “provides more data protection than a string.” It seems like the right kind of protection passwords should have.
You might consider that there’s nothing much wrong here because the passwords are available to those who set them. However, it’s possible to have a script generate a password for an account and store it as a SecureString in a repository like Azure Key Vault, and have a different script read the password and use it to update an account. This method means that no password ever appears in plain text.
The Solution to Graph SDK Plain Text Passwords
The initial response from the SDK development team was that they follow the documentation for the underlying user: ChangePassword Graph API, which defines the input values in the request body strings. Referring back to the Graph API seems like a dereliction of duty. If everyone did that, we’d never see any improvements in software. Switching to support SecureString input for the SDK cmdlets is the right thing to do, even if it might break some existing scripts. That’s an acceptable cost to pay for better security.
Insight like this doesn’t come easily. You’ve got to know the technology and understand how to look behind the scenes. Benefit from the knowledge and experience of the Office 365 for IT Pros team by subscribing to the best eBook covering Office 365 and the wider Microsoft 365 ecosystem.
S-Function ‘SimCoupler’ does not exist
where can I find this block in matlab 2017awhere can I find this block in matlab 2017a where can I find this block in matlab 2017a 1 MATLAB Answers — New Questions
state flow chart properties action language
Action Language selected as Matlab, Cnt(counter) is updating and working fine.
when, Action Language selected as C, and if else ststement is replaced with flowchart (pattern) Cnt is not updating
if Any one faced this kind of issue before please help meAction Language selected as Matlab, Cnt(counter) is updating and working fine.
when, Action Language selected as C, and if else ststement is replaced with flowchart (pattern) Cnt is not updating
if Any one faced this kind of issue before please help me Action Language selected as Matlab, Cnt(counter) is updating and working fine.
when, Action Language selected as C, and if else ststement is replaced with flowchart (pattern) Cnt is not updating
if Any one faced this kind of issue before please help me state flow chart MATLAB Answers — New Questions
Accessing LIN blocks in Simulink model
How do I get the LIN pack and LIN unpack blocks into my model? I have the Vehicle Network Toolbox (VNT) toolbox with me, I can see the LIN blocks in the documentation but I cannot see it the Simulink Library, Can some please help me out here? Or do I need a seperate license to access them because the documentation doesn’t mention anything related to the licenses.How do I get the LIN pack and LIN unpack blocks into my model? I have the Vehicle Network Toolbox (VNT) toolbox with me, I can see the LIN blocks in the documentation but I cannot see it the Simulink Library, Can some please help me out here? Or do I need a seperate license to access them because the documentation doesn’t mention anything related to the licenses. How do I get the LIN pack and LIN unpack blocks into my model? I have the Vehicle Network Toolbox (VNT) toolbox with me, I can see the LIN blocks in the documentation but I cannot see it the Simulink Library, Can some please help me out here? Or do I need a seperate license to access them because the documentation doesn’t mention anything related to the licenses. simulink, vnt, lin, can MATLAB Answers — New Questions
ODE time vector plot does not correspond to the time vector values
Hi! When I solve an ODE using ode23 I get a time vector and my state. In the time vector everything seems fine however when I plot the states agaisnt the time, the time appears completely skewed(it should be from 0-5 and its from 0-0.09…..)
How can I solve this?Hi! When I solve an ODE using ode23 I get a time vector and my state. In the time vector everything seems fine however when I plot the states agaisnt the time, the time appears completely skewed(it should be from 0-5 and its from 0-0.09…..)
How can I solve this? Hi! When I solve an ODE using ode23 I get a time vector and my state. In the time vector everything seems fine however when I plot the states agaisnt the time, the time appears completely skewed(it should be from 0-5 and its from 0-0.09…..)
How can I solve this? ode23, ode, plot, plotting, time MATLAB Answers — New Questions
Adding vectors of different sizes… works now? Can this be suppressed?
In previous versions of matlab, adding two vectors of different sizes would result in an error (this would align with rules of matrix addition).
For example:
[ 1 2 3 4] + [1 2 3 4]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
For example:
[ 1 2 3 4] + [1 2 3 4 5]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
6 7 8 9
Is there a way to suppress this new "feature"?In previous versions of matlab, adding two vectors of different sizes would result in an error (this would align with rules of matrix addition).
For example:
[ 1 2 3 4] + [1 2 3 4]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
For example:
[ 1 2 3 4] + [1 2 3 4 5]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
6 7 8 9
Is there a way to suppress this new "feature"? In previous versions of matlab, adding two vectors of different sizes would result in an error (this would align with rules of matrix addition).
For example:
[ 1 2 3 4] + [1 2 3 4]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
For example:
[ 1 2 3 4] + [1 2 3 4 5]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
6 7 8 9
Is there a way to suppress this new "feature"? matrix addition, warnings, errors MATLAB Answers — New Questions
Why i get error message when trying using lowpass?
Hi all,
when i try to use lowpass command, i got this message;
lowpass requires Signal Processing Toolbox.
The image as below;
I am using Academic version and i have installed Signal Processing toolbox during installation
Here is the image;Hi all,
when i try to use lowpass command, i got this message;
lowpass requires Signal Processing Toolbox.
The image as below;
I am using Academic version and i have installed Signal Processing toolbox during installation
Here is the image; Hi all,
when i try to use lowpass command, i got this message;
lowpass requires Signal Processing Toolbox.
The image as below;
I am using Academic version and i have installed Signal Processing toolbox during installation
Here is the image; signal processing toolbox MATLAB Answers — New Questions
How to Index and Search SharePoint Online Custom Columns
Custom Columns are One Part of the Mystery of SharePoint Search
Understanding how SharePoint Online search works is one of the learning curves faced by many Microsoft 365 tenant administrators. Because search is so important to SharePoint, this topic is well-covered ground for people who worked with SharePoint Server (on-premises). The magic that melds managed properties, crawled properties, mapping, custom cpolumns, indexes, and so on into search doesn’t hold any mysteries.
Things are different for those who come to SharePoint because of its core role within Microsoft 365. SharePoint Online is not the center of an ecosystem like SharePoint Server is. Like Exchange Online delivers email services, the cloud version of SharePoint takes on a completely different role as the provider of document management services to other workloads, like Teams. The different role doesn’t make search any less important. People still want to find files quickly and easily but competing demands from across Microsoft 365 mean that administrators sometimes pay less attention to the finer details of search. After all, search just works in the cloud…
Generally, SharePoint search does just work. Sometimes complexities do exist, like finding out how to find files with a specific sensitivity label. Although users mightn’t want to look for labelled files, administrators might need this knowledge to find labelled files in eDiscovery searches, and that’s why some knowledge about how search works is a good skill to acquire, even for non-SharePoint people. In my case, it helped me to maximize the advantage of creating a custom column for a site.
Creating a Custom Column
SharePoint Online is basically a big Azure SQL application based on a database holding many lists (tables). The lists hold data in items with the information for each item stored in columns (fields). SharePoint allows site administrators to define new custom columns at a site or library level. I use this feature to track the topic areas for articles I publish on different sites.
In general, defining custom columns at site level is recommended because the custom columns can then be used in any library. Figure 1 shows the properties of a custom site column called RAInfo.

After creating the site custom column, use the Add from existing site columns option in Library settings to add the column to a document library. Once the column is added to a library, it can be added to the view that exposes file metadata and edited there (or updated programmatically using a Graph API or SDK cmdlet).
Remaining in library settings, go to Indexed columns and add the new custom column as an index. SharePoint libraries support up to 20 indices.
Using Custom Columns
One of the nice things about custom columns is that SharePoint supports their use in filters. In Figure 2 we see that the filter picker shows the values entered for files in the RAInfo custom column. Selecting the desired values for the RAInfo column helps SharePoint to find and display files that meet the filter criteria. Of course, filtering only works if users remember to enter the necessary information for files.

Users can also input a custom column value (for instance, “RA001”) into the search box to search the library for matching files. Because the custom column is part of the document metadata, SharePoint search can use it to find files.
Making Custom Columns More Searchable
The search against document metadata finds matches against any property containing the value. A further step is required to allow searches against the custom column be more specific.
When you create a custom site column, SharePoint Online creates a managed property named using the form CustomColumnName + “OWSText.” In this case, the managed property is called “RAInfoOWSText.” SharePoint also creates a crawled property with the name OWS_Q_TEXT_CustomColumnName, or OWS_Q_TEXT_RAInfo in our case. The crawled property is what SharePoint search extracts from a site.
To allow search to use the managed property, it’s critical to map the managed property to the crawled property and wait for indexing to complete. Once indexing is complete, you can input RAInfoOWSText:RA001 into the search box. This command instructs SharePoint to search against the RAInfoOWSText managed property.
Not everyone will appreciate working with what seems to be odd column names. To solve the problem, go to Site Information, then View all site settings, and select the Search schema. You can now create an alias for the custom column, hopefully giving the column a name that makes more sense to regular users. In Figure 3, I’ve assigned RAInfo as the alias for the RAInforOWSText managed property.

Adding an alias to disguise some of the complexities of SharePoint search is a small but useful step to take. Now users can input search terms like RAInfo:RA003 (Figure 4) into the search box instead of RAInfoOWSText:RA003 and find the same information.

Take Your Time
One thing that you’ll discover when tweaking SharePoint search is that it takes hours and sometimes days for changes to become active in a site. Users need to populate values in the custom column and search needs to index those values, including respecting the changes that you might have made like adding an alias for a managed property. You can force the issue somewhat by requesting a reindex of the document library (in library advanced settings), but SharePoint Online can’t be rushed too much.
Take your time and everything will work in the end. At least, it did for me.
Malware Forensic Analysis: Capturing What Attackers Leave Behind
Every attack leaves a trail, but in containerized environments, this trail can evaporate before you even realize you have been attacked. These environments bring new challenges for security teams, including an expanding attack surface. Containers, while incredibly powerful, are short-lived, and attackers exploit this by moving quickly and covering their tracks. They often download and execute malware, then silently modify, or delete the files to erase evidence of their actions, making it nearly impossible to trace the original attack. Security teams are often left scrambling to piece together what happened.
Every attack leaves a trail, but in containerized environments, this trail can evaporate before you even realize you have been attacked. These environments bring new challenges for security teams, including an expanding attack surface. Containers, while incredibly powerful, are short-lived, and attackers exploit this by moving quickly and covering their tracks. They often download and execute malware, then silently modify, or delete the files to erase evidence of their actions, making it nearly impossible to trace the original attack. Security teams are often left scrambling to piece together what happened.
Read More
Adding names to the mlm.opt file when the maximum allowable number of characters (4000) is reached.
We would like to enter additional names to selected toolboxes and blocksets within the mlm.opt (options) file. However, we have reached the maximum number of allowed characters (4000). To get around this, we haved deleted some names from the line. Is there a way to split the line?We would like to enter additional names to selected toolboxes and blocksets within the mlm.opt (options) file. However, we have reached the maximum number of allowed characters (4000). To get around this, we haved deleted some names from the line. Is there a way to split the line? We would like to enter additional names to selected toolboxes and blocksets within the mlm.opt (options) file. However, we have reached the maximum number of allowed characters (4000). To get around this, we haved deleted some names from the line. Is there a way to split the line? options file MATLAB Answers — New Questions
Why I can not sign in in the installed matlab? (2024b academic version)
Hi I can not sign in in the installed matlab, when I try the sign in window write this:
mw-login :: No endpoint specified.
This is problem, because the toolboxes, wich I installed are not working, because the matlab do not see my lisence. But when I open online the matlab, the toolboxes are working.
So, someone know the solution, why I can not sign in? Or anything else solution?Hi I can not sign in in the installed matlab, when I try the sign in window write this:
mw-login :: No endpoint specified.
This is problem, because the toolboxes, wich I installed are not working, because the matlab do not see my lisence. But when I open online the matlab, the toolboxes are working.
So, someone know the solution, why I can not sign in? Or anything else solution? Hi I can not sign in in the installed matlab, when I try the sign in window write this:
mw-login :: No endpoint specified.
This is problem, because the toolboxes, wich I installed are not working, because the matlab do not see my lisence. But when I open online the matlab, the toolboxes are working.
So, someone know the solution, why I can not sign in? Or anything else solution? sign in, license, toolbox, problem MATLAB Answers — New Questions
DDPG algorithm/Experience Buffer/ rl.util.ExperienceBuffer
I want to code my own DDPG algorithm. In the intial steps, the Batch size is bigger than the number of experiences in experience buffer, how can I still get enough sampled data for my miniBatch ?
I use rl.util.ExperienceBuffer to create my experience buffer and use createSampledExperienceMiniBatch(buffer,BatchSize) function to get datas for minBatch. However, when the data in experience buffer is smaller than the BatchSize, the function return 0x0 cell.I want to code my own DDPG algorithm. In the intial steps, the Batch size is bigger than the number of experiences in experience buffer, how can I still get enough sampled data for my miniBatch ?
I use rl.util.ExperienceBuffer to create my experience buffer and use createSampledExperienceMiniBatch(buffer,BatchSize) function to get datas for minBatch. However, when the data in experience buffer is smaller than the BatchSize, the function return 0x0 cell. I want to code my own DDPG algorithm. In the intial steps, the Batch size is bigger than the number of experiences in experience buffer, how can I still get enough sampled data for my miniBatch ?
I use rl.util.ExperienceBuffer to create my experience buffer and use createSampledExperienceMiniBatch(buffer,BatchSize) function to get datas for minBatch. However, when the data in experience buffer is smaller than the BatchSize, the function return 0x0 cell. experiencebuffer, ddpg MATLAB Answers — New Questions