Month: September 2024
Microsoft Trustworthy AI
Today we launched the Microsoft Trustworthy AI initiative building from Microsoft’s AI leadership in responsible AI to include the full set of commitments and capabilities we offer across Security, Privacy, and Safety. We announced this comprehensive initiative at the kickoff to our FY25 AI Tour with Satya Nadella.
Learn more product capabilities that will further enhance the security, safety, and privacy of AI systems and help customers use AI responsibly in this blog post.
Microsoft Trustworthy AI: Unlocking human potential starts with trust – The Official Microsoft Blog
Microsoft Tech Community – Latest Blogs –Read More
how to generate correct logical mask of the size of shape file?
i am using following code to generate logical mask
function croppedimg = cropimage(data, R, shapefile)
% Load the shapefile and retrieve its info
S = shaperead(shapefile);
% Shapefile projections
info = shapeinfo(shapefile);
crs = info.CoordinateReferenceSystem;
[S.lon,S.lat] = projinv(crs,S.X,S.Y);
% read and reproject image file
p = R.ProjectedCRS;
[x,y] = worldGrid(R);
[lon,lat] = projinv(p,x,y);
% Create a logical mask
% Approach 1: Using ‘inpolygon’ function
xq = lon(:);
yq = lat(:);
in = inpolygon(xq,yq,S.lon,S.lat);
logical_mask = reshape(in,size(lon));
% Debugging: Display the logical mask summary
disp([‘Total number of pixels inside polygon: ‘, num2str(numel(logical_mask))]);
disp([‘Total number of pixels inside image: ‘, num2str(numel(data))]);
However it is showing the
Total number of pixels inside polygon: 16982229
Total number of pixels inside image: 16982229
please suggest me how to create correct logical mask of the size of shape file.
kuldeepi am using following code to generate logical mask
function croppedimg = cropimage(data, R, shapefile)
% Load the shapefile and retrieve its info
S = shaperead(shapefile);
% Shapefile projections
info = shapeinfo(shapefile);
crs = info.CoordinateReferenceSystem;
[S.lon,S.lat] = projinv(crs,S.X,S.Y);
% read and reproject image file
p = R.ProjectedCRS;
[x,y] = worldGrid(R);
[lon,lat] = projinv(p,x,y);
% Create a logical mask
% Approach 1: Using ‘inpolygon’ function
xq = lon(:);
yq = lat(:);
in = inpolygon(xq,yq,S.lon,S.lat);
logical_mask = reshape(in,size(lon));
% Debugging: Display the logical mask summary
disp([‘Total number of pixels inside polygon: ‘, num2str(numel(logical_mask))]);
disp([‘Total number of pixels inside image: ‘, num2str(numel(data))]);
However it is showing the
Total number of pixels inside polygon: 16982229
Total number of pixels inside image: 16982229
please suggest me how to create correct logical mask of the size of shape file.
kuldeep i am using following code to generate logical mask
function croppedimg = cropimage(data, R, shapefile)
% Load the shapefile and retrieve its info
S = shaperead(shapefile);
% Shapefile projections
info = shapeinfo(shapefile);
crs = info.CoordinateReferenceSystem;
[S.lon,S.lat] = projinv(crs,S.X,S.Y);
% read and reproject image file
p = R.ProjectedCRS;
[x,y] = worldGrid(R);
[lon,lat] = projinv(p,x,y);
% Create a logical mask
% Approach 1: Using ‘inpolygon’ function
xq = lon(:);
yq = lat(:);
in = inpolygon(xq,yq,S.lon,S.lat);
logical_mask = reshape(in,size(lon));
% Debugging: Display the logical mask summary
disp([‘Total number of pixels inside polygon: ‘, num2str(numel(logical_mask))]);
disp([‘Total number of pixels inside image: ‘, num2str(numel(data))]);
However it is showing the
Total number of pixels inside polygon: 16982229
Total number of pixels inside image: 16982229
please suggest me how to create correct logical mask of the size of shape file.
kuldeep how to generate correct logical mask ? MATLAB Answers — New Questions
Simulink filter using frequency response transfer function
Hi,
My main problem is this: I’m building a fiber optical communication system using simulink.
As a source, I use a bernoulli generator, then this signal runs to a low pass filter and the exit is the signal equivalent to a signal that comes off a led, so the emission part is done.
The problems begins at the transmission channel. I want to do a filter that simulates the dispersion effect in the fiber (only chromatic dispersion), but I don’t know how. I only have a transfer functions like exp(-j*alpha*f.^2) and I don’t know what to do with this. What’s the right procedure to implement this kind of t.f. in a analog filter at the simulink?
Any help is welcome.
Kind regardsHi,
My main problem is this: I’m building a fiber optical communication system using simulink.
As a source, I use a bernoulli generator, then this signal runs to a low pass filter and the exit is the signal equivalent to a signal that comes off a led, so the emission part is done.
The problems begins at the transmission channel. I want to do a filter that simulates the dispersion effect in the fiber (only chromatic dispersion), but I don’t know how. I only have a transfer functions like exp(-j*alpha*f.^2) and I don’t know what to do with this. What’s the right procedure to implement this kind of t.f. in a analog filter at the simulink?
Any help is welcome.
Kind regards Hi,
My main problem is this: I’m building a fiber optical communication system using simulink.
As a source, I use a bernoulli generator, then this signal runs to a low pass filter and the exit is the signal equivalent to a signal that comes off a led, so the emission part is done.
The problems begins at the transmission channel. I want to do a filter that simulates the dispersion effect in the fiber (only chromatic dispersion), but I don’t know how. I only have a transfer functions like exp(-j*alpha*f.^2) and I don’t know what to do with this. What’s the right procedure to implement this kind of t.f. in a analog filter at the simulink?
Any help is welcome.
Kind regards simulink, optical dispersion MATLAB Answers — New Questions
Why does App Designer include the full file path when packaging external helper functions?
I am trying to create a GUI for some existing code I wrote using the MATLAB App Designer. The app relies on some external helper functions that I wrote in MATLAB program files and they are correctly identified as necessary to include; however, when packaged it includes the entire file path of the matlab function files within the installed package. This means that after installing the app, for example, tallySum.m ends up stored in "/Users/rhysg/Library/Application Support/MathWorks/MATLAB Add-Ons/Apps/NNB_GUI/Users/rhysg/Documents/YPGRA/TIRF_ProcessingCode/tallySum.m" instead of just placing it in "/Users/rhysg/Library/Application Support/MathWorks/MATLAB Add-Ons/Apps/NNB_GUI/tallySum.m"
This doesn’t cause functional problems but it does not seem intended and I was wondering if it could be avoided. Other than copying all the functions directly into the app is there a way to fix this? Is there a reason it functions in this way? Is there somewhere else to look for information on this?
Thanks in advance.I am trying to create a GUI for some existing code I wrote using the MATLAB App Designer. The app relies on some external helper functions that I wrote in MATLAB program files and they are correctly identified as necessary to include; however, when packaged it includes the entire file path of the matlab function files within the installed package. This means that after installing the app, for example, tallySum.m ends up stored in "/Users/rhysg/Library/Application Support/MathWorks/MATLAB Add-Ons/Apps/NNB_GUI/Users/rhysg/Documents/YPGRA/TIRF_ProcessingCode/tallySum.m" instead of just placing it in "/Users/rhysg/Library/Application Support/MathWorks/MATLAB Add-Ons/Apps/NNB_GUI/tallySum.m"
This doesn’t cause functional problems but it does not seem intended and I was wondering if it could be avoided. Other than copying all the functions directly into the app is there a way to fix this? Is there a reason it functions in this way? Is there somewhere else to look for information on this?
Thanks in advance. I am trying to create a GUI for some existing code I wrote using the MATLAB App Designer. The app relies on some external helper functions that I wrote in MATLAB program files and they are correctly identified as necessary to include; however, when packaged it includes the entire file path of the matlab function files within the installed package. This means that after installing the app, for example, tallySum.m ends up stored in "/Users/rhysg/Library/Application Support/MathWorks/MATLAB Add-Ons/Apps/NNB_GUI/Users/rhysg/Documents/YPGRA/TIRF_ProcessingCode/tallySum.m" instead of just placing it in "/Users/rhysg/Library/Application Support/MathWorks/MATLAB Add-Ons/Apps/NNB_GUI/tallySum.m"
This doesn’t cause functional problems but it does not seem intended and I was wondering if it could be avoided. Other than copying all the functions directly into the app is there a way to fix this? Is there a reason it functions in this way? Is there somewhere else to look for information on this?
Thanks in advance. app designer MATLAB Answers — New Questions
How to fix this error “Error encountered while parsing data”?
I have an MS SQL server installation which is an Azure Synapse SQL server. The Azure database is a copy of an original database. I have confirmed the field Shiptable.mydate is in Azure SQL database. I’m using Power BI from July 2024 to read the data but this seems like an SQL Server error. I’m not the SQL Server or Azure admin though.
I sometimes look at a date field and grab records from the last N days, like last 60 days. This formula works on all other date fields on other tables: WHERE (mydate >= DATEADD(day, -50, GETDATE()) )
But it doesn’t work on a date field Shiptable.mydate. When I do this
WHERE (mydate >= DATEADD(MONTH, -13, CAST(GETDATE() AS DATE)))
on Shiptable I get this error:
DataSource.Error: Microsoft SQL: Error encountered while parsing data: ‘Inserting value to batch for column type DATETIME2 failed. Invalid argument provided.’.
The field type, seen via SSMS, is indeed datetime2.
EDIT: Running the query in SSMS with the WHERE clause above also fails with the same error. It takes over 2 minutes to fail.
Any idea how to fix this?
Thank you.
I have an MS SQL server installation which is an Azure Synapse SQL server. The Azure database is a copy of an original database. I have confirmed the field Shiptable.mydate is in Azure SQL database. I’m using Power BI from July 2024 to read the data but this seems like an SQL Server error. I’m not the SQL Server or Azure admin though. I sometimes look at a date field and grab records from the last N days, like last 60 days. This formula works on all other date fields on other tables: WHERE (mydate >= DATEADD(day, -50, GETDATE()) ) But it doesn’t work on a date field Shiptable.mydate. When I do this WHERE (mydate >= DATEADD(MONTH, -13, CAST(GETDATE() AS DATE))) on Shiptable I get this error: DataSource.Error: Microsoft SQL: Error encountered while parsing data: ‘Inserting value to batch for column type DATETIME2 failed. Invalid argument provided.’. The field type, seen via SSMS, is indeed datetime2. EDIT: Running the query in SSMS with the WHERE clause above also fails with the same error. It takes over 2 minutes to fail. Any idea how to fix this? Thank you. Read More
Configure Microsoft Intune as code
Hi everyone.
We want to configure Intune configuration profiles for windows devices as code.
During discovering this I find only this page from Microsoft. Could this possible to separate dev/prod via security groups in same tenant? Where to find configuration profiles for windows devices as code?
Can everyone please give a link for more information.
Home (microsoft.github.io) all repositories. legacy repo as i understand not recomended
in new repo Here most for android & ios
Hi everyone. We want to configure Intune configuration profiles for windows devices as code.During discovering this I find only this page from Microsoft. Could this possible to separate dev/prod via security groups in same tenant? Where to find configuration profiles for windows devices as code?Can everyone please give a link for more information. Home (microsoft.github.io) all repositories. legacy repo as i understand not recomendedin new repo Here most for android & ios Read More
Impossible d’envoyer mes mails
Je reçois bien mes mails, mais impossible de les envoyer.
Je reçois bien mes mails, mais impossible de les envoyer. Read More
News to Know: Volume 1, Edition 10
Welcome to the Viva Glint newsletter. These recurring communications coincide with platform releases and enhancements to help you get the most out of the Viva Glint product. You can access the current newsletter and past editions on the Viva Glint blog.
Glint released its latest new features and enhancements on September 21, 2024. Scheduled monthly releases and regular maintenance are how we best serve our customers. Your dashboard provides date and timing details two or three days before releases. See our future release and downtime dates. Follow along with what features are ahead: Viva Glint product roadmap.
Microsoft 365 Copilot in Viva Glint
Copilot in Viva Glint summarizes non-English survey comments. As a Copilot user, you’ll still interact with Copilot in English, but Copilot now summarizes non-English comments left by survey respondents. To gather the best feedback, encourage your employees to leave comments in their native language. Microsoft 365 Copilot currently supports 27 languages.
Learn how Microsoft HR uses Viva and Microsoft 365 Copilot to empower employees. Using a human-centric approach, Microsoft HR rolled out Microsoft 365 Copilot to their global HR organization. Read the blog about how Microsoft uses Viva to communicate, encourage skilling and development, and measure success.
New on your Viva Glint platform
360 feedback programs are included with all Viva Glint purchases! 360 feedback programs provide multiple perspectives for gathering insights into an employee’s strengths and opportunities, with a long-term focus on improvement.
Read about the 360 feedback feature and watch a 2-minute video detailing the process
Share the Viva Glint 360 Subject Guide with your employees
Read the blog
Export reports to PDFs easily and quickly. Now the Export feature in all Glint reports includes a full PDF experience with quick generation time and capabilities such as search, markup, highlight, and preview. You can also select which report sections to export – an enhancement our customers have been requesting! Read about PDF enhancements.
Navigate between Viva apps with ease. The Viva App Bar is a shared Microsoft component that enables Viva suite users to seamlessly discover and navigate between Viva apps they have purchased on the web. Viva Glint is integrating with these shared navigation elements to allow our users to have consistent experiences across Viva apps.
Enhanced data controller experience. Microsoft Viva Glint Administrators can decide how survey responses are handled for deleted users and how Glint reuses employee IDs over time. Learn about new user data options in the General Settings feature and its impact on user deletion.
Collaborate in Viva Glint across multiple tenants. Use Microsoft 365’s multitenant organization (MTO) feature to let survey takers and dashboard users from multiple tenants access Glint on a home tenant. Get a holistic view of your organization’s employee sentiment, no matter how complex your tenant configuration.
Set up MTO for Viva Glint
Frequently asked questions
Read the blog
Upcoming events
Ask the Experts | October 15
Our next session in this popular series focuses on maximizing survey participation. Bring your questions! Register
AI Empowerment: How HR uses AI | October 22
Join us to hear how HR professionals use AI to work more effectively. This session covers key features, capabilities, and use cases for AI within the HR function, and recommendations on how it can help you be more effective in your role. Register
Events you may have missed
Catch up with recordings and recaps released since our last newsletter:
September 2024 Town Hall: Read about and watch the recording from our first Town Hall. So much has happened and there is so much more to come!
Viva Community Call on Workforce Transformation in the Era of AI: Our People Science and Marketing teams shared guidance on how to best use Viva to accelerate workforce transformation.
Think like a People Scientist: How Microsoft used Viva Insights to understand organizational change. Deep dive into how your organization can benefit from using the organizational network analysis feature
For your managers
Do your managers feel equipped to understand and act on feedback? Viva People Science conducted a study with 700+ US-based managers across a variety of industries to gain a deeper understanding of their experience, from common practices to barriers when it comes to acting on employee feedback. Learn more about the critical findings.
Help managers build psychological safety within their teams. Share this new learning path with your managers to help them identify and cultivate psychological safety within their teams. Managers can earn their Microsoft Viva badge in psychological safety with Credly.
Exciting new resources for all stakeholders
Accelerate AI transformation with our new eBook. The state of AI change readiness, from the Viva People Science team, outlines findings on AI readiness, discusses implications, and provides practical guidance for leaders and HR on best to support people through change related to AI at work.
Build a holistic employee listening strategy. Take time to align with your internal stakeholders and complete our Holistic Listening Vision and Strategy Discovery Workbook from the Viva People Science team. This workbook helps you consider information important to your listening strategy and for tracking progress.
Coming soon: learn about the combined powers of Viva Glint, Viva Insights, and Viva Pulse. Together these apps measure employee engagement and productivity while giving you actionable insights. Keep your eyes out for a new communication where we will be highlighting features, customer success stories, and events featuring these products.
Microsoft Tech Community – Latest Blogs –Read More
Setting up a Point-to-Site VPN connection in Azure Government (the quick version)
I spent way too much time setting up a point-to-site VPN connection in Azure Government yesterday, so I figured I would do a quick blog post in the hopes this saves someone some time.
I typically setup a VPN connection between my on-prem environment to my sandbox in Azure to test network injected scenarios such as running applications on an App Service Environment, testing a SQL migration to an Azure SQL Managed Instance, etc. A point-to-site VPN is a very simple way to achieve this, but I had not yet deployed it to my government subscription. The pre-reqs are as follows:
Create a virtual network
Create a GatewaySubnet on the virtual network
Create a Virtual Network Gateway
There is a tutorial of the steps for creating these resources here.
I chose the VpnGw1 SKU for my Virtual Network Gateway (VNG) as this is just for testing and I do not require a great deal of bandwidth or number of connections, but you can size your VNG to your needs.
The next step is to setup the point-to-site. To do this, you open the Virtual Network Gateway and choose the “Point-to-site configuration” blade. The setup here is fairly simple – we add an address pool (I typically use an RFC-1918 space that does not conflict with my VNet space), the type of tunnel (we’re using OpenVPN as we’re doing Microsoft Entra ID authentication), the type of Authentication (which is still branded “Azure Active Directory”), and the public IP you want to use.
The next step is to add the Azure Active Directory (Microsoft Entra ID) values. Being in Azure Government, we need to consider that our endpoints are different than those in the commercial environment. The document here has a list of steps to do this, including the mapping between Azure Commercial and Azure Government endpoints. The endpoint mapping is as follows:
Tenant ID
https://login.microsoftonline.com/{TenantID} ->https://login.microsoftonline.us/{TenantID}
Audience
41b23e61-6c1e-4545-b367-cd054e0ed4b4 -> 51bb15d4-3a4f-4ebf-9dca-40096fe32426
Issuer
https://sts.windows.net/{TenantID}/
Wait. Why doesn’t the issuer change? Shouldn’t that go to a government endpoint too? Well, the short answer is “no.” I was severely overthinking this and tried to guess at this endpoint, putting in “login.microsoftonline.us” in place of the “sts.windows.net” value, but I got the following error when I tried to connect:
[Error] Dialing VPN connection ase-vnet, Status = Server did not respond properly to VPN Control Packets. Session State: Key Material sent
That didn’t help me too much so, after spending an embarrassing amount of time digging through Microsoft Entra ID, I finally had the idea to actually grab a JWT token from my tenant and inspect it. You can grab a token (I’ll write a future article on how to do this) and decode it in a tool like jwt.ms. Sure enough, looking at the token, the issuer is still https://sts.windows.net/{TenantID}. Once I corrected that, my VPN client was able to connect.
There are many places in our learn.microsoft.com documentation describing the point-to-site VPN configuration process, but I feel that this documentation best describes the process for clouds other than Azure Commercial, such as Azure Government. It will walk you through authorizing the Azure VPN Application (which requires the Global administrator role in Entra ID), and how to configure the Azure VPN Client as well. Just don’t do as I did and overthink the Issuer!
Microsoft Tech Community – Latest Blogs –Read More
Cannot disable S Mode
I purchased a laptop for my son to use for school, and I cannot disable S Mode on this thing. As a result, he cannot install a bunch of the programs he needs for some of his classes.
I have tried everything I have been able to find suggested online, nothing works!!! He is signed in with a Microsoft account, everything is up to date, I’ve deleted caches, I’ve gone so far as to do a factory reset. This feature cannot be disabled! When I get to the Turn Off S Mode page, the “Get” button is greyed-out and unclickable. Underneath, in yellow text, it tells me to “Contact your IT department or system administrator”. Excuse me? It’s a personal laptop!!! It was purchased at Walmart, not provided by the school – who exactly am I supposed to contact?
This is the stupidest feature I have ever seen!!!
I purchased a laptop for my son to use for school, and I cannot disable S Mode on this thing. As a result, he cannot install a bunch of the programs he needs for some of his classes. I have tried everything I have been able to find suggested online, nothing works!!! He is signed in with a Microsoft account, everything is up to date, I’ve deleted caches, I’ve gone so far as to do a factory reset. This feature cannot be disabled! When I get to the Turn Off S Mode page, the “Get” button is greyed-out and unclickable. Underneath, in yellow text, it tells me to “Contact your IT department or system administrator”. Excuse me? It’s a personal laptop!!! It was purchased at Walmart, not provided by the school – who exactly am I supposed to contact? This is the stupidest feature I have ever seen!!! Read More
Intune expands OEM integration in partner portal
We love talking with IT pros. In fact, we just spent a few weeks in Italy and Switzerland attending events and meeting with you. Many of you have noted the value of a “single pane of glass” for managing devices.
This feedback has been heard loud and clear by Microsoft and our original equipment manufacturer (OEM) partners. We’re now announcing the integration of the Dell Management Portal, which will bring even more functionality to the Microsoft Intune admin center.
A brief history
A few years back, we launched the Surface Management Portal in the Intune admin center. In April 2023, we announced HP Connect would be joining Surface in the Partner portals tab of the Intune admin center. This extended the depth of features HP devices could access (read more in this What’s new post).
Announcing a new partner in the Intune admin center
Starting in October, a link from the Intune admin center to the Dell Management Portal will provide streamlined access to Dell-specific Windows device management features. The Dell Management Portal will provide:
Secure device management. Recover unique, per-device credentials including current and previous BIOS passwords as well as BitLocker recovery keys.
Fleet management. Access device hardware, OS, and storage information in addition to per-device assigned-user information including name and contact.
Application management. Securely access the latest version of select Dell enterprise applications to upload to Intune for deployment and get update status of those apps. Available at launch:
Dell Command | Monitor
Dell Command | End Point Configure for Microsoft Intune
Dell Command | Update
Dell Support Assist for Business PCs
Dell Trusted Device
Device reporting. Review updates, which are provided every 30 minutes.
The Dell Management Portal will appear in the Partner portals tab in the Devices blade of the Intune admin center.
Selecting the Dell Management Portal will prompt a connection wizard that will request permissions for Dell Management Portal to access your tenant.
Granting those permissions enables the new integrated Dell app deployment, reporting, and more.
The result? Less time navigating and more time doing.
We’re listening
We don’t only go to events to talk. We also go to listen to you. And when we can’t be face-to-face, we read the comments on posts like this and consolidate your feedback from the Microsoft Intune feedback portal. Your asks and comments inform and shape our product roadmap, so please continue to share your feedback. Subscribe to this blog for the latest official news, and follow me on LinkedIn to get the latest updates as soon as I do.
Stay up to date! Bookmark the Microsoft Intune Blog and follow us on LinkedIn or @MSIntune on X to continue the conversation.
Microsoft Tech Community – Latest Blogs –Read More
How to insert an image into a specific Excel cell?
In Excel, I can place an image into a specific cell using Insert -> Pictures -> Place in Cell; this inserts the image into the cell, not floating over the cell. Can the same thing be done from MATLAB using ActiveX? Note I already have working code to insert a floating image in any desired location. What I really need to do is to insert it into a cell of my choosing.In Excel, I can place an image into a specific cell using Insert -> Pictures -> Place in Cell; this inserts the image into the cell, not floating over the cell. Can the same thing be done from MATLAB using ActiveX? Note I already have working code to insert a floating image in any desired location. What I really need to do is to insert it into a cell of my choosing. In Excel, I can place an image into a specific cell using Insert -> Pictures -> Place in Cell; this inserts the image into the cell, not floating over the cell. Can the same thing be done from MATLAB using ActiveX? Note I already have working code to insert a floating image in any desired location. What I really need to do is to insert it into a cell of my choosing. insert image, excel MATLAB Answers — New Questions
identify model parameters and data (g = Gm).
I have a problem, namely to identify model parameters and data (g = Gm).
I’ve done it in my notebook, but I want to write a matlab script for this and I’m struggling on how to write the matrix G the right way in matlab.
This is how I write G in my notebook:
1111000000000000
0000111100000000
0000000011110000
0000000000001111
1000100010001000
0100010001000100
0010001000100010
0001000100010001I have a problem, namely to identify model parameters and data (g = Gm).
I’ve done it in my notebook, but I want to write a matlab script for this and I’m struggling on how to write the matrix G the right way in matlab.
This is how I write G in my notebook:
1111000000000000
0000111100000000
0000000011110000
0000000000001111
1000100010001000
0100010001000100
0010001000100010
0001000100010001 I have a problem, namely to identify model parameters and data (g = Gm).
I’ve done it in my notebook, but I want to write a matlab script for this and I’m struggling on how to write the matrix G the right way in matlab.
This is how I write G in my notebook:
1111000000000000
0000111100000000
0000000011110000
0000000000001111
1000100010001000
0100010001000100
0010001000100010
0001000100010001 #help MATLAB Answers — New Questions
Fit a custom made function to a certain trend within data from a matrix
Dear all,
I have been struggling for a while with the two issues that I show you below.
I have a matrix which represents the image of a pixelated neutron detector. The units of such a matrix is Count/minute. If I plot the matrix with the command surface(X, Y, Z), being Z the matrix, I get the following figure:
In this figure we can see two different trends: the x=y line (plus its width), which is what we call the "Specular Ridge", and a tiny contribution given by the white dashed line, which is what we call the "Zemann Splitting". The Zemann splitting is given by the equation y = sqrt(x^2 – (1.47e-7*H*L^2)), where H is the magnetic field and L is the wavelength of the nuetrons (5.183 AA in my case).
I would like to find the optimum H which fits best to the data inside the red circle by using the above mentioned equation (H should be something like 6-7). And later I would like to make a ROI (Region Of Interest) to count how many counts lay within such area.
I have attached the matrix (file 00607_UD_subplot.txt) and X and Y coordinates (files 00607_UD_xcoordinates.txt and 00607_UD_ycoordinates.txt).
The code to visualize the figure is the following:
A = load(‘00607_UD_subplot.txt’);
X = load(‘00607_UD_xcoordinates.txt’);
Y = load(‘00607_UD_ycoordinates.txt’);
surface(X, Y, A)
axis square
colormap(map);
caxis([5e-4 100])
set(gca,’colorscale’,’log’)
hold on
plot(X, sqrt((X.^2) – (1.47e-7*6.5*5.183^2)), ‘Color’,’white’,’LineStyle’,’–‘, ‘LineWidth’, 2)
xlabel(‘alpha_{i} [rad]’, ‘fontsize’, 18);
ylabel(‘alpha_{f} [rad]’, ‘fontsize’, 18);
cb1 = colorbar;
cb1.Label.String = ‘Neutron Intensity (CTS/MIN)’;
cb1.FontSize = 16;
cb1.Label.FontSize = 20;
cb1.LineWidth = 1.5;
Any help / suggestion would be helpful and very welcomedl!!!
Cheers,
Jose.Dear all,
I have been struggling for a while with the two issues that I show you below.
I have a matrix which represents the image of a pixelated neutron detector. The units of such a matrix is Count/minute. If I plot the matrix with the command surface(X, Y, Z), being Z the matrix, I get the following figure:
In this figure we can see two different trends: the x=y line (plus its width), which is what we call the "Specular Ridge", and a tiny contribution given by the white dashed line, which is what we call the "Zemann Splitting". The Zemann splitting is given by the equation y = sqrt(x^2 – (1.47e-7*H*L^2)), where H is the magnetic field and L is the wavelength of the nuetrons (5.183 AA in my case).
I would like to find the optimum H which fits best to the data inside the red circle by using the above mentioned equation (H should be something like 6-7). And later I would like to make a ROI (Region Of Interest) to count how many counts lay within such area.
I have attached the matrix (file 00607_UD_subplot.txt) and X and Y coordinates (files 00607_UD_xcoordinates.txt and 00607_UD_ycoordinates.txt).
The code to visualize the figure is the following:
A = load(‘00607_UD_subplot.txt’);
X = load(‘00607_UD_xcoordinates.txt’);
Y = load(‘00607_UD_ycoordinates.txt’);
surface(X, Y, A)
axis square
colormap(map);
caxis([5e-4 100])
set(gca,’colorscale’,’log’)
hold on
plot(X, sqrt((X.^2) – (1.47e-7*6.5*5.183^2)), ‘Color’,’white’,’LineStyle’,’–‘, ‘LineWidth’, 2)
xlabel(‘alpha_{i} [rad]’, ‘fontsize’, 18);
ylabel(‘alpha_{f} [rad]’, ‘fontsize’, 18);
cb1 = colorbar;
cb1.Label.String = ‘Neutron Intensity (CTS/MIN)’;
cb1.FontSize = 16;
cb1.Label.FontSize = 20;
cb1.LineWidth = 1.5;
Any help / suggestion would be helpful and very welcomedl!!!
Cheers,
Jose. Dear all,
I have been struggling for a while with the two issues that I show you below.
I have a matrix which represents the image of a pixelated neutron detector. The units of such a matrix is Count/minute. If I plot the matrix with the command surface(X, Y, Z), being Z the matrix, I get the following figure:
In this figure we can see two different trends: the x=y line (plus its width), which is what we call the "Specular Ridge", and a tiny contribution given by the white dashed line, which is what we call the "Zemann Splitting". The Zemann splitting is given by the equation y = sqrt(x^2 – (1.47e-7*H*L^2)), where H is the magnetic field and L is the wavelength of the nuetrons (5.183 AA in my case).
I would like to find the optimum H which fits best to the data inside the red circle by using the above mentioned equation (H should be something like 6-7). And later I would like to make a ROI (Region Of Interest) to count how many counts lay within such area.
I have attached the matrix (file 00607_UD_subplot.txt) and X and Y coordinates (files 00607_UD_xcoordinates.txt and 00607_UD_ycoordinates.txt).
The code to visualize the figure is the following:
A = load(‘00607_UD_subplot.txt’);
X = load(‘00607_UD_xcoordinates.txt’);
Y = load(‘00607_UD_ycoordinates.txt’);
surface(X, Y, A)
axis square
colormap(map);
caxis([5e-4 100])
set(gca,’colorscale’,’log’)
hold on
plot(X, sqrt((X.^2) – (1.47e-7*6.5*5.183^2)), ‘Color’,’white’,’LineStyle’,’–‘, ‘LineWidth’, 2)
xlabel(‘alpha_{i} [rad]’, ‘fontsize’, 18);
ylabel(‘alpha_{f} [rad]’, ‘fontsize’, 18);
cb1 = colorbar;
cb1.Label.String = ‘Neutron Intensity (CTS/MIN)’;
cb1.FontSize = 16;
cb1.Label.FontSize = 20;
cb1.LineWidth = 1.5;
Any help / suggestion would be helpful and very welcomedl!!!
Cheers,
Jose. curve fitting, region of interest MATLAB Answers — New Questions
Enter table with conditional limits and able to interpolate
I would like to enter the following numerical table with conditional limits and be able to interpolate within the values provided in the table. I was able to enter the rows x columns but I do not know what can I do for those values that are less than or larger than. How can <= or >= be taken care of? I believe interp2 should be used to find intermediate values for lets say h/L=12 degrees and h/L =0.35 for example. Please advise.I would like to enter the following numerical table with conditional limits and be able to interpolate within the values provided in the table. I was able to enter the rows x columns but I do not know what can I do for those values that are less than or larger than. How can <= or >= be taken care of? I believe interp2 should be used to find intermediate values for lets say h/L=12 degrees and h/L =0.35 for example. Please advise. I would like to enter the following numerical table with conditional limits and be able to interpolate within the values provided in the table. I was able to enter the rows x columns but I do not know what can I do for those values that are less than or larger than. How can <= or >= be taken care of? I believe interp2 should be used to find intermediate values for lets say h/L=12 degrees and h/L =0.35 for example. Please advise. interpolation and table question MATLAB Answers — New Questions
Eventfilters with durations return wrong (amount of) rows?
Hi all, I have a question that’s either a case of "am I not understanding this right?" or a bug in eventfilters.
I’ve noticed 2 things: 1) event filters with durations seem to return the rows after the start of events, and 2) scaling the duration of events does not result in the expected scaling of the number of rows filtered.
For background, in reality I’m using this to mark the edges of TTL-pulses in datasets, but I made an example below that I think illustrates my point.
Running the following code:
% Create a 5s timetable with mock data.
test_table = timetable(seconds(linspace(1/1000, 5, 5000)).’, linspace(0, 1, 5000).’);
% Create an eventtable with 3 events at random time points and a duration
% equal to the table timestep.
test_times = seconds([1.101, 2.2, 3]);
labels = ["rising", "rising", "falling"];
delta_t = test_table.Properties.TimeStep;
lengths = repmat(1*delta_t, 1, 3);
test_events = eventtable(test_times, EventLabels = labels, EventLengths = lengths);
% Associate events with timetable.
test_table.Properties.Events = test_events;
% Create a filter to determine the time of the rising edges.
test_filter = eventfilter("rising");
test_rows = test_table(test_filter, :);
% Display number of rows returned by the filter.
disp(height(test_rows));
% Display the times of the filtered rows.
disp(test_rows.Time);
So here I’m making a mock timetable of 5 seconds at 1000 Hz, with mock data in it, and 3 time events: two rising edges, and one falling edge. Each event is given a length of 1/1000s or 1 ms, which is equal to the timestep of the table. Then, I create an eventfilter to extract the rows of the time table at these edges.
Issue 1
The filter returns 2 rows as expected. However, the row times are 1.102 and 2.201, which are the row times after the rows in which the events begin according to the event table. This seems at odds with the description in the documentation for eventtable, which says that "Interval events happen during intervals that start at event times and include all times up to, but not including, the times at the end of the events." (emphasis mine). So shouldn’t these timed events return the row times 1.101 and 2.200 seconds?
As an aside, removing the EventLengths from the eventtable constructor returns the correct row times.
Issue 2
Second, for events with lengths larger than a single TimeStep, increasing the duration by a given factor does not always increase the number of returned rows by the same amount.
In this case, if I replace
lengths = repmat(1*delta_t, 1, 3);
with
lengths = repmat(50*delta_t, 1, 3);
and run the code again:
test_events = eventtable(test_times, EventLabels = labels, EventLengths = lengths);
test_table.Properties.Events = test_events;
test_filter = eventfilter("rising");
test_rows = test_table(test_filter, :);
disp(height(test_rows));
the number of filtered rows increases from 2 to 100, as expected.
However, increasing the duration of the events to 100 TimeSteps, changes the number of filtered rows to 199 instead of 200, which is what I was expecting.
lengths = repmat(100*delta_t, 1, 3);
test_events = eventtable(test_times, EventLabels = labels, EventLengths = lengths);
test_table.Properties.Events = test_events;
test_filter = eventfilter("rising");
test_rows = test_table(test_filter, :);
disp(height(test_rows));
This seems odd, given that both 50 and 100 TimeSteps should easily fit within the time vector of the table, are exact multiples of each other, do not overlap with other events and the length was based on the TimeStep property of the table.
I’ve locally tested the script in 2024a, but the code examples above ran in 2024b.Hi all, I have a question that’s either a case of "am I not understanding this right?" or a bug in eventfilters.
I’ve noticed 2 things: 1) event filters with durations seem to return the rows after the start of events, and 2) scaling the duration of events does not result in the expected scaling of the number of rows filtered.
For background, in reality I’m using this to mark the edges of TTL-pulses in datasets, but I made an example below that I think illustrates my point.
Running the following code:
% Create a 5s timetable with mock data.
test_table = timetable(seconds(linspace(1/1000, 5, 5000)).’, linspace(0, 1, 5000).’);
% Create an eventtable with 3 events at random time points and a duration
% equal to the table timestep.
test_times = seconds([1.101, 2.2, 3]);
labels = ["rising", "rising", "falling"];
delta_t = test_table.Properties.TimeStep;
lengths = repmat(1*delta_t, 1, 3);
test_events = eventtable(test_times, EventLabels = labels, EventLengths = lengths);
% Associate events with timetable.
test_table.Properties.Events = test_events;
% Create a filter to determine the time of the rising edges.
test_filter = eventfilter("rising");
test_rows = test_table(test_filter, :);
% Display number of rows returned by the filter.
disp(height(test_rows));
% Display the times of the filtered rows.
disp(test_rows.Time);
So here I’m making a mock timetable of 5 seconds at 1000 Hz, with mock data in it, and 3 time events: two rising edges, and one falling edge. Each event is given a length of 1/1000s or 1 ms, which is equal to the timestep of the table. Then, I create an eventfilter to extract the rows of the time table at these edges.
Issue 1
The filter returns 2 rows as expected. However, the row times are 1.102 and 2.201, which are the row times after the rows in which the events begin according to the event table. This seems at odds with the description in the documentation for eventtable, which says that "Interval events happen during intervals that start at event times and include all times up to, but not including, the times at the end of the events." (emphasis mine). So shouldn’t these timed events return the row times 1.101 and 2.200 seconds?
As an aside, removing the EventLengths from the eventtable constructor returns the correct row times.
Issue 2
Second, for events with lengths larger than a single TimeStep, increasing the duration by a given factor does not always increase the number of returned rows by the same amount.
In this case, if I replace
lengths = repmat(1*delta_t, 1, 3);
with
lengths = repmat(50*delta_t, 1, 3);
and run the code again:
test_events = eventtable(test_times, EventLabels = labels, EventLengths = lengths);
test_table.Properties.Events = test_events;
test_filter = eventfilter("rising");
test_rows = test_table(test_filter, :);
disp(height(test_rows));
the number of filtered rows increases from 2 to 100, as expected.
However, increasing the duration of the events to 100 TimeSteps, changes the number of filtered rows to 199 instead of 200, which is what I was expecting.
lengths = repmat(100*delta_t, 1, 3);
test_events = eventtable(test_times, EventLabels = labels, EventLengths = lengths);
test_table.Properties.Events = test_events;
test_filter = eventfilter("rising");
test_rows = test_table(test_filter, :);
disp(height(test_rows));
This seems odd, given that both 50 and 100 TimeSteps should easily fit within the time vector of the table, are exact multiples of each other, do not overlap with other events and the length was based on the TimeStep property of the table.
I’ve locally tested the script in 2024a, but the code examples above ran in 2024b. Hi all, I have a question that’s either a case of "am I not understanding this right?" or a bug in eventfilters.
I’ve noticed 2 things: 1) event filters with durations seem to return the rows after the start of events, and 2) scaling the duration of events does not result in the expected scaling of the number of rows filtered.
For background, in reality I’m using this to mark the edges of TTL-pulses in datasets, but I made an example below that I think illustrates my point.
Running the following code:
% Create a 5s timetable with mock data.
test_table = timetable(seconds(linspace(1/1000, 5, 5000)).’, linspace(0, 1, 5000).’);
% Create an eventtable with 3 events at random time points and a duration
% equal to the table timestep.
test_times = seconds([1.101, 2.2, 3]);
labels = ["rising", "rising", "falling"];
delta_t = test_table.Properties.TimeStep;
lengths = repmat(1*delta_t, 1, 3);
test_events = eventtable(test_times, EventLabels = labels, EventLengths = lengths);
% Associate events with timetable.
test_table.Properties.Events = test_events;
% Create a filter to determine the time of the rising edges.
test_filter = eventfilter("rising");
test_rows = test_table(test_filter, :);
% Display number of rows returned by the filter.
disp(height(test_rows));
% Display the times of the filtered rows.
disp(test_rows.Time);
So here I’m making a mock timetable of 5 seconds at 1000 Hz, with mock data in it, and 3 time events: two rising edges, and one falling edge. Each event is given a length of 1/1000s or 1 ms, which is equal to the timestep of the table. Then, I create an eventfilter to extract the rows of the time table at these edges.
Issue 1
The filter returns 2 rows as expected. However, the row times are 1.102 and 2.201, which are the row times after the rows in which the events begin according to the event table. This seems at odds with the description in the documentation for eventtable, which says that "Interval events happen during intervals that start at event times and include all times up to, but not including, the times at the end of the events." (emphasis mine). So shouldn’t these timed events return the row times 1.101 and 2.200 seconds?
As an aside, removing the EventLengths from the eventtable constructor returns the correct row times.
Issue 2
Second, for events with lengths larger than a single TimeStep, increasing the duration by a given factor does not always increase the number of returned rows by the same amount.
In this case, if I replace
lengths = repmat(1*delta_t, 1, 3);
with
lengths = repmat(50*delta_t, 1, 3);
and run the code again:
test_events = eventtable(test_times, EventLabels = labels, EventLengths = lengths);
test_table.Properties.Events = test_events;
test_filter = eventfilter("rising");
test_rows = test_table(test_filter, :);
disp(height(test_rows));
the number of filtered rows increases from 2 to 100, as expected.
However, increasing the duration of the events to 100 TimeSteps, changes the number of filtered rows to 199 instead of 200, which is what I was expecting.
lengths = repmat(100*delta_t, 1, 3);
test_events = eventtable(test_times, EventLabels = labels, EventLengths = lengths);
test_table.Properties.Events = test_events;
test_filter = eventfilter("rising");
test_rows = test_table(test_filter, :);
disp(height(test_rows));
This seems odd, given that both 50 and 100 TimeSteps should easily fit within the time vector of the table, are exact multiples of each other, do not overlap with other events and the length was based on the TimeStep property of the table.
I’ve locally tested the script in 2024a, but the code examples above ran in 2024b. time series, eventtable, timetable, matlab, eventfilter MATLAB Answers — New Questions
Company Apps on Android stopped working saying using a rooted device
Hi Everyone,
Last week after I restarted my phone, it had an One UI update (now 6.1 with Android version 14) and ever since then, every time I tried to open company related apps (Teams, Microsoft Outlook, Condeco), it always pop up with image below saying “Devise non-compliant” that I’m using a rooted devise.
I tried deleting the app and account and download and recreate again, but its still giving me the same error.
I also checked weather the devise is rooted or not under Phone Status and it says “Official”.
Below is the error message from the company portal
Please help! Thanks!
Hi Everyone, Last week after I restarted my phone, it had an One UI update (now 6.1 with Android version 14) and ever since then, every time I tried to open company related apps (Teams, Microsoft Outlook, Condeco), it always pop up with image below saying “Devise non-compliant” that I’m using a rooted devise. I tried deleting the app and account and download and recreate again, but its still giving me the same error. I also checked weather the devise is rooted or not under Phone Status and it says “Official”. Below is the error message from the company portal Please help! Thanks! Read More
SharePoint “Check Permissions” Feature
Hi,
I have a few questions regarding the “Check Permissions” feature in SharePoint.
I’m trying to document the process for removing a member from the SP site entirely, and to to this they need to be removed from the site, any groups they’re part of, any files they have access to etc.
I’m using the “check permissions” feature to view user permissions, and in doing so I can see the premissions the user has, as well as how they were granted this access, namely through a particular group (see image below)
I have several questions regarding the image.
1. I am confused as to what this is actually telling me. As an example, the user has “Full Control, Limited Access, Web-Only Limited Access” given through a particular group, but what does this actually mean? Access to what, or to do what? Is it the access to do what is listed in the “Permission Levels” section?
Some of these categories are also listed in the “Permission Levels” section, but there’s no sign of “Limited Access” so I’m not sure what that grants to the user.
2. Regarding the blank entries (i.e. the ones that do not state how the user was granted access), how can I find out this information? Since I need to remove the user entirely from the site, I also need to find out what is granting them access so I can “unlink” them from that also.
Hopefully that makes sense and thanks in advance for any help.
Hi, I have a few questions regarding the “Check Permissions” feature in SharePoint. I’m trying to document the process for removing a member from the SP site entirely, and to to this they need to be removed from the site, any groups they’re part of, any files they have access to etc. I’m using the “check permissions” feature to view user permissions, and in doing so I can see the premissions the user has, as well as how they were granted this access, namely through a particular group (see image below) I have several questions regarding the image. 1. I am confused as to what this is actually telling me. As an example, the user has “Full Control, Limited Access, Web-Only Limited Access” given through a particular group, but what does this actually mean? Access to what, or to do what? Is it the access to do what is listed in the “Permission Levels” section? Some of these categories are also listed in the “Permission Levels” section, but there’s no sign of “Limited Access” so I’m not sure what that grants to the user. 2. Regarding the blank entries (i.e. the ones that do not state how the user was granted access), how can I find out this information? Since I need to remove the user entirely from the site, I also need to find out what is granting them access so I can “unlink” them from that also. Hopefully that makes sense and thanks in advance for any help. Read More
Timezones for existing entries
I have a requirement to find out what timezeone a user was in when they submitted an item to a sharepoint list – items were added to the list via a mobile powerapp there was no feature in the app at the time to show the timezone. Is this even possible?
I have a requirement to find out what timezeone a user was in when they submitted an item to a sharepoint list – items were added to the list via a mobile powerapp there was no feature in the app at the time to show the timezone. Is this even possible? Read More
Azure Arc Machine still showing in Security Recommendations after Deletion
I removed the extensions then removed the Machine from Azure Arc. Even deleted all of the folders associated with the agent. However, the machine still shows up in our Security Recommendations in Defender. The recommendation is for Vulnerabilities in security configuration on your Windows machines should be remediated (powered by Guest Configuration).
I guess something was missed during the delete process of the machine? How do I get this recommendation to stop showing. The machine is deleted.
Thank you
I removed the extensions then removed the Machine from Azure Arc. Even deleted all of the folders associated with the agent. However, the machine still shows up in our Security Recommendations in Defender. The recommendation is for Vulnerabilities in security configuration on your Windows machines should be remediated (powered by Guest Configuration). I guess something was missed during the delete process of the machine? How do I get this recommendation to stop showing. The machine is deleted. Thank you Read More