Category: News
Synchronizing Security and Microsoft 365 Group Memberships
Use the Graph APIs to Synchronize Group Memberships
A September 2018 article describes how to synchronize the membership of security groups with Microsoft 365 groups (or Office 365 groups as they were then). Looking at the example code in the article, it’s obvious that much has changed. The demise of the Azure AD PowerShell module and its replacement by the Entra module or the Microsoft Graph PowerShell SDK is probably the biggest change.
A security group is used to manage access to shared resources. It’s often desirable to have a way for members of the security group to share information and collaborate. A Microsoft 365 group is the obvious choice, and that’s what creates the need to synchronize membership between the security group and Microsoft 365 group. The security group is the master, so the processing is to add and remove members of the Microsoft 365 group based on the membership of the security group.
I haven’t looked at the article for a long time and was surprised when a reader asked for an updated solution based on Microsoft Graph APIs. The reader supplied some code that they’d written and hadn’t managed to get working, probably because of the somewhat odd way that the Graph APIs return group membership. It’s just one of the foibles developers should understand when they work with the Graph.
Dealing with Group Membership
The documentation for the List Group Members API shows that member identifiers are returned rather than what you might expect, such as a display name or user principal name. This behavior follows through into the Microsoft Graph PowerShell SDK Get-MgGroupMember cmdlet:
Get-MgGroupMember -GroupId $M365Group.Id Id DeletedDateTime -- --------------- eff4cd58-1bb8-4899-94de-795f656b4a18 53f08764-07d4-418c-8403-a737a8fac7b3 6fd89e40-665a-4efa-9691-da07849cae91 …
Dealing with a set of object identifiers isn’t a problem when you expect to do so. However, if you fetch the additionalProperties property, PowerShell returns a hash table containing the expanded details of the group members.
Get-MgGroupMember -GroupId $M365Group.Id | Select-Object -ExpandProperty additionalProperties
Key Value
--- -----
@odata.type #microsoft.graph.user
businessPhones {}
displayName René Artois
givenName René
jobTitle Chief
mail Rene.Artois@office365itpros.com
officeLocation Nouvon
surname Artois
userPrincipalName Rene.Artois@office365itpros.com
@odata.type #microsoft.graph.user
businessPhones {}
displayName Otto Flick
givenName Otto
jobTitle Head of Department
mail Otto.Flick@office365itpros.com
officeLocation Nouvion
surname Flick
userPrincipalName Otto.Flick@office365itpros.com
@odata.type #microsoft.graph.user
businessPhones {+33 4 94301766}
displayName Lotte Vetler (Paris)
givenName Lotte
jobTitle Property Consultant
mail Lotte.Vetler@office365itpros.com
mobilePhone +33 6 7446 1554
officeLocation Flayosc
surname Vetler
userPrincipalName Lotte.Vetler@office365itpros.com
Note that the table doesn’t include the identifier for each user. However, if you create a hash table from additionalProperties, code can use it as a lookup table to extract details for a user identifier. Here’s an example of using the hash table to find the display name for a group member:
[array]$Members = Get-MgGroupMember -GroupId $M365Group.Id
$GroupMembers = $Members | Select-Object -ExpandProperty additionalProperties
[int]$i = 0
ForEach ($M in $Members.Id) {
Write-output ("Processing member {0}" -f $GroupMembers[$i].displayName)
$i++
}
Processing member René Artois
Processing member Otto Flick
Processing member Lotte Vetler (Paris)
Coding a Solution
Once we’re clear about how Graph APIs return group membership, it’s easy to proceed to code and create a replacement script. Unlike the original, which used both the Azure AD and Exchange Online modules, I chose to do everything with the Microsoft Graph PowerShell SDK to avoid the potential for irritating assembly clashes. The code is enhanced a tad with additional checks to make sure that the right kind of groups are involved and to record the additions and removals for the membership of the Microsoft 365 group (Figure 1).

You can download the full script from the Office 365 for IT Pros GitHub repository.
Synchronizing Group Membership Automatically
The technique used in the script is not limited to synchronizing between a security group and a Microsoft 365 group. It could also be used to synchronize the membership of two Microsoft 365 groups or two security groups.
Processes like this are well suited to execution as a scheduled Azure Automation runbook. Running the synchronization job weekly seems like the correct cadence, but I’ll leave it to you to decide.
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.
GigE Cam works with 2024B but not 2025B
Hello,
I’m currently working with a GigE camera and I tried to update the MATLAB version to 2025B from 2024B.
However after installing the image acquisition toolbox and the GigE adaptor the device can not longer be detected.
I also tested a Point Grey usb camera and it worked fine with 2025B.
Please let me know if you need any other information.
Thanks!Hello,
I’m currently working with a GigE camera and I tried to update the MATLAB version to 2025B from 2024B.
However after installing the image acquisition toolbox and the GigE adaptor the device can not longer be detected.
I also tested a Point Grey usb camera and it worked fine with 2025B.
Please let me know if you need any other information.
Thanks! Hello,
I’m currently working with a GigE camera and I tried to update the MATLAB version to 2025B from 2024B.
However after installing the image acquisition toolbox and the GigE adaptor the device can not longer be detected.
I also tested a Point Grey usb camera and it worked fine with 2025B.
Please let me know if you need any other information.
Thanks! image acquisition, gige camera MATLAB Answers — New Questions
Hi, why aren’t these circuits working?
The three phase inverter only converts one period.The three phase inverter only converts one period. The three phase inverter only converts one period. #inverter MATLAB Answers — New Questions
Ffigure saved as pdf: how to get proper control of margins
Hello,
I want to save a figure as a pdf, and would like to get control on the margins around the figure in the pdf.
Here is an example :
load(‘test_0.mat’); % contains the variables AudioSnip, frameSize, Hop , fs
s_length = length(AudioSnip);
nframes = 1 + floor((s_length – frameSize)/double(Hop ));
UsableSigLength = frameSize + floor(Hop *floor((s_length – frameSize)/double(Hop )));
sampleTime = ( 1: UsableSigLength )/fs;
%$$$$$$$$$$$$$$$$$$$
[B,f,T] = specgram(AudioSnip,frameSize*2,fs,hanning(frameSize), Hop); %(1: UsableSigLength)
B = 20*log10(abs(B));
%
TheFig = figure;
h = gcf ; %gcf returns the current figure handle
h.Units = ‘centimeters’;
h.PaperType= ‘A4’;
h.PaperUnits = ‘centimeters’;
h.PaperOrientation= ‘landscape’; % ‘portrait’;
h.PaperPositionMode= ‘auto’;
h.InvertHardcopy = ‘on’;
h.Renderer = ‘painter’;
margin = 4.; width = 29.7; height = 21.;
h.Position = [margin margin width-2*margin height-2*margin];
h.PaperSize = [29.7 21.0]; %[21.0000 29.7000];
subplot(2,1,1);
plot(sampleTime, AudioSnip(1: UsableSigLength));
xlabel(‘Time (s)’,’FontSize’, 10, ‘FontName’ ,’Times’, ‘FontWeight’, ‘bold’);
ylabel(‘Amplitude’, ‘FontSize’, 12, ‘FontName’ ,’Times’, ‘FontWeight’, ‘bold’);
set(get(gca, ‘xlabel’), ‘Position’, [ 21.,-0.21,-1]);
h1 = gcf;
h1.Units = ‘centimeters’;
atx1= gca; % axes ‘Position’, % xtart, ystart xend yend coord
atx1.Position = [0.1300 0.7099 0.6949 0.1635]; %
atx1.FontSize = 10 ; atx1.FontName = ‘Times’; atx1.FontWeight = ‘bold’;
atx1.Units=’normalized’;
Tt0=text(‘Units’,’normalized’,’Position’,[ 0.0009 1.4599 0 ],…
‘VerticalAlignment’, ‘Bottom’, ‘FontName’, ‘Times’, ‘FontSize’,14 , ‘FontWeight’, ‘bold’, ‘String’, ‘text1’);
Tt1=text(‘Units’,’normalized’,’Position’,[ 0.0009 1.260, 0 ],…
‘VerticalAlignment’, ‘Bottom’, ‘FontName’, ‘Times’, ‘FontSize’,14 , ‘FontWeight’, ‘bold’, ‘FontAngle’, ‘italic’,’String’, ‘text2’);
Tt2=text(‘Units’,’normalized’,’Position’,[0.0009 1.0509 0],…
‘VerticalAlignment’, ‘Bottom’, ‘FontName’, ‘Times’, ‘FontSize’,12 , ‘FontWeight’, ‘bold’, ‘String’, ‘text3’);
subplot(2,1,2);
h2 = gcf;
h2.Units = ‘centimeters’;
atx2= gca; % axes(‘Position’, % xtart, ystart xend yend coord
atx2.FontSize = 10; atx2.FontName= ‘Times’ ; atx2.FontWeight = ‘bold’;
atx2.Units=’normalized’;
atx2.Position = [0.1300 0.0720 0.7334 0.5965 ];
imagesc(T,f,B);axis xy;colorbar;
ylabel(‘Frequency (Hz)’,’FontSize’, 12, ‘FontName’ ,’Times’, ‘FontWeight’, ‘bold’);
xlabel(”,’FontSize’, 12, ‘FontName’ ,’Times’, ‘FontWeight’, ‘bold’);
colormap jet
exportgraphics(TheFig, ‘outputTest.pdf’);
When I run it,
A) I do not get a proper control on the margins around the figure: the parameter ‘margin’ (see code)does not seem to affect the result in the pdf obtained
What should be done ?
Miscellaneaous other problems:
B) I would like to align the time corresponding to the end of the data (first subplot), with the end of the spectrogram data (2nd subplot): how should this be done ? (I tried some adjustment via axis position, but the colorbar is also messing things up)
C) the font for the 2nd subplot is not the expected ‘Times’; (I tested that it is indeed possible to manually force ‘Times’ using the figure inspector, but not by the program line above (atx2.FontName = ‘Times’)
why ? how to enforce ‘Times’ by programing ?Hello,
I want to save a figure as a pdf, and would like to get control on the margins around the figure in the pdf.
Here is an example :
load(‘test_0.mat’); % contains the variables AudioSnip, frameSize, Hop , fs
s_length = length(AudioSnip);
nframes = 1 + floor((s_length – frameSize)/double(Hop ));
UsableSigLength = frameSize + floor(Hop *floor((s_length – frameSize)/double(Hop )));
sampleTime = ( 1: UsableSigLength )/fs;
%$$$$$$$$$$$$$$$$$$$
[B,f,T] = specgram(AudioSnip,frameSize*2,fs,hanning(frameSize), Hop); %(1: UsableSigLength)
B = 20*log10(abs(B));
%
TheFig = figure;
h = gcf ; %gcf returns the current figure handle
h.Units = ‘centimeters’;
h.PaperType= ‘A4’;
h.PaperUnits = ‘centimeters’;
h.PaperOrientation= ‘landscape’; % ‘portrait’;
h.PaperPositionMode= ‘auto’;
h.InvertHardcopy = ‘on’;
h.Renderer = ‘painter’;
margin = 4.; width = 29.7; height = 21.;
h.Position = [margin margin width-2*margin height-2*margin];
h.PaperSize = [29.7 21.0]; %[21.0000 29.7000];
subplot(2,1,1);
plot(sampleTime, AudioSnip(1: UsableSigLength));
xlabel(‘Time (s)’,’FontSize’, 10, ‘FontName’ ,’Times’, ‘FontWeight’, ‘bold’);
ylabel(‘Amplitude’, ‘FontSize’, 12, ‘FontName’ ,’Times’, ‘FontWeight’, ‘bold’);
set(get(gca, ‘xlabel’), ‘Position’, [ 21.,-0.21,-1]);
h1 = gcf;
h1.Units = ‘centimeters’;
atx1= gca; % axes ‘Position’, % xtart, ystart xend yend coord
atx1.Position = [0.1300 0.7099 0.6949 0.1635]; %
atx1.FontSize = 10 ; atx1.FontName = ‘Times’; atx1.FontWeight = ‘bold’;
atx1.Units=’normalized’;
Tt0=text(‘Units’,’normalized’,’Position’,[ 0.0009 1.4599 0 ],…
‘VerticalAlignment’, ‘Bottom’, ‘FontName’, ‘Times’, ‘FontSize’,14 , ‘FontWeight’, ‘bold’, ‘String’, ‘text1’);
Tt1=text(‘Units’,’normalized’,’Position’,[ 0.0009 1.260, 0 ],…
‘VerticalAlignment’, ‘Bottom’, ‘FontName’, ‘Times’, ‘FontSize’,14 , ‘FontWeight’, ‘bold’, ‘FontAngle’, ‘italic’,’String’, ‘text2’);
Tt2=text(‘Units’,’normalized’,’Position’,[0.0009 1.0509 0],…
‘VerticalAlignment’, ‘Bottom’, ‘FontName’, ‘Times’, ‘FontSize’,12 , ‘FontWeight’, ‘bold’, ‘String’, ‘text3’);
subplot(2,1,2);
h2 = gcf;
h2.Units = ‘centimeters’;
atx2= gca; % axes(‘Position’, % xtart, ystart xend yend coord
atx2.FontSize = 10; atx2.FontName= ‘Times’ ; atx2.FontWeight = ‘bold’;
atx2.Units=’normalized’;
atx2.Position = [0.1300 0.0720 0.7334 0.5965 ];
imagesc(T,f,B);axis xy;colorbar;
ylabel(‘Frequency (Hz)’,’FontSize’, 12, ‘FontName’ ,’Times’, ‘FontWeight’, ‘bold’);
xlabel(”,’FontSize’, 12, ‘FontName’ ,’Times’, ‘FontWeight’, ‘bold’);
colormap jet
exportgraphics(TheFig, ‘outputTest.pdf’);
When I run it,
A) I do not get a proper control on the margins around the figure: the parameter ‘margin’ (see code)does not seem to affect the result in the pdf obtained
What should be done ?
Miscellaneaous other problems:
B) I would like to align the time corresponding to the end of the data (first subplot), with the end of the spectrogram data (2nd subplot): how should this be done ? (I tried some adjustment via axis position, but the colorbar is also messing things up)
C) the font for the 2nd subplot is not the expected ‘Times’; (I tested that it is indeed possible to manually force ‘Times’ using the figure inspector, but not by the program line above (atx2.FontName = ‘Times’)
why ? how to enforce ‘Times’ by programing ? Hello,
I want to save a figure as a pdf, and would like to get control on the margins around the figure in the pdf.
Here is an example :
load(‘test_0.mat’); % contains the variables AudioSnip, frameSize, Hop , fs
s_length = length(AudioSnip);
nframes = 1 + floor((s_length – frameSize)/double(Hop ));
UsableSigLength = frameSize + floor(Hop *floor((s_length – frameSize)/double(Hop )));
sampleTime = ( 1: UsableSigLength )/fs;
%$$$$$$$$$$$$$$$$$$$
[B,f,T] = specgram(AudioSnip,frameSize*2,fs,hanning(frameSize), Hop); %(1: UsableSigLength)
B = 20*log10(abs(B));
%
TheFig = figure;
h = gcf ; %gcf returns the current figure handle
h.Units = ‘centimeters’;
h.PaperType= ‘A4’;
h.PaperUnits = ‘centimeters’;
h.PaperOrientation= ‘landscape’; % ‘portrait’;
h.PaperPositionMode= ‘auto’;
h.InvertHardcopy = ‘on’;
h.Renderer = ‘painter’;
margin = 4.; width = 29.7; height = 21.;
h.Position = [margin margin width-2*margin height-2*margin];
h.PaperSize = [29.7 21.0]; %[21.0000 29.7000];
subplot(2,1,1);
plot(sampleTime, AudioSnip(1: UsableSigLength));
xlabel(‘Time (s)’,’FontSize’, 10, ‘FontName’ ,’Times’, ‘FontWeight’, ‘bold’);
ylabel(‘Amplitude’, ‘FontSize’, 12, ‘FontName’ ,’Times’, ‘FontWeight’, ‘bold’);
set(get(gca, ‘xlabel’), ‘Position’, [ 21.,-0.21,-1]);
h1 = gcf;
h1.Units = ‘centimeters’;
atx1= gca; % axes ‘Position’, % xtart, ystart xend yend coord
atx1.Position = [0.1300 0.7099 0.6949 0.1635]; %
atx1.FontSize = 10 ; atx1.FontName = ‘Times’; atx1.FontWeight = ‘bold’;
atx1.Units=’normalized’;
Tt0=text(‘Units’,’normalized’,’Position’,[ 0.0009 1.4599 0 ],…
‘VerticalAlignment’, ‘Bottom’, ‘FontName’, ‘Times’, ‘FontSize’,14 , ‘FontWeight’, ‘bold’, ‘String’, ‘text1’);
Tt1=text(‘Units’,’normalized’,’Position’,[ 0.0009 1.260, 0 ],…
‘VerticalAlignment’, ‘Bottom’, ‘FontName’, ‘Times’, ‘FontSize’,14 , ‘FontWeight’, ‘bold’, ‘FontAngle’, ‘italic’,’String’, ‘text2’);
Tt2=text(‘Units’,’normalized’,’Position’,[0.0009 1.0509 0],…
‘VerticalAlignment’, ‘Bottom’, ‘FontName’, ‘Times’, ‘FontSize’,12 , ‘FontWeight’, ‘bold’, ‘String’, ‘text3’);
subplot(2,1,2);
h2 = gcf;
h2.Units = ‘centimeters’;
atx2= gca; % axes(‘Position’, % xtart, ystart xend yend coord
atx2.FontSize = 10; atx2.FontName= ‘Times’ ; atx2.FontWeight = ‘bold’;
atx2.Units=’normalized’;
atx2.Position = [0.1300 0.0720 0.7334 0.5965 ];
imagesc(T,f,B);axis xy;colorbar;
ylabel(‘Frequency (Hz)’,’FontSize’, 12, ‘FontName’ ,’Times’, ‘FontWeight’, ‘bold’);
xlabel(”,’FontSize’, 12, ‘FontName’ ,’Times’, ‘FontWeight’, ‘bold’);
colormap jet
exportgraphics(TheFig, ‘outputTest.pdf’);
When I run it,
A) I do not get a proper control on the margins around the figure: the parameter ‘margin’ (see code)does not seem to affect the result in the pdf obtained
What should be done ?
Miscellaneaous other problems:
B) I would like to align the time corresponding to the end of the data (first subplot), with the end of the spectrogram data (2nd subplot): how should this be done ? (I tried some adjustment via axis position, but the colorbar is also messing things up)
C) the font for the 2nd subplot is not the expected ‘Times’; (I tested that it is indeed possible to manually force ‘Times’ using the figure inspector, but not by the program line above (atx2.FontName = ‘Times’)
why ? how to enforce ‘Times’ by programing ? pdf, figure, margin MATLAB Answers — New Questions
When a python command is called for the first time, I get “ERROR:root:code for hash blake2b was not found.”
Hello,
When I run MATLAB code that calls Python commands, I get an error message about hash functions.
The following is a shell script called "test_matlab_python.sh":
#!/bin/bash
matlab -nodesktop -nosplash -nodisplay -r "test_matlab_python"
The MATLAB code "test_matlab_python.m" is
clear all;
pe = pyenv(‘Version’,’python3.11′);
res = py.list({‘This’,’is a’,’list’})
exit
When I run the code from a Linux shell, (Fedora Linux version 42)
$ ./test_matlab_python.sh
MATLAB shows an error message:
< M A T L A B (R) >
Copyright 1984-2024 The MathWorks, Inc.
R2025a Update 1 (25.1.0.2973910) 64-bit (glnxa64)
July 3, 2025
To get started, type doc.
For product information, visit www.mathworks.com.
ERROR:root:code for hash blake2b was not found.
Traceback (most recent call last):
File "/usr/lib64/python3.11/hashlib.py", line 307, in <module>
globals()[__func_name] = __get_hash(__func_name)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/hashlib.py", line 129, in __get_openssl_constructor
return __get_builtin_constructor(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/hashlib.py", line 123, in __get_builtin_constructor
raise ValueError(‘unsupported hash type ‘ + name)
ValueError: unsupported hash type blake2b
ERROR:root:code for hash blake2s was not found.
Traceback (most recent call last):
File "/usr/lib64/python3.11/hashlib.py", line 307, in <module>
globals()[__func_name] = __get_hash(__func_name)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/hashlib.py", line 129, in __get_openssl_constructor
return __get_builtin_constructor(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/hashlib.py", line 123, in __get_builtin_constructor
raise ValueError(‘unsupported hash type ‘ + name)
ValueError: unsupported hash type blake2s
res =
Python list with values:
[‘This’, ‘is a’, ‘list’]
Use string, double or cell function to convert to a MATLAB array.
After showing the message, MATLAB works fine. But is there any way not to see this message?
When I run "test_matlab_python.m" from the MATLAB desktop environemnt in the Fedora Linux, the message was not shown in the command window, but it was shown in the shell that started the desktop as follows:
$ matlab
ERROR:root:code for hash blake2b was not found.
Traceback (most recent call last):
…
ValueError: unsupported hash type blake2s
I never saw this message when I was running normal Python programs:
$ python
Python 3.11.14 (main, Oct 10 2025, 00:00:00) [GCC 15.2.1 20250808 (Red Hat 15.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> list({‘This’,’is a’,’list’})
[‘is a’, ‘This’, ‘list’]
>>>Hello,
When I run MATLAB code that calls Python commands, I get an error message about hash functions.
The following is a shell script called "test_matlab_python.sh":
#!/bin/bash
matlab -nodesktop -nosplash -nodisplay -r "test_matlab_python"
The MATLAB code "test_matlab_python.m" is
clear all;
pe = pyenv(‘Version’,’python3.11′);
res = py.list({‘This’,’is a’,’list’})
exit
When I run the code from a Linux shell, (Fedora Linux version 42)
$ ./test_matlab_python.sh
MATLAB shows an error message:
< M A T L A B (R) >
Copyright 1984-2024 The MathWorks, Inc.
R2025a Update 1 (25.1.0.2973910) 64-bit (glnxa64)
July 3, 2025
To get started, type doc.
For product information, visit www.mathworks.com.
ERROR:root:code for hash blake2b was not found.
Traceback (most recent call last):
File "/usr/lib64/python3.11/hashlib.py", line 307, in <module>
globals()[__func_name] = __get_hash(__func_name)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/hashlib.py", line 129, in __get_openssl_constructor
return __get_builtin_constructor(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/hashlib.py", line 123, in __get_builtin_constructor
raise ValueError(‘unsupported hash type ‘ + name)
ValueError: unsupported hash type blake2b
ERROR:root:code for hash blake2s was not found.
Traceback (most recent call last):
File "/usr/lib64/python3.11/hashlib.py", line 307, in <module>
globals()[__func_name] = __get_hash(__func_name)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/hashlib.py", line 129, in __get_openssl_constructor
return __get_builtin_constructor(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/hashlib.py", line 123, in __get_builtin_constructor
raise ValueError(‘unsupported hash type ‘ + name)
ValueError: unsupported hash type blake2s
res =
Python list with values:
[‘This’, ‘is a’, ‘list’]
Use string, double or cell function to convert to a MATLAB array.
After showing the message, MATLAB works fine. But is there any way not to see this message?
When I run "test_matlab_python.m" from the MATLAB desktop environemnt in the Fedora Linux, the message was not shown in the command window, but it was shown in the shell that started the desktop as follows:
$ matlab
ERROR:root:code for hash blake2b was not found.
Traceback (most recent call last):
…
ValueError: unsupported hash type blake2s
I never saw this message when I was running normal Python programs:
$ python
Python 3.11.14 (main, Oct 10 2025, 00:00:00) [GCC 15.2.1 20250808 (Red Hat 15.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> list({‘This’,’is a’,’list’})
[‘is a’, ‘This’, ‘list’]
>>> Hello,
When I run MATLAB code that calls Python commands, I get an error message about hash functions.
The following is a shell script called "test_matlab_python.sh":
#!/bin/bash
matlab -nodesktop -nosplash -nodisplay -r "test_matlab_python"
The MATLAB code "test_matlab_python.m" is
clear all;
pe = pyenv(‘Version’,’python3.11′);
res = py.list({‘This’,’is a’,’list’})
exit
When I run the code from a Linux shell, (Fedora Linux version 42)
$ ./test_matlab_python.sh
MATLAB shows an error message:
< M A T L A B (R) >
Copyright 1984-2024 The MathWorks, Inc.
R2025a Update 1 (25.1.0.2973910) 64-bit (glnxa64)
July 3, 2025
To get started, type doc.
For product information, visit www.mathworks.com.
ERROR:root:code for hash blake2b was not found.
Traceback (most recent call last):
File "/usr/lib64/python3.11/hashlib.py", line 307, in <module>
globals()[__func_name] = __get_hash(__func_name)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/hashlib.py", line 129, in __get_openssl_constructor
return __get_builtin_constructor(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/hashlib.py", line 123, in __get_builtin_constructor
raise ValueError(‘unsupported hash type ‘ + name)
ValueError: unsupported hash type blake2b
ERROR:root:code for hash blake2s was not found.
Traceback (most recent call last):
File "/usr/lib64/python3.11/hashlib.py", line 307, in <module>
globals()[__func_name] = __get_hash(__func_name)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/hashlib.py", line 129, in __get_openssl_constructor
return __get_builtin_constructor(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/hashlib.py", line 123, in __get_builtin_constructor
raise ValueError(‘unsupported hash type ‘ + name)
ValueError: unsupported hash type blake2s
res =
Python list with values:
[‘This’, ‘is a’, ‘list’]
Use string, double or cell function to convert to a MATLAB array.
After showing the message, MATLAB works fine. But is there any way not to see this message?
When I run "test_matlab_python.m" from the MATLAB desktop environemnt in the Fedora Linux, the message was not shown in the command window, but it was shown in the shell that started the desktop as follows:
$ matlab
ERROR:root:code for hash blake2b was not found.
Traceback (most recent call last):
…
ValueError: unsupported hash type blake2s
I never saw this message when I was running normal Python programs:
$ python
Python 3.11.14 (main, Oct 10 2025, 00:00:00) [GCC 15.2.1 20250808 (Red Hat 15.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> list({‘This’,’is a’,’list’})
[‘is a’, ‘This’, ‘list’]
>>> python, hash, blake2b, blake2s MATLAB Answers — New Questions
How to Create SharePoint Sites with the Graph API
New Create Site API Fills Gap in Graph Coverage for SharePoint Online
Some big news for SharePoint Online administrators appeared in the Developer Blog on November 24, 2025, with the announcement of a Graph API to create sites. The new API fills in a gap that existed in Graph support for SharePoint Online sites that forced developers to use other methods to create sites, such as the SharePoint REST service (here’s an expanded discussion).
As usual with newly-introduced Graph APIs, the create site API is currently available through the beta Graph endpoint. An equivalent cmdlet in the Microsoft Graph PowerShell SDK is unavailable, but this will come in time after the AutoRest procedure gets to process the metadata for the new API. Given build schedules and the recent holiday period, my best guess is that the cmdlet will appear in V2.35 of the SDK (the current version is 2.34).
Originally, Microsoft said that three templates would be available.
- Group: A team site connected to a Microsoft 365 group.
- Sts: SharePoint Online team site.
- Sitepagepublishing: A publishing or communication site.
However, experience gained in the beta proved that the group template simply didn’t work. Microsoft has decided to withdraw the group template, and all mention of the template will soon disappear from the create Site API documentation. Fortunately, new groups can be created using a variety of other methods, such as the New-MgGroup, New-MgTeam, and New-UnifiedGroup cmdlets.
API Permissions and the Rights to Create Sites
Alongside the create Site API, Microsoft introduced the Sites.Create.All permission. The delegated version of the permission allows the signed-in user to create new sites (if allowed to by the tenant) while the application version allows apps to create new sites without any check. To connect to the Graph and request the scope (permission), use a command like this.
Connect-MgGraph -Scopes Sites.Create.All -NoWelcome
Remember that running Connect-MgGraph interactively creates a session that uses delegated permissions. My account holds the SharePoint administrator role, so I can create new sites without constraint. This might not be the case for every user as the ability to create new sites is governed by SharePoint tenant settings (Figure 1).

The SharePoint admin center setting controls creation of team, publishing, and communication sites.
Using the Create Site Graph API
If your account holds the SharePoint administrator role, you can connect an interactive session to use the API. Alternatively, sign in with an app that has consent to use the Sites.Create.All permission. Lacking a cmdlet to call the API, we’ll use the Invoke-MgGraphRequest cmdlet.
This example shows how to create a new communications site. To create a new team site, change the template from sitepagepublishing to sts.
$Uri = "https://graph.microsoft.com/beta/sites/"
$Params = @{
name = "Corporate Executive Communication"
webUrl = "https://office365itpros.sharepoint.com/sites/CorpExecComms"
locale = "en-US"
shareByEmailEnabled = $false
description = "Communications site for Corporate Executive functions"
template = "sitepagepublishing"
ownerIdentityToResolve = @{
email = "Tony.Redmond@office365itpros.com "
}
}
Invoke-MgGraphRequest -Uri $Uri -Method POST -Body $Params
SharePoint Online doesn’t respond with a status following successful site creation, so to check that everything is good, we must try to retrieve the site.
Get-MgSite -Search "https://office365itpros.sharepoint.com/sites/CorpExecComms"
Because of caching, it takes about ten minutes before the Get-MgSite cmdlet can find the new site. It’s faster to check through the SharePoint admin center! The other thing to remember is that when signing in with your own account, delegated permissions are used and to access the new site, anaccount must be a site owner or member, which is why I included my account as a site owner.
Full Control for App
When a site is created using the API, the calling app receives the Sites.Selected permission with Full.Control access to the new site to enable the app to work with the site. For instance, the app could proceed to add assets like lists, site pages, or documents to the site. Regretfully, there’s no Graph API available to add site members, so this has to be done through the SharePoint admin center or the site (by a site owner).
To demonstrate what happens, I used some code from this article about using the Site.Selected permission to report the permissions for the newly-created communications site. As you can see, the Microsoft Graph PowerShell app has full control:
$Site = Get-MgSite -Search "https://office365itpros.sharepoint.com/sites/CorpExecComms"
[array]$Permissions = Get-MgSitePermission -SiteId $Site.Id
ForEach ($Permission in $Permissions){
$Data = Get-MgSitePermission -PermissionId $Permission.Id -SiteId $Site.Id -Property Id, Roles, GrantedToIdentitiesV2
Write-Host ("{0} permission available to {1}" -f ($Data.Roles -join ","), $Data.GrantedToIdentitiesV2.Application.DisplayName)
}
fullcontrol permission available to Microsoft Graph PowerShell
Microsoft Graph PowerShell is the internal name for the app used for interactive Microsoft Graph PowerShell SDK sessions. The app’s display name is Microsoft Graph Command Line Tools.
A Faltering Start
I’m puzzled why Microsoft pushed out the create Site API. The API doesn’t handle creation of the most common type of SharePoint Online site, and the SharePoint Graph APIs lack the ability to populate site membership. The API is in beta, so Microsoft might address some of the issues raised here by the time you read this article.
I guess the API will allow some organizations to replace current usage of the SharePoint REST API. Aside from that, I don’t see how this API will do much except act as a starting point for SharePoint to fully embrace all aspects of site creation. Time will tell if Microsoft delivers the missing pieces.
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.
Running the cloud-based MATLAB for an extended period of time
I have a code that can take between 1 up to 4 hours to finish. I want to run the code on the cloud-based platform. However, the problem is that after few minutes the MATLAB site requires some activity (like moving the pointer) in the page or it will log me out automatically.
How can I run the MATLAB code for an extended period of time without me having to be in front of the computer?I have a code that can take between 1 up to 4 hours to finish. I want to run the code on the cloud-based platform. However, the problem is that after few minutes the MATLAB site requires some activity (like moving the pointer) in the page or it will log me out automatically.
How can I run the MATLAB code for an extended period of time without me having to be in front of the computer? I have a code that can take between 1 up to 4 hours to finish. I want to run the code on the cloud-based platform. However, the problem is that after few minutes the MATLAB site requires some activity (like moving the pointer) in the page or it will log me out automatically.
How can I run the MATLAB code for an extended period of time without me having to be in front of the computer? cloud-based matlab MATLAB Answers — New Questions
How to solve dy/dt=A(t)*y where y is a vector (3 elements) and A is 3×3 matrix with time dependent elements.
The ODE is:
Initial values are Ao=(1,0,0). I have a subroutine that calculates Aij(t). Inputs to this subroutine are a vector of the times, (t(1),t(2)…..t(N)), and 2 vectors with parameters required to calculate R(i,j,t(k)). Please let me know what, if any, Matlab routines can be used for this purpose.
Thanks, Richard WittebortThe ODE is:
Initial values are Ao=(1,0,0). I have a subroutine that calculates Aij(t). Inputs to this subroutine are a vector of the times, (t(1),t(2)…..t(N)), and 2 vectors with parameters required to calculate R(i,j,t(k)). Please let me know what, if any, Matlab routines can be used for this purpose.
Thanks, Richard Wittebort The ODE is:
Initial values are Ao=(1,0,0). I have a subroutine that calculates Aij(t). Inputs to this subroutine are a vector of the times, (t(1),t(2)…..t(N)), and 2 vectors with parameters required to calculate R(i,j,t(k)). Please let me know what, if any, Matlab routines can be used for this purpose.
Thanks, Richard Wittebort matrix ode, time dependent coefficients MATLAB Answers — New Questions
Plotting two x axis in one plot, but both at the bottom.
Hi I am looking for a way to plot two x axis but both x-axis has to be in the bottom. Like shown here in the picture. The only thing I can find is where the two x-axis are on top and bottom of the plot, where I want them both on bottom.Hi I am looking for a way to plot two x axis but both x-axis has to be in the bottom. Like shown here in the picture. The only thing I can find is where the two x-axis are on top and bottom of the plot, where I want them both on bottom. Hi I am looking for a way to plot two x axis but both x-axis has to be in the bottom. Like shown here in the picture. The only thing I can find is where the two x-axis are on top and bottom of the plot, where I want them both on bottom. plot, multi axis MATLAB Answers — New Questions
Unexpected error referring pi_gene_mci_glnxa64
Receiving such error messages when starting a batch job on R2025a. However the job starts after about a minute.We don’t see such errors in older versions. Are there any major changes in R2025a that are causing these. How to remove/disable them
An unexpected error has occurred. To resolve this issue, contact <a href="https://www.mathworks.com/pi_gene_mci_glnxa64">Technical Support</a>.
An unexpected error has occurred. To resolve this issue, contact <a href="https://www.mathworks.com/pi_gene_mci">Technical Support</a>Receiving such error messages when starting a batch job on R2025a. However the job starts after about a minute.We don’t see such errors in older versions. Are there any major changes in R2025a that are causing these. How to remove/disable them
An unexpected error has occurred. To resolve this issue, contact <a href="https://www.mathworks.com/pi_gene_mci_glnxa64">Technical Support</a>.
An unexpected error has occurred. To resolve this issue, contact <a href="https://www.mathworks.com/pi_gene_mci">Technical Support</a> Receiving such error messages when starting a batch job on R2025a. However the job starts after about a minute.We don’t see such errors in older versions. Are there any major changes in R2025a that are causing these. How to remove/disable them
An unexpected error has occurred. To resolve this issue, contact <a href="https://www.mathworks.com/pi_gene_mci_glnxa64">Technical Support</a>.
An unexpected error has occurred. To resolve this issue, contact <a href="https://www.mathworks.com/pi_gene_mci">Technical Support</a> pi_gene_mci_glnxa64 MATLAB Answers — New Questions
symbolic substitution error and convert
syms x
series1(x)=sym(zeros(1));
series2(x)=sym(zeros(1));
U=zeros(1,2,’sym’);
syms x m z
alpha=15;
gamma=0.01;
U(1)=m;
U(2)=0;
A(1)=zeros(1,’sym’);
for k=1
U(k+2)=z;
A(1)=0;
for m=1:k
A(1)=A(1)+U(m)*(k-m+1)*(k-m+2)*U(k-m+3);
end
B=k*(k+1)*U(k+2)+alpha*A(1)-gamma*U(k)
D=simplify(solve(B,z))
U(k+2)=D
end
disp(U(3))
for k=1:3
series1(x)=simplify(series1(x)+U(k)*(power(x,k-1)));
end
series1
e1=subs(series1,x,1);
e=e1-1;
format long
accuracy=input(‘enter the accuracy’)
f=e(x)
g=inline(f)
g=inline(f)
a=input(‘enter the ist approximation=’)
b=input(‘enter the 2nd approximation=’)
fa=feval(g,a)
fb=feval(g,b)
while fa*fb>0
a=input(‘enter the ist approximation=’)
b=input(‘enter the 2nd approximation=’)
fa=feval(g,a)
fb=feval(g,b)
end
for i=1:50
c=(a+b)/2;
fc=feval(g,c);
disp([i a fa b fb c fc abs(b-a)])
if fc==accuracy
fprintf(‘the root of the equation is %f’,c)
break;
elseif abs(b-a)<=accuracy
fprintf(‘the root of the equation is %f’,c)
break;
elseif fa*fc<=0
b=c;
fb=fc;
else
a=c;
fa=fc;
end
end
fprintf(‘the value of c=%f’, c)
series2(x)=subs(series1,m,c)
toc
the synatx is correct but still the value of m is not substituted insyms x
series1(x)=sym(zeros(1));
series2(x)=sym(zeros(1));
U=zeros(1,2,’sym’);
syms x m z
alpha=15;
gamma=0.01;
U(1)=m;
U(2)=0;
A(1)=zeros(1,’sym’);
for k=1
U(k+2)=z;
A(1)=0;
for m=1:k
A(1)=A(1)+U(m)*(k-m+1)*(k-m+2)*U(k-m+3);
end
B=k*(k+1)*U(k+2)+alpha*A(1)-gamma*U(k)
D=simplify(solve(B,z))
U(k+2)=D
end
disp(U(3))
for k=1:3
series1(x)=simplify(series1(x)+U(k)*(power(x,k-1)));
end
series1
e1=subs(series1,x,1);
e=e1-1;
format long
accuracy=input(‘enter the accuracy’)
f=e(x)
g=inline(f)
g=inline(f)
a=input(‘enter the ist approximation=’)
b=input(‘enter the 2nd approximation=’)
fa=feval(g,a)
fb=feval(g,b)
while fa*fb>0
a=input(‘enter the ist approximation=’)
b=input(‘enter the 2nd approximation=’)
fa=feval(g,a)
fb=feval(g,b)
end
for i=1:50
c=(a+b)/2;
fc=feval(g,c);
disp([i a fa b fb c fc abs(b-a)])
if fc==accuracy
fprintf(‘the root of the equation is %f’,c)
break;
elseif abs(b-a)<=accuracy
fprintf(‘the root of the equation is %f’,c)
break;
elseif fa*fc<=0
b=c;
fb=fc;
else
a=c;
fa=fc;
end
end
fprintf(‘the value of c=%f’, c)
series2(x)=subs(series1,m,c)
toc
the synatx is correct but still the value of m is not substituted in syms x
series1(x)=sym(zeros(1));
series2(x)=sym(zeros(1));
U=zeros(1,2,’sym’);
syms x m z
alpha=15;
gamma=0.01;
U(1)=m;
U(2)=0;
A(1)=zeros(1,’sym’);
for k=1
U(k+2)=z;
A(1)=0;
for m=1:k
A(1)=A(1)+U(m)*(k-m+1)*(k-m+2)*U(k-m+3);
end
B=k*(k+1)*U(k+2)+alpha*A(1)-gamma*U(k)
D=simplify(solve(B,z))
U(k+2)=D
end
disp(U(3))
for k=1:3
series1(x)=simplify(series1(x)+U(k)*(power(x,k-1)));
end
series1
e1=subs(series1,x,1);
e=e1-1;
format long
accuracy=input(‘enter the accuracy’)
f=e(x)
g=inline(f)
g=inline(f)
a=input(‘enter the ist approximation=’)
b=input(‘enter the 2nd approximation=’)
fa=feval(g,a)
fb=feval(g,b)
while fa*fb>0
a=input(‘enter the ist approximation=’)
b=input(‘enter the 2nd approximation=’)
fa=feval(g,a)
fb=feval(g,b)
end
for i=1:50
c=(a+b)/2;
fc=feval(g,c);
disp([i a fa b fb c fc abs(b-a)])
if fc==accuracy
fprintf(‘the root of the equation is %f’,c)
break;
elseif abs(b-a)<=accuracy
fprintf(‘the root of the equation is %f’,c)
break;
elseif fa*fc<=0
b=c;
fb=fc;
else
a=c;
fa=fc;
end
end
fprintf(‘the value of c=%f’, c)
series2(x)=subs(series1,m,c)
toc
the synatx is correct but still the value of m is not substituted in mbolic computation MATLAB Answers — New Questions
Range-Doppler tracking radar against coherent ecm techniques
Hello everyone,
I aim to design a radar system with coherent tracking capability in MATLAB 2025b. As a representative scenario, I consider four aircraft approaching and receding from the radar. Among these four aircraft, two apply coherent electronic countermeasure (ECM) techniques against the radar in both the range and Doppler domains, while the remaining two do not perform coherent jamming with respect to the range–Doppler relationship.
The main objective is for the designed radar to first detect all four aircraft using its own transmitted and received signals, and to generate a target detection plot in the amplitude–time domain. Subsequently, the aircraft apply the specified jamming techniques against the radar. As a result of the jamming, the radar’s immunity to interference in terms of coherent tracking performance is evaluated, and the resulting tracking errors are presented as percentage error plots.
As an illustrative case, one of the aircraft applying coherent jamming may successfully deceive the radar, whereas the other may continue to be tracked with a certain level of tracking error. The remaining two aircraft, which do not employ coherent jamming, are expected to be identified by the radar as jamming sources, allowing the radar to reject the interference and continue tracking the true targets.
I have already developed a MATLAB code for this purpose; however, I have not been able to obtain the desired results. My primary goal is to apply different jamming parameter configurations against the radar, analyze the resulting tracking error rates, and investigate how these parameters affect the radar’s ability to maintain target tracking.
I would greatly appreciate any guidance or suggestions on how to approach this problem more effectively.Hello everyone,
I aim to design a radar system with coherent tracking capability in MATLAB 2025b. As a representative scenario, I consider four aircraft approaching and receding from the radar. Among these four aircraft, two apply coherent electronic countermeasure (ECM) techniques against the radar in both the range and Doppler domains, while the remaining two do not perform coherent jamming with respect to the range–Doppler relationship.
The main objective is for the designed radar to first detect all four aircraft using its own transmitted and received signals, and to generate a target detection plot in the amplitude–time domain. Subsequently, the aircraft apply the specified jamming techniques against the radar. As a result of the jamming, the radar’s immunity to interference in terms of coherent tracking performance is evaluated, and the resulting tracking errors are presented as percentage error plots.
As an illustrative case, one of the aircraft applying coherent jamming may successfully deceive the radar, whereas the other may continue to be tracked with a certain level of tracking error. The remaining two aircraft, which do not employ coherent jamming, are expected to be identified by the radar as jamming sources, allowing the radar to reject the interference and continue tracking the true targets.
I have already developed a MATLAB code for this purpose; however, I have not been able to obtain the desired results. My primary goal is to apply different jamming parameter configurations against the radar, analyze the resulting tracking error rates, and investigate how these parameters affect the radar’s ability to maintain target tracking.
I would greatly appreciate any guidance or suggestions on how to approach this problem more effectively. Hello everyone,
I aim to design a radar system with coherent tracking capability in MATLAB 2025b. As a representative scenario, I consider four aircraft approaching and receding from the radar. Among these four aircraft, two apply coherent electronic countermeasure (ECM) techniques against the radar in both the range and Doppler domains, while the remaining two do not perform coherent jamming with respect to the range–Doppler relationship.
The main objective is for the designed radar to first detect all four aircraft using its own transmitted and received signals, and to generate a target detection plot in the amplitude–time domain. Subsequently, the aircraft apply the specified jamming techniques against the radar. As a result of the jamming, the radar’s immunity to interference in terms of coherent tracking performance is evaluated, and the resulting tracking errors are presented as percentage error plots.
As an illustrative case, one of the aircraft applying coherent jamming may successfully deceive the radar, whereas the other may continue to be tracked with a certain level of tracking error. The remaining two aircraft, which do not employ coherent jamming, are expected to be identified by the radar as jamming sources, allowing the radar to reject the interference and continue tracking the true targets.
I have already developed a MATLAB code for this purpose; however, I have not been able to obtain the desired results. My primary goal is to apply different jamming parameter configurations against the radar, analyze the resulting tracking error rates, and investigate how these parameters affect the radar’s ability to maintain target tracking.
I would greatly appreciate any guidance or suggestions on how to approach this problem more effectively. radar, range-doppler, coherent tracking radar, ecm, range doppler coherency, coherent, kalman MATLAB Answers — New Questions
functionSignatures.json : specify filepath
I like the idea of Matlab function signatures.
How can I specify the file path to search in?
For example, I have a function LoadInputFile , and I want this to default to the directory C://Folder1/Folder2/Folder3, how do I do so? Can I do so both absolute and relative paths?
I have tried a lot of different attempts, all unfortunately failed.
keywords type / basePath , both failed
absolute, relative paths
forward or backward slashes
single or double slashes
Thank you
https://www.mathworks.com/help/matlab/matlab_prog/customize-code-suggestions-and-completions.html
"LoadInputFile": {
"_description": "Load a text input file",
"inputs": [
{
"name": "filename",
"kind": "optional",
"type": "filepath=Folder2/Folder3/*.txt",
"basePath": "C://Folder1/Folder2/Folder3/",
"purpose": "some file is now loaded"
}
]
},I like the idea of Matlab function signatures.
How can I specify the file path to search in?
For example, I have a function LoadInputFile , and I want this to default to the directory C://Folder1/Folder2/Folder3, how do I do so? Can I do so both absolute and relative paths?
I have tried a lot of different attempts, all unfortunately failed.
keywords type / basePath , both failed
absolute, relative paths
forward or backward slashes
single or double slashes
Thank you
https://www.mathworks.com/help/matlab/matlab_prog/customize-code-suggestions-and-completions.html
"LoadInputFile": {
"_description": "Load a text input file",
"inputs": [
{
"name": "filename",
"kind": "optional",
"type": "filepath=Folder2/Folder3/*.txt",
"basePath": "C://Folder1/Folder2/Folder3/",
"purpose": "some file is now loaded"
}
]
}, I like the idea of Matlab function signatures.
How can I specify the file path to search in?
For example, I have a function LoadInputFile , and I want this to default to the directory C://Folder1/Folder2/Folder3, how do I do so? Can I do so both absolute and relative paths?
I have tried a lot of different attempts, all unfortunately failed.
keywords type / basePath , both failed
absolute, relative paths
forward or backward slashes
single or double slashes
Thank you
https://www.mathworks.com/help/matlab/matlab_prog/customize-code-suggestions-and-completions.html
"LoadInputFile": {
"_description": "Load a text input file",
"inputs": [
{
"name": "filename",
"kind": "optional",
"type": "filepath=Folder2/Folder3/*.txt",
"basePath": "C://Folder1/Folder2/Folder3/",
"purpose": "some file is now loaded"
}
]
}, matlab, signature, functionsignatures MATLAB Answers — New Questions
CONVERT FREQUENCY DOMAIN DATA TO TIME DOMAIIN
i have .csv file which contains frequency (Hz), magnitude(dB), phase(degrees). these data are range from 20hz to 2000000Hz(2MHz) and these are non uniformly spaced. i want to convert these data in time domain. i have done ifft code for that. is it correct ?
% Load CSV data
data = readmatrix(filenames{file_idx});
% Extract columns (adjust indices if your CSV has different column order)
freq = data(:, 1); % Frequency in Hz
mag_dB = data(:, 2); % Magnitude in dB
phase_deg = data(:, 3); % Phase in degrees
% Convert to linear magnitude and radians
mag_linear = 10.^(mag_dB/20);
phase_rad = deg2rad(phase_deg);
% Store original data
results{file_idx}.freq_orig = freq;
results{file_idx}.mag_dB_orig = mag_dB;
results{file_idx}.phase_deg_orig = phase_deg;
% Determine frequency range
f_min = min(freq);
f_max = max(freq);
% Use power of 2 for efficient FFT
N_fft = 2^nextpow2(length(freq) * 8);
% Calculate number of positive frequency bins
n_pos = floor(N_fft/2) + 1;
% Create frequency vector for FFT bins
freq_fft_positive = linspace(f_min, f_max, n_pos);
% Interpolate magnitude and phase
mag_fft = interp1(freq, mag_linear, freq_fft_positive, ‘pchip’, ‘extrap’);
phase_fft = interp1(freq, (phase_rad), freq_fft_positive, ‘pchip’, ‘extrap’);
H_fft_pos = mag_fft .* exp(1j * phase_fft);
% Initialize full spectrum
H_full = zeros(1, N_fft);
% Place positive frequencies (DC to Nyquist)
H_full(1:n_pos) = H_fft_pos;
% Mirror for negative frequencies (conjugate symmetry)
if mod(N_fft, 2) == 0
H_full(n_pos+1:N_fft) = conj(H_fft_pos(end-1:-1:2));
else
H_full(n_pos+1:N_fft) = conj(H_fft_pos(end:-1:2));
end
% Perform IFFT
h_time = ifft(H_full, ‘symmetric’);
% Create time vector
fs = 2 * f_max;
dt = 1 / fs;
t = (0:N_fft-1) * dt;i have .csv file which contains frequency (Hz), magnitude(dB), phase(degrees). these data are range from 20hz to 2000000Hz(2MHz) and these are non uniformly spaced. i want to convert these data in time domain. i have done ifft code for that. is it correct ?
% Load CSV data
data = readmatrix(filenames{file_idx});
% Extract columns (adjust indices if your CSV has different column order)
freq = data(:, 1); % Frequency in Hz
mag_dB = data(:, 2); % Magnitude in dB
phase_deg = data(:, 3); % Phase in degrees
% Convert to linear magnitude and radians
mag_linear = 10.^(mag_dB/20);
phase_rad = deg2rad(phase_deg);
% Store original data
results{file_idx}.freq_orig = freq;
results{file_idx}.mag_dB_orig = mag_dB;
results{file_idx}.phase_deg_orig = phase_deg;
% Determine frequency range
f_min = min(freq);
f_max = max(freq);
% Use power of 2 for efficient FFT
N_fft = 2^nextpow2(length(freq) * 8);
% Calculate number of positive frequency bins
n_pos = floor(N_fft/2) + 1;
% Create frequency vector for FFT bins
freq_fft_positive = linspace(f_min, f_max, n_pos);
% Interpolate magnitude and phase
mag_fft = interp1(freq, mag_linear, freq_fft_positive, ‘pchip’, ‘extrap’);
phase_fft = interp1(freq, (phase_rad), freq_fft_positive, ‘pchip’, ‘extrap’);
H_fft_pos = mag_fft .* exp(1j * phase_fft);
% Initialize full spectrum
H_full = zeros(1, N_fft);
% Place positive frequencies (DC to Nyquist)
H_full(1:n_pos) = H_fft_pos;
% Mirror for negative frequencies (conjugate symmetry)
if mod(N_fft, 2) == 0
H_full(n_pos+1:N_fft) = conj(H_fft_pos(end-1:-1:2));
else
H_full(n_pos+1:N_fft) = conj(H_fft_pos(end:-1:2));
end
% Perform IFFT
h_time = ifft(H_full, ‘symmetric’);
% Create time vector
fs = 2 * f_max;
dt = 1 / fs;
t = (0:N_fft-1) * dt; i have .csv file which contains frequency (Hz), magnitude(dB), phase(degrees). these data are range from 20hz to 2000000Hz(2MHz) and these are non uniformly spaced. i want to convert these data in time domain. i have done ifft code for that. is it correct ?
% Load CSV data
data = readmatrix(filenames{file_idx});
% Extract columns (adjust indices if your CSV has different column order)
freq = data(:, 1); % Frequency in Hz
mag_dB = data(:, 2); % Magnitude in dB
phase_deg = data(:, 3); % Phase in degrees
% Convert to linear magnitude and radians
mag_linear = 10.^(mag_dB/20);
phase_rad = deg2rad(phase_deg);
% Store original data
results{file_idx}.freq_orig = freq;
results{file_idx}.mag_dB_orig = mag_dB;
results{file_idx}.phase_deg_orig = phase_deg;
% Determine frequency range
f_min = min(freq);
f_max = max(freq);
% Use power of 2 for efficient FFT
N_fft = 2^nextpow2(length(freq) * 8);
% Calculate number of positive frequency bins
n_pos = floor(N_fft/2) + 1;
% Create frequency vector for FFT bins
freq_fft_positive = linspace(f_min, f_max, n_pos);
% Interpolate magnitude and phase
mag_fft = interp1(freq, mag_linear, freq_fft_positive, ‘pchip’, ‘extrap’);
phase_fft = interp1(freq, (phase_rad), freq_fft_positive, ‘pchip’, ‘extrap’);
H_fft_pos = mag_fft .* exp(1j * phase_fft);
% Initialize full spectrum
H_full = zeros(1, N_fft);
% Place positive frequencies (DC to Nyquist)
H_full(1:n_pos) = H_fft_pos;
% Mirror for negative frequencies (conjugate symmetry)
if mod(N_fft, 2) == 0
H_full(n_pos+1:N_fft) = conj(H_fft_pos(end-1:-1:2));
else
H_full(n_pos+1:N_fft) = conj(H_fft_pos(end:-1:2));
end
% Perform IFFT
h_time = ifft(H_full, ‘symmetric’);
% Create time vector
fs = 2 * f_max;
dt = 1 / fs;
t = (0:N_fft-1) * dt; ifft MATLAB Answers — New Questions
TextScatter implementation does not expose the indices it chose for display when ‘TextDensityPercentage’ is used
rng(10) % for reproducibility
n=100;
x = randn(n,1);
y = randn(n,1);
seq = (1:n)’;
h=textscatter(x,y,string(seq), …
‘TextDensityPercentage’,20, …
‘DisplayName’,’text’)
I want to know the indexes of the unis which have been displayed by function textscatter from handle h (in this case 1, 4 and 22) or from findall, ancestor, ….
I wanted to use textscatter with geoaxes but it seems it is not supported. Therefore the idea is to project the map on cartesian axes and then retrieve the indexes of displayed units from textscatter with ‘Name’, Value ‘TextDensityPercentage’,20, but I need to know the indexes.
Any other idea is welcome (apart from "implementing my own label-selection rule" which labels points if they are not closer than a threshold) .
Copilot and ChatGPT claim it is not possible but I want to have your opinion.
Thank you in advancerng(10) % for reproducibility
n=100;
x = randn(n,1);
y = randn(n,1);
seq = (1:n)’;
h=textscatter(x,y,string(seq), …
‘TextDensityPercentage’,20, …
‘DisplayName’,’text’)
I want to know the indexes of the unis which have been displayed by function textscatter from handle h (in this case 1, 4 and 22) or from findall, ancestor, ….
I wanted to use textscatter with geoaxes but it seems it is not supported. Therefore the idea is to project the map on cartesian axes and then retrieve the indexes of displayed units from textscatter with ‘Name’, Value ‘TextDensityPercentage’,20, but I need to know the indexes.
Any other idea is welcome (apart from "implementing my own label-selection rule" which labels points if they are not closer than a threshold) .
Copilot and ChatGPT claim it is not possible but I want to have your opinion.
Thank you in advance rng(10) % for reproducibility
n=100;
x = randn(n,1);
y = randn(n,1);
seq = (1:n)’;
h=textscatter(x,y,string(seq), …
‘TextDensityPercentage’,20, …
‘DisplayName’,’text’)
I want to know the indexes of the unis which have been displayed by function textscatter from handle h (in this case 1, 4 and 22) or from findall, ancestor, ….
I wanted to use textscatter with geoaxes but it seems it is not supported. Therefore the idea is to project the map on cartesian axes and then retrieve the indexes of displayed units from textscatter with ‘Name’, Value ‘TextDensityPercentage’,20, but I need to know the indexes.
Any other idea is welcome (apart from "implementing my own label-selection rule" which labels points if they are not closer than a threshold) .
Copilot and ChatGPT claim it is not possible but I want to have your opinion.
Thank you in advance textscatter MATLAB Answers — New Questions
How adjust efficiency of chain drive block
How to adjust efficiency of a chain drive block and how to test it.How to adjust efficiency of a chain drive block and how to test it. How to adjust efficiency of a chain drive block and how to test it. simulink, simscape, simscape driveline, multibody MATLAB Answers — New Questions
launchpadXL F28379D interference between inputs of a same ADC
Hello,
============ Context
I’m using simulink with external mode to pilot a launchpadXL F28379D and I use a lot of ADC readings.
ADC_C is used to measure 2 differencial inputs (C_IN2/IN3 and C_IN4/IN5) <=> These measurements present no issue
ADC_B is used to measure 4 single ended-inputs (B2, B3, B4 and B5)
ADC_A is used to measure 4 single ended-inputs (A2, A3, A4 and A5)
My outputs are DAC-A, DAC-B and ePWM 1,2 and 3.
I’ve shared a model for ease of debugging : "Launchpad_Instanciation.slx".
============ Measurements
For the measurements I have the board by itsef and a DC power supply to test the PINs.
To confirm the proper operation of the ADC I input a voltage between the concerned PIN (+) and the board’s GND (-). The issue appears when I test the measurements done with ADC_A and ADC_B. See "InterferenceBetweenADC.png".
In ADC_A
when I input a voltage in A2, I have a input reading. The issue is that I also have a small reading in A3
when I input a voltage in A3, I have a input reading. The issue is that I also have a small reading in A4
when I input a voltage in A4, I have a input reading. The issue is that I also have a small reading in A5
when I input a voltage in A5, I have a input reading. The issue is that I also have a small reading in A2
In ADC_B I have the same issue
when I input a voltage in B2, I have a input reading. The issue is that I also have a small reading in B3
when I input a voltage in B3, I have a input reading. The issue is that I also have a small reading in B4
when I input a voltage in B4, I have a input reading. The issue is that I also have a small reading in B5
when I input a voltage in B5, I have a input reading. The issue is that I also have a small reading in B2
============ Question
Why does an input voltage on a ADC’s input would impact the "next" input of the same ADC?
I appreciate the time you took to read my issue and any help will be greatly appreciated.
Kind regards,Hello,
============ Context
I’m using simulink with external mode to pilot a launchpadXL F28379D and I use a lot of ADC readings.
ADC_C is used to measure 2 differencial inputs (C_IN2/IN3 and C_IN4/IN5) <=> These measurements present no issue
ADC_B is used to measure 4 single ended-inputs (B2, B3, B4 and B5)
ADC_A is used to measure 4 single ended-inputs (A2, A3, A4 and A5)
My outputs are DAC-A, DAC-B and ePWM 1,2 and 3.
I’ve shared a model for ease of debugging : "Launchpad_Instanciation.slx".
============ Measurements
For the measurements I have the board by itsef and a DC power supply to test the PINs.
To confirm the proper operation of the ADC I input a voltage between the concerned PIN (+) and the board’s GND (-). The issue appears when I test the measurements done with ADC_A and ADC_B. See "InterferenceBetweenADC.png".
In ADC_A
when I input a voltage in A2, I have a input reading. The issue is that I also have a small reading in A3
when I input a voltage in A3, I have a input reading. The issue is that I also have a small reading in A4
when I input a voltage in A4, I have a input reading. The issue is that I also have a small reading in A5
when I input a voltage in A5, I have a input reading. The issue is that I also have a small reading in A2
In ADC_B I have the same issue
when I input a voltage in B2, I have a input reading. The issue is that I also have a small reading in B3
when I input a voltage in B3, I have a input reading. The issue is that I also have a small reading in B4
when I input a voltage in B4, I have a input reading. The issue is that I also have a small reading in B5
when I input a voltage in B5, I have a input reading. The issue is that I also have a small reading in B2
============ Question
Why does an input voltage on a ADC’s input would impact the "next" input of the same ADC?
I appreciate the time you took to read my issue and any help will be greatly appreciated.
Kind regards, Hello,
============ Context
I’m using simulink with external mode to pilot a launchpadXL F28379D and I use a lot of ADC readings.
ADC_C is used to measure 2 differencial inputs (C_IN2/IN3 and C_IN4/IN5) <=> These measurements present no issue
ADC_B is used to measure 4 single ended-inputs (B2, B3, B4 and B5)
ADC_A is used to measure 4 single ended-inputs (A2, A3, A4 and A5)
My outputs are DAC-A, DAC-B and ePWM 1,2 and 3.
I’ve shared a model for ease of debugging : "Launchpad_Instanciation.slx".
============ Measurements
For the measurements I have the board by itsef and a DC power supply to test the PINs.
To confirm the proper operation of the ADC I input a voltage between the concerned PIN (+) and the board’s GND (-). The issue appears when I test the measurements done with ADC_A and ADC_B. See "InterferenceBetweenADC.png".
In ADC_A
when I input a voltage in A2, I have a input reading. The issue is that I also have a small reading in A3
when I input a voltage in A3, I have a input reading. The issue is that I also have a small reading in A4
when I input a voltage in A4, I have a input reading. The issue is that I also have a small reading in A5
when I input a voltage in A5, I have a input reading. The issue is that I also have a small reading in A2
In ADC_B I have the same issue
when I input a voltage in B2, I have a input reading. The issue is that I also have a small reading in B3
when I input a voltage in B3, I have a input reading. The issue is that I also have a small reading in B4
when I input a voltage in B4, I have a input reading. The issue is that I also have a small reading in B5
when I input a voltage in B5, I have a input reading. The issue is that I also have a small reading in B2
============ Question
Why does an input voltage on a ADC’s input would impact the "next" input of the same ADC?
I appreciate the time you took to read my issue and any help will be greatly appreciated.
Kind regards, f28379d, interference, adc inputs MATLAB Answers — New Questions
[aerospace toolbox] Does the satelliteScenario allow to add custom vectors?
I am developing a simple simulator for a university project with the aim of using the sun sensor and a star tracker to perform attitude determination. I am using a method relying on two external reference vectors in the inertial frame and in the body frame, implemented on Simulink and using the aerospace toolbox on Matlab to visualize the satellite. Is it possible to add custom vectors (e.g. in the ECI frame that point to the Sun and to a known star) to the satellite scenario? Do you suggest, as an alternative, to do it in another way?
Thanks in advance.I am developing a simple simulator for a university project with the aim of using the sun sensor and a star tracker to perform attitude determination. I am using a method relying on two external reference vectors in the inertial frame and in the body frame, implemented on Simulink and using the aerospace toolbox on Matlab to visualize the satellite. Is it possible to add custom vectors (e.g. in the ECI frame that point to the Sun and to a known star) to the satellite scenario? Do you suggest, as an alternative, to do it in another way?
Thanks in advance. I am developing a simple simulator for a university project with the aim of using the sun sensor and a star tracker to perform attitude determination. I am using a method relying on two external reference vectors in the inertial frame and in the body frame, implemented on Simulink and using the aerospace toolbox on Matlab to visualize the satellite. Is it possible to add custom vectors (e.g. in the ECI frame that point to the Sun and to a known star) to the satellite scenario? Do you suggest, as an alternative, to do it in another way?
Thanks in advance. vectors, simulink MATLAB Answers — New Questions
How do I add summation to a symbolic equation in order to integrate across set bounds?
The goal is to integrate from a set number to infinity (or some larger number) for function GF-PDF, which is a lognormal distribution with a geometric mean GF (GFg) and spread (sigma). Each GF-PDF is specifically collected for/interpolated to a dry size (Dp) and the other distribution parameters (GFg, sigma) are fit to the data through a data inversion algorithm. For one mode in the distribution, the equation is:
The issue is that sometime there are multiple modes within one GF-PDF and so the equation becomes:
…where for each mode (k), there is a number fraction (f0,k), geometric mean GF (GFg,k), and spread (sigmak) that described each mode and the sum of all the modes is the distribution. The f0, GFg, and sigma are different for all the modes making up the GF-PDF.
The integration I’m trying to do is:
…where I can integrate above a specific value for GFc (that was calculated for a chosen Sc at a chosen Dp) and get the area/fraction of particles above that GFc since the GF-PDF is at unity. I know how to use trapz(), but integration as a whole has been confusing me. From what I have been reading, I need to input the GF-PDF as a symbolic function, but I’m uncertain on how to add the summation to the symbolic equation in the cases where 2 or more modes are present. I could create the single mode equation as a symbolic function, but I’m again not sure how to integrate across the summation of the equations.
Below are functions I created to create the GF-PDFs, but I know that they aren’t symbolic. I add some sample parameters and the range of GF too.
binsp = (exp(1/60)*0.7)-0.7; % logspace for GF range
gf_rng = 0.90:binsp:2.5; % range of GF in log-space for the GF-PDFs
% Example values for a bimodal (k = 2) GF-PDF:
g0s = [1.1,1.5]; % geometric mean GF
sig0s = [1.04,1.05]; % spread in GF
f0s = [0.4,0.6]; % number fraction of mode
% GF-PDF for GF range
gfpdf = GFPDFf(gf_rng,g0s,sig0s,f0s); % uses functions at bottom
% I could make a symbolic function for just the one lognormal mode, I’m not
% sure how to sum them both in it though…
gf_rng = sym(‘gf_rng’);
g0s = sym(‘g0s’);
sig0s = sym(‘sig0s’);
f0s = sym(‘f0s’);
GFPDF_1m = (f0s./sqrt(2.*pi.*(log(sig0s)).^2)).*exp((-0.5).*((log(gf_rng./g0s).^2)./((log(sig0s)).^2)))
% I’m uncertain where to go from here if I want to integrate from GFc to
% infinity for the bimodal curve…
GFc = 1.3; % random GFc value
% Functions for GF-PDF creations
% Calculating the GFPDF:
function npdf = GFPDFf(gf_rng,g0s,sig0s,f0s)
if width(g0s)>1
for i = 1:width(g0s)
pdf(i,:) = lnPDF(gf_rng,g0s(1,i),sig0s(1,i),f0s(1,i));
end
npdf = sum(pdf);
else
npdf = lnPDF(gf_rng,g0s,sig0s,f0s);
end
end
% Plotting Lognormal Modes:
function pdf = lnPDF(gf_rng,g0s,sig0s,f0s)
pdf = (f0s./sqrt(2.*pi.*(log(sig0s)).^2)).*exp((-0.5).*((log(gf_rng./g0s).^2)./((log(sig0s)).^2)));
endThe goal is to integrate from a set number to infinity (or some larger number) for function GF-PDF, which is a lognormal distribution with a geometric mean GF (GFg) and spread (sigma). Each GF-PDF is specifically collected for/interpolated to a dry size (Dp) and the other distribution parameters (GFg, sigma) are fit to the data through a data inversion algorithm. For one mode in the distribution, the equation is:
The issue is that sometime there are multiple modes within one GF-PDF and so the equation becomes:
…where for each mode (k), there is a number fraction (f0,k), geometric mean GF (GFg,k), and spread (sigmak) that described each mode and the sum of all the modes is the distribution. The f0, GFg, and sigma are different for all the modes making up the GF-PDF.
The integration I’m trying to do is:
…where I can integrate above a specific value for GFc (that was calculated for a chosen Sc at a chosen Dp) and get the area/fraction of particles above that GFc since the GF-PDF is at unity. I know how to use trapz(), but integration as a whole has been confusing me. From what I have been reading, I need to input the GF-PDF as a symbolic function, but I’m uncertain on how to add the summation to the symbolic equation in the cases where 2 or more modes are present. I could create the single mode equation as a symbolic function, but I’m again not sure how to integrate across the summation of the equations.
Below are functions I created to create the GF-PDFs, but I know that they aren’t symbolic. I add some sample parameters and the range of GF too.
binsp = (exp(1/60)*0.7)-0.7; % logspace for GF range
gf_rng = 0.90:binsp:2.5; % range of GF in log-space for the GF-PDFs
% Example values for a bimodal (k = 2) GF-PDF:
g0s = [1.1,1.5]; % geometric mean GF
sig0s = [1.04,1.05]; % spread in GF
f0s = [0.4,0.6]; % number fraction of mode
% GF-PDF for GF range
gfpdf = GFPDFf(gf_rng,g0s,sig0s,f0s); % uses functions at bottom
% I could make a symbolic function for just the one lognormal mode, I’m not
% sure how to sum them both in it though…
gf_rng = sym(‘gf_rng’);
g0s = sym(‘g0s’);
sig0s = sym(‘sig0s’);
f0s = sym(‘f0s’);
GFPDF_1m = (f0s./sqrt(2.*pi.*(log(sig0s)).^2)).*exp((-0.5).*((log(gf_rng./g0s).^2)./((log(sig0s)).^2)))
% I’m uncertain where to go from here if I want to integrate from GFc to
% infinity for the bimodal curve…
GFc = 1.3; % random GFc value
% Functions for GF-PDF creations
% Calculating the GFPDF:
function npdf = GFPDFf(gf_rng,g0s,sig0s,f0s)
if width(g0s)>1
for i = 1:width(g0s)
pdf(i,:) = lnPDF(gf_rng,g0s(1,i),sig0s(1,i),f0s(1,i));
end
npdf = sum(pdf);
else
npdf = lnPDF(gf_rng,g0s,sig0s,f0s);
end
end
% Plotting Lognormal Modes:
function pdf = lnPDF(gf_rng,g0s,sig0s,f0s)
pdf = (f0s./sqrt(2.*pi.*(log(sig0s)).^2)).*exp((-0.5).*((log(gf_rng./g0s).^2)./((log(sig0s)).^2)));
end The goal is to integrate from a set number to infinity (or some larger number) for function GF-PDF, which is a lognormal distribution with a geometric mean GF (GFg) and spread (sigma). Each GF-PDF is specifically collected for/interpolated to a dry size (Dp) and the other distribution parameters (GFg, sigma) are fit to the data through a data inversion algorithm. For one mode in the distribution, the equation is:
The issue is that sometime there are multiple modes within one GF-PDF and so the equation becomes:
…where for each mode (k), there is a number fraction (f0,k), geometric mean GF (GFg,k), and spread (sigmak) that described each mode and the sum of all the modes is the distribution. The f0, GFg, and sigma are different for all the modes making up the GF-PDF.
The integration I’m trying to do is:
…where I can integrate above a specific value for GFc (that was calculated for a chosen Sc at a chosen Dp) and get the area/fraction of particles above that GFc since the GF-PDF is at unity. I know how to use trapz(), but integration as a whole has been confusing me. From what I have been reading, I need to input the GF-PDF as a symbolic function, but I’m uncertain on how to add the summation to the symbolic equation in the cases where 2 or more modes are present. I could create the single mode equation as a symbolic function, but I’m again not sure how to integrate across the summation of the equations.
Below are functions I created to create the GF-PDFs, but I know that they aren’t symbolic. I add some sample parameters and the range of GF too.
binsp = (exp(1/60)*0.7)-0.7; % logspace for GF range
gf_rng = 0.90:binsp:2.5; % range of GF in log-space for the GF-PDFs
% Example values for a bimodal (k = 2) GF-PDF:
g0s = [1.1,1.5]; % geometric mean GF
sig0s = [1.04,1.05]; % spread in GF
f0s = [0.4,0.6]; % number fraction of mode
% GF-PDF for GF range
gfpdf = GFPDFf(gf_rng,g0s,sig0s,f0s); % uses functions at bottom
% I could make a symbolic function for just the one lognormal mode, I’m not
% sure how to sum them both in it though…
gf_rng = sym(‘gf_rng’);
g0s = sym(‘g0s’);
sig0s = sym(‘sig0s’);
f0s = sym(‘f0s’);
GFPDF_1m = (f0s./sqrt(2.*pi.*(log(sig0s)).^2)).*exp((-0.5).*((log(gf_rng./g0s).^2)./((log(sig0s)).^2)))
% I’m uncertain where to go from here if I want to integrate from GFc to
% infinity for the bimodal curve…
GFc = 1.3; % random GFc value
% Functions for GF-PDF creations
% Calculating the GFPDF:
function npdf = GFPDFf(gf_rng,g0s,sig0s,f0s)
if width(g0s)>1
for i = 1:width(g0s)
pdf(i,:) = lnPDF(gf_rng,g0s(1,i),sig0s(1,i),f0s(1,i));
end
npdf = sum(pdf);
else
npdf = lnPDF(gf_rng,g0s,sig0s,f0s);
end
end
% Plotting Lognormal Modes:
function pdf = lnPDF(gf_rng,g0s,sig0s,f0s)
pdf = (f0s./sqrt(2.*pi.*(log(sig0s)).^2)).*exp((-0.5).*((log(gf_rng./g0s).^2)./((log(sig0s)).^2)));
end sum, integration, symbolic, pdf MATLAB Answers — New Questions
AUTOSAR Blockset – ERROR: Expected application type to be mapped
I am working on an AUTOSAR architecture using Simulink.
I can compile it without problems, but whenever I perform an action: adding a constant to the dictionary, changing the dimension of a data type or even executing the command
archDict = Simulink.dictionary.archdata.open(‘BmsDataDictionary.sldd’)
I get the error:
The call to autosar_make_rtw_hook, during the after_tlc hook generated the following error:
Expected application type to be mapped
The build process will terminate as a result.
Caused by:
Expected application type to be mapped
I have modified the dictionary in the past, I can’t figure out what is happeningI am working on an AUTOSAR architecture using Simulink.
I can compile it without problems, but whenever I perform an action: adding a constant to the dictionary, changing the dimension of a data type or even executing the command
archDict = Simulink.dictionary.archdata.open(‘BmsDataDictionary.sldd’)
I get the error:
The call to autosar_make_rtw_hook, during the after_tlc hook generated the following error:
Expected application type to be mapped
The build process will terminate as a result.
Caused by:
Expected application type to be mapped
I have modified the dictionary in the past, I can’t figure out what is happening I am working on an AUTOSAR architecture using Simulink.
I can compile it without problems, but whenever I perform an action: adding a constant to the dictionary, changing the dimension of a data type or even executing the command
archDict = Simulink.dictionary.archdata.open(‘BmsDataDictionary.sldd’)
I get the error:
The call to autosar_make_rtw_hook, during the after_tlc hook generated the following error:
Expected application type to be mapped
The build process will terminate as a result.
Caused by:
Expected application type to be mapped
I have modified the dictionary in the past, I can’t figure out what is happening autosar, autosar blockset, simulink, software architecture, composition, dictionary MATLAB Answers — New Questions









