Category: News
Why do the same system matlab and simulink get different step responses?
As I asked, I want to design a fractional pid controller for a model. Unfortunately, the results I got with step in matlab are quite different from those in simulink
.
Here the orange line is the output and the blue line is the offset,Now let me show you the situation of matlab.The specific parameters of the controller are consistent with the code below
cs=fopid(9.503084707494814e+03,1.889631254823942e+02,2.304958553299564e+02,0.058440555124293,1.558103446462550);%This is parameter of controller
gs=tf(118700,[1 1085 1224000]);%This is the transfer function of the controlled object
step(feedback(cs*gs,1))%Step Response of Closed-loop Transfer Function
This is the general situation. I feel confused now.As I asked, I want to design a fractional pid controller for a model. Unfortunately, the results I got with step in matlab are quite different from those in simulink
.
Here the orange line is the output and the blue line is the offset,Now let me show you the situation of matlab.The specific parameters of the controller are consistent with the code below
cs=fopid(9.503084707494814e+03,1.889631254823942e+02,2.304958553299564e+02,0.058440555124293,1.558103446462550);%This is parameter of controller
gs=tf(118700,[1 1085 1224000]);%This is the transfer function of the controlled object
step(feedback(cs*gs,1))%Step Response of Closed-loop Transfer Function
This is the general situation. I feel confused now. As I asked, I want to design a fractional pid controller for a model. Unfortunately, the results I got with step in matlab are quite different from those in simulink
.
Here the orange line is the output and the blue line is the offset,Now let me show you the situation of matlab.The specific parameters of the controller are consistent with the code below
cs=fopid(9.503084707494814e+03,1.889631254823942e+02,2.304958553299564e+02,0.058440555124293,1.558103446462550);%This is parameter of controller
gs=tf(118700,[1 1085 1224000]);%This is the transfer function of the controlled object
step(feedback(cs*gs,1))%Step Response of Closed-loop Transfer Function
This is the general situation. I feel confused now. matlab, simulink MATLAB Answers — New Questions
Looking for some help with a production optimization problem
Above is a screenshot of the question I posed to reddit. I feel like solver should be able to handle this but I don’t know how to do it. Tired of trying to do this by hand on a spreadsheet, should be an easier more efficient way.
Above is a screenshot of the question I posed to reddit. I feel like solver should be able to handle this but I don’t know how to do it. Tired of trying to do this by hand on a spreadsheet, should be an easier more efficient way. Read More
Network Protection Set to Block Mode, but Clients Showing Audit Mode – Possible GPO Conflict?
Hi everyone,
I’ve run into an issue where I’ve created an Intune policy to enable Network Protection in block mode. However, when I check locally on the clients, I see that the policy is configured in audit mode instead of block mode.
I’ve verified in Intune that the devices have successfully synced and received the policy. During my troubleshooting, I found that some GPOs can take precedence over Intune policies.
Could this be the reason why the Network Protection is only set to audit mode on the clients? Has anyone else experienced this issue or have any insights?
Thanks in advance for your help!
Hi everyone, I’ve run into an issue where I’ve created an Intune policy to enable Network Protection in block mode. However, when I check locally on the clients, I see that the policy is configured in audit mode instead of block mode. I’ve verified in Intune that the devices have successfully synced and received the policy. During my troubleshooting, I found that some GPOs can take precedence over Intune policies. Could this be the reason why the Network Protection is only set to audit mode on the clients? Has anyone else experienced this issue or have any insights? Thanks in advance for your help! Read More
Calculating number of monthly events
Hi
I have events time series. (see attached)
How I can calculate monthly number of events.
Thanks for your help!Hi
I have events time series. (see attached)
How I can calculate monthly number of events.
Thanks for your help! Hi
I have events time series. (see attached)
How I can calculate monthly number of events.
Thanks for your help! calculating number of monthly events MATLAB Answers — New Questions
roc plot
area = roc(fileName,exp)
%
% fileName: The name of the output file. It is an image
% exp: a structure representing an experiment with three fields
% – exp.name: a string specifying the experiment name
% – exp.positive_n: the number of positive samples in the experiment
% – exp.likelihoods: likelihoods of each sample where the first
% exp.positive_n number of likelihoods belongs to the positive
% samples while others belong to the negative samples.
% area: a 1×1-dimensional cell array of the area under the roc curve.
true positive,false positive values of ground truth,edge detected image was calculated…then how apply these values to roc program…??????area = roc(fileName,exp)
%
% fileName: The name of the output file. It is an image
% exp: a structure representing an experiment with three fields
% – exp.name: a string specifying the experiment name
% – exp.positive_n: the number of positive samples in the experiment
% – exp.likelihoods: likelihoods of each sample where the first
% exp.positive_n number of likelihoods belongs to the positive
% samples while others belong to the negative samples.
% area: a 1×1-dimensional cell array of the area under the roc curve.
true positive,false positive values of ground truth,edge detected image was calculated…then how apply these values to roc program…?????? area = roc(fileName,exp)
%
% fileName: The name of the output file. It is an image
% exp: a structure representing an experiment with three fields
% – exp.name: a string specifying the experiment name
% – exp.positive_n: the number of positive samples in the experiment
% – exp.likelihoods: likelihoods of each sample where the first
% exp.positive_n number of likelihoods belongs to the positive
% samples while others belong to the negative samples.
% area: a 1×1-dimensional cell array of the area under the roc curve.
true positive,false positive values of ground truth,edge detected image was calculated…then how apply these values to roc program…?????? roc MATLAB Answers — New Questions
Is there a way to model sound wave interference patterns using Phased Array System Toolbox?
I am trying to find a way to model the constructive/destructive interference patterns for sound speakers in a room, i.e. concentrating sound in a specific part of the room through creating constructive interference from several non-directional (aka regular) speakers. I have been looking at the Phased Array System Toolbox (because I am thinking about an array of speakers) and think that might be the best fit for what I am looking for. Not sure if there is another Toolbox out there that does similar things or the Phased Array System is the best fit for this? Thank you!I am trying to find a way to model the constructive/destructive interference patterns for sound speakers in a room, i.e. concentrating sound in a specific part of the room through creating constructive interference from several non-directional (aka regular) speakers. I have been looking at the Phased Array System Toolbox (because I am thinking about an array of speakers) and think that might be the best fit for what I am looking for. Not sure if there is another Toolbox out there that does similar things or the Phased Array System is the best fit for this? Thank you! I am trying to find a way to model the constructive/destructive interference patterns for sound speakers in a room, i.e. concentrating sound in a specific part of the room through creating constructive interference from several non-directional (aka regular) speakers. I have been looking at the Phased Array System Toolbox (because I am thinking about an array of speakers) and think that might be the best fit for what I am looking for. Not sure if there is another Toolbox out there that does similar things or the Phased Array System is the best fit for this? Thank you! acoustic modeling, interference patterns MATLAB Answers — New Questions
Error in installing an apps
I have a problem installing apps, the command windows gives me this:
com.mathworks.jmi.MatlabException: The specified path is invalid.
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:265)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120)
at com.mathworks.jmi.Matlab.mtFeval(Matlab.java:1541)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:197)
at com.mathworks.appmanagement.InstallAppMatlabWorker.doOnMatlabThread(InstallAppMatlabWorker.java:20)
at com.mathworks.appmanagement.InstallAppMatlabWorker.doOnMatlabThread(InstallAppMatlabWorker.java:7)
at com.mathworks.appmanagement.AbstractAppManagementMatlabWorker.runOnMatlabThread(AbstractAppManagementMatlabWorker.java:21)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:440)
What should I do?I have a problem installing apps, the command windows gives me this:
com.mathworks.jmi.MatlabException: The specified path is invalid.
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:265)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120)
at com.mathworks.jmi.Matlab.mtFeval(Matlab.java:1541)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:197)
at com.mathworks.appmanagement.InstallAppMatlabWorker.doOnMatlabThread(InstallAppMatlabWorker.java:20)
at com.mathworks.appmanagement.InstallAppMatlabWorker.doOnMatlabThread(InstallAppMatlabWorker.java:7)
at com.mathworks.appmanagement.AbstractAppManagementMatlabWorker.runOnMatlabThread(AbstractAppManagementMatlabWorker.java:21)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:440)
What should I do? I have a problem installing apps, the command windows gives me this:
com.mathworks.jmi.MatlabException: The specified path is invalid.
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:265)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120)
at com.mathworks.jmi.Matlab.mtFeval(Matlab.java:1541)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:197)
at com.mathworks.appmanagement.InstallAppMatlabWorker.doOnMatlabThread(InstallAppMatlabWorker.java:20)
at com.mathworks.appmanagement.InstallAppMatlabWorker.doOnMatlabThread(InstallAppMatlabWorker.java:7)
at com.mathworks.appmanagement.AbstractAppManagementMatlabWorker.runOnMatlabThread(AbstractAppManagementMatlabWorker.java:21)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:440)
What should I do? install, apps MATLAB Answers — New Questions
Troubleshooting Bootmgfw.efi Problems Preventing Windows 10 Booting
Salutations!
I have been enjoying the experience of simultaneously running Linux Mint and macOS on my laptop by utilizing separate external SSD drives for each operating system. The boot loader I’ve been employing is rEFInd. Recently, however, I encountered an issue when attempting to boot into macOS. A message appeared on the screen stating:
“Error: premature end of file /EFI/APPLE/BOOT/BOOTX64.efi.”
Despite my efforts to resolve this problem through online research, I could not find any useful resources addressing this specific premature end error. The solutions provided were more geared towards cases where the mentioned file was missing altogether.
To address the issue, I attempted to use the macOS recovery system. However, upon opening the Disk Utility, the external SSD drive housing macOS was not detected. Only the USB drive containing the macOS installer was visible.
Feeling quite uncertain about how to proceed, any guidance or assistance would be greatly appreciated.
Salutations! I have been enjoying the experience of simultaneously running Linux Mint and macOS on my laptop by utilizing separate external SSD drives for each operating system. The boot loader I’ve been employing is rEFInd. Recently, however, I encountered an issue when attempting to boot into macOS. A message appeared on the screen stating: “Error: premature end of file /EFI/APPLE/BOOT/BOOTX64.efi.” Despite my efforts to resolve this problem through online research, I could not find any useful resources addressing this specific premature end error. The solutions provided were more geared towards cases where the mentioned file was missing altogether. To address the issue, I attempted to use the macOS recovery system. However, upon opening the Disk Utility, the external SSD drive housing macOS was not detected. Only the USB drive containing the macOS installer was visible. Feeling quite uncertain about how to proceed, any guidance or assistance would be greatly appreciated. Read More
Lock Desktop Icon Positions
I recently adjusted my desktop settings by right-clicking on an empty area of the desktop, selecting “View,” unchecking “Auto arrange icons,” and checking “align icons to a grid.” Although my settings reflected this configuration, a peculiar issue persisted. When I transferred a movie file from a USB stick to the desktop, the file would unexpectedly disrupt the arrangement of existing desktop icons.
I recently adjusted my desktop settings by right-clicking on an empty area of the desktop, selecting “View,” unchecking “Auto arrange icons,” and checking “align icons to a grid.” Although my settings reflected this configuration, a peculiar issue persisted. When I transferred a movie file from a USB stick to the desktop, the file would unexpectedly disrupt the arrangement of existing desktop icons. Read More
Repair Installation Does Not Fully Restore Missing SYSTEM Settings Option
I recently performed a complete reinstall of Windows, as the Settings SYSTEM window was only displaying limited options. Following the update, the SYSTEM interface now includes a wider array of choices. How can I ensure that all options such as Display and Sound are fully restored on the SYSTEM window?
I recently performed a complete reinstall of Windows, as the Settings SYSTEM window was only displaying limited options. Following the update, the SYSTEM interface now includes a wider array of choices. How can I ensure that all options such as Display and Sound are fully restored on the SYSTEM window? Read More
Unusual Problem with Boots
Thank you for taking the time to engage in this content.
I am a user of Windows 10 Home edition and I typically keep my computer running continuously. Recently, I encountered a major issue when my PC forced an update that caused it to fail to boot back into the operating system. Despite trying various troubleshooting methods like entering automatic repair and utilizing commands like bcd and diskpart, I was unable to regain access to Windows.
After spending considerable time attempting to resolve the issue and consulting online resources, my system reached a point where it no longer recognized the drives as boot drives. I even encountered corruption in my USB drive when attempting to use it as a workaround for accessing Windows. Reinstalling Windows using the recovery tool proved unsuccessful, and it seemed as though the operating system was present but inaccessible.
In a moment of desperation, I removed the hard drive from another computer also running Windows 10 and managed to successfully boot my system from it. While this allowed me to access Windows and confirm that all my drives were functional, I am now faced with the challenge of restoring my system to boot from the solid-state drive that has been its primary boot drive for years.
Can you suggest any solutions to help me restore the original boot functionality to my solid-state drive?
Thank you for taking the time to engage in this content. I am a user of Windows 10 Home edition and I typically keep my computer running continuously. Recently, I encountered a major issue when my PC forced an update that caused it to fail to boot back into the operating system. Despite trying various troubleshooting methods like entering automatic repair and utilizing commands like bcd and diskpart, I was unable to regain access to Windows. After spending considerable time attempting to resolve the issue and consulting online resources, my system reached a point where it no longer recognized the drives as boot drives. I even encountered corruption in my USB drive when attempting to use it as a workaround for accessing Windows. Reinstalling Windows using the recovery tool proved unsuccessful, and it seemed as though the operating system was present but inaccessible. In a moment of desperation, I removed the hard drive from another computer also running Windows 10 and managed to successfully boot my system from it. While this allowed me to access Windows and confirm that all my drives were functional, I am now faced with the challenge of restoring my system to boot from the solid-state drive that has been its primary boot drive for years. Can you suggest any solutions to help me restore the original boot functionality to my solid-state drive? Read More
How to Cut, Copy, and Paste in Windows 11
I asked about this previously, but unfortunately lost the link. I recently upgraded my computer operating system to Windows 11, and I’ve noticed that I now have to tap on “Show More Options” every time I copy and paste. This was one of the reasons why I hesitated to upgrade to Windows 11 for so long. However, I finally decided to upgrade because I was tired of constantly receiving upgrade notifications.
Now that I’m on Windows 23H2, if anyone has a solution to this issue, please kindly share it with me. It’s frustrating to have to go through an additional step for something as simple as copying and pasting, especially since I use this function daily. Thank you in advance for your help.
I asked about this previously, but unfortunately lost the link. I recently upgraded my computer operating system to Windows 11, and I’ve noticed that I now have to tap on “Show More Options” every time I copy and paste. This was one of the reasons why I hesitated to upgrade to Windows 11 for so long. However, I finally decided to upgrade because I was tired of constantly receiving upgrade notifications. Now that I’m on Windows 23H2, if anyone has a solution to this issue, please kindly share it with me. It’s frustrating to have to go through an additional step for something as simple as copying and pasting, especially since I use this function daily. Thank you in advance for your help. Read More
Event ID 41: Your System Restarted Without Properly Shutting Down First
Occasionally, my computer experiences a frustrating crash due to a critical error, regardless of my activity, whether it’s gaming or watching videos on YouTube.
I am puzzled about the root cause of this issue. Any assistance provided would be greatly appreciated. Thank you in advance for your help!
Occasionally, my computer experiences a frustrating crash due to a critical error, regardless of my activity, whether it’s gaming or watching videos on YouTube. I am puzzled about the root cause of this issue. Any assistance provided would be greatly appreciated. Thank you in advance for your help! Read More
Struggling with Freezes After Fresh Installation of Windows 10
This is a completely new setup, the third attempt, and while it functions smoothly once running, it is marred by the necessity of 4-5 hard resets every day (within just 4 days). The recurrent need for resets seems entirely random and frustrating.
Launching a program requires a delay of 15-30 seconds after double-clicking – if the program even starts. Often, multiple clicks are needed due to a slightly unresponsive mouse. The tower has been reset so frequently that a crucial 40GB ORP file intended for archiving, acquired legally through torrenting, has now rendered the storage drive unusable. Until this issue is resolved or I revert to Windows 7, the drive remains disconnected.
For instance, when I installed Wordweb, a popup dictionary, and attempted to launch it, the system froze completely. After utilizing the reset button (my trusty companion), the program ran smoothly, but my Firefox profile suffered irreparable damage.
The main suspect in this situation is ZoneAlarm, an older version that has operated without issue or complaint. Apart from small applications like Total Commander and MusicBee, nothing else has been added to the system.
This is a completely new setup, the third attempt, and while it functions smoothly once running, it is marred by the necessity of 4-5 hard resets every day (within just 4 days). The recurrent need for resets seems entirely random and frustrating. Launching a program requires a delay of 15-30 seconds after double-clicking – if the program even starts. Often, multiple clicks are needed due to a slightly unresponsive mouse. The tower has been reset so frequently that a crucial 40GB ORP file intended for archiving, acquired legally through torrenting, has now rendered the storage drive unusable. Until this issue is resolved or I revert to Windows 7, the drive remains disconnected. For instance, when I installed Wordweb, a popup dictionary, and attempted to launch it, the system froze completely. After utilizing the reset button (my trusty companion), the program ran smoothly, but my Firefox profile suffered irreparable damage. The main suspect in this situation is ZoneAlarm, an older version that has operated without issue or complaint. Apart from small applications like Total Commander and MusicBee, nothing else has been added to the system. Read More
“Modification of Onedrive File Path”
Hello everyone,
I need some guidance. My Outlook pst file in MS Office 2016 is currently stored within the Onedrive framework. Outlook indicates that it can be found under C:Users…(me)…Onedrive…
Interestingly, this structure is also visible in Explorer under “Onedrive – Personal”.
The issue is that the pst file displayed within this structure is incorrect and outdated. How can I align and resolve the discrepancy between these two structures?
I appreciate any assistance you can provide on this matter.
Hello everyone, I need some guidance. My Outlook pst file in MS Office 2016 is currently stored within the Onedrive framework. Outlook indicates that it can be found under C:Users…(me)…Onedrive… Interestingly, this structure is also visible in Explorer under “Onedrive – Personal”. The issue is that the pst file displayed within this structure is incorrect and outdated. How can I align and resolve the discrepancy between these two structures? I appreciate any assistance you can provide on this matter. Read More
app password required for outlook 2fA
When I try to access 2FA desktop Outlook accounts from Thunderbird, I am told:
You need an app passwordWe noticed that you tried to sign in with the password for your Microsoft account on one of these apps or devices. Since you’ve turned on two-step verification for sb**email address removed for privacy reasons, you need to use an app password instead for any of the following to work with two-step verification. We’ve sent this reminder to all the security info you’ve provided. If you haven’t already done this, we’ll help you set up these apps and devices with app passwords:Outlook desktop app for your PC or Mac
I successfully generated an app password, but when I tried to directly access an Outlook account with it (not through Thunderbird), the password was rejected. What am I doing wrong?
When I try to access 2FA desktop Outlook accounts from Thunderbird, I am told: You need an app passwordWe noticed that you tried to sign in with the password for your Microsoft account on one of these apps or devices. Since you’ve turned on two-step verification for sb**email address removed for privacy reasons, you need to use an app password instead for any of the following to work with two-step verification. We’ve sent this reminder to all the security info you’ve provided. If you haven’t already done this, we’ll help you set up these apps and devices with app passwords:Outlook desktop app for your PC or Mac I successfully generated an app password, but when I tried to directly access an Outlook account with it (not through Thunderbird), the password was rejected. What am I doing wrong? Read More
how to create complete binary tree in matlab of sensor nodes
iam new to matlab please help me to create complete binary tree in matlabiam new to matlab please help me to create complete binary tree in matlab iam new to matlab please help me to create complete binary tree in matlab text, node creation MATLAB Answers — New Questions
How can I add new properties to a pointcloud?
I want to add a new property to a pointcloud, which is not in the standard properties of pointcloud.
I’ve got a pointcloud with one color image, from where I extract the Color inforamtion, and one NIR image, from where I get a greyscale value for each point, and I want to have every point to have an additional Property called ‘NIR’ with this value.
I tried :
pointcloud=pointCloud(posxyz,’Intensity’,intensityvalue,’NIR’,nirvalue)
Matlab gives me the following error:
Error using pointCloud>validateAndParseInputs (line 818)
‘NIR’ is not a recognized parameter. For a list of valid name-value pair arguments, see the
documentation for this function.
Error in pointCloud (line 142)
[xyzPoints, C, nv, I] = validateAndParseInputs(varargin{:});I want to add a new property to a pointcloud, which is not in the standard properties of pointcloud.
I’ve got a pointcloud with one color image, from where I extract the Color inforamtion, and one NIR image, from where I get a greyscale value for each point, and I want to have every point to have an additional Property called ‘NIR’ with this value.
I tried :
pointcloud=pointCloud(posxyz,’Intensity’,intensityvalue,’NIR’,nirvalue)
Matlab gives me the following error:
Error using pointCloud>validateAndParseInputs (line 818)
‘NIR’ is not a recognized parameter. For a list of valid name-value pair arguments, see the
documentation for this function.
Error in pointCloud (line 142)
[xyzPoints, C, nv, I] = validateAndParseInputs(varargin{:}); I want to add a new property to a pointcloud, which is not in the standard properties of pointcloud.
I’ve got a pointcloud with one color image, from where I extract the Color inforamtion, and one NIR image, from where I get a greyscale value for each point, and I want to have every point to have an additional Property called ‘NIR’ with this value.
I tried :
pointcloud=pointCloud(posxyz,’Intensity’,intensityvalue,’NIR’,nirvalue)
Matlab gives me the following error:
Error using pointCloud>validateAndParseInputs (line 818)
‘NIR’ is not a recognized parameter. For a list of valid name-value pair arguments, see the
documentation for this function.
Error in pointCloud (line 142)
[xyzPoints, C, nv, I] = validateAndParseInputs(varargin{:}); pointcloud, porperty MATLAB Answers — New Questions
AVD pool one public address
Hi all,
We currently have a Host pool setup with 3 session hosts. we installed some legacy applications(image) that need whitelist one only Public IP address, how can i configure the 3 AVD hosts pointing to same Public IP address?
Thanks
lee
Hi all, We currently have a Host pool setup with 3 session hosts. we installed some legacy applications(image) that need whitelist one only Public IP address, how can i configure the 3 AVD hosts pointing to same Public IP address? Thankslee Read More