Month: September 2024
Is there a way to tell the compiler to exclude the JVM if using compiler.build.StandaloneApplicationOptions?
I have an existing build script for a console application that compiles with the following command:
compiler.build.standaloneApplication(opts)
where opts is of the type:
compiler.build.StandaloneApplicationOptions
Is there a way to tell the runtime to exclude the JVM inside the opts argument so that it will load faster? I basically want to do the same thing as:
mcc -m -R -nojvm
Unfortunately, I don’t want to re-write this build script because it is a standard script we use.
Thanks in advance,
DaveI have an existing build script for a console application that compiles with the following command:
compiler.build.standaloneApplication(opts)
where opts is of the type:
compiler.build.StandaloneApplicationOptions
Is there a way to tell the runtime to exclude the JVM inside the opts argument so that it will load faster? I basically want to do the same thing as:
mcc -m -R -nojvm
Unfortunately, I don’t want to re-write this build script because it is a standard script we use.
Thanks in advance,
Dave I have an existing build script for a console application that compiles with the following command:
compiler.build.standaloneApplication(opts)
where opts is of the type:
compiler.build.StandaloneApplicationOptions
Is there a way to tell the runtime to exclude the JVM inside the opts argument so that it will load faster? I basically want to do the same thing as:
mcc -m -R -nojvm
Unfortunately, I don’t want to re-write this build script because it is a standard script we use.
Thanks in advance,
Dave matlab compiler, jvm, build options, standalone application MATLAB Answers — New Questions
The best way to convert png to webp without losing quality?
Hi everyone,
I’m trying to convert a batch of PNG images to WebP format on my Windows PC, but I’m not sure where to start. I’m looking for a method that’s straightforward and ideally doesn’t require too much technical knowledge.
I’ve heard that tools like the Photos app or command-line utilities might work, but I’m not familiar with the process. Could someone please recommend the best way to convert png to webp without losing quality? If possible, I’d really appreciate a step-by-step guide or any tips that could make this easier for a beginner like me.
Thanks a lot for your help! Looking forward to your suggestions.
Hi everyone, I’m trying to convert a batch of PNG images to WebP format on my Windows PC, but I’m not sure where to start. I’m looking for a method that’s straightforward and ideally doesn’t require too much technical knowledge. I’ve heard that tools like the Photos app or command-line utilities might work, but I’m not familiar with the process. Could someone please recommend the best way to convert png to webp without losing quality? If possible, I’d really appreciate a step-by-step guide or any tips that could make this easier for a beginner like me. Thanks a lot for your help! Looking forward to your suggestions. Read More
Please help! Savings for 2025
Hi everyone!
I could really use your help on this, so please bear with my explanation! Thank you so much for your time in advance. This may be a bit of a challenge, but I’m really at a loss as to what formulas are needed, what data is needed to make those formulas work – an ABSOLUTE loss!
I’ve attached a mock-up I’ve done that is similar to the real thing. It is one tab of a multi tab spreadsheet that is focused on finances for 2025 – this is the savings tab. During the course of 2025, there are some things that I need to save for, so I’ve added at the top some examples, with the target date, target to save and then I’ve worked out how many months I will have to save that (I’m paid on the 15th of the month and the entries from A17 help with this). It then gives a split out as to how much I would need to save each month if I wanted to achieve the target amount by the target date. Hope you’re still with me!
I then have an entry for each month, how much disposable income I have to save, how much to pay on each savings goal and then how much disposable income I have left after saving for them.
What I want is that each month it allocates the most money to whatever one I want to save for first (by date), then the next date etc. When one of the savings targets is then met by the date, the following month the extra money then goes into the next target savings goal. For example, if you look at savings goal 3) Car Repair, it wants £65.00 a month to achieve by the target date (15/10/25), but I only have £26.38 available each month. However, that is only until say May or July when the other savings goals are paid off, then I can put the extra money (that I’m not paying towards these) into 3) Car Repair, so it ends up still being paid off by the date, just it won’t end up being £65.00 each month, it’ll be a lower figure in the first number of months and then increase when the others are paid off.
I really hope this is somewhat understandable!! I want to be able to alter the target amounts, target dates, available to save money, and have everything auto adjust to try and work out a savings plan – what I need to put into the savings amount each month for that goal to try and get it paid off by the target date. If suddenly something changes, such as I have more disposable income or the savings goal is reduced, then the spreadsheet will all automatically update to those changes and then the plan (plan being the best word here) changes. If a savings plan cannot be achieved, as in there isn’t enough money available that month to cater for all of the “> Savings”, then it flags up and identifies this and tells me that more money is needed. I can then make some changes elsewhere and make sure there is extra available funds (if I need to!)
I really really hope that this is understandable and any advice anyone is able to give is appreciated so so much.
If you have any questions then please do contact me!
Thank you so much again.
Hi everyone! I could really use your help on this, so please bear with my explanation! Thank you so much for your time in advance. This may be a bit of a challenge, but I’m really at a loss as to what formulas are needed, what data is needed to make those formulas work – an ABSOLUTE loss! I’ve attached a mock-up I’ve done that is similar to the real thing. It is one tab of a multi tab spreadsheet that is focused on finances for 2025 – this is the savings tab. During the course of 2025, there are some things that I need to save for, so I’ve added at the top some examples, with the target date, target to save and then I’ve worked out how many months I will have to save that (I’m paid on the 15th of the month and the entries from A17 help with this). It then gives a split out as to how much I would need to save each month if I wanted to achieve the target amount by the target date. Hope you’re still with me! I then have an entry for each month, how much disposable income I have to save, how much to pay on each savings goal and then how much disposable income I have left after saving for them. What I want is that each month it allocates the most money to whatever one I want to save for first (by date), then the next date etc. When one of the savings targets is then met by the date, the following month the extra money then goes into the next target savings goal. For example, if you look at savings goal 3) Car Repair, it wants £65.00 a month to achieve by the target date (15/10/25), but I only have £26.38 available each month. However, that is only until say May or July when the other savings goals are paid off, then I can put the extra money (that I’m not paying towards these) into 3) Car Repair, so it ends up still being paid off by the date, just it won’t end up being £65.00 each month, it’ll be a lower figure in the first number of months and then increase when the others are paid off. I really hope this is somewhat understandable!! I want to be able to alter the target amounts, target dates, available to save money, and have everything auto adjust to try and work out a savings plan – what I need to put into the savings amount each month for that goal to try and get it paid off by the target date. If suddenly something changes, such as I have more disposable income or the savings goal is reduced, then the spreadsheet will all automatically update to those changes and then the plan (plan being the best word here) changes. If a savings plan cannot be achieved, as in there isn’t enough money available that month to cater for all of the “> Savings”, then it flags up and identifies this and tells me that more money is needed. I can then make some changes elsewhere and make sure there is extra available funds (if I need to!) I really really hope that this is understandable and any advice anyone is able to give is appreciated so so much. If you have any questions then please do contact me! Thank you so much again. Read More
AAD application proxy : access from external issue
Hello,
I have published an application with SAML SSO. from internal, it works fine.
When I connect to https://myapp, all is ok.
I have set up an external Url : https://myapp.my_custom_external.com
When i try to access, i get error AADSTS50011.
I added https://myapp.my_custom_external.com on redirected URI as this article mentionned : https://learn.microsoft.com/en-us/troubleshoot/azure/entra/entra-id/app-integration/error-code-aadsts50011-redirect-uri-mismatch
But now when i try to access https://myapp.my_custom_external.com, i get a timeout.
Can you help me?
Thanks.
Regards.
Hello,I have published an application with SAML SSO. from internal, it works fine.When I connect to https://myapp, all is ok. I have set up an external Url : https://myapp.my_custom_external.comWhen i try to access, i get error AADSTS50011.I added https://myapp.my_custom_external.com on redirected URI as this article mentionned : https://learn.microsoft.com/en-us/troubleshoot/azure/entra/entra-id/app-integration/error-code-aadsts50011-redirect-uri-mismatch But now when i try to access https://myapp.my_custom_external.com, i get a timeout. Can you help me?Thanks.Regards. Read More
Can anybody help me to code boundary conditions in MATLAB for Keller Box Method?
Can anybody help me to code boundary conditions in MATLAB for Keller Box Method?
f^’=1,f=S,θ^’=-r_1 [1+θ],ϕ^’=-r_2 [1+ϕ] at η=0
f^’=0,f^”=0,θ=0,ϕ=0 as η→∞Can anybody help me to code boundary conditions in MATLAB for Keller Box Method?
f^’=1,f=S,θ^’=-r_1 [1+θ],ϕ^’=-r_2 [1+ϕ] at η=0
f^’=0,f^”=0,θ=0,ϕ=0 as η→∞ Can anybody help me to code boundary conditions in MATLAB for Keller Box Method?
f^’=1,f=S,θ^’=-r_1 [1+θ],ϕ^’=-r_2 [1+ϕ] at η=0
f^’=0,f^”=0,θ=0,ϕ=0 as η→∞ keller box method, differential equations MATLAB Answers — New Questions
How to plot temporal representations?
Hello everybody, i hope you and everyone here can help me in plotting temporal representations of x1(t), x21(t), x22(t) and x23(t)
This code :
N = 1e3; % Number of data points
T0 = pi; % Can be any number
t = linspace(0, T0, N); % time space with N data points
f0=1000; f1=2000; f2=2000;
x1 = sin(2*pi*f0*t)+sin(2*pi*f1*t)+sin(2*pi*f2*t);
T1 =2*pi; % Can be any number
t1 = linspace(0, T1-pi/N, N); % time space with N data points
x21 = sin(2*pi*f0*t1);
T2 = 3*pi; % Can be any number
t2 = linspace(T1, T2-pi/N, N); % time space with N data points
x22 = sin(2*pi*f1*t2);
T3 = inf;
t2 = linspace(T2, T3, N);
x23 = sin(2*pi*f2*t2);Hello everybody, i hope you and everyone here can help me in plotting temporal representations of x1(t), x21(t), x22(t) and x23(t)
This code :
N = 1e3; % Number of data points
T0 = pi; % Can be any number
t = linspace(0, T0, N); % time space with N data points
f0=1000; f1=2000; f2=2000;
x1 = sin(2*pi*f0*t)+sin(2*pi*f1*t)+sin(2*pi*f2*t);
T1 =2*pi; % Can be any number
t1 = linspace(0, T1-pi/N, N); % time space with N data points
x21 = sin(2*pi*f0*t1);
T2 = 3*pi; % Can be any number
t2 = linspace(T1, T2-pi/N, N); % time space with N data points
x22 = sin(2*pi*f1*t2);
T3 = inf;
t2 = linspace(T2, T3, N);
x23 = sin(2*pi*f2*t2); Hello everybody, i hope you and everyone here can help me in plotting temporal representations of x1(t), x21(t), x22(t) and x23(t)
This code :
N = 1e3; % Number of data points
T0 = pi; % Can be any number
t = linspace(0, T0, N); % time space with N data points
f0=1000; f1=2000; f2=2000;
x1 = sin(2*pi*f0*t)+sin(2*pi*f1*t)+sin(2*pi*f2*t);
T1 =2*pi; % Can be any number
t1 = linspace(0, T1-pi/N, N); % time space with N data points
x21 = sin(2*pi*f0*t1);
T2 = 3*pi; % Can be any number
t2 = linspace(T1, T2-pi/N, N); % time space with N data points
x22 = sin(2*pi*f1*t2);
T3 = inf;
t2 = linspace(T2, T3, N);
x23 = sin(2*pi*f2*t2); tomporal domain MATLAB Answers — New Questions
Walks and eccentricity, graph theory
Hi, i have an adjacency matrix where Aij denotes the number of edges from vi to vj, edges going out from the vi gives the elements in the first row and now of the matrix and now i want to:
first, write a function exwalk(A) compute a matrix containing the number of walks between vi and vj in exactly k steps.
use exwalk(A) to create a function maxwalk(A, k) compute the number of walks in at most k steps.
write a function eccentricities(A) compute a list of ecc(v) eccentricities for all vertices.Hi, i have an adjacency matrix where Aij denotes the number of edges from vi to vj, edges going out from the vi gives the elements in the first row and now of the matrix and now i want to:
first, write a function exwalk(A) compute a matrix containing the number of walks between vi and vj in exactly k steps.
use exwalk(A) to create a function maxwalk(A, k) compute the number of walks in at most k steps.
write a function eccentricities(A) compute a list of ecc(v) eccentricities for all vertices. Hi, i have an adjacency matrix where Aij denotes the number of edges from vi to vj, edges going out from the vi gives the elements in the first row and now of the matrix and now i want to:
first, write a function exwalk(A) compute a matrix containing the number of walks between vi and vj in exactly k steps.
use exwalk(A) to create a function maxwalk(A, k) compute the number of walks in at most k steps.
write a function eccentricities(A) compute a list of ecc(v) eccentricities for all vertices. graphtheory MATLAB Answers — New Questions
How to connect a 6 DoF joint to a moving center of mass (by creating a moving frame) in Simscape Multibody
I am simulating the projectile motion of an ariel vehicle with its wing deployment in Simscape Multibody. The ariel vehicle has an initial velocity, which is provided by the State Target in 6 DoF joint. The 6DoF joint is connected to the CG location of the whole vehicle at its initial condition. During the projectile motion of the vehicle, the wing deployment occurs.
The CG location of the vehicle changes at every instant due to the wing deployment. I am measuring this distance using an Inertia Sensor. The whole process until this step works well.
My actual aim is to do a co-simulation between Simscape and a CFD solver. I created a Standalone FMU from the simscape model and provided to the CFD solver. From CFD solver I calculate the aerodynamic forces and moments based on new CG location at every time step and give as input to the simscape multibody model (FMU).
Current difficulty:
My current difficulty is on placing a joint on a moving center of mass (CG) in Simscape Multibody. In simscape, when we place a 6-DoF joint, the center of rotation is always on the joint connection point. In my case, this point is fixed at the initial CG location. Instead, I want to have a joint at the moving CG location. If I have a frame on the moving CG location, I can apply the aerodynamic forces from CFD (using 6 DoF joint) directly at that location. I tried to follow some related answers from https://www.mathworks.com/matlabcentral/answers/1576920-placing-a-joint-on-a-moving-center-of-mass-in-simscape-multibody?s_tid=answers_rc1-2_p2_MLT and https://www.mathworks.com/matlabcentral/answers/1851513-simscape-multibody-apply-forces-sense-velocity-of-global-center-of-mass to resolve this issue, but I could not succed.
I appreciate any suggestion/comment in this regard how to place a frame (joint) on a moving center of mass (CG).
Thanks.I am simulating the projectile motion of an ariel vehicle with its wing deployment in Simscape Multibody. The ariel vehicle has an initial velocity, which is provided by the State Target in 6 DoF joint. The 6DoF joint is connected to the CG location of the whole vehicle at its initial condition. During the projectile motion of the vehicle, the wing deployment occurs.
The CG location of the vehicle changes at every instant due to the wing deployment. I am measuring this distance using an Inertia Sensor. The whole process until this step works well.
My actual aim is to do a co-simulation between Simscape and a CFD solver. I created a Standalone FMU from the simscape model and provided to the CFD solver. From CFD solver I calculate the aerodynamic forces and moments based on new CG location at every time step and give as input to the simscape multibody model (FMU).
Current difficulty:
My current difficulty is on placing a joint on a moving center of mass (CG) in Simscape Multibody. In simscape, when we place a 6-DoF joint, the center of rotation is always on the joint connection point. In my case, this point is fixed at the initial CG location. Instead, I want to have a joint at the moving CG location. If I have a frame on the moving CG location, I can apply the aerodynamic forces from CFD (using 6 DoF joint) directly at that location. I tried to follow some related answers from https://www.mathworks.com/matlabcentral/answers/1576920-placing-a-joint-on-a-moving-center-of-mass-in-simscape-multibody?s_tid=answers_rc1-2_p2_MLT and https://www.mathworks.com/matlabcentral/answers/1851513-simscape-multibody-apply-forces-sense-velocity-of-global-center-of-mass to resolve this issue, but I could not succed.
I appreciate any suggestion/comment in this regard how to place a frame (joint) on a moving center of mass (CG).
Thanks. I am simulating the projectile motion of an ariel vehicle with its wing deployment in Simscape Multibody. The ariel vehicle has an initial velocity, which is provided by the State Target in 6 DoF joint. The 6DoF joint is connected to the CG location of the whole vehicle at its initial condition. During the projectile motion of the vehicle, the wing deployment occurs.
The CG location of the vehicle changes at every instant due to the wing deployment. I am measuring this distance using an Inertia Sensor. The whole process until this step works well.
My actual aim is to do a co-simulation between Simscape and a CFD solver. I created a Standalone FMU from the simscape model and provided to the CFD solver. From CFD solver I calculate the aerodynamic forces and moments based on new CG location at every time step and give as input to the simscape multibody model (FMU).
Current difficulty:
My current difficulty is on placing a joint on a moving center of mass (CG) in Simscape Multibody. In simscape, when we place a 6-DoF joint, the center of rotation is always on the joint connection point. In my case, this point is fixed at the initial CG location. Instead, I want to have a joint at the moving CG location. If I have a frame on the moving CG location, I can apply the aerodynamic forces from CFD (using 6 DoF joint) directly at that location. I tried to follow some related answers from https://www.mathworks.com/matlabcentral/answers/1576920-placing-a-joint-on-a-moving-center-of-mass-in-simscape-multibody?s_tid=answers_rc1-2_p2_MLT and https://www.mathworks.com/matlabcentral/answers/1851513-simscape-multibody-apply-forces-sense-velocity-of-global-center-of-mass to resolve this issue, but I could not succed.
I appreciate any suggestion/comment in this regard how to place a frame (joint) on a moving center of mass (CG).
Thanks. simscape, 6-dof joint, moving center of mass, moving frame, co-simulation, simscape multibody, matlab, simulink MATLAB Answers — New Questions
Disable share button on the meeting side panel when an app is clicked on the meeting ribbon
Hi everyone,
I have a custom app which opens a static page on the side panel that has some information about the app. I do not need the “Share” option that a static tab provides by default. Is there a way to hide or remove the share button on the meeting side panel?
Hi everyone, I have a custom app which opens a static page on the side panel that has some information about the app. I do not need the “Share” option that a static tab provides by default. Is there a way to hide or remove the share button on the meeting side panel? Read More
Non Integer Meeting Counts for Custom Query
Hi Viva Insights Community,
We’ve built a custom query, the query is designed to identify meetings held on Friday afternoons. We’ve been running this query weekly, but when analyzing the results, we noticed that the number of meetings for some individuals on a given Friday is being reported with decimal values (e.g., 1.3333 or 0.666667).
Does anyone know why this happens? Could it be related to how the data is aggregated or a query setup issue?
Appreciate any insights!
Hi Viva Insights Community,We’ve built a custom query, the query is designed to identify meetings held on Friday afternoons. We’ve been running this query weekly, but when analyzing the results, we noticed that the number of meetings for some individuals on a given Friday is being reported with decimal values (e.g., 1.3333 or 0.666667).Does anyone know why this happens? Could it be related to how the data is aggregated or a query setup issue?Appreciate any insights! Read More
KQL query to ignore place holdes
Hi Team,
Can you please provide me a query to ignore account filed that has “– “
Hi Team, Can you please provide me a query to ignore account filed that has “– ” Read More
La app To Do no se sincroniza en MAC
La app To Do no se sincroniza en MAC desde la ultima actualización a macOS Sequoia.
Ya desinstalé la app pero el problema persiste.
Alguna solución ?
Un saludo.
La app To Do no se sincroniza en MAC desde la ultima actualización a macOS Sequoia.Ya desinstalé la app pero el problema persiste.Alguna solución ? Un saludo. Read More
Integrate logic apps rules engine with Microsoft fabric
Hi, I have a requirement where I need to integrate logic apps rules engine with fabric data pipelines.
When I run an ETL pipeline, it has to pick up the business logic from rules engine and transform the data in fabric data pipeline. Is this achievable? Need suggestions please?
Hi, I have a requirement where I need to integrate logic apps rules engine with fabric data pipelines. When I run an ETL pipeline, it has to pick up the business logic from rules engine and transform the data in fabric data pipeline. Is this achievable? Need suggestions please? Read More
Join Us for an Exclusive in-person Post-FabConf Event in Zurich!
We are excited to invite all our Swiss partners to an engaging post-FabConf event session where we will share some of the latest news and updates from the European Microsoft Fabric Community Conference.
Date: October 8th 2024
Time: 1 PM – 5:45 PM
Location: Microsoft Office at The Circle, Zurich
This session, co-presented by Microsoft and other partners who attended the conference, will provide valuable insights and updates on Microsoft Fabric, including news on partners program and learning opportunities for FY25.
Don’t miss this opportunity to stay informed and connect with fellow Swiss partners. Feel free to share with your colleagues. We look forward to seeing you there.
😱 Sad you couldn’t join the #EuropeanFabricConferenceConference this week ? Rest assure we’ve got you covered. Join Us for an Exclusive in-person Post-FabConf Event in Zurich 😍
We are excited to invite all our Swiss partners to an engaging post-FabConf event session where we will share some of the latest news and updates from the European Microsoft Fabric Community Conference.
Date: October 8th 2024Time: 1 PM – 5:45 PMLocation: Microsoft Office at The Circle, Zurich
This session, co-presented by Microsoft and other partners who attended the conference, will provide valuable insights and updates on Microsoft Fabric, including news on partners program and learning opportunities for FY25.
Register here
Don’t miss this opportunity to stay informed and connect with fellow Swiss partners. Feel free to share with your colleagues. We look forward to seeing you there.
How to find out WhiteBoard, PowerPoint, etc usage in Teams?
Hi,
Anybody has thought about possibility to see how much your users are using Microsoft WhiteBoard, PowerPoint Live or Excel Live on the Teams meetings?
M365 Admin center have a usage section, but that shows nothing about these apps. There is actually apps usage, but the App ID related to the Teams usage seems to be unknow.
Teams Admin center have also some usage reports, but that speak also nothing about these apps.
Hi,Anybody has thought about possibility to see how much your users are using Microsoft WhiteBoard, PowerPoint Live or Excel Live on the Teams meetings? M365 Admin center have a usage section, but that shows nothing about these apps. There is actually apps usage, but the App ID related to the Teams usage seems to be unknow. Teams Admin center have also some usage reports, but that speak also nothing about these apps. Read More
How to update PID after system identification with closed loop PID Autotuner?
In the literature, system identification can be performed using various techniques like RLS, ARX, ARMAX, Kalman Filter, or frequency domain methods. In quadcopter systems, PX4 uses an autotune mode with the RLS method, and after that, GMVC law is applied to find optimal PID parameters. Similarly, Simulink has a ‘Closed-loop PID autotuner’ block.
What I’m confused about is the process of updating the PID parameters after system identification, which is typically done in a closed-loop setup. For example, let’s say I have an active PID with P: 3, I: 4, D: 2.8. If we use GMVC or another method to identify new PID parameters based on the closed-loop system response, how do we update these PID values?
Directly replacing the old parameters with the new ones seems problematic because the system identification itself was based on the current closed-loop response. I’m considering that we might need to combine the old and new PID parameters into a series configuration, which implies having two different PIDs in sequence. However, this doesn’t seem ideal.
Would it make more sense to extract the transfer function of the closed-loop system, remove the contribution of the current PID, and then apply the new PID parameters based on the open-loop transfer function by adding the old ones and test?In the literature, system identification can be performed using various techniques like RLS, ARX, ARMAX, Kalman Filter, or frequency domain methods. In quadcopter systems, PX4 uses an autotune mode with the RLS method, and after that, GMVC law is applied to find optimal PID parameters. Similarly, Simulink has a ‘Closed-loop PID autotuner’ block.
What I’m confused about is the process of updating the PID parameters after system identification, which is typically done in a closed-loop setup. For example, let’s say I have an active PID with P: 3, I: 4, D: 2.8. If we use GMVC or another method to identify new PID parameters based on the closed-loop system response, how do we update these PID values?
Directly replacing the old parameters with the new ones seems problematic because the system identification itself was based on the current closed-loop response. I’m considering that we might need to combine the old and new PID parameters into a series configuration, which implies having two different PIDs in sequence. However, this doesn’t seem ideal.
Would it make more sense to extract the transfer function of the closed-loop system, remove the contribution of the current PID, and then apply the new PID parameters based on the open-loop transfer function by adding the old ones and test? In the literature, system identification can be performed using various techniques like RLS, ARX, ARMAX, Kalman Filter, or frequency domain methods. In quadcopter systems, PX4 uses an autotune mode with the RLS method, and after that, GMVC law is applied to find optimal PID parameters. Similarly, Simulink has a ‘Closed-loop PID autotuner’ block.
What I’m confused about is the process of updating the PID parameters after system identification, which is typically done in a closed-loop setup. For example, let’s say I have an active PID with P: 3, I: 4, D: 2.8. If we use GMVC or another method to identify new PID parameters based on the closed-loop system response, how do we update these PID values?
Directly replacing the old parameters with the new ones seems problematic because the system identification itself was based on the current closed-loop response. I’m considering that we might need to combine the old and new PID parameters into a series configuration, which implies having two different PIDs in sequence. However, this doesn’t seem ideal.
Would it make more sense to extract the transfer function of the closed-loop system, remove the contribution of the current PID, and then apply the new PID parameters based on the open-loop transfer function by adding the old ones and test? systemidentification, pid, transfer function MATLAB Answers — New Questions
How to implement the linear output function in Takagi–Sugeno Fuzzy System?
hi, i want to implement Takagi Sugeno model in matlab using FIS, how can i set this rule:
"if x is large and y is small, then z=x+y+2"
of course i can add "If (x is large) and (y is small) then (Z is ‘…’)", but i cannot add "x+y+2", how can i do it?
thanks so muchhi, i want to implement Takagi Sugeno model in matlab using FIS, how can i set this rule:
"if x is large and y is small, then z=x+y+2"
of course i can add "If (x is large) and (y is small) then (Z is ‘…’)", but i cannot add "x+y+2", how can i do it?
thanks so much hi, i want to implement Takagi Sugeno model in matlab using FIS, how can i set this rule:
"if x is large and y is small, then z=x+y+2"
of course i can add "If (x is large) and (y is small) then (Z is ‘…’)", but i cannot add "x+y+2", how can i do it?
thanks so much implement sugeno in fis MATLAB Answers — New Questions
Cannot locate a valid install area
Hello
I’m trying to run an app on MAC, the app was built in Matlab and MCR (Matlab runtime) is required. I went ahead and installed Matlab_Runtime_R2021a_maci64 and I’m getting the following error:
Do you have any idea? any advise on how to fix this problem?
Thanks,Hello
I’m trying to run an app on MAC, the app was built in Matlab and MCR (Matlab runtime) is required. I went ahead and installed Matlab_Runtime_R2021a_maci64 and I’m getting the following error:
Do you have any idea? any advise on how to fix this problem?
Thanks, Hello
I’m trying to run an app on MAC, the app was built in Matlab and MCR (Matlab runtime) is required. I went ahead and installed Matlab_Runtime_R2021a_maci64 and I’m getting the following error:
Do you have any idea? any advise on how to fix this problem?
Thanks, mcr, valid install area MATLAB Answers — New Questions
coupled differntial equation using ode45
I’m getting an error while solving this coupled differential equation usually the error is showing issues with vertical concatenation. here’s the equation i’m tring to solve with mu0 = exp(-T0) and Boundary conditions as : U(y = -1) = 0 and U(y= 1) = 0 and T0 = 0 at y = -1 and T0 = 1 at y = 1.
here’s my code:
% Main script to solve the velocity and temperature profile
clear;
clc;
% Define constants
G = 1; % Source term (example value)
Na = 1; % Nusselt number (example value)
% Define the domain for y
y_span = [-1 1];
%% Step 1: Solve Velocity Equation to get U and dU/dy
% The velocity equation is:
% d/dy (mu0 * dU/dy) = G
% Define the velocity equation as a system of two first-order ODEs
function dU = velocity_ode(y, U, mu0, G)
dU = [U(2); (1/mu0) * G]; % U(1) = U, U(2) = dU/dy
end
% Initial conditions for velocity at y = -1
U_initial = [0; 0]; % U = 0 and dU/dy = 0 at y = -1 (you can adjust this)
% Solve the velocity equation using ode45
[y_vel, U_sol] = ode45(@(y, U) velocity_ode(y, U, mu0, G), y_span, U_initial);
% Extract dU/dy from the solution
dU_dy = U_sol(:, 2); % This is the derivative of U with respect to y
% Plot the velocity profile and its derivative
figure;
subplot(2,1,1);
plot(y_vel, U_sol(:, 1), ‘b-‘, ‘LineWidth’, 2); % U(y)
xlabel(‘y’);
ylabel(‘U(y)’);
title(‘Velocity Profile’);
subplot(2,1,2);
plot(y_vel, dU_dy, ‘r-‘, ‘LineWidth’, 2); % dU/dy(y)
xlabel(‘y’);
ylabel(‘dU/dy’);
title(‘Velocity Gradient Profile’);
%% Step 2: Solve Temperature Equation using dU/dy from Step 1
% Temperature equation: d^2T0/dy^2 + Na * mu0 * (dU/dy)^2 = 0
% Define the temperature equation as a system of two first-order ODEs
function dT = temperature_ode(y, T, dU_dy, mu0, Na)
dT = zeros(2,1); % Initialize the output vector
% Interpolate dU/dy from the previously computed solution
dUdy_squared = interp1(y_vel, dU_dy.^2, y, ‘linear’, ‘extrap’);
% First equation: dT0/dy = T(2)
dT(1) = T(2);
% Second equation: d^2T0/dy^2 = -Na * mu0 * (dU/dy)^2
dT(2) = -Na * mu0 * dUdy_squared;
end
% Initial conditions for temperature at y = -1
T0_initial = [0; 0]; % T0 = 0 and dT0/dy = 0 at y = -1 (adjust second value if needed)
mu0 = ex(-T0); % Viscosity (example value)
% Solve the temperature equation using ode45
[y_temp, T_sol] = ode45(@(y, T) temperature_ode(y, T, dU_dy, mu0, Na), y_span, T0_initial);
% Plot the temperature profile
figure;
plot(y_temp, T_sol(:, 1), ‘r-‘, ‘LineWidth’, 2); % T0
xlabel(‘y’);
ylabel(‘T_0(y)’);
title(‘Temperature Profile’);
Please help me here, thanks in advanceI’m getting an error while solving this coupled differential equation usually the error is showing issues with vertical concatenation. here’s the equation i’m tring to solve with mu0 = exp(-T0) and Boundary conditions as : U(y = -1) = 0 and U(y= 1) = 0 and T0 = 0 at y = -1 and T0 = 1 at y = 1.
here’s my code:
% Main script to solve the velocity and temperature profile
clear;
clc;
% Define constants
G = 1; % Source term (example value)
Na = 1; % Nusselt number (example value)
% Define the domain for y
y_span = [-1 1];
%% Step 1: Solve Velocity Equation to get U and dU/dy
% The velocity equation is:
% d/dy (mu0 * dU/dy) = G
% Define the velocity equation as a system of two first-order ODEs
function dU = velocity_ode(y, U, mu0, G)
dU = [U(2); (1/mu0) * G]; % U(1) = U, U(2) = dU/dy
end
% Initial conditions for velocity at y = -1
U_initial = [0; 0]; % U = 0 and dU/dy = 0 at y = -1 (you can adjust this)
% Solve the velocity equation using ode45
[y_vel, U_sol] = ode45(@(y, U) velocity_ode(y, U, mu0, G), y_span, U_initial);
% Extract dU/dy from the solution
dU_dy = U_sol(:, 2); % This is the derivative of U with respect to y
% Plot the velocity profile and its derivative
figure;
subplot(2,1,1);
plot(y_vel, U_sol(:, 1), ‘b-‘, ‘LineWidth’, 2); % U(y)
xlabel(‘y’);
ylabel(‘U(y)’);
title(‘Velocity Profile’);
subplot(2,1,2);
plot(y_vel, dU_dy, ‘r-‘, ‘LineWidth’, 2); % dU/dy(y)
xlabel(‘y’);
ylabel(‘dU/dy’);
title(‘Velocity Gradient Profile’);
%% Step 2: Solve Temperature Equation using dU/dy from Step 1
% Temperature equation: d^2T0/dy^2 + Na * mu0 * (dU/dy)^2 = 0
% Define the temperature equation as a system of two first-order ODEs
function dT = temperature_ode(y, T, dU_dy, mu0, Na)
dT = zeros(2,1); % Initialize the output vector
% Interpolate dU/dy from the previously computed solution
dUdy_squared = interp1(y_vel, dU_dy.^2, y, ‘linear’, ‘extrap’);
% First equation: dT0/dy = T(2)
dT(1) = T(2);
% Second equation: d^2T0/dy^2 = -Na * mu0 * (dU/dy)^2
dT(2) = -Na * mu0 * dUdy_squared;
end
% Initial conditions for temperature at y = -1
T0_initial = [0; 0]; % T0 = 0 and dT0/dy = 0 at y = -1 (adjust second value if needed)
mu0 = ex(-T0); % Viscosity (example value)
% Solve the temperature equation using ode45
[y_temp, T_sol] = ode45(@(y, T) temperature_ode(y, T, dU_dy, mu0, Na), y_span, T0_initial);
% Plot the temperature profile
figure;
plot(y_temp, T_sol(:, 1), ‘r-‘, ‘LineWidth’, 2); % T0
xlabel(‘y’);
ylabel(‘T_0(y)’);
title(‘Temperature Profile’);
Please help me here, thanks in advance I’m getting an error while solving this coupled differential equation usually the error is showing issues with vertical concatenation. here’s the equation i’m tring to solve with mu0 = exp(-T0) and Boundary conditions as : U(y = -1) = 0 and U(y= 1) = 0 and T0 = 0 at y = -1 and T0 = 1 at y = 1.
here’s my code:
% Main script to solve the velocity and temperature profile
clear;
clc;
% Define constants
G = 1; % Source term (example value)
Na = 1; % Nusselt number (example value)
% Define the domain for y
y_span = [-1 1];
%% Step 1: Solve Velocity Equation to get U and dU/dy
% The velocity equation is:
% d/dy (mu0 * dU/dy) = G
% Define the velocity equation as a system of two first-order ODEs
function dU = velocity_ode(y, U, mu0, G)
dU = [U(2); (1/mu0) * G]; % U(1) = U, U(2) = dU/dy
end
% Initial conditions for velocity at y = -1
U_initial = [0; 0]; % U = 0 and dU/dy = 0 at y = -1 (you can adjust this)
% Solve the velocity equation using ode45
[y_vel, U_sol] = ode45(@(y, U) velocity_ode(y, U, mu0, G), y_span, U_initial);
% Extract dU/dy from the solution
dU_dy = U_sol(:, 2); % This is the derivative of U with respect to y
% Plot the velocity profile and its derivative
figure;
subplot(2,1,1);
plot(y_vel, U_sol(:, 1), ‘b-‘, ‘LineWidth’, 2); % U(y)
xlabel(‘y’);
ylabel(‘U(y)’);
title(‘Velocity Profile’);
subplot(2,1,2);
plot(y_vel, dU_dy, ‘r-‘, ‘LineWidth’, 2); % dU/dy(y)
xlabel(‘y’);
ylabel(‘dU/dy’);
title(‘Velocity Gradient Profile’);
%% Step 2: Solve Temperature Equation using dU/dy from Step 1
% Temperature equation: d^2T0/dy^2 + Na * mu0 * (dU/dy)^2 = 0
% Define the temperature equation as a system of two first-order ODEs
function dT = temperature_ode(y, T, dU_dy, mu0, Na)
dT = zeros(2,1); % Initialize the output vector
% Interpolate dU/dy from the previously computed solution
dUdy_squared = interp1(y_vel, dU_dy.^2, y, ‘linear’, ‘extrap’);
% First equation: dT0/dy = T(2)
dT(1) = T(2);
% Second equation: d^2T0/dy^2 = -Na * mu0 * (dU/dy)^2
dT(2) = -Na * mu0 * dUdy_squared;
end
% Initial conditions for temperature at y = -1
T0_initial = [0; 0]; % T0 = 0 and dT0/dy = 0 at y = -1 (adjust second value if needed)
mu0 = ex(-T0); % Viscosity (example value)
% Solve the temperature equation using ode45
[y_temp, T_sol] = ode45(@(y, T) temperature_ode(y, T, dU_dy, mu0, Na), y_span, T0_initial);
% Plot the temperature profile
figure;
plot(y_temp, T_sol(:, 1), ‘r-‘, ‘LineWidth’, 2); % T0
xlabel(‘y’);
ylabel(‘T_0(y)’);
title(‘Temperature Profile’);
Please help me here, thanks in advance ode45, matlab, coupledode MATLAB Answers — New Questions
Solve a complex differential equations system
I need to write a script that can solve the system of differential equation written in this article.
Thank you to everyone who will try to help me:)I need to write a script that can solve the system of differential equation written in this article.
Thank you to everyone who will try to help me:) I need to write a script that can solve the system of differential equation written in this article.
Thank you to everyone who will try to help me:) differential equations MATLAB Answers — New Questions