Month: May 2024
Can I replace custom types during code generation?
I have a Simulink model that I use to develop my algorithm.
I am part of a larger project, other teams do not use Matlab nor Simulink.
I am using a manually defined bus that is based on a "typedef struct {} foo;" provided in a header that I can access.
To minimize complexity at the interface, I would like to use this type rather than having a separate type being defined in "<my model>_types.h".
I tried data type replacement, but that seems to work only for basic types.
Is there any way to achieve what I need?I have a Simulink model that I use to develop my algorithm.
I am part of a larger project, other teams do not use Matlab nor Simulink.
I am using a manually defined bus that is based on a "typedef struct {} foo;" provided in a header that I can access.
To minimize complexity at the interface, I would like to use this type rather than having a separate type being defined in "<my model>_types.h".
I tried data type replacement, but that seems to work only for basic types.
Is there any way to achieve what I need? I have a Simulink model that I use to develop my algorithm.
I am part of a larger project, other teams do not use Matlab nor Simulink.
I am using a manually defined bus that is based on a "typedef struct {} foo;" provided in a header that I can access.
To minimize complexity at the interface, I would like to use this type rather than having a separate type being defined in "<my model>_types.h".
I tried data type replacement, but that seems to work only for basic types.
Is there any way to achieve what I need? code generation, type replacement MATLAB Answers — New Questions
Outlook S/MIME issue – encryption makes mail unreadable
Hello all,
since a few weeks some coworkers including myself expierence a strange behaviour in Outlook. All Outlook clients are set up to encrypt every mail via S/MIME. Some external contacts can’t read those encrypted mails, that’s why we deactivate the encryption for those mails over die encryption button in Outlook. If we then send the mail out, the mail appears as encrypted in the “sent mails” folder, the recipient can’t open the mail and the sender itself can’t even open it. It seems like Outlook has some major issues with the S/MIME encryption.
Has anyone experienced any similar behaviour or maybe has a an idea what could cause this problem?
Cheers,
Erik
Hello all, since a few weeks some coworkers including myself expierence a strange behaviour in Outlook. All Outlook clients are set up to encrypt every mail via S/MIME. Some external contacts can’t read those encrypted mails, that’s why we deactivate the encryption for those mails over die encryption button in Outlook. If we then send the mail out, the mail appears as encrypted in the “sent mails” folder, the recipient can’t open the mail and the sender itself can’t even open it. It seems like Outlook has some major issues with the S/MIME encryption. Has anyone experienced any similar behaviour or maybe has a an idea what could cause this problem? Cheers,Erik Read More
Data source of Enterprise Website breaking case-sensitive links
Hi,
In Microsoft Search, we have added a new Data Source for our organisation’s public website. This is using the Enterprise Website Graph Connector. We have successfully added and crawled it and are using staged rollout to test.
However: all results are being returned with the outgoing URLs forced to lower-case, when our public website has been set up with case sensitive URLs.
Is there a way to get the results to be displayed using the URLs as discovered, with the same capitalisation?
We’re not sure how to troubleshoot it to find out whether the results are being stored in lowercase; or just displayed that way.
Hi, In Microsoft Search, we have added a new Data Source for our organisation’s public website. This is using the Enterprise Website Graph Connector. We have successfully added and crawled it and are using staged rollout to test.However: all results are being returned with the outgoing URLs forced to lower-case, when our public website has been set up with case sensitive URLs.Is there a way to get the results to be displayed using the URLs as discovered, with the same capitalisation?We’re not sure how to troubleshoot it to find out whether the results are being stored in lowercase; or just displayed that way. Read More
How to Keep the Shared Links while copying the files & Folders to the new SharePoint Sites
Hi All,
Is there a way to keep the shared file links when we copy the file from one SharePoint Site to another within the same tenant?
We have tried using ‘Move to’ and ‘Copy to’ however however the links do not work. Users do not get the new link while using ‘move to’ and the old link breaks automatically.
Hi All, Is there a way to keep the shared file links when we copy the file from one SharePoint Site to another within the same tenant? We have tried using ‘Move to’ and ‘Copy to’ however however the links do not work. Users do not get the new link while using ‘move to’ and the old link breaks automatically. Read More
URL block indicator not working anymore for Microsoft Defender for Endpoint P1
Hello, since these last days, in Defender for Endpoint page, settings the indicator where we can set url block list didn’t appear, and all list I had defined to block is not blocked anymore.
Can someone help about that?
Hello, since these last days, in Defender for Endpoint page, settings the indicator where we can set url block list didn’t appear, and all list I had defined to block is not blocked anymore. Can someone help about that? Read More
Microsoft.Office.Outlook.dll Compatibility Challenges b/w Outlook & New Outlook (Office 365)
We are currently using the Microsoft.Office.Outlook.dll for COM interop with Outlook versions 2013, 2016, and 2019. This approach allows us to manage Outlook contacts programmatically within these versions effectively. However, the new Outlook app based on Office 365 does not support this DLL, posing a significant challenge.
The primary issue is the incompatibility of Microsoft.Office.Outlook.dll with the new Outlook app. This new version, which is part of the Office 365 suite, does not recognize the DLL, rendering our existing integration methods obsolete.
Are there any plans to extend the compatibility of the Microsoft.Office.Outlook.dll to support the new Outlook app based on Office 365? If not, are there alternative APIs or libraries recommended by Microsoft for this purpose?
We are currently using the Microsoft.Office.Outlook.dll for COM interop with Outlook versions 2013, 2016, and 2019. This approach allows us to manage Outlook contacts programmatically within these versions effectively. However, the new Outlook app based on Office 365 does not support this DLL, posing a significant challenge.The primary issue is the incompatibility of Microsoft.Office.Outlook.dll with the new Outlook app. This new version, which is part of the Office 365 suite, does not recognize the DLL, rendering our existing integration methods obsolete.Are there any plans to extend the compatibility of the Microsoft.Office.Outlook.dll to support the new Outlook app based on Office 365? If not, are there alternative APIs or libraries recommended by Microsoft for this purpose? Read More
Automations
Hello Everyone,
as you can see on the screenshots attached, I wanted this Table to be automated on a way that, when we press the button will be created a extra fields, it can be the same as it is shown on the first screenshot.
I tried to copy the table and past it, as a macro record, but it creates just one time past, and if you past it more then once while you record the macro, it will generate all of them in the same time after you press the button of the recorded macro, and we would like to be generated once a time, not all of them in the same time.
Is there in option that could fit my request?
Thank you in advance, and I hope I was clear with the request and concern
Kind regards
Driton
Hello Everyone, as you can see on the screenshots attached, I wanted this Table to be automated on a way that, when we press the button will be created a extra fields, it can be the same as it is shown on the first screenshot. I tried to copy the table and past it, as a macro record, but it creates just one time past, and if you past it more then once while you record the macro, it will generate all of them in the same time after you press the button of the recorded macro, and we would like to be generated once a time, not all of them in the same time. Is there in option that could fit my request? Thank you in advance, and I hope I was clear with the request and concern Kind regardsDriton Read More
Microsoft Entra ID Tenant Starters Guide: Understanding Identity Management and Licensing
Introduction
Microsoft Entra ID Tenant is a cloud-based identity and access management service that helps you manage your organization’s users, devices, applications, and resources[1]. It is a powerful and flexible solution that enables you to securely connect your employees, customers, and partners to the digital resources they need, while protecting your organization from unauthorized access and identity threats. In this guide, you will learn the basics of Microsoft Entra ID Tenant, how to access and use it, how to manage licenses for different Microsoft products and services, and how to address some common challenges and scenarios related to identity management and licensing.
What is Microsoft Entra ID Tenant?
Microsoft Entra ID Tenant is the new name for Azure Active Directory, the cloud-based identity and access management service that is part of the Microsoft cloud platform[2]. Microsoft Entra ID Tenant is more than just a directory service, it is a comprehensive identity platform that provides a range of features and capabilities, such as[3]:
User management: You can create and manage user accounts, either manually, through bulk import, or by synchronizing with your on-premises Active Directory. You can also assign roles and permissions to users, either directly or through groups, to control their access to resources and tasks.
Authentication and authorization: You can enable single sign-on (SSO) and multi-factor authentication (MFA) for your users, to simplify and secure their login experience[4]. You can also use conditional access policies to enforce context-aware and risk-based access rules, such as requiring MFA for certain locations, devices, or applications.
Application management: You can register and manage applications that use Microsoft Entra ID Tenant as their identity provider, either Microsoft or third-party applications[5]. You can also integrate with other identity providers, such as social media accounts, to allow your users to sign in with their existing credentials.
Identity protection: You can monitor and detect suspicious activities and identity risks, such as compromised credentials, sign-in anomalies, or malicious attacks[6]. You can also use identity governance features, such as access reviews, entitlement management, and privileged identity management, to ensure that your users have the right level of access at the right time[7].
Identity and access management (IAM) for developers: You can use Microsoft Entra ID Tenant as a platform to build secure and scalable applications that leverage the Microsoft identity ecosystem. You can use various tools and protocols, such as Microsoft Graph, OpenID Connect, OAuth 2.0, and SAML, to integrate with Microsoft Entra ID Tenant and access its APIs and data[8].
Microsoft Entra ID Tenant is the foundation of Microsoft 365, Azure, and Dynamics 365, and it also supports other Microsoft products and services, such as Power Platform, Microsoft Teams, and SharePoint. By using Microsoft Entra ID Tenant, you can benefit from a unified and consistent identity experience across the Microsoft cloud, as well as a seamless integration with other cloud and on-premises solutions.
How to access Microsoft Entra ID Tenant?
You can access Microsoft Entra ID Tenant through three different portals, depending on your needs and preferences. These are:
The Microsoft 365 admin center: This is the main hub for managing your Microsoft 365 subscription, including users, groups, billing, and security[9]. You can use this portal to perform basic identity and access management tasks, such as creating and managing user accounts, assigning licenses, enabling SSO and MFA, and configuring domains and applications[10]. You can access the Microsoft 365 admin center at https://admin.microsoft.com
The Azure portal: This is the main hub for managing your Azure resources, including virtual machines, databases, storage, and networking[11]. You can use this portal to perform advanced identity and access management tasks, such as creating and managing custom roles, setting up conditional access policies, registering and managing applications, and using identity protection and governance features. You can access the Azure portal at https://portal.azure.com
The Entra admin center: This is the main hub for managing your Entra ID Tenant settings, including domains, applications, identity providers, and policies. You can use this portal to perform specific identity and access management tasks, such as adding and verifying domains, configuring SSO and MFA settings, managing application registrations and permissions, and configuring identity provider settings. You can access the Entra ID Tenant portal at https://entra.microsoft.com
To access any of these portals, you need to have a user account in your Entra ID Tenant, and you need to have the appropriate role and permission to perform the tasks you want to do[12]. You can sign in to any of these portals using your Entra ID Tenant credentials, which are usually in the format of username@domain.com, where domain.com is the domain name of your Entra ID Tenant. You can also use your Microsoft account, if you have one, to sign in to the Azure portal or the Entra ID Tenant portal, as long as your Microsoft account is associated with your Entra ID Tenant.
How to manage licenses with Microsoft Entra ID Tenant?
Microsoft Entra ID Tenant allows you to manage licenses for different Microsoft products and services that your organization uses. Licenses are the way that Microsoft charges you for using its cloud services, and they also determine the features and capabilities that you and your users can access. There are two types of licenses that you need to be aware of:
Office licenses: These are the licenses that enable you to use the Microsoft 365 suite of products and services, such as Outlook, Word, Excel, PowerPoint, OneDrive, SharePoint, and Teams. There are different plans and editions of Microsoft 365, such as E3 and E5, that offer different levels of functionality and security[13]. You can assign Office licenses to your users individually or in bulk, or you can use group-based licensing to automatically assign licenses to members of a group. You can also view and manage your Office license inventory, usage, and expiration, and purchase or cancel licenses as needed. You can use the Microsoft 365 admin center to manage Office licenses.
Entra ID Tenant licenses: These are the licenses that enable you to use the Microsoft Entra ID Tenant features and capabilities, such as conditional access, identity protection, identity governance, and IAM for developers. There are different plans and editions of Entra ID Tenant, such as free, P1, P2, and Entra ID Governance, that offer different levels of functionality and security[14]. You can assign Entra ID Tenant licenses to your users individually or in bulk, or you can use group-based licensing to automatically assign licenses to members of a group. You can also view and manage your Entra ID Tenant license inventory, usage, and expiration, and purchase or cancel licenses as needed. You can use the Azure portal or the Entra ID Tenant portal to manage Entra ID Tenant licenses.
It is important to note that Office licenses and Entra ID Tenant licenses are separate and independent from each other, and they have different pricing and billing models. You can have users who have only Office licenses, only Entra ID Tenant licenses, both, or neither. You can also have different combinations of Office and Entra ID Tenant licenses, depending on your needs and preferences. For example, you can have users who have Microsoft 365 E3 and Entra ID Tenant P1 licenses, or users who have Microsoft 365 E5 and Entra ID Tenant free licenses. You can also have users who have no Office licenses, but have Entra ID Tenant P2 licenses, or users who have no Entra ID Tenant licenses, but have Office licenses.
What are the benefits and drawbacks of having a multi-tenant setup?
A multi-tenant setup is when you have more than one Entra ID Tenant in your organization, and you use them to manage different sets of users, devices, applications, and resources. For example, you might have a main Entra ID Tenant for your corporate users and resources, and a separate Entra ID Tenant for your external partners and customers[15]. You might also have multiple Entra ID Tenants for different regions, divisions, or subsidiaries of your organization.
There are some benefits and drawbacks of having a multi-tenant setup, and you need to weigh them carefully before deciding whether to use it or not.
Some of the benefits are:
Increased isolation and security: You can use different Entra ID Tenants to isolate and protect different sets of users, devices, applications, and resources from each other, and to enforce different security policies and controls for each Entra ID Tenant. For example, you can use different MFA and conditional access settings for your corporate and external users, or you can use different identity protection and governance features for your different regions, divisions, or subsidiaries.
Increased flexibility and customization: You can use different Entra ID Tenants to tailor and customize different sets of users, devices, applications, and resources to meet your specific needs and preferences. For example, you can use different domains, applications, identity providers, and policies for each Entra ID Tenant, or you can use different plans and editions of Entra ID Tenant for each Entra ID Tenant.
Increased scalability and performance: You can use different Entra ID Tenants to scale and optimize different sets of users, devices, applications, and resources to handle different workloads and demands. For example, you can use different regions, availability zones, and service levels for each Entra ID Tenant, or you can use different resource quotas and limits for each Entra ID Tenant.
Some of the drawbacks are:
Increased complexity and overhead: You have to manage and maintain multiple Entra ID Tenants, which can increase the complexity and overhead of your identity and access management tasks. For example, you have to create and manage user accounts, assign licenses, register and manage applications, and configure settings and policies for each Entra ID Tenant, and you have to keep track of the different Entra ID Tenants and their relationships and dependencies.
Increased cost and inefficiency: You have to pay for and use multiple Entra ID Tenants, which can increase the cost and inefficiency of your identity and access management tasks. For example, you have to purchase and assign licenses, allocate and consume resources, and monitor and troubleshoot issues for each Entra ID Tenant, and you might have to deal with license and resource wastage, duplication, and inconsistency across different Entra ID Tenants.
Decreased user experience and collaboration: You have to use multiple Entra ID Tenants, which can decrease the user experience and collaboration of your identity and access management tasks. For example, you have to sign in and switch between different Entra ID Tenants, use different credentials and profiles, and access different applications and resources for each Entra ID Tenant, and you might have to deal with login and access issues, confusion, and frustration across different Entra ID Tenants.
How to best handle identities and access across tenants?
If you have a multi-tenant setup, you might need to handle identities and access across different Entra ID Tenants, depending on your scenarios and requirements. For example, you might need to allow your users to access applications and resources in different Entra ID Tenants, or you might need to share your applications and resources with users in different Entra ID Tenants. There are different ways to handle identities and access across tenants, and you need to choose the best one for your situation. Some of the ways are:
Guest users: You can invite users from other Entra ID Tenants to be guest users in your Entra ID Tenant, and you can assign them roles and permissions to access your applications and resources[16]. Guest users can use their own credentials and profiles to sign in to your Entra ID Tenant, and they can use SSO and MFA to access your applications and resources. Guest users can also use their own licenses and subscriptions to access your applications and resources, or you can assign them your licenses and subscriptions, depending on your settings and preferences. You can use the Azure portal or the Entra ID Tenant portal to invite and manage guest users.
B2B collaboration: You can use the business-to-business (B2B) collaboration feature of Entra ID Tenant to enable cross-tenant collaboration and access for your users and applications. B2B collaboration allows you to establish trust relationships between different Entra ID Tenants, and to use federation and SSO to enable seamless and secure access for your users and applications[17]. B2B collaboration also allows you to use conditional access and identity protection to enforce context-aware and risk-based access rules for your users and applications. You can use the Azure portal or the Entra ID Tenant portal to enable and manage B2B collaboration.
Figure 1 Securing the Future of B2B Collaboration: A Visual Representation of Enhanced Security Measures in Workforce and Business Partner Interactions
B2C identity: You can use the business-to-consumer (B2C) identity feature of Entra ID Tenant to enable cross-tenant identity and access for your customers and partners. B2C identity allows you to create and manage user accounts for your customers and partners in your Entra ID Tenant, and to use various identity providers, such as social media accounts, to allow them to sign in with their existing credentials[18]. B2C identity also allows you to use user flows and custom policies to customize and control the user experience and access for your customers and partners. You can use the Azure portal or the Entra ID Tenant portal to enable and manage B2C identity.
Azure Lighthouse: You can use the Azure Lighthouse feature of Azure to enable cross-tenant management and access for your resources and services. Azure Lighthouse allows you to delegate and manage access to your resources and services across different Entra ID Tenants, and to use a single pane of glass to view and manage your resources and services across different Entra ID Tenants[19]. Azure Lighthouse also allows you to use role-based access control (RBAC) and Azure Policy to enforce granular and consistent access rules for your resources and services. You can use the Azure portal or the Azure Lighthouse portal to enable and manage Azure Lighthouse.
Figure 2 Navigating the Azure Lighthouse: A Comprehensive Illustration of Multitenant Management, Delineating the Foundation, Control Plane, Options and Emerging Scenarios
Summary
In this guide, we have introduced the key concepts and features of Microsoft Entra ID Tenant, a cloud-based identity and access management service that helps you manage your organization’s users, devices, applications, and resources. We have explained the purpose and benefits of using Entra ID Tenant, the identity fundamentals, the trust relationships between Entra ID Tenant and Azure subscriptions, the licensing model for Entra ID Tenant, the benefits and drawbacks of having a multi-tenant setup, and the best practices for handling identities and access across tenants. We have also shown how to get a new tenant and how to use Azure Lighthouse to manage multiple tenants. We hope this guide has helped you understand and appreciate the power and flexibility of Microsoft Entra ID Tenant.
References
[1] What is Microsoft Entra ID? – Microsoft Entra | Microsoft Learn
[2] New name for Azure Active Directory – Microsoft Entra | Microsoft Learn
[3] Introduction to identity – Microsoft Entra | Microsoft Learn
[4] Authentication vs. authorization – Microsoft identity platform | Microsoft Learn
[5] Manage access to apps – Microsoft Entra ID | Microsoft Learn
[6] What is Microsoft Entra ID Protection? – Microsoft Entra ID Protection | Microsoft Learn
[7] Microsoft Entra ID Governance – Microsoft Entra ID Governance | Microsoft Learn
[8] What is identity and access management (IAM)? – Microsoft Entra | Microsoft Learn
[9] Microsoft 365 admin center – Overview – Microsoft 365 admin | Microsoft Learn
[10] Microsoft Entra setup guides – Microsoft 365 admin | Microsoft Learn
[11] What is the Azure portal? – Azure portal | Microsoft Learn
[12] Microsoft Entra built-in roles – Microsoft Entra ID | Microsoft Learn
[13] Compare Office 365 Enterprise Pricing and Plans | Microsoft 365
[14] Microsoft Entra ID licensing – Microsoft Entra | Microsoft Learn
[15] Multitenant organization capabilities in Microsoft Entra ID – Microsoft Entra ID | Microsoft Learn
[16] Quickstart: Add a guest user and send an invitation – Microsoft Entra External ID | Microsoft Learn
[17] Overview – External ID in workforce tenants – Microsoft Entra External ID | Microsoft Learn
[18] What is Azure Active Directory B2C? | Microsoft Learn
[19] What is Azure Lighthouse? – Azure Lighthouse | Microsoft Learn
Microsoft Tech Community – Latest Blogs –Read More
Countifs question.
Hi,
Why is cell L4 1 in this eacample. Contifs with 2 condistions.
=COUNTIFS(F3:F8;B3;G3:G8;”>”&J3:J8)
Hi, Why is cell L4 1 in this eacample. Contifs with 2 condistions.=COUNTIFS(F3:F8;B3;G3:G8;”>”&J3:J8) Read More
How to get around account creation on Windows 11?
I’m trying to troubleshoot an issue with my Windows 11 PC, but I’m having trouble getting around the account creation process. Whenever I try to access certain features or settings, I’m prompted to create a new account or log in with an existing one. However, I’m not interested in creating a new account at this time, and I just want to find a solution to my current problem. I’ve tried searching for solutions online, but most of the resources I’ve found seem to focus on creating a new account or troubleshooting issues with existing accounts. I’m hoping someone can help me figure out how to bypass the account creation step and get straight to the solution I need.
I’m trying to troubleshoot an issue with my Windows 11 PC, but I’m having trouble getting around the account creation process. Whenever I try to access certain features or settings, I’m prompted to create a new account or log in with an existing one. However, I’m not interested in creating a new account at this time, and I just want to find a solution to my current problem. I’ve tried searching for solutions online, but most of the resources I’ve found seem to focus on creating a new account or troubleshooting issues with existing accounts. I’m hoping someone can help me figure out how to bypass the account creation step and get straight to the solution I need. Read More
How do I fix QuickBooks Error 6069 While Creating Invoices?
I’m experiencing QuickBooks Desktop Error 6069. This issue started happening when I tried to create invoices in a specific account. I’m unable to save the invoices, and sometimes the program crashes altogether.
Here are some additional details that might be helpful:
Specific actions causing the error: I encounter the error message whenever I attempt to:Create a new invoice in a particular account.Save an existing invoice in the same account.Error message: The exact wording of the error message is “dbconnpool::handleconnectionerror error code:-6069, dbCode:-103″.Impact: I’m unable to create or save invoices for this specific account, which is hindering my workflow.
I’m experiencing QuickBooks Desktop Error 6069. This issue started happening when I tried to create invoices in a specific account. I’m unable to save the invoices, and sometimes the program crashes altogether.Here are some additional details that might be helpful:Specific actions causing the error: I encounter the error message whenever I attempt to:Create a new invoice in a particular account.Save an existing invoice in the same account.Error message: The exact wording of the error message is “dbconnpool::handleconnectionerror error code:-6069, dbCode:-103”.Impact: I’m unable to create or save invoices for this specific account, which is hindering my workflow. Read More
Can I switch between monitors with the press of a single button?
I’m looking for a way to easily switch between two or more monitors on my computer without having to manually adjust the display settings. Currently, I have to click on the monitor icon in the system tray, select the desired monitor, and then click “apply” to switch between them. I’m wondering if there’s a way to assign a single button or shortcut to switch between monitors, perhaps using a keyboard shortcut or a dedicated button on my keyboard or mouse. Any suggestions?
I’m looking for a way to easily switch between two or more monitors on my computer without having to manually adjust the display settings. Currently, I have to click on the monitor icon in the system tray, select the desired monitor, and then click “apply” to switch between them. I’m wondering if there’s a way to assign a single button or shortcut to switch between monitors, perhaps using a keyboard shortcut or a dedicated button on my keyboard or mouse. Any suggestions? Read More
Matlab default app to open .m files
I am trying to associate Matlab with opening of .m files
It is not showing up in my default apps so I cannot make the change as specified below…
Any other ideas?
<https://uk.mathworks.com/matlabcentral/answers/94655-how-do-i-associate-file-types-with-a-certain-application> For Windows 8, Windows 10, and if the file extension is not in a list of file extensions:
1. Right click on any .m file in Windows and select Open With.
2. Select the More Apps option to show a full list of programs installed on your computer.
3. Select MATLAB and make sure the box at the bottom is checked that says "Always use this app to open .m files"I am trying to associate Matlab with opening of .m files
It is not showing up in my default apps so I cannot make the change as specified below…
Any other ideas?
<https://uk.mathworks.com/matlabcentral/answers/94655-how-do-i-associate-file-types-with-a-certain-application> For Windows 8, Windows 10, and if the file extension is not in a list of file extensions:
1. Right click on any .m file in Windows and select Open With.
2. Select the More Apps option to show a full list of programs installed on your computer.
3. Select MATLAB and make sure the box at the bottom is checked that says "Always use this app to open .m files" I am trying to associate Matlab with opening of .m files
It is not showing up in my default apps so I cannot make the change as specified below…
Any other ideas?
<https://uk.mathworks.com/matlabcentral/answers/94655-how-do-i-associate-file-types-with-a-certain-application> For Windows 8, Windows 10, and if the file extension is not in a list of file extensions:
1. Right click on any .m file in Windows and select Open With.
2. Select the More Apps option to show a full list of programs installed on your computer.
3. Select MATLAB and make sure the box at the bottom is checked that says "Always use this app to open .m files" matlab default .m files MATLAB Answers — New Questions
Problem with Simulink support package for arduino
All of a sudden, my installation of Matlab R2024a is not working with the Arduino support packages in simulink. I tried reinstalling MATLAB and the support packages themselves, but am getting the following error message:
Unrecognized method, property, or field ‘ArduinoPrefDirFolderName’ for class ‘arduino.setup.internal.TestConectionScreen’
I am using the support package v. 24.1.1All of a sudden, my installation of Matlab R2024a is not working with the Arduino support packages in simulink. I tried reinstalling MATLAB and the support packages themselves, but am getting the following error message:
Unrecognized method, property, or field ‘ArduinoPrefDirFolderName’ for class ‘arduino.setup.internal.TestConectionScreen’
I am using the support package v. 24.1.1 All of a sudden, my installation of Matlab R2024a is not working with the Arduino support packages in simulink. I tried reinstalling MATLAB and the support packages themselves, but am getting the following error message:
Unrecognized method, property, or field ‘ArduinoPrefDirFolderName’ for class ‘arduino.setup.internal.TestConectionScreen’
I am using the support package v. 24.1.1 arduino, simulink, hardware support MATLAB Answers — New Questions
find 0 crossing points trough all the image rows
Hello all,
I have a vertical laser stripe image and my goal is to find the 0 crossing point of every row of the image in order to plot them as points afterwards.
This is my code, I have done the process for one row of the image. Now I have problems to do this same process for all the rows of the image. I’m trying to do that with a for loop but no way.
Resuming, is to to apply this same code for all the image rows. Thanks in advance!
clc; clear; close all;
%% calibracion de laser real con blur
%cargar la imagen que se va a medir
img=imread(fullfile(‘LaserTestPatternBlurred.bmp’));
img=imrotate(img,90);
% imshow(img)
% title(‘Imagen original’)
%% procesado de la imagen
img_o=rgb2gray(img);
%mask = (I(:, :, 1) > 100) & (I(:, :, 2) > 100);
mask=(img_o(:,:) > 50);
img = bsxfun(@times, img_o, cast(mask, ‘like’, img_o));
% figure()
% imshow(img)
% title(‘Binarizada’)
%% seleccionar una linea de la imagen y buscar su 0 crossing
[rows, columns, numberOfColorChannels] = size(img);
%seleccionamos la linea 900 y se le aplica un filtro para suavizar
linea=img(900,:);
sm=sgolayfilt(double(linea),2,25);
% figure()
% plot(img_o(900,:),’b’)
% hold on
% plot(linea,’r’)
% plot(sm,’g’)
% grid on
% ylim([0 255])
% title(‘Linea’)
% legend(‘imagen’,’linea’,’filtrado’)
% hold off
%buscamos los picos maximos de la gradiente
Lder=gradient(sm);
[picosp,locsp]=findpeaks(Lder);
[picosn,locsn]=findpeaks(-Lder);
% figure()
% plot(Lder)
% hold on
% scatter(locsn(1,2),-picosn(1,2),’g’)
% scatter(locsp(1,1),picosp(1,1),’g’)
% plot([locsn(1,2) locsp(1,1)],[-picosn(1,2) picosp(1,1)])
% axis([450 550 -15 15])
% grid on
%obtener la ecuacion de la recta entre los maximos y el paso por 0
recta = polyfit([locsp, locsn], [picosp, -picosn], 1);
a = recta (1);
b = recta (2);
subpixel= -b/(a);
scatter(subpixel,0,’r’)
hold offHello all,
I have a vertical laser stripe image and my goal is to find the 0 crossing point of every row of the image in order to plot them as points afterwards.
This is my code, I have done the process for one row of the image. Now I have problems to do this same process for all the rows of the image. I’m trying to do that with a for loop but no way.
Resuming, is to to apply this same code for all the image rows. Thanks in advance!
clc; clear; close all;
%% calibracion de laser real con blur
%cargar la imagen que se va a medir
img=imread(fullfile(‘LaserTestPatternBlurred.bmp’));
img=imrotate(img,90);
% imshow(img)
% title(‘Imagen original’)
%% procesado de la imagen
img_o=rgb2gray(img);
%mask = (I(:, :, 1) > 100) & (I(:, :, 2) > 100);
mask=(img_o(:,:) > 50);
img = bsxfun(@times, img_o, cast(mask, ‘like’, img_o));
% figure()
% imshow(img)
% title(‘Binarizada’)
%% seleccionar una linea de la imagen y buscar su 0 crossing
[rows, columns, numberOfColorChannels] = size(img);
%seleccionamos la linea 900 y se le aplica un filtro para suavizar
linea=img(900,:);
sm=sgolayfilt(double(linea),2,25);
% figure()
% plot(img_o(900,:),’b’)
% hold on
% plot(linea,’r’)
% plot(sm,’g’)
% grid on
% ylim([0 255])
% title(‘Linea’)
% legend(‘imagen’,’linea’,’filtrado’)
% hold off
%buscamos los picos maximos de la gradiente
Lder=gradient(sm);
[picosp,locsp]=findpeaks(Lder);
[picosn,locsn]=findpeaks(-Lder);
% figure()
% plot(Lder)
% hold on
% scatter(locsn(1,2),-picosn(1,2),’g’)
% scatter(locsp(1,1),picosp(1,1),’g’)
% plot([locsn(1,2) locsp(1,1)],[-picosn(1,2) picosp(1,1)])
% axis([450 550 -15 15])
% grid on
%obtener la ecuacion de la recta entre los maximos y el paso por 0
recta = polyfit([locsp, locsn], [picosp, -picosn], 1);
a = recta (1);
b = recta (2);
subpixel= -b/(a);
scatter(subpixel,0,’r’)
hold off Hello all,
I have a vertical laser stripe image and my goal is to find the 0 crossing point of every row of the image in order to plot them as points afterwards.
This is my code, I have done the process for one row of the image. Now I have problems to do this same process for all the rows of the image. I’m trying to do that with a for loop but no way.
Resuming, is to to apply this same code for all the image rows. Thanks in advance!
clc; clear; close all;
%% calibracion de laser real con blur
%cargar la imagen que se va a medir
img=imread(fullfile(‘LaserTestPatternBlurred.bmp’));
img=imrotate(img,90);
% imshow(img)
% title(‘Imagen original’)
%% procesado de la imagen
img_o=rgb2gray(img);
%mask = (I(:, :, 1) > 100) & (I(:, :, 2) > 100);
mask=(img_o(:,:) > 50);
img = bsxfun(@times, img_o, cast(mask, ‘like’, img_o));
% figure()
% imshow(img)
% title(‘Binarizada’)
%% seleccionar una linea de la imagen y buscar su 0 crossing
[rows, columns, numberOfColorChannels] = size(img);
%seleccionamos la linea 900 y se le aplica un filtro para suavizar
linea=img(900,:);
sm=sgolayfilt(double(linea),2,25);
% figure()
% plot(img_o(900,:),’b’)
% hold on
% plot(linea,’r’)
% plot(sm,’g’)
% grid on
% ylim([0 255])
% title(‘Linea’)
% legend(‘imagen’,’linea’,’filtrado’)
% hold off
%buscamos los picos maximos de la gradiente
Lder=gradient(sm);
[picosp,locsp]=findpeaks(Lder);
[picosn,locsn]=findpeaks(-Lder);
% figure()
% plot(Lder)
% hold on
% scatter(locsn(1,2),-picosn(1,2),’g’)
% scatter(locsp(1,1),picosp(1,1),’g’)
% plot([locsn(1,2) locsp(1,1)],[-picosn(1,2) picosp(1,1)])
% axis([450 550 -15 15])
% grid on
%obtener la ecuacion de la recta entre los maximos y el paso por 0
recta = polyfit([locsp, locsn], [picosp, -picosn], 1);
a = recta (1);
b = recta (2);
subpixel= -b/(a);
scatter(subpixel,0,’r’)
hold off laser stripe, calibration, 0 crossing MATLAB Answers — New Questions
How to get the Account code from the formula refer the amount column
Hi,
I have 2 sheets in workbook. 1st sheet is Summary sheet and other one is details sheet. I have attached the sample sheet with required result in highlighted cells,
1st sheet having the sample balance sheet where it summarizes the accounts amounts from the details sheet. i want the account number in 1st sheet against group of balance sheet accounts as per the amount total.
Thank you in advance
Tejas Shah
Hi, I have 2 sheets in workbook. 1st sheet is Summary sheet and other one is details sheet. I have attached the sample sheet with required result in highlighted cells, 1st sheet having the sample balance sheet where it summarizes the accounts amounts from the details sheet. i want the account number in 1st sheet against group of balance sheet accounts as per the amount total. Thank you in advance Tejas Shah Read More
Sharepoint: Automatically sort by “last added”
I’m german so sorry for my english
is it possible that Sharepoint automatically sorts by “last added” in a list?
we always have to manually click “sort by newest”
see screenshot.
thx
I’m german so sorry for my englishis it possible that Sharepoint automatically sorts by “last added” in a list?we always have to manually click “sort by newest”see screenshot.thx Read More
3D Wavelet Transform via Linear Algebra
Hello, I am putting this out there to see if anyone can help me take my linear algebra solution to the wavelet transform from 2D to 3D. The reason I am doing this is because there is no lwt3 function in the wavelet toolbox, and dwt3 does not organize the coefficients in a way that I would prefer.
The equations for 1D and 2D are fairly simple. Working with an operator "L" and "H" which are N/2 by N, one can perform the 1D by multiplying the vector by the transpose of the operator. In 2D you perform L*X*L’ for every combination of L and H (resulting in 4, N/2 by N/2 matrices). Here is some code demonstrating 1D and 2D, if anyone could help me figure out 3D it would be greatly appreciated.
%% Datasets
X1 = reshape(1:4,1,4);
X2 = reshape(1:16,4,4);
X3 = reshape(1:64,4,4,4);
%% Get Operators
ls = liftingScheme(‘Wavelet’,’db2′);
[LoD,HiD,LoR,HiR] = ls2filt(ls);
L = operator(LoD,4);
H = operator(HiD,4);
%% 1D transform
l = X1*H’;
h = X1*L’;
%% 2D transform
ll = L*X2*L’;
lh = H*X2*L’;
hl = L*X2*H’;
hh = H*X2*H’;
%% 3D transform???
%% FUNCTIONS
function L = operator(a,N)
L = zeros(N/2,N);
for i = 1:N/2
L(i,2*(i-1)+1:2*(i-1)+numel(a)) = a;
end
L = L(:,1:N) + [L(:,N+1:N+floor(numel(a)/2)),zeros(N/2,N-floor(numel(a)/2))];
endHello, I am putting this out there to see if anyone can help me take my linear algebra solution to the wavelet transform from 2D to 3D. The reason I am doing this is because there is no lwt3 function in the wavelet toolbox, and dwt3 does not organize the coefficients in a way that I would prefer.
The equations for 1D and 2D are fairly simple. Working with an operator "L" and "H" which are N/2 by N, one can perform the 1D by multiplying the vector by the transpose of the operator. In 2D you perform L*X*L’ for every combination of L and H (resulting in 4, N/2 by N/2 matrices). Here is some code demonstrating 1D and 2D, if anyone could help me figure out 3D it would be greatly appreciated.
%% Datasets
X1 = reshape(1:4,1,4);
X2 = reshape(1:16,4,4);
X3 = reshape(1:64,4,4,4);
%% Get Operators
ls = liftingScheme(‘Wavelet’,’db2′);
[LoD,HiD,LoR,HiR] = ls2filt(ls);
L = operator(LoD,4);
H = operator(HiD,4);
%% 1D transform
l = X1*H’;
h = X1*L’;
%% 2D transform
ll = L*X2*L’;
lh = H*X2*L’;
hl = L*X2*H’;
hh = H*X2*H’;
%% 3D transform???
%% FUNCTIONS
function L = operator(a,N)
L = zeros(N/2,N);
for i = 1:N/2
L(i,2*(i-1)+1:2*(i-1)+numel(a)) = a;
end
L = L(:,1:N) + [L(:,N+1:N+floor(numel(a)/2)),zeros(N/2,N-floor(numel(a)/2))];
end Hello, I am putting this out there to see if anyone can help me take my linear algebra solution to the wavelet transform from 2D to 3D. The reason I am doing this is because there is no lwt3 function in the wavelet toolbox, and dwt3 does not organize the coefficients in a way that I would prefer.
The equations for 1D and 2D are fairly simple. Working with an operator "L" and "H" which are N/2 by N, one can perform the 1D by multiplying the vector by the transpose of the operator. In 2D you perform L*X*L’ for every combination of L and H (resulting in 4, N/2 by N/2 matrices). Here is some code demonstrating 1D and 2D, if anyone could help me figure out 3D it would be greatly appreciated.
%% Datasets
X1 = reshape(1:4,1,4);
X2 = reshape(1:16,4,4);
X3 = reshape(1:64,4,4,4);
%% Get Operators
ls = liftingScheme(‘Wavelet’,’db2′);
[LoD,HiD,LoR,HiR] = ls2filt(ls);
L = operator(LoD,4);
H = operator(HiD,4);
%% 1D transform
l = X1*H’;
h = X1*L’;
%% 2D transform
ll = L*X2*L’;
lh = H*X2*L’;
hl = L*X2*H’;
hh = H*X2*H’;
%% 3D transform???
%% FUNCTIONS
function L = operator(a,N)
L = zeros(N/2,N);
for i = 1:N/2
L(i,2*(i-1)+1:2*(i-1)+numel(a)) = a;
end
L = L(:,1:N) + [L(:,N+1:N+floor(numel(a)/2)),zeros(N/2,N-floor(numel(a)/2))];
end wavelet, 3d, linear-algebra, mathematics, lifting-scheme MATLAB Answers — New Questions
MDE notifications
Hello,
Can we configure an email alert in MDE in case there is signature update failure? Please guide.
Thanks,
K
Hello, Can we configure an email alert in MDE in case there is signature update failure? Please guide. Thanks,K Read More
Strange results with asymptotics function
I have a Markov chain with K communication classes, each communication class forms an ergodic subchain. Then I use the asymptotics function to get the K limit distributions of this Markov chain. However, results from the asymptotics function seems very sensitive to the transition matrix. Then I impliment the asymptotics function by my self following the Spedicato’s algorithm (ref), i.e.:
And I found that Spedicato’s algorithm is not that sensitive to the transition matrix.
Here is the code:
%% load data
clear;clc;
load(‘data.mat’); % load the example transition matrix A and indicator matrix C
% note: A is a left stochastic matrix, i.e., all cols sum to 1
% A2, C2 is slightly changed from A1, C1
% disp(sum(sum(abs(A1-A2)))); %7.1385e-05
if true
A=A1;
C=C1;
else
A=A2;
C=C2;
end
%% matlab asymptotics function
K = 3;
S=size(A,1);
mc = dtmc(A’);
[pi, tmix] = asymptotics(mc);
pi=pi’;
prss = sum(C*pi);
fprintf(‘prss=%sn’, mat2str(prss));
fprintf(‘prss diff = %.3f%%n’, (max(prss)-min(prss))/min(prss)*100);
%% Spedicato’s algorithm
[bins,ClassStates,ClassRecurrence,ClassPeriod] = classify(mc);
num_classes = size(ClassStates, 2);
prss = zeros(1, num_classes);
for c =1 : num_classes
sc = subchain(mc,str2num(ClassStates{c}(1)));
Cs = zeros(size(C,1), sc.NumStates);
for i=1:sc.NumStates
idx = str2num(sc.StateNames(i));
Cs(:,i) = C(:, idx);
end
As = sc.P’;
% get stationary distribution
% the condition number is not very large, so I think using inv() is ok
pi = inv(ones(sc.NumStates)+eye(sc.NumStates)-As)*ones(sc.NumStates,1);
prss(c) = sum(Cs * pi);
end
fprintf(‘prss=%sn’, mat2str(prss));
fprintf(‘prss diff = %.3f%%n’, (max(prss)-min(prss))/min(prss)*100);I have a Markov chain with K communication classes, each communication class forms an ergodic subchain. Then I use the asymptotics function to get the K limit distributions of this Markov chain. However, results from the asymptotics function seems very sensitive to the transition matrix. Then I impliment the asymptotics function by my self following the Spedicato’s algorithm (ref), i.e.:
And I found that Spedicato’s algorithm is not that sensitive to the transition matrix.
Here is the code:
%% load data
clear;clc;
load(‘data.mat’); % load the example transition matrix A and indicator matrix C
% note: A is a left stochastic matrix, i.e., all cols sum to 1
% A2, C2 is slightly changed from A1, C1
% disp(sum(sum(abs(A1-A2)))); %7.1385e-05
if true
A=A1;
C=C1;
else
A=A2;
C=C2;
end
%% matlab asymptotics function
K = 3;
S=size(A,1);
mc = dtmc(A’);
[pi, tmix] = asymptotics(mc);
pi=pi’;
prss = sum(C*pi);
fprintf(‘prss=%sn’, mat2str(prss));
fprintf(‘prss diff = %.3f%%n’, (max(prss)-min(prss))/min(prss)*100);
%% Spedicato’s algorithm
[bins,ClassStates,ClassRecurrence,ClassPeriod] = classify(mc);
num_classes = size(ClassStates, 2);
prss = zeros(1, num_classes);
for c =1 : num_classes
sc = subchain(mc,str2num(ClassStates{c}(1)));
Cs = zeros(size(C,1), sc.NumStates);
for i=1:sc.NumStates
idx = str2num(sc.StateNames(i));
Cs(:,i) = C(:, idx);
end
As = sc.P’;
% get stationary distribution
% the condition number is not very large, so I think using inv() is ok
pi = inv(ones(sc.NumStates)+eye(sc.NumStates)-As)*ones(sc.NumStates,1);
prss(c) = sum(Cs * pi);
end
fprintf(‘prss=%sn’, mat2str(prss));
fprintf(‘prss diff = %.3f%%n’, (max(prss)-min(prss))/min(prss)*100); I have a Markov chain with K communication classes, each communication class forms an ergodic subchain. Then I use the asymptotics function to get the K limit distributions of this Markov chain. However, results from the asymptotics function seems very sensitive to the transition matrix. Then I impliment the asymptotics function by my self following the Spedicato’s algorithm (ref), i.e.:
And I found that Spedicato’s algorithm is not that sensitive to the transition matrix.
Here is the code:
%% load data
clear;clc;
load(‘data.mat’); % load the example transition matrix A and indicator matrix C
% note: A is a left stochastic matrix, i.e., all cols sum to 1
% A2, C2 is slightly changed from A1, C1
% disp(sum(sum(abs(A1-A2)))); %7.1385e-05
if true
A=A1;
C=C1;
else
A=A2;
C=C2;
end
%% matlab asymptotics function
K = 3;
S=size(A,1);
mc = dtmc(A’);
[pi, tmix] = asymptotics(mc);
pi=pi’;
prss = sum(C*pi);
fprintf(‘prss=%sn’, mat2str(prss));
fprintf(‘prss diff = %.3f%%n’, (max(prss)-min(prss))/min(prss)*100);
%% Spedicato’s algorithm
[bins,ClassStates,ClassRecurrence,ClassPeriod] = classify(mc);
num_classes = size(ClassStates, 2);
prss = zeros(1, num_classes);
for c =1 : num_classes
sc = subchain(mc,str2num(ClassStates{c}(1)));
Cs = zeros(size(C,1), sc.NumStates);
for i=1:sc.NumStates
idx = str2num(sc.StateNames(i));
Cs(:,i) = C(:, idx);
end
As = sc.P’;
% get stationary distribution
% the condition number is not very large, so I think using inv() is ok
pi = inv(ones(sc.NumStates)+eye(sc.NumStates)-As)*ones(sc.NumStates,1);
prss(c) = sum(Cs * pi);
end
fprintf(‘prss=%sn’, mat2str(prss));
fprintf(‘prss diff = %.3f%%n’, (max(prss)-min(prss))/min(prss)*100); markov chain, asymptotics MATLAB Answers — New Questions