Month: July 2024
Encoding conditional assignments in SimBiology
Is it possible to define conditional assignments in SimBiology, i.e.
if a > 0
param1 = a + b
else
param1 = a + c
end
I am aware of events but it is insuffient as it lacks the ‘else’ expression.Is it possible to define conditional assignments in SimBiology, i.e.
if a > 0
param1 = a + b
else
param1 = a + c
end
I am aware of events but it is insuffient as it lacks the ‘else’ expression. Is it possible to define conditional assignments in SimBiology, i.e.
if a > 0
param1 = a + b
else
param1 = a + c
end
I am aware of events but it is insuffient as it lacks the ‘else’ expression. conditional, assignment MATLAB Answers — New Questions
Genetic Algorithm with a graph
function C = Myfunm(x)
C = – (14.9*100)/(x(1)^2-11.9723*x(1)+70.0051+10*cos((pi*x(1))/2)+8*sin(5*pi*x(1))-(exp(-((x(2)-0.5)^2)/2))/sqrt(5));
I solved this problem with the Genetic Algorithm and i want to present the graph which depicts the max solution depending on the number of generations. I don’t know how to plot the graph. Is there a certain tool or do i have to write a new code?function C = Myfunm(x)
C = – (14.9*100)/(x(1)^2-11.9723*x(1)+70.0051+10*cos((pi*x(1))/2)+8*sin(5*pi*x(1))-(exp(-((x(2)-0.5)^2)/2))/sqrt(5));
I solved this problem with the Genetic Algorithm and i want to present the graph which depicts the max solution depending on the number of generations. I don’t know how to plot the graph. Is there a certain tool or do i have to write a new code? function C = Myfunm(x)
C = – (14.9*100)/(x(1)^2-11.9723*x(1)+70.0051+10*cos((pi*x(1))/2)+8*sin(5*pi*x(1))-(exp(-((x(2)-0.5)^2)/2))/sqrt(5));
I solved this problem with the Genetic Algorithm and i want to present the graph which depicts the max solution depending on the number of generations. I don’t know how to plot the graph. Is there a certain tool or do i have to write a new code? maximazitaion, genetic algorithm MATLAB Answers — New Questions
how to perform matrix multiplication of a 4×4 and 4×11 matrices in simulink?
having trouble preforming a matrix multiplicationhaving trouble preforming a matrix multiplication having trouble preforming a matrix multiplication matrix multiplication MATLAB Answers — New Questions
How to convert from a function of frames to a function of time for radar board (Infineon Position2Go)?
Hi Matlab Community,
I am currently using Infineon’s Position2Go FMCW radar board for my project to measure instantaneous sprinting speed and walking speed. After extracting the raw data to Matlab, I noticed that the graphs I have are all as a function of Frames on the X axis. How can I convert them to a function of time (in seconds) instead?
My configs are as follows:
32 Chirps Per Frame
64 Samples Per Chirp
150ms Frame Interval
Does it mean that for every second, there are 6.66 Frames(1/150ms) ?Hi Matlab Community,
I am currently using Infineon’s Position2Go FMCW radar board for my project to measure instantaneous sprinting speed and walking speed. After extracting the raw data to Matlab, I noticed that the graphs I have are all as a function of Frames on the X axis. How can I convert them to a function of time (in seconds) instead?
My configs are as follows:
32 Chirps Per Frame
64 Samples Per Chirp
150ms Frame Interval
Does it mean that for every second, there are 6.66 Frames(1/150ms) ? Hi Matlab Community,
I am currently using Infineon’s Position2Go FMCW radar board for my project to measure instantaneous sprinting speed and walking speed. After extracting the raw data to Matlab, I noticed that the graphs I have are all as a function of Frames on the X axis. How can I convert them to a function of time (in seconds) instead?
My configs are as follows:
32 Chirps Per Frame
64 Samples Per Chirp
150ms Frame Interval
Does it mean that for every second, there are 6.66 Frames(1/150ms) ? infineon position2go frames seconds MATLAB Answers — New Questions
App running slowly after some time
I have an app that I built in MATLAB, a rather complex app with many complex features. I noticed that over time, the app becomes laggy and slow, with every graphical action taking more time than before. Is there a solution to this? or at least a way to understand why this happens?
many thanks
NathanI have an app that I built in MATLAB, a rather complex app with many complex features. I noticed that over time, the app becomes laggy and slow, with every graphical action taking more time than before. Is there a solution to this? or at least a way to understand why this happens?
many thanks
Nathan I have an app that I built in MATLAB, a rather complex app with many complex features. I noticed that over time, the app becomes laggy and slow, with every graphical action taking more time than before. Is there a solution to this? or at least a way to understand why this happens?
many thanks
Nathan app designer, appdesigner, lags, slow MATLAB Answers — New Questions
Return value based on criteria
Hi,
I need a formula that will find a matching value and return a record
Example
E6 = “SPA”
F6 = “3.23”
E13 = “SPA”
F13 = “3.23”
The formula will go into F13 and return “3.23”
For more on this see attached file:
Hi, I need a formula that will find a matching value and return a record Example E6 = “SPA”F6 = “3.23” E13 = “SPA”F13 = “3.23” The formula will go into F13 and return “3.23” For more on this see attached file: Find cells with value.xlsx Read More
External sharing mysteries
I am struggling to find out exactly how external sharing works. Our tenant is set to “New and existing guests” in the External Sharing settings in SharePoint Admin Center. But I am still allowed to share files in Teams with external users that are not Guest Users. And they can access and (if granted permission) edit the the file. But they can’t download the file.
How come Guest Users can access and edit files if they are neither new, nor existing guests? How come I am even able to share the files with unknown external users?
I am struggling to find out exactly how external sharing works. Our tenant is set to “New and existing guests” in the External Sharing settings in SharePoint Admin Center. But I am still allowed to share files in Teams with external users that are not Guest Users. And they can access and (if granted permission) edit the the file. But they can’t download the file. How come Guest Users can access and edit files if they are neither new, nor existing guests? How come I am even able to share the files with unknown external users? Read More
How to Resolve View My Paycheck Not Working After Update in Q.B
After a recent update, the “View My Paycheck” feature in Quick-Books stopped working. Employees are no longer able to access their paychecks online. What steps can I take to fix this issue?
After a recent update, the “View My Paycheck” feature in Quick-Books stopped working. Employees are no longer able to access their paychecks online. What steps can I take to fix this issue? Read More
How to Migrate Data from Quick-Books Online to Quick-Books Desktop on Windows 11
I’m looking to migrate my data from QBO to Q.B Desktop, and I’m using Windows 11. Can you provide step-by-step instructions or recommend any reliable services that can assist with this process?
I’m looking to migrate my data from QBO to Q.B Desktop, and I’m using Windows 11. Can you provide step-by-step instructions or recommend any reliable services that can assist with this process? Read More
How to write StateFcn in Nonlinear MPC Controller
Nowdays, I am doing some works about visual servoing. But there are some troubles with the nonlinear MPC Controller. I have read the example named ‘Control Quadruple-Tank Using Passivity-Based Nonlinear MPC’. There is a code nlobj.Model.StateFcn = "stateFcnQuadrupleTank".
I opened it, and the content shows as a picture as follows. It looks like the example uses code to express the dynamic system. I want to know if I can use a Simulink model, which is already done, to replace the code.
Thank a lot for your help!Nowdays, I am doing some works about visual servoing. But there are some troubles with the nonlinear MPC Controller. I have read the example named ‘Control Quadruple-Tank Using Passivity-Based Nonlinear MPC’. There is a code nlobj.Model.StateFcn = "stateFcnQuadrupleTank".
I opened it, and the content shows as a picture as follows. It looks like the example uses code to express the dynamic system. I want to know if I can use a Simulink model, which is already done, to replace the code.
Thank a lot for your help! Nowdays, I am doing some works about visual servoing. But there are some troubles with the nonlinear MPC Controller. I have read the example named ‘Control Quadruple-Tank Using Passivity-Based Nonlinear MPC’. There is a code nlobj.Model.StateFcn = "stateFcnQuadrupleTank".
I opened it, and the content shows as a picture as follows. It looks like the example uses code to express the dynamic system. I want to know if I can use a Simulink model, which is already done, to replace the code.
Thank a lot for your help! mpc, ibvs MATLAB Answers — New Questions
Is this a correct way to use fsolve?
Since fsolve keeps giving me answers with a very small but non-zero imaginary part, which i really don’t want, I though about giving the derivative of my function. Is this a correct way to do it? Also, is there a way to tell the function not to go outside the reale line?
%g is a function that is defined by an equation. I know that is invertible
%and takes values between 0 and kappa.
function g = g(y, z, p, kappa, beta, mu, muz, sigma, sigmaz)
K = (mu^2/sigma^2)*0.5;
M = (sigmaz*mu)/sigma;
q = 1/(p-1);
alpha = (sqrt((beta-M-K)^2+4*K*(beta-muz))-beta+M+K)/(2*K);
C = beta-K*p/(1-p);
%function whose zero i need to find (with respect to w)
F = @(w) ((1-p)/C)*(kappa^q – w^q)+y+z-z*(w/kappa)^(alpha-1);
%its derivative with respect to w
J = @(w) ((1-p)/C)*(-q*(w^(q-1))) -z*((alpha-1)*w^(alpha-2))/(kappa^(alpha-1));
options = optimoptions(‘fsolve’, ‘SpecifyObjectiveGradient’, true);
fun = {F, J};
w0 = kappa/2;
g = fsolve(fun, w0, options);
endSince fsolve keeps giving me answers with a very small but non-zero imaginary part, which i really don’t want, I though about giving the derivative of my function. Is this a correct way to do it? Also, is there a way to tell the function not to go outside the reale line?
%g is a function that is defined by an equation. I know that is invertible
%and takes values between 0 and kappa.
function g = g(y, z, p, kappa, beta, mu, muz, sigma, sigmaz)
K = (mu^2/sigma^2)*0.5;
M = (sigmaz*mu)/sigma;
q = 1/(p-1);
alpha = (sqrt((beta-M-K)^2+4*K*(beta-muz))-beta+M+K)/(2*K);
C = beta-K*p/(1-p);
%function whose zero i need to find (with respect to w)
F = @(w) ((1-p)/C)*(kappa^q – w^q)+y+z-z*(w/kappa)^(alpha-1);
%its derivative with respect to w
J = @(w) ((1-p)/C)*(-q*(w^(q-1))) -z*((alpha-1)*w^(alpha-2))/(kappa^(alpha-1));
options = optimoptions(‘fsolve’, ‘SpecifyObjectiveGradient’, true);
fun = {F, J};
w0 = kappa/2;
g = fsolve(fun, w0, options);
end Since fsolve keeps giving me answers with a very small but non-zero imaginary part, which i really don’t want, I though about giving the derivative of my function. Is this a correct way to do it? Also, is there a way to tell the function not to go outside the reale line?
%g is a function that is defined by an equation. I know that is invertible
%and takes values between 0 and kappa.
function g = g(y, z, p, kappa, beta, mu, muz, sigma, sigmaz)
K = (mu^2/sigma^2)*0.5;
M = (sigmaz*mu)/sigma;
q = 1/(p-1);
alpha = (sqrt((beta-M-K)^2+4*K*(beta-muz))-beta+M+K)/(2*K);
C = beta-K*p/(1-p);
%function whose zero i need to find (with respect to w)
F = @(w) ((1-p)/C)*(kappa^q – w^q)+y+z-z*(w/kappa)^(alpha-1);
%its derivative with respect to w
J = @(w) ((1-p)/C)*(-q*(w^(q-1))) -z*((alpha-1)*w^(alpha-2))/(kappa^(alpha-1));
options = optimoptions(‘fsolve’, ‘SpecifyObjectiveGradient’, true);
fun = {F, J};
w0 = kappa/2;
g = fsolve(fun, w0, options);
end fsolve, complex values, jacobian MATLAB Answers — New Questions
How chromosome in Genetic Algorithms Toolbox works in detailed
Hello,
I need answers about constitution of the chromosomes, their length, coding of chromosome in detail, crossover and mutation process. Generally, how it works in detailed Maybe on example or code please. In GA toolbox documentation does not specify how the GA determines the length of the chromosome and encodes variable???
Thanks
RadekHello,
I need answers about constitution of the chromosomes, their length, coding of chromosome in detail, crossover and mutation process. Generally, how it works in detailed Maybe on example or code please. In GA toolbox documentation does not specify how the GA determines the length of the chromosome and encodes variable???
Thanks
Radek Hello,
I need answers about constitution of the chromosomes, their length, coding of chromosome in detail, crossover and mutation process. Generally, how it works in detailed Maybe on example or code please. In GA toolbox documentation does not specify how the GA determines the length of the chromosome and encodes variable???
Thanks
Radek genetic algorithm, chromosome MATLAB Answers — New Questions
Error Message
When trying to print worksheet in onedrive error message as follows when selecting secind print label:-
This content is blocked. Contact the site owner to fix the issue.
Can someone please offer a solution ?
When trying to print worksheet in onedrive error message as follows when selecting secind print label:-This content is blocked. Contact the site owner to fix the issue.Can someone please offer a solution ? Read More
How can I make a bootable usb macos installer on Windows PC?
I’m in a sticky situation and would love some help. My Mac suddenly stopped booting and I suspect there might be something wrong with the system files. Now I want to make a bootable USB macOS installer on another Windows PC I have to reinstall the system. The problem is that I don’t quite know how to make a bootable disk of macOS on a Windows system.
I looked for some methods and tools online, but I couldn’t find a clear and reliable guide. If anyone knows the specific steps or has used reliable tools, please let me know, I really need help! Thank you everyone!
I’m in a sticky situation and would love some help. My Mac suddenly stopped booting and I suspect there might be something wrong with the system files. Now I want to make a bootable USB macOS installer on another Windows PC I have to reinstall the system. The problem is that I don’t quite know how to make a bootable disk of macOS on a Windows system. I looked for some methods and tools online, but I couldn’t find a clear and reliable guide. If anyone knows the specific steps or has used reliable tools, please let me know, I really need help! Thank you everyone! Read More
Use Azure Screenshot for my thesis
Dear Microsoft Team,
In my bachelor’s thesis, I plan to implement a BI process and would like to use screenshots from the development environments of Microsoft Fabric, Azure Data Factory, Azure Data Lake Storage Gen2, Azure Synapse Analytics, and PowerBI. Therefore, I would like to ask if I am allowed to use these types of screenshots in my thesis free of charge.
Best regards
Dear Microsoft Team,In my bachelor’s thesis, I plan to implement a BI process and would like to use screenshots from the development environments of Microsoft Fabric, Azure Data Factory, Azure Data Lake Storage Gen2, Azure Synapse Analytics, and PowerBI. Therefore, I would like to ask if I am allowed to use these types of screenshots in my thesis free of charge.Best regards Read More
How can I resolve QuickBook Error OL 306 when connecting to my bank for transactions?
I am encountering QuickBook Error OL-306 when trying to update my bank transactions. This error message is preventing me from downloading the latest transactions. Could you provide some troubleshooting steps to resolve this issue?
I am encountering QuickBook Error OL-306 when trying to update my bank transactions. This error message is preventing me from downloading the latest transactions. Could you provide some troubleshooting steps to resolve this issue? Read More
How do I, report GlowRoad?
To file a, complaint with GlowRoad, you can contact their customer support team at,0*9641,493-383 and provide them with all the necessary details related to your complain.
To file a, complaint with GlowRoad, you can contact their customer support team at,0*9641,493-383 and provide them with all the necessary details related to your complain. Read More
What causes QuickBook Error OL-205, and how can it be resolved?
I’ve been encountering QuickBook Error OL-205 when trying to update my bank account transactions. This error message is preventing me from accessing my latest bank data. Could you provide some troubleshooting steps to resolve this issue?
I’ve been encountering QuickBook Error OL-205 when trying to update my bank account transactions. This error message is preventing me from accessing my latest bank data. Could you provide some troubleshooting steps to resolve this issue? Read More
Looking for the best Windows password recovery USB tool, any suggestions?
Hello everyone! I’m in trouble now. I forgot my computer login password and I need to find a good Windows password recovery USB tool. I hope to make a bootable USB to reset or recover the password, but there is too much information on the Internet and it feels confusing. I don’t know which tool is safe and effective. If you have used a reliable password recovery tool, can you recommend it? Thank you very much for your help!
Hello everyone! I’m in trouble now. I forgot my computer login password and I need to find a good Windows password recovery USB tool. I hope to make a bootable USB to reset or recover the password, but there is too much information on the Internet and it feels confusing. I don’t know which tool is safe and effective. If you have used a reliable password recovery tool, can you recommend it? Thank you very much for your help! Read More
No matter what settings I changed, my laptop still goes to sleep after a short while :(
I have an older Asus Zenbook (UX331U), upgraded to Win 11 (I bought it used, with the upgrade already done).
Its driving me nuts that, no matter what settings I tried, both inside Windows, even some registry tweaks, and a full reinstall/repair, it still goes to sleep after 30 minutes or so. I use this particular laptop to stream TV series/movies onto the Smart TV (thru Plex) and its very annoying when the laptop goes to sleep, pausing the movie.
I’ve tried also using other programs to keep it from going to sleep, like PowerToys, also using a torrenting program that was set to prevent sleep, but none of these things made a difference, I’m starting to think this laptop is possessed, to annoy me
The only thing I have not tried to do is put Win 10 on it, that would be like a last resort that I’m trying to avoid doing, but I’m thinking to, just to see if the behavior would be gone on Win 10 or not. I already have, and even older Asus Zenbook, with Win10 on it, and on that one the behavior I wanted, preventing sleep thru settings to be able to stream from it, was never and issue, it would turn off only when running out of juice, or never if plugged in and if I, for example had Utorrent running and downloading/seeding something on it.
What sort of logs/events could I extract here to be able to understand the reasons behind?
I have an older Asus Zenbook (UX331U), upgraded to Win 11 (I bought it used, with the upgrade already done). Its driving me nuts that, no matter what settings I tried, both inside Windows, even some registry tweaks, and a full reinstall/repair, it still goes to sleep after 30 minutes or so. I use this particular laptop to stream TV series/movies onto the Smart TV (thru Plex) and its very annoying when the laptop goes to sleep, pausing the movie.I’ve tried also using other programs to keep it from going to sleep, like PowerToys, also using a torrenting program that was set to prevent sleep, but none of these things made a difference, I’m starting to think this laptop is possessed, to annoy me The only thing I have not tried to do is put Win 10 on it, that would be like a last resort that I’m trying to avoid doing, but I’m thinking to, just to see if the behavior would be gone on Win 10 or not. I already have, and even older Asus Zenbook, with Win10 on it, and on that one the behavior I wanted, preventing sleep thru settings to be able to stream from it, was never and issue, it would turn off only when running out of juice, or never if plugged in and if I, for example had Utorrent running and downloading/seeding something on it.What sort of logs/events could I extract here to be able to understand the reasons behind? Read More