Month: June 2024
Teams URL’s (coming from Onenote) give Application Error in browser
With Teams Version 24137.2216.2931.2440 we’ve expected an issue with URLs.
When i open a Onenote File inside Teams and try to open an URL i get this error
When i try to open directly from Onenote it works.
When i copy the URL and paste it to browser it works.
Only from Teams it seems to have Problems. Does anyone have this problem too??
With Teams Version 24137.2216.2931.2440 we’ve expected an issue with URLs. When i open a Onenote File inside Teams and try to open an URL i get this errorWhen i try to open directly from Onenote it works. When i copy the URL and paste it to browser it works. Only from Teams it seems to have Problems. Does anyone have this problem too?? Read More
Windows Insider HELP!!
How do I get this off my laptop!!! I can’t do anything, I open it up and get a green screen.
my laptop then tries to fix itself but can’t
How do I get this off my laptop!!! I can’t do anything, I open it up and get a green screen.my laptop then tries to fix itself but can’t Read More
Azure alert on multipel subscriptions
Hi all,
i am not sure if this is the rigt place, but here goes.
I am working on creating a monitoring solution, and are trying to create some dynamic alert rules.
I need them to look on a lot of subscriptions, but when use chose scope, you can only chose one subscription.
So i have exported the template and add’ed another subscription in the scopes section, but will it work?
This is what the properties section looks like in the template, it is looking on cpu usage over time:
Hi all, i am not sure if this is the rigt place, but here goes. I am working on creating a monitoring solution, and are trying to create some dynamic alert rules.I need them to look on a lot of subscriptions, but when use chose scope, you can only chose one subscription.So i have exported the template and add’ed another subscription in the scopes section, but will it work? This is what the properties section looks like in the template, it is looking on cpu usage over time:”properties”: { “description”: “Dynamic warning on CPU ussage”, “severity”: 2, “enabled”: true, “scopes”: [ “/subscriptions/Sub1”, “/subscriptions/Sub2” ], “evaluationFrequency”: “PT15M”, “windowSize”: “PT1H”, “criteria”: { “allOf”: [ { “alertSensitivity”: “High”, “failingPeriods”: { “numberOfEvaluationPeriods”: 4, “minFailingPeriodsToAlert”: 4 }, “name”: “Metric1”, “metricNamespace”: “microsoft.compute/virtualmachines”, “metricName”: “Percentage CPU”, “operator”: “GreaterOrLessThan”, “timeAggregation”: “Average”, “criterionType”: “DynamicThresholdCriterion” } ], “odata.type”: “Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria” }, Any input is more than welcome 🙂 RegardsJan L Dam Read More
Level-2 S-Function in Simulink subsystem
I’m working with a Level-2 S-Function in a Simulink subsystem and I would like to configure some parameters (IP, sample time) from the subsystem mask so that I don’t have to edit the Matlab code on every change, defining them into the S-Function as a variable. How can these parameters be passed to the S-Function?
The error I get is: "Cannot access data in ‘simulink_pr/Subsystem/ ‘. The probable cause of this error is accessing data that is available only when simulation is running"
Thank you very muchI’m working with a Level-2 S-Function in a Simulink subsystem and I would like to configure some parameters (IP, sample time) from the subsystem mask so that I don’t have to edit the Matlab code on every change, defining them into the S-Function as a variable. How can these parameters be passed to the S-Function?
The error I get is: "Cannot access data in ‘simulink_pr/Subsystem/ ‘. The probable cause of this error is accessing data that is available only when simulation is running"
Thank you very much I’m working with a Level-2 S-Function in a Simulink subsystem and I would like to configure some parameters (IP, sample time) from the subsystem mask so that I don’t have to edit the Matlab code on every change, defining them into the S-Function as a variable. How can these parameters be passed to the S-Function?
The error I get is: "Cannot access data in ‘simulink_pr/Subsystem/ ‘. The probable cause of this error is accessing data that is available only when simulation is running"
Thank you very much s-function, simulink, mask MATLAB Answers — New Questions
Interpreting the results of DWT
Hi, I am currently using the DWT to detect transients in my signal. When doing the DWT on my signal I use the following command:
[cA,cD] = dwt(signal,’db4′)
And when I plot cD and cA respectively, they both look like the original signal. Does this mean that there are both low and high frequency components in the dwt or is there another interpretation of this result?Hi, I am currently using the DWT to detect transients in my signal. When doing the DWT on my signal I use the following command:
[cA,cD] = dwt(signal,’db4′)
And when I plot cD and cA respectively, they both look like the original signal. Does this mean that there are both low and high frequency components in the dwt or is there another interpretation of this result? Hi, I am currently using the DWT to detect transients in my signal. When doing the DWT on my signal I use the following command:
[cA,cD] = dwt(signal,’db4′)
And when I plot cD and cA respectively, they both look like the original signal. Does this mean that there are both low and high frequency components in the dwt or is there another interpretation of this result? frequency MATLAB Answers — New Questions
Individual Activation Issue with maintainence
Dear, All.
When I try to deactive and active the MATLAB to same computer due to my mistake, I am failed to activate MATLAB again.
I showed the following message.
"No more machine transfers available."
So I buy the maintainance support for reactivation two time until 2027 but the activation process doen’t work properly.
Also, I can see the activation computer list in my license management. Currently, I am traveling outside Korea. Is the activation related to nation?
Best regards,Dear, All.
When I try to deactive and active the MATLAB to same computer due to my mistake, I am failed to activate MATLAB again.
I showed the following message.
"No more machine transfers available."
So I buy the maintainance support for reactivation two time until 2027 but the activation process doen’t work properly.
Also, I can see the activation computer list in my license management. Currently, I am traveling outside Korea. Is the activation related to nation?
Best regards, Dear, All.
When I try to deactive and active the MATLAB to same computer due to my mistake, I am failed to activate MATLAB again.
I showed the following message.
"No more machine transfers available."
So I buy the maintainance support for reactivation two time until 2027 but the activation process doen’t work properly.
Also, I can see the activation computer list in my license management. Currently, I am traveling outside Korea. Is the activation related to nation?
Best regards, license, activation, individual MATLAB Answers — New Questions
simulink FMU export fail
I attempted to export an Standalone FMU from Simulink environment, but encountered the following error: "[an installation of Microsoft Visual C++ 2017 cannot be detected]".
I tried installing Microsoft Visual C++ 2015-2020 package, restarted the PC, and retried, but encountered the same error. Installing C++ 2017 separately and retrying also resulted in the same error.
I even tried with a simple model (consisting of only one ramp block and one sum block), suspecting a Simulink model issue, but the error persisted.
I would like to inquire about possible solutions to this problem.
diagnosis viewer text :
Setting ExportedContent to ‘off’. Option to export archived project is not supported if Generate32BitDLL is ‘on’. Setting CreateModelAfterGeneratingFMU to ‘off’. CreateModelAfterGeneratingFMU option is not supported if Generate32BitDLL is ‘on’. ‘GenCodeOnly’ is disabled for Co-Simulation Standalone FMU Export. Setting System Target to FMU Co-Simulation for model ‘ex_26_fchev_simulink’. Setting Hardware Implementation > Device Type to ‘MATLAB Host’ for model ‘ex_26_fchev_simulink’. Generating 32-bit MSVC toolchain.
An installation of Microsoft Visual C++ 2017 cannot be detecteI attempted to export an Standalone FMU from Simulink environment, but encountered the following error: "[an installation of Microsoft Visual C++ 2017 cannot be detected]".
I tried installing Microsoft Visual C++ 2015-2020 package, restarted the PC, and retried, but encountered the same error. Installing C++ 2017 separately and retrying also resulted in the same error.
I even tried with a simple model (consisting of only one ramp block and one sum block), suspecting a Simulink model issue, but the error persisted.
I would like to inquire about possible solutions to this problem.
diagnosis viewer text :
Setting ExportedContent to ‘off’. Option to export archived project is not supported if Generate32BitDLL is ‘on’. Setting CreateModelAfterGeneratingFMU to ‘off’. CreateModelAfterGeneratingFMU option is not supported if Generate32BitDLL is ‘on’. ‘GenCodeOnly’ is disabled for Co-Simulation Standalone FMU Export. Setting System Target to FMU Co-Simulation for model ‘ex_26_fchev_simulink’. Setting Hardware Implementation > Device Type to ‘MATLAB Host’ for model ‘ex_26_fchev_simulink’. Generating 32-bit MSVC toolchain.
An installation of Microsoft Visual C++ 2017 cannot be detecte I attempted to export an Standalone FMU from Simulink environment, but encountered the following error: "[an installation of Microsoft Visual C++ 2017 cannot be detected]".
I tried installing Microsoft Visual C++ 2015-2020 package, restarted the PC, and retried, but encountered the same error. Installing C++ 2017 separately and retrying also resulted in the same error.
I even tried with a simple model (consisting of only one ramp block and one sum block), suspecting a Simulink model issue, but the error persisted.
I would like to inquire about possible solutions to this problem.
diagnosis viewer text :
Setting ExportedContent to ‘off’. Option to export archived project is not supported if Generate32BitDLL is ‘on’. Setting CreateModelAfterGeneratingFMU to ‘off’. CreateModelAfterGeneratingFMU option is not supported if Generate32BitDLL is ‘on’. ‘GenCodeOnly’ is disabled for Co-Simulation Standalone FMU Export. Setting System Target to FMU Co-Simulation for model ‘ex_26_fchev_simulink’. Setting Hardware Implementation > Device Type to ‘MATLAB Host’ for model ‘ex_26_fchev_simulink’. Generating 32-bit MSVC toolchain.
An installation of Microsoft Visual C++ 2017 cannot be detecte fmu, simulink, visual c++ MATLAB Answers — New Questions
Count how many people worked on a task – Dropdown menu
Hi there,
I’m trying to wrap my head around the dropdown menu function in Excel.
I’m using it this year to track which tasks were done on how many days.
F.e. the picture below are all dropdown cells.
Per day I add tasks per zone / category / detail / how many people worked on it.
After two months I want to know:
How many people worked on the food fronts: how many days / how many people?
I’ll add a filter on the column detail to search for the food fronts, but I want to be able to count the amount of people worked on it.
Does there exist a formula to count the amount of cells selected in one dropdown?
In this example the formula would say: 6 people worked on food fronts that day.
Many thanks!
Hi there, I’m trying to wrap my head around the dropdown menu function in Excel.I’m using it this year to track which tasks were done on how many days. F.e. the picture below are all dropdown cells. Per day I add tasks per zone / category / detail / how many people worked on it. After two months I want to know:How many people worked on the food fronts: how many days / how many people? I’ll add a filter on the column detail to search for the food fronts, but I want to be able to count the amount of people worked on it. Does there exist a formula to count the amount of cells selected in one dropdown? In this example the formula would say: 6 people worked on food fronts that day. Many thanks! Read More
Check-in/ check out when creating a new doc in a team site
Hello,
How to disable the check-in/ checkout when I create a document in a team site?
When I create a doc, even directly from “New+” on SharePoint, the Auto-save in on, so it’s saved in the SharePoint. But when I want to close it, it’s asking me to check-in and check-out my document.
It does the same with all the team site I’m in and not for the other members,
If I drag and drop the file from my OneDrive, it’s doesn’t ask.
Thank you
Hello, How to disable the check-in/ checkout when I create a document in a team site? When I create a doc, even directly from “New+” on SharePoint, the Auto-save in on, so it’s saved in the SharePoint. But when I want to close it, it’s asking me to check-in and check-out my document. It does the same with all the team site I’m in and not for the other members, If I drag and drop the file from my OneDrive, it’s doesn’t ask. Thank you Read More
access corporate data on an iPad without user affinity
Hello everyone,
Is it possible to access corporate data, such as a resource calendar (room), with an iPad that has been set up in Intune without user affinity? The tablet will be mounted on the wall outside our meeting rooms and display room availability. I’d like to avoid creating a generic user for this purpose.
What about licensing? A generic user would require both an Intune and an Exchange license. What licenses are needed for an iPad without a user for access?
Thank you very much for your help, and greetings from Germany
Nico
Hello everyone,Is it possible to access corporate data, such as a resource calendar (room), with an iPad that has been set up in Intune without user affinity? The tablet will be mounted on the wall outside our meeting rooms and display room availability. I’d like to avoid creating a generic user for this purpose. What about licensing? A generic user would require both an Intune and an Exchange license. What licenses are needed for an iPad without a user for access? Thank you very much for your help, and greetings from GermanyNico Read More
Custom Scripts policy breaks editing Custom Fields in PDPs (Project Online)
Hi!
Due to the recent policy applied by Microsoft about blocking the edition of Custom Scripts with the CEWP, we cannot edit Project Details Pages anymore to add/remove Enterprise Custom Fields in Project Online.
This should be working as Enterprise Custom Fields are not Custom Scripts!
Any advice?
Thanks in advance
Hi! Due to the recent policy applied by Microsoft about blocking the edition of Custom Scripts with the CEWP, we cannot edit Project Details Pages anymore to add/remove Enterprise Custom Fields in Project Online. This should be working as Enterprise Custom Fields are not Custom Scripts! Any advice? Thanks in advance Read More
Registration Microsoft Partner Problem
Hello Community,
I would like to register as a Microsoft partner with my Microsoft business ID. (Microsoft AI Cloud Partner Program) Unfortunately, I get the following error message:
{“code”:2100,”description”:”A legal entity matching the request payload already exists when creating the legal entity.”,”data”:[],”source”:”PartnerAccountEnrollmentApi”}
Does anyone have an idea?
Thanks and regards
Torsten
Hello Community,I would like to register as a Microsoft partner with my Microsoft business ID. (Microsoft AI Cloud Partner Program) Unfortunately, I get the following error message: {“code”:2100,”description”:”A legal entity matching the request payload already exists when creating the legal entity.”,”data”:[],”source”:”PartnerAccountEnrollmentApi”} Does anyone have an idea?Thanks and regardsTorsten Read More
Formatting footnote?
Hi there,
I have a real strange one, one of my users is getting the attached footnote when editing and formatting a document. Everything on her PC is in English, I can’t find any reference to the German language anywhere! ha ha ha
For the life of me I can’t replicate the message when I format any documentation, even in the same document.
I’m just trying to understand how it came about, as she is now paranoid that there is a language setting on her PC causing problems. I have asked her to test on another document, however haven’t heard back yet.
Can anyone give me guidance as to how this notation would have come about?
Thanks
Hi there, I have a real strange one, one of my users is getting the attached footnote when editing and formatting a document. Everything on her PC is in English, I can’t find any reference to the German language anywhere! ha ha ha For the life of me I can’t replicate the message when I format any documentation, even in the same document. I’m just trying to understand how it came about, as she is now paranoid that there is a language setting on her PC causing problems. I have asked her to test on another document, however haven’t heard back yet. Can anyone give me guidance as to how this notation would have come about? Thanks Read More
Microsoft AI Tour and Community Engagements in Seoul
The Microsoft AI Tour, a global event series aimed at enhancing AI skills for decision-makers and developers. The tour has been held in various locations around the world. Many attendees at these events had the opportunity to learn about the latest AI technologies, interact with Microsoft leaders and technical experts, and enjoy a unique opportunity to further utilize Microsoft AI technology in the future.
In this blog article, we present the vibrant event filled with diverse participants, along with a community gathering held the day before, featuring an executive speaker from Microsoft, Scott Hanselman (VP of Developer Community).
April 30, 2024 – Microsoft AI Tour Seoul
The Microsoft AI Tour Seoul, co-hosted with NVIDIA, was held to enhance Microsoft AI skills through technical sessions and interactions with experts, mainly targeting developers. Scott Hanselman kicked off the event with a greeting in Korean, delivering a keynote speech that energized the large crowd, who were eager to learn from him. Scott discussed essential AI knowledge for developers and how AI can contribute to organizational and career growth.
This Microsoft AI Tour Seoul saw the highest MVP participation among all previous AI Tour events held in various countries, 30 MVPs as staff members. They contributed as speakers in theater sessions, booth presenters, and workshop proctors. They helped expand the future possibilities by sharing their expertise and experiences as community leaders. One of attendees shared positive feedback, “I joined the Microsoft AI community through the AI Community Booth at the AI Tour Seoul. I’m eager to deepen my understanding of Microsoft AI and explore how to integrate AI technology into both my business and personal life.”
April 29, 2024 – Microsoft AI Tour Community Day
The day before the Microsoft AI Tour Seoul, the Microsoft AI Tour Community Day was held, a community event organized in collaboration with Microsoft Cloud Advocate Justin Yoo and Microsoft MVPs.
Four MVP speakers – JongIn Lee, Jung Hyun Nam, Jinseok Kim, and JinKwon Jeon – covered various AI-related topics, including the latest technologies in Azure, app development, and data analysis. Scott discussed useful tools for application development and engaged in a Q&A discussion with a diverse audience, from Microsoft Learn Student Ambassadors to professional developers.
April 29, 2024 – Korean AI MVPs x Startup Meetup
On the same day as the Microsoft AI Tour Community Day, another event was held by two Korean AI MVPs, YoungWook Kim and Mijeong Jeon, alongside Scott.
This event, hosted at the Seoul AI Hub, a center established by Seoul City to promote AI research, development, and industrialization, attracted many startup CEOs and CTOs. Participants learned about Microsoft AI technologies, the new language model Phi-3, and Microsoft’s startup support program, Founders Hub. They also explored business and personal growth opportunities through involvement in the AI community.
Microsoft AI Tour events have been held in various locations, with Microsoft MVPs and Regional Directors sharing their AI knowledge to support attendees’ learning. We extend our heartfelt gratitude to everyone who contributed to all the Microsoft AI Tour events and look forward to continuing to share innovative AI technologies with community members worldwide.
At the Microsoft Build held in May, numerous AI updates were announced. Besides the events, a variety of resources, including content and videos from Microsoft Learn such as the Copilot Learning Hub, are available to explore the latest Microsoft AI.
Whether you’re someone who has already embraced the latest technological advancements or someone new to AI, we encourage everyone to experience the potential of AI in their preferred way. Join the tech communities led by MVPs, learn deeply alongside other users, and together, let’s shape the future of AI!
Microsoft Tech Community – Latest Blogs –Read More
Simple Self-Troubleshooting Steps for Function App Not Seeing Triggers
Sometimes, on the Azure portal, you might see an error message on the Function App like “we were not able to load some functions in the list due to errors.”
There are many reasons for this symptom, such as connection errors with the storage account, runtime being down, indexing failure, and the synctriggers failure that we’ll discuss.
To confirm whether your issue is indeed due to synctriggers, you could press F12 in your browser to activate developer mode and search for the keyword “batch” under the “Network” tab. This endpoint is used by the Azure portal to call various internal services of the Function App (e.g., retrieving app settings, site information, getting host status, etc.), including synctriggers.
Under the “Network” tab’s “Payload” section, you can find these invocation activities. Look for the “WebsitesExtension.sync” activity (i.e., synctriggers) and note its GUID name.
Then, in the “Preview” section under the “Network” tab, use the GUID name to find the corresponding service invocation results. In this example, you might find that the return status code of the synctriggers invocation is not 200, meaning the invocation failed for some reason, which explains the related error messages in the Azure portal.
It means we could not see the trigger in the Azure portal is due to an internal “synctriggers” invocation failure. The causes of synctriggers failure are numerous, with the majority being network-related. Hence, we have compiled this simple SOP to help you quickly perform self-troubleshooting.
TOC
What is it
Architecture
Troubleshooting Cases
Summary
References
What is it
The synctriggers is an internal endpoint of Azure Function App in synchronizing the triggers defined in your application with the platform’s data.
Purpose of synctriggers Endpoint:
Trigger Synchronization:
To ensure that the triggers defined in the function app (e.g., HTTP triggers, timer triggers, and etc.) are registered and synchronized with the underlying Azure Functions runtime and the Azure platform.
Updating Configuration:
When changes are made to the function app (e.g., adding, updating, or removing triggers), the synctriggers endpoint helps propagate these changes.
Deployment and Scaling:
During the deployment/scaling process, the synctriggers endpoint is called to update the function definitions and inform the runtime of any new or modified triggers.
Trigger Management:
It used to managing and maintaining the lifecycle of triggers, ensuring that they are up-to-date.
When is synctriggers Called:
Updating Configuration:
Whenever there are changes to the function app settings or triggers, this endpoint is called to resynchronize the changes.
Scaling Operations:
When the function app scales out or scales in, the endpoint ensures that new instances understand the triggers they need to work with.
Deployment:
During the deployment of the function app, the synctriggers endpoint is invoked to register the triggers with the platform.
Architecture
We need to understand that the caller of synctriggers is the Kudu container in this scenario within the Function App, and the callee is the application itself. Under normal circumstances, this invocation will pass through different network components before reaching the destination. Therefore, if any part of this process encounters an issue, it will cause the entire flow to fail.
In the following sections, we will discuss the potential issues causing synctriggers failures based on different network architectures (i.e., different numbered arrow processes). Specifically, we will cover:
Possible reasons for issues occurring without a detailed network architecture.
Possible reasons when using VNet and NSG.
Possible reasons when using VNet and route table. (and 3.1 combined state of 2 and 3.)
DNS issues.
Besides, the reason we cannot see the deployed triggers on the Function App Overview page in the Azure Portal is usually due to the failure in the invocation of this step. However, there are other possible reasons for synctriggers failures as described above, and the caller to synctriggers might not be Kudu container such that there might ba a different network architecture.
Troubleshooting Cases
[Condition 1]
The internal endpoint “/admin/host/synctriggers“ is called by the Kudu container. Under normal scenario, the Kudu container makes direct requests to the application.
Solution 1:
Sometimes, the issue may arise when we initially sets up the Function App with only one of the two settings: “WEBSITE_CONTENTOVERVNET” or “WEBSITE_CONTENTAZUREFILECONNECTIONSTRING” According to App setting, we can either retain or remove both settings simultaneously.
We could simply add/remove them from here:
And restart the app after applying those change.
[Condition 2]
In more complex network configurations, the Function App is setup with VNet integration, and its subnet is configured with NSG (i.e., Network Security Group) rules that restrict inbound and outbound traffic on specific ports from that subnet.
We could simply get the NSG rules regards to that subnet if available.
Here is an example in grid view.
Since synctriggers are invoked via HTTPS, they will use port 443. We need to check whether there is any deny rule for the specific combination of “tcp” + “port 443” + “source/destination IP”. In this example, all remaining traffic, including traffic on port 443, will be blocked. This results in the interruption of the process in condition 2, indirectly causing this error.
Solution 2:
The solution is to identify and remove the problematic rule and then try again.
If possible, we could also temporarily detach the NSG from the subnet. This way, we could quickly determine if the issue originates from there.
[Condition 3]
Many network engineers need to use an NVA (typically a firewall) to centrally log all traffic from different VNets/subnets. Therefore, it is common to setup a route table in the subnet with custom rules, directing any requests originating within the subnet to the NVA for forwarding before they actually reach the target.
Still, we could simply get the RT rules from ASC regards to that subnet if available.
Here is an example in grid view.
There is only 1 rule in the route table is to send all traffic to an NVA for transmission before sending it out. The issue arises from this configuration.
Solution 3A:
Same as condition 2, if possible, we could also temporarily detach the RT from the subnet. This way, we could quickly determine if the issue originates from there.
Since the NVA is usually managed by our own rather than Azure, the solution is to setup an allow rule in our internal firewall settings to permit TCP 443 requests originating from Kudu.
Solution 3B:
The synctriggers endpoint is invoked via the HTTPS protocol, so the SSL root certificates of the HTTP server within the application need to be recognized by the firewall. If the firewall does not have these root certificates installed, certificate errors will occur during the Kudu request process, leading to request failures.
We could simply check it using the following command form a kudu site:
curl -v https://my-function-app.azurewebsites.net
openssl s_client my-function-app.azurewebsites.net:443
Here is the example result.
The solution is to setup the SSL root certificates of the firewall.
Root CA on App Service – Azure App Service
[Condition 3.1]
When both NSG and RT are present in the subnet, the rules for both configurations need to be reviewed together. If we have a working Function App to use as a comparison, it would be quicker to identify the differences between the two settings.
[Condition 4: Custom DNS]
The previous solutions address issues that occur during the connection process after the request target has been identified. However, there is also a scenario where the request fails because the target cannot be identified (i.e., we could not get the resolve ip using nameresolver or nslookup).
Solution 4A:
If our subnet is using the Azure default DNS (i.e., 168.63.129.16), there might be some anomalies in the Function App’s resource provider’s DNS registration behavior during the time when the issue occurred. Please contact to the Azure support engineer since we could not directly get the related log.
Solution 4B:
If we are using a custom DNS server, we could get the server’s access logs and check for any anomalies in the requests during that time period.
This article focuses on exploring the causes from different network scenarios and attempts to provide solutions. However, synctriggers is merely a symptom of the actual problem. There are still many other potential causes beyond networking that could lead to this type of error. Therefore, understanding the mechanism, timing, and process of synctriggers is crucial for DevOps personnel. This knowledge can help us quickly identify the root cause of issues.
Microsoft Tech Community – Latest Blogs –Read More
Why can’t I see the component library when I open my app designer?
Post Content Post Content app designer MATLAB Answers — New Questions
installation problems with trial version
can’t start trial version without a licensecan’t start trial version without a license can’t start trial version without a license trial version MATLAB Answers — New Questions
Deleting range of rows in a time series data
I have time series of rainfall data. The column 1=year, 2=month, 3=date (from 1 to 31), 4=daily rainfall value. I want to remove the rows which have range of data from year 1995 to 2016. I managed to do for one year. But not for range. How can I do so? Many thanks in advance.
RF(find(RF==1([1995:2016],:)=[] I did this code, but says error of using : inbetween 1995 & 2016I have time series of rainfall data. The column 1=year, 2=month, 3=date (from 1 to 31), 4=daily rainfall value. I want to remove the rows which have range of data from year 1995 to 2016. I managed to do for one year. But not for range. How can I do so? Many thanks in advance.
RF(find(RF==1([1995:2016],:)=[] I did this code, but says error of using : inbetween 1995 & 2016 I have time series of rainfall data. The column 1=year, 2=month, 3=date (from 1 to 31), 4=daily rainfall value. I want to remove the rows which have range of data from year 1995 to 2016. I managed to do for one year. But not for range. How can I do so? Many thanks in advance.
RF(find(RF==1([1995:2016],:)=[] I did this code, but says error of using : inbetween 1995 & 2016 deleting range of rows MATLAB Answers — New Questions
How to nest and call the fmincon function in Simulink?
Hello everyone, I’m currently trying to nest and call the fmincon function within a MATLAB Function block in Simulink. However, I’ve encountered several errors. Below, I’ll explain my code in detail. The first 53 lines involve calculating various Jacobian matrices such as G, H, and D_asterisk. Once these calculations are complete, I use these matrices along with predefined functions to compute balambda. If balambda <= 1, I define a matrix k as k = eye(7). If balambda > 1, I need to optimize and solve for matrix k using the fmincon function. The initial value for k is set as k = diag([ones(1,4) lambda(1,1) lambda(2,2) lambda(3,3)]). Thus, I need to optimize lambda using fmincon, where k is implicit in the objective function. To obtain my objective function, a series of intermediate variables such as p_, k_gain, and xr need to be derived from k matrix. Currently, my approach is resulting in errors. How can I achieve my goal? I understand fmincon cannot be called directly and requires setting up a wrapper. How should I set up this wrapper?
function [x,xr,G1,G2,G,H,D_asterisk,V,balambda]=AEKF_UI(x,Ts,ks,kt,cs,mb,mw,y,xr_asterisk,G10,G20)
% x is the input vector
% Define the nonlinear function f(x)
% Ts是离散时间
% 单位矩阵定义得有2个,因为状态维数和观测维数不一致
Q=diag([0.1^2,0.005^2,0.1^2,0.001^2 0.1^2,0.005^2,0.1^2]);%
R=diag([0.001^2,0.001^2]);
g=@(x,xr_asterisk)[x(2);cs/mb*(x(4)-x(2))+ks/mb*(x(3)-x(1));
x(4);cs/mw*(x(2)-x(4))+ks/mw*(x(1)-x(3))+kt/mw*xr_asterisk-kt/mw*x(3);0;0;0;];
h=@(x,xr_asterisk)[cs/mb*(x(4)-x(2))+ks/mb*(x(3)-x(1));cs/mw*(x(2)-x(4))+ks/mw*(x(1)-x(3))+kt/mw*xr_asterisk-kt/mw*x(3)];
% Number of variables
n=numel(x);
p=eye(n);
f=numel(xr_asterisk);
% Number of functions
m=numel(g(x,xr_asterisk));%numel用来计算元素的个数,3*4矩阵元素共有12个
l=numel(h(x,xr_asterisk));
I1=eye(n);
I2=eye(l);
% Initialize the Jacobian matrix
G=zeros(m,n);
H=zeros(l,n);
D_asterisk=zeros(l,f);
%D矩阵要对未知输入求偏导
% Small perturbation value for finite difference
delta=1e-6;
% Compute the Jacobian matrix using central difference approximation
x_=x+Ts*g(x,xr_asterisk);
% 对x求偏导
for i=1:n
x1=x;
x2=x;
x3=x_;
x4=x_;
x1(i)=x1(i)+delta;
x2(i)=x2(i)-delta;
x3(i)=x3(i)+delta;
x4(i)=x4(i)-delta;
g1=g(x1,xr_asterisk);
g2=g(x2,xr_asterisk);
h1=h(x3,xr_asterisk);
h2=h(x4,xr_asterisk);
% Finite difference approximation
G(:,i)=(g1-g2)/(2*delta);
H(:,i)=(h1-h2)/(2*delta);
end
for i=1:f
x5=xr_asterisk;
x6=xr_asterisk;
x5(i)=x5(i)+delta;
x6(i)=x6(i)-delta;
D_asterisk(:,i)=(h(x_,x5)-h(x_,x6))/(2*delta);
end
gamma=y-h(x_,xr_asterisk);
mu=0.95;
persistent balambda
if isempty(balambda)
balambda=0.999;
end
G1=gamma*gamma’+mu*(G10/balambda);
G2=1+mu*(G20/balambda);
V=G1/G2;
T1=H*(I1+Ts*G)*p*(I1+Ts*G)’*H’;
T2=H*Q*H’+R;
Ta=trace(T1*inv(R)*T1′);
Tb=trace(T1*inv(R)*T2’+T2*inv(R)*T1′);
Tc=trace(T2*inv(R)*T2′)-trace(V)
balambda=(-Tb+sqrt(Tb^2-4*Ta*Tc))/(2*Ta);
if balambda>1
k=eye(7);%lambda矩阵
else
lambda=diag([balambda*ones(1,3)]);
k=diag([ones(1,4) lambda(1,1) lambda(2,2) lambda(3,3)]);
%定义目标函数
%创建一个自适应因子对角矩阵,前面状态量都是1,后面识别参数都是lambda
initial_values=[lambda(1,1),lambda(2,2),lambda(3,3)];
x_chushi=x;
lb=[1,1,1]; % 下界
ub=[Inf,Inf,Inf]; % 上界
options=optimoptions(‘fmincon’,’Display’,’iter’);
lambda_opt=fmincon(@(lambda)objective_function(lambda,x_chushi,I1,I2,Ts,G,D_asterisk,R,h,x_,xr_asterisk,Q,p,H,y),initial_values,[],[],[],[],lb,ub,@(lambda)nonlcon(V,R,H,p_),options);
%更新lambda 值
lambda(1,1)=lambda_opt(1);
lambda(2,2)=lambda_opt(2);
lambda(3,3)=lambda_opt(3);
end
function J_value=objective_function(lambda,x_chushi,I1,I2,Ts,G,D_asterisk,R,h,x_,xr_asterisk,Q,p,H,y,k)
% objective_function k=diag([ones(1,4) lambda(1) lambda(2) lambda(3)]);
p_=k*(I1+Ts*G)*p*(I1+Ts*G)’*k’+Q;
k_gain=p_*H’/(H*p_*H’+R);
S=inv(D_asterisk’*inv(R)*(I2-H*k_gain)*D_asterisk);
xr=S*(D_asterisk’)*inv(R)*(I2-H*k_gain)*(y-h(x_,xr_asterisk)+D_asterisk*xr_asterisk);
x=x_+k_gain*(y-h(x_,xr_asterisk)-D_asterisk*(xr-xr_asterisk));
J_value=sum(abs((x(4:7)-x_chushi(4:7))./x_chushi(4:7)));
end
function [c,ceq] = nonlcon(V,R,H,p_)
% 非线性约束函数,计算状态量与观测量之间的差异
c=norm(V-(H*p_*H’+R)*inv(R)*(H*p_*H’+R)’,"fro")-0.01;
ceq=[];Hello everyone, I’m currently trying to nest and call the fmincon function within a MATLAB Function block in Simulink. However, I’ve encountered several errors. Below, I’ll explain my code in detail. The first 53 lines involve calculating various Jacobian matrices such as G, H, and D_asterisk. Once these calculations are complete, I use these matrices along with predefined functions to compute balambda. If balambda <= 1, I define a matrix k as k = eye(7). If balambda > 1, I need to optimize and solve for matrix k using the fmincon function. The initial value for k is set as k = diag([ones(1,4) lambda(1,1) lambda(2,2) lambda(3,3)]). Thus, I need to optimize lambda using fmincon, where k is implicit in the objective function. To obtain my objective function, a series of intermediate variables such as p_, k_gain, and xr need to be derived from k matrix. Currently, my approach is resulting in errors. How can I achieve my goal? I understand fmincon cannot be called directly and requires setting up a wrapper. How should I set up this wrapper?
function [x,xr,G1,G2,G,H,D_asterisk,V,balambda]=AEKF_UI(x,Ts,ks,kt,cs,mb,mw,y,xr_asterisk,G10,G20)
% x is the input vector
% Define the nonlinear function f(x)
% Ts是离散时间
% 单位矩阵定义得有2个,因为状态维数和观测维数不一致
Q=diag([0.1^2,0.005^2,0.1^2,0.001^2 0.1^2,0.005^2,0.1^2]);%
R=diag([0.001^2,0.001^2]);
g=@(x,xr_asterisk)[x(2);cs/mb*(x(4)-x(2))+ks/mb*(x(3)-x(1));
x(4);cs/mw*(x(2)-x(4))+ks/mw*(x(1)-x(3))+kt/mw*xr_asterisk-kt/mw*x(3);0;0;0;];
h=@(x,xr_asterisk)[cs/mb*(x(4)-x(2))+ks/mb*(x(3)-x(1));cs/mw*(x(2)-x(4))+ks/mw*(x(1)-x(3))+kt/mw*xr_asterisk-kt/mw*x(3)];
% Number of variables
n=numel(x);
p=eye(n);
f=numel(xr_asterisk);
% Number of functions
m=numel(g(x,xr_asterisk));%numel用来计算元素的个数,3*4矩阵元素共有12个
l=numel(h(x,xr_asterisk));
I1=eye(n);
I2=eye(l);
% Initialize the Jacobian matrix
G=zeros(m,n);
H=zeros(l,n);
D_asterisk=zeros(l,f);
%D矩阵要对未知输入求偏导
% Small perturbation value for finite difference
delta=1e-6;
% Compute the Jacobian matrix using central difference approximation
x_=x+Ts*g(x,xr_asterisk);
% 对x求偏导
for i=1:n
x1=x;
x2=x;
x3=x_;
x4=x_;
x1(i)=x1(i)+delta;
x2(i)=x2(i)-delta;
x3(i)=x3(i)+delta;
x4(i)=x4(i)-delta;
g1=g(x1,xr_asterisk);
g2=g(x2,xr_asterisk);
h1=h(x3,xr_asterisk);
h2=h(x4,xr_asterisk);
% Finite difference approximation
G(:,i)=(g1-g2)/(2*delta);
H(:,i)=(h1-h2)/(2*delta);
end
for i=1:f
x5=xr_asterisk;
x6=xr_asterisk;
x5(i)=x5(i)+delta;
x6(i)=x6(i)-delta;
D_asterisk(:,i)=(h(x_,x5)-h(x_,x6))/(2*delta);
end
gamma=y-h(x_,xr_asterisk);
mu=0.95;
persistent balambda
if isempty(balambda)
balambda=0.999;
end
G1=gamma*gamma’+mu*(G10/balambda);
G2=1+mu*(G20/balambda);
V=G1/G2;
T1=H*(I1+Ts*G)*p*(I1+Ts*G)’*H’;
T2=H*Q*H’+R;
Ta=trace(T1*inv(R)*T1′);
Tb=trace(T1*inv(R)*T2’+T2*inv(R)*T1′);
Tc=trace(T2*inv(R)*T2′)-trace(V)
balambda=(-Tb+sqrt(Tb^2-4*Ta*Tc))/(2*Ta);
if balambda>1
k=eye(7);%lambda矩阵
else
lambda=diag([balambda*ones(1,3)]);
k=diag([ones(1,4) lambda(1,1) lambda(2,2) lambda(3,3)]);
%定义目标函数
%创建一个自适应因子对角矩阵,前面状态量都是1,后面识别参数都是lambda
initial_values=[lambda(1,1),lambda(2,2),lambda(3,3)];
x_chushi=x;
lb=[1,1,1]; % 下界
ub=[Inf,Inf,Inf]; % 上界
options=optimoptions(‘fmincon’,’Display’,’iter’);
lambda_opt=fmincon(@(lambda)objective_function(lambda,x_chushi,I1,I2,Ts,G,D_asterisk,R,h,x_,xr_asterisk,Q,p,H,y),initial_values,[],[],[],[],lb,ub,@(lambda)nonlcon(V,R,H,p_),options);
%更新lambda 值
lambda(1,1)=lambda_opt(1);
lambda(2,2)=lambda_opt(2);
lambda(3,3)=lambda_opt(3);
end
function J_value=objective_function(lambda,x_chushi,I1,I2,Ts,G,D_asterisk,R,h,x_,xr_asterisk,Q,p,H,y,k)
% objective_function k=diag([ones(1,4) lambda(1) lambda(2) lambda(3)]);
p_=k*(I1+Ts*G)*p*(I1+Ts*G)’*k’+Q;
k_gain=p_*H’/(H*p_*H’+R);
S=inv(D_asterisk’*inv(R)*(I2-H*k_gain)*D_asterisk);
xr=S*(D_asterisk’)*inv(R)*(I2-H*k_gain)*(y-h(x_,xr_asterisk)+D_asterisk*xr_asterisk);
x=x_+k_gain*(y-h(x_,xr_asterisk)-D_asterisk*(xr-xr_asterisk));
J_value=sum(abs((x(4:7)-x_chushi(4:7))./x_chushi(4:7)));
end
function [c,ceq] = nonlcon(V,R,H,p_)
% 非线性约束函数,计算状态量与观测量之间的差异
c=norm(V-(H*p_*H’+R)*inv(R)*(H*p_*H’+R)’,"fro")-0.01;
ceq=[]; Hello everyone, I’m currently trying to nest and call the fmincon function within a MATLAB Function block in Simulink. However, I’ve encountered several errors. Below, I’ll explain my code in detail. The first 53 lines involve calculating various Jacobian matrices such as G, H, and D_asterisk. Once these calculations are complete, I use these matrices along with predefined functions to compute balambda. If balambda <= 1, I define a matrix k as k = eye(7). If balambda > 1, I need to optimize and solve for matrix k using the fmincon function. The initial value for k is set as k = diag([ones(1,4) lambda(1,1) lambda(2,2) lambda(3,3)]). Thus, I need to optimize lambda using fmincon, where k is implicit in the objective function. To obtain my objective function, a series of intermediate variables such as p_, k_gain, and xr need to be derived from k matrix. Currently, my approach is resulting in errors. How can I achieve my goal? I understand fmincon cannot be called directly and requires setting up a wrapper. How should I set up this wrapper?
function [x,xr,G1,G2,G,H,D_asterisk,V,balambda]=AEKF_UI(x,Ts,ks,kt,cs,mb,mw,y,xr_asterisk,G10,G20)
% x is the input vector
% Define the nonlinear function f(x)
% Ts是离散时间
% 单位矩阵定义得有2个,因为状态维数和观测维数不一致
Q=diag([0.1^2,0.005^2,0.1^2,0.001^2 0.1^2,0.005^2,0.1^2]);%
R=diag([0.001^2,0.001^2]);
g=@(x,xr_asterisk)[x(2);cs/mb*(x(4)-x(2))+ks/mb*(x(3)-x(1));
x(4);cs/mw*(x(2)-x(4))+ks/mw*(x(1)-x(3))+kt/mw*xr_asterisk-kt/mw*x(3);0;0;0;];
h=@(x,xr_asterisk)[cs/mb*(x(4)-x(2))+ks/mb*(x(3)-x(1));cs/mw*(x(2)-x(4))+ks/mw*(x(1)-x(3))+kt/mw*xr_asterisk-kt/mw*x(3)];
% Number of variables
n=numel(x);
p=eye(n);
f=numel(xr_asterisk);
% Number of functions
m=numel(g(x,xr_asterisk));%numel用来计算元素的个数,3*4矩阵元素共有12个
l=numel(h(x,xr_asterisk));
I1=eye(n);
I2=eye(l);
% Initialize the Jacobian matrix
G=zeros(m,n);
H=zeros(l,n);
D_asterisk=zeros(l,f);
%D矩阵要对未知输入求偏导
% Small perturbation value for finite difference
delta=1e-6;
% Compute the Jacobian matrix using central difference approximation
x_=x+Ts*g(x,xr_asterisk);
% 对x求偏导
for i=1:n
x1=x;
x2=x;
x3=x_;
x4=x_;
x1(i)=x1(i)+delta;
x2(i)=x2(i)-delta;
x3(i)=x3(i)+delta;
x4(i)=x4(i)-delta;
g1=g(x1,xr_asterisk);
g2=g(x2,xr_asterisk);
h1=h(x3,xr_asterisk);
h2=h(x4,xr_asterisk);
% Finite difference approximation
G(:,i)=(g1-g2)/(2*delta);
H(:,i)=(h1-h2)/(2*delta);
end
for i=1:f
x5=xr_asterisk;
x6=xr_asterisk;
x5(i)=x5(i)+delta;
x6(i)=x6(i)-delta;
D_asterisk(:,i)=(h(x_,x5)-h(x_,x6))/(2*delta);
end
gamma=y-h(x_,xr_asterisk);
mu=0.95;
persistent balambda
if isempty(balambda)
balambda=0.999;
end
G1=gamma*gamma’+mu*(G10/balambda);
G2=1+mu*(G20/balambda);
V=G1/G2;
T1=H*(I1+Ts*G)*p*(I1+Ts*G)’*H’;
T2=H*Q*H’+R;
Ta=trace(T1*inv(R)*T1′);
Tb=trace(T1*inv(R)*T2’+T2*inv(R)*T1′);
Tc=trace(T2*inv(R)*T2′)-trace(V)
balambda=(-Tb+sqrt(Tb^2-4*Ta*Tc))/(2*Ta);
if balambda>1
k=eye(7);%lambda矩阵
else
lambda=diag([balambda*ones(1,3)]);
k=diag([ones(1,4) lambda(1,1) lambda(2,2) lambda(3,3)]);
%定义目标函数
%创建一个自适应因子对角矩阵,前面状态量都是1,后面识别参数都是lambda
initial_values=[lambda(1,1),lambda(2,2),lambda(3,3)];
x_chushi=x;
lb=[1,1,1]; % 下界
ub=[Inf,Inf,Inf]; % 上界
options=optimoptions(‘fmincon’,’Display’,’iter’);
lambda_opt=fmincon(@(lambda)objective_function(lambda,x_chushi,I1,I2,Ts,G,D_asterisk,R,h,x_,xr_asterisk,Q,p,H,y),initial_values,[],[],[],[],lb,ub,@(lambda)nonlcon(V,R,H,p_),options);
%更新lambda 值
lambda(1,1)=lambda_opt(1);
lambda(2,2)=lambda_opt(2);
lambda(3,3)=lambda_opt(3);
end
function J_value=objective_function(lambda,x_chushi,I1,I2,Ts,G,D_asterisk,R,h,x_,xr_asterisk,Q,p,H,y,k)
% objective_function k=diag([ones(1,4) lambda(1) lambda(2) lambda(3)]);
p_=k*(I1+Ts*G)*p*(I1+Ts*G)’*k’+Q;
k_gain=p_*H’/(H*p_*H’+R);
S=inv(D_asterisk’*inv(R)*(I2-H*k_gain)*D_asterisk);
xr=S*(D_asterisk’)*inv(R)*(I2-H*k_gain)*(y-h(x_,xr_asterisk)+D_asterisk*xr_asterisk);
x=x_+k_gain*(y-h(x_,xr_asterisk)-D_asterisk*(xr-xr_asterisk));
J_value=sum(abs((x(4:7)-x_chushi(4:7))./x_chushi(4:7)));
end
function [c,ceq] = nonlcon(V,R,H,p_)
% 非线性约束函数,计算状态量与观测量之间的差异
c=norm(V-(H*p_*H’+R)*inv(R)*(H*p_*H’+R)’,"fro")-0.01;
ceq=[]; fmincon, optimization MATLAB Answers — New Questions
Ensuring Data Privacy with Power Query: Can Shared Excel Files on OneDrive Expose Confidential Data?
Confidential File (must not be disclosed, contains huge data including disclosable parts and confidential parts)
Public File (created by importing only the disclosable parts of the above confidential file using Power Query)
In this case, can the contents of the confidential file be accessed if the public file is shared publicly via uneditable(view-only) link with onedrive?
Note: I can’t delete the Query itself because I have to update it daily. Both files are stored in the same OneDrive folder, but only one file(public file) will be shared via uneditable link with onedrive.
A link to the test file will be shared for anyone who wants to attempt a breach.
The link will be removed once the testing is complete:
https://1drv.ms/x/s!AnCpAlQd1TUAhdYv1fisUf8vrfGhzQ?e=X1RqKv
Confidential File (must not be disclosed, contains huge data including disclosable parts and confidential parts)Public File (created by importing only the disclosable parts of the above confidential file using Power Query) In this case, can the contents of the confidential file be accessed if the public file is shared publicly via uneditable(view-only) link with onedrive? Note: I can’t delete the Query itself because I have to update it daily. Both files are stored in the same OneDrive folder, but only one file(public file) will be shared via uneditable link with onedrive.A link to the test file will be shared for anyone who wants to attempt a breach.The link will be removed once the testing is complete: https://1drv.ms/x/s!AnCpAlQd1TUAhdYv1fisUf8vrfGhzQ?e=X1RqKv Read More