Category: News
Windows Explorer Fails to Load Correctly Upon (Re)starting the Computer
I have a high-performance desktop setup dedicated to managing Blue Iris and monitoring IP cameras. Despite its overall efficiency, the system encounters persistent startup issues that have been challenging to pinpoint and resolve.
Upon initiating Windows 11, the system frequently experiences a failure to load the Windows Explorer properly, leading to a non-responsive taskbar and delays in functional menu operations. This creates a frustrating user experience, requiring manual intervention such as forcing the closure and restart of explorer.exe using the ctrl+shift+esc command.
In some instances, although the taskbar loads, the initial start menu functions superficially, displaying pinned apps but failing to navigate beyond that point. Attempts to search for applications stall indefinitely, only resolving after a prolonged delay of approximately 15-20 minutes.
Despite these initial hiccups, once the system is fully operational, it performs reliably and supports the continuous recording of 16 cameras without interruptions. Despite attempts to address the issue through multiple reformatting processes, the problem persists. Task Manager consistently reports CPU utilization around 20% and memory utilization at 45%.
For a more detailed overview of my system specifications, please refer to my profile. Thank you for your assistance.
I have a high-performance desktop setup dedicated to managing Blue Iris and monitoring IP cameras. Despite its overall efficiency, the system encounters persistent startup issues that have been challenging to pinpoint and resolve. Upon initiating Windows 11, the system frequently experiences a failure to load the Windows Explorer properly, leading to a non-responsive taskbar and delays in functional menu operations. This creates a frustrating user experience, requiring manual intervention such as forcing the closure and restart of explorer.exe using the ctrl+shift+esc command. In some instances, although the taskbar loads, the initial start menu functions superficially, displaying pinned apps but failing to navigate beyond that point. Attempts to search for applications stall indefinitely, only resolving after a prolonged delay of approximately 15-20 minutes. Despite these initial hiccups, once the system is fully operational, it performs reliably and supports the continuous recording of 16 cameras without interruptions. Despite attempts to address the issue through multiple reformatting processes, the problem persists. Task Manager consistently reports CPU utilization around 20% and memory utilization at 45%. For a more detailed overview of my system specifications, please refer to my profile. Thank you for your assistance. Read More
How to Use Windows 11 Kiosk Mode to Limit App File and Directory Access
I am attempting to implement kiosk mode in Windows 11 Pro using a “local account” with administrator privileges. When transitioning the computer to kiosk mode, I follow the straightforward process of going to Settings, then Family, and finally Kiosk. Windows automatically generates a “Kiosk” user account with the necessary app configuration. So far, everything seems to be functioning properly.
I initially learned about this method through a tutorial on YouTube (see “Kiosk mode”).
However, a significant issue has arisen – the app within the kiosk mode allows the user to access files (such as photos) from the computer using the “Open File” menu. As the user holds administrator rights, they are able to modify files and folders through the File open dialog. I am concerned that users could potentially navigate through the disk structure and make unauthorized changes to files. Is there a way to restrict the kiosk mode from having administrator privileges or to limit the app’s access solely to a designated folder? I am seeking a straightforward solution to prevent users from freely browsing and altering files.
I am attempting to implement kiosk mode in Windows 11 Pro using a “local account” with administrator privileges. When transitioning the computer to kiosk mode, I follow the straightforward process of going to Settings, then Family, and finally Kiosk. Windows automatically generates a “Kiosk” user account with the necessary app configuration. So far, everything seems to be functioning properly. I initially learned about this method through a tutorial on YouTube (see “Kiosk mode”). However, a significant issue has arisen – the app within the kiosk mode allows the user to access files (such as photos) from the computer using the “Open File” menu. As the user holds administrator rights, they are able to modify files and folders through the File open dialog. I am concerned that users could potentially navigate through the disk structure and make unauthorized changes to files. Is there a way to restrict the kiosk mode from having administrator privileges or to limit the app’s access solely to a designated folder? I am seeking a straightforward solution to prevent users from freely browsing and altering files. Read More
“Encountering Error: Unable to Sign In with Correct PIN. Assistance Required.”
Greetings,
I recently encountered an access issue with my admin account following the Windows 11 update. Despite Windows Hello functioning correctly, I found myself unable to log in as my PIN seemed to be locked. Attached is a screenshot of the screen I encountered.
Regrettably, this account solely relied on a PIN with no alternative password option for access or PIN reset. Consequently, my options are limited as a non-admin user.
I seek guidance on resolving this predicament. Thank you for your support in advance!
Greetings, I recently encountered an access issue with my admin account following the Windows 11 update. Despite Windows Hello functioning correctly, I found myself unable to log in as my PIN seemed to be locked. Attached is a screenshot of the screen I encountered. Regrettably, this account solely relied on a PIN with no alternative password option for access or PIN reset. Consequently, my options are limited as a non-admin user. I seek guidance on resolving this predicament. Thank you for your support in advance! Read More
Mysterious event repeats every 10 minutes
A mysterious event is occurring at precise 10-minute intervals, such as at 7:00, 7:10, 7:20, and so on. This event manifests as a sudden black pop-up appearing in the top left corner of my main screen, resembling the size of a command window. The appearance of the pop-up is extremely fleeting, lasting for just a fraction of a second, making it impossible to discern any content within it. Despite its brevity, this occurrence disrupts the normal sleep function of the computer. This phenomenon has persisted for a few weeks with no clear connection to any changes made to the system, which has been operating on version 11 for only a couple of months after an “upgrade” from version 7.
Upon checking the Application Event Viewer, it reveals that the Restart Manager initiates and concludes a session at these specific intervals, as indicated by Event ID 10001 and 10000.
After running Malwarebytes, it confirms the absence of any malware present on the system, while a CHKDSK scan reports that all files are in a normal state.
A mysterious event is occurring at precise 10-minute intervals, such as at 7:00, 7:10, 7:20, and so on. This event manifests as a sudden black pop-up appearing in the top left corner of my main screen, resembling the size of a command window. The appearance of the pop-up is extremely fleeting, lasting for just a fraction of a second, making it impossible to discern any content within it. Despite its brevity, this occurrence disrupts the normal sleep function of the computer. This phenomenon has persisted for a few weeks with no clear connection to any changes made to the system, which has been operating on version 11 for only a couple of months after an “upgrade” from version 7. Upon checking the Application Event Viewer, it reveals that the Restart Manager initiates and concludes a session at these specific intervals, as indicated by Event ID 10001 and 10000. After running Malwarebytes, it confirms the absence of any malware present on the system, while a CHKDSK scan reports that all files are in a normal state. Read More
Scheduled Tasks in Modern Standby
Windows 11 Pro, version 22H2 build 22621.1992
Dell XPS 9720 – all Dell maintenance applied including Firmware.
After collaborating with the Macrium forum, I discovered that scheduled tasks do not execute in Standby (S0) mode. This results in my backups and virus scans not being initiated. I have verified that Windows maintenance is set for 2:00 am, but I am unable to activate the option to wake the machine if it is asleep.
Is there a Group Policy setting that I can adjust to enable (or disable) the execution of tasks on schedule? I am aware that there is a specific group policy allowing networking in standby mode, as described in an article by Brink.
I am not looking to reinstall the OS.
I find it hard to fathom that Microsoft implemented a standard that essentially renders the Task Scheduler ineffective and schedules maintenance at times when the user is actively using the device.
Windows 11 Pro, version 22H2 build 22621.1992 Dell XPS 9720 – all Dell maintenance applied including Firmware. After collaborating with the Macrium forum, I discovered that scheduled tasks do not execute in Standby (S0) mode. This results in my backups and virus scans not being initiated. I have verified that Windows maintenance is set for 2:00 am, but I am unable to activate the option to wake the machine if it is asleep. Is there a Group Policy setting that I can adjust to enable (or disable) the execution of tasks on schedule? I am aware that there is a specific group policy allowing networking in standby mode, as described in an article by Brink. I am not looking to reinstall the OS. I find it hard to fathom that Microsoft implemented a standard that essentially renders the Task Scheduler ineffective and schedules maintenance at times when the user is actively using the device. Read More
Adjusting Default Sizes of Icons, Images, and More: A Guide
Greetings everyone,
I have been journeying through the evolution of Windows from its early days all the way to Windows 11, although I wouldn’t consider myself an expert. This ASUS laptop, my second device running W11, has presented me with a challenge regarding display sizes. While I have encountered and resolved similar issues on previous machines, tackling them on this particular device is proving to be a bit of a challenge. It seems that the root cause of the various issues I am experiencing lies within a misconfiguration in the Windows settings.
Specifically, I am facing the dilemma of certain text and icons appearing excessively small within some applications, while others maintain an appropriate size. Despite adjusting the “Scale” setting to 150% and the “Display resolution” to the recommended 1920 x 1080, deviating from these configurations only exacerbates the visual inconsistencies.
For instance, when utilizing the open-source image editor GIMP to create images, I notice that the images appear significantly larger when viewed online using the Firefox browser or through an image viewer compared to their depiction within GIMP itself. This discrepancy is reminiscent of a past issue I encountered, although I cannot recall how I resolved it, if at all. Furthermore, within GIMP, the tools on the tool palette appear unusually minuscule, a stark departure from my 15 years of seamless GIMP usage on various machines.
Moreover, an anomaly has arisen with TK8 Sticky Notes, where the header text inexplicably shrinks when the note is minimized. Despite adjusting the text size within the note itself, the title size remains unchanged. It is my belief that all these issues stem from a common misconfiguration within the Windows settings.
How can I rectify these display anomalies? Interestingly, my previous Dell laptop running W11 did not present me with these challenges, further emphasizing the unique nature of this current situation.
Greetings everyone, I have been journeying through the evolution of Windows from its early days all the way to Windows 11, although I wouldn’t consider myself an expert. This ASUS laptop, my second device running W11, has presented me with a challenge regarding display sizes. While I have encountered and resolved similar issues on previous machines, tackling them on this particular device is proving to be a bit of a challenge. It seems that the root cause of the various issues I am experiencing lies within a misconfiguration in the Windows settings. Specifically, I am facing the dilemma of certain text and icons appearing excessively small within some applications, while others maintain an appropriate size. Despite adjusting the “Scale” setting to 150% and the “Display resolution” to the recommended 1920 x 1080, deviating from these configurations only exacerbates the visual inconsistencies. For instance, when utilizing the open-source image editor GIMP to create images, I notice that the images appear significantly larger when viewed online using the Firefox browser or through an image viewer compared to their depiction within GIMP itself. This discrepancy is reminiscent of a past issue I encountered, although I cannot recall how I resolved it, if at all. Furthermore, within GIMP, the tools on the tool palette appear unusually minuscule, a stark departure from my 15 years of seamless GIMP usage on various machines. Moreover, an anomaly has arisen with TK8 Sticky Notes, where the header text inexplicably shrinks when the note is minimized. Despite adjusting the text size within the note itself, the title size remains unchanged. It is my belief that all these issues stem from a common misconfiguration within the Windows settings. How can I rectify these display anomalies? Interestingly, my previous Dell laptop running W11 did not present me with these challenges, further emphasizing the unique nature of this current situation. Read More
Resolving Sleep and Hibernate Issues on Windows 11
I am experiencing a bothersome issue with the hibernation/sleep function on my MSI laptop Katana 15 B12V running Windows 11. Whenever I close the lid and reopen it later, I find that all my applications have been terminated and Windows appears to have freshly restarted.
How can I resolve this issue? Even after uninstalling all NVIDIA drivers, the problem persists. Below are some of the power settings on my computer.
I am experiencing a bothersome issue with the hibernation/sleep function on my MSI laptop Katana 15 B12V running Windows 11. Whenever I close the lid and reopen it later, I find that all my applications have been terminated and Windows appears to have freshly restarted. How can I resolve this issue? Even after uninstalling all NVIDIA drivers, the problem persists. Below are some of the power settings on my computer. Read More
Verify Directory Access and Permissions to Run Application
I am attempting to install a software application that I previously installed on Windows 10 and even on Windows 11 Home. However, I am encountering a new popup warning message when I try to install it now.
Given the issues I am experiencing with other programs, I suspect that the problem lies with Windows rather than the specific software application. How can I confirm whether I have the necessary access rights to the directory and permissions, etc.?
I appreciate any assistance on this matter. Thank you.
I am attempting to install a software application that I previously installed on Windows 10 and even on Windows 11 Home. However, I am encountering a new popup warning message when I try to install it now. Given the issues I am experiencing with other programs, I suspect that the problem lies with Windows rather than the specific software application. How can I confirm whether I have the necessary access rights to the directory and permissions, etc.? I appreciate any assistance on this matter. Thank you. Read More
Customize “FileExplorer” to Open a Specific Folder
I want FileExplorer to automatically open at a specific location when launched, such as %HOMEDRIVE%%HOMEPATH%, whether it’s from the taskbar icon or by pressing Winkey-E. Previously, I had my user folders pinned in Quick Access, but I encountered an issue where they wouldn’t expand to show the content of the folder when clicked. While I created a new shortcut in the Start menu, my instinctive method of accessing FileExplorer is by pressing Winkey-E.
I want FileExplorer to automatically open at a specific location when launched, such as %HOMEDRIVE%%HOMEPATH%, whether it’s from the taskbar icon or by pressing Winkey-E. Previously, I had my user folders pinned in Quick Access, but I encountered an issue where they wouldn’t expand to show the content of the folder when clicked. While I created a new shortcut in the Start menu, my instinctive method of accessing FileExplorer is by pressing Winkey-E. Read More
Constant Hanging Issue in Windows 11
Greetings, everyone! As a software developer, I have encountered a significant issue with my system recently. While using Windows 11, it has become common to experience brief crashes, typically lasting about a second, such as when accessing the “control center” from the taskbar. However, unlike the typical behavior where the OS resumes functioning afterward, my system has started hanging during regular tasks.
Initially, my computer operated smoothly without such interruptions, except for the taskbar issue that was resolved by installing ExplorerPatcher. Presently, I encounter system hangs while performing routine activities, where my mouse cursor remains movable for a brief period before the entire system freezes. Curiously, any audio playing at the time continues uninterrupted as if nothing is wrong, further complicating the situation.
Notably, these hang-ups seem to occur most frequently during project build processes in Visual Studio. Interestingly, I have not faced this problem when indulging in graphically demanding games like GTA5, Valorant, or Dying Light 2 at ultra settings. To regain access to my system, a hard reset becomes necessary each time this issue arises.
Despite owning a high-end PC, the event viewer offers minimal insight except for the recurring report of “The previous shutdown was unexpected.” This ongoing challenge has prompted me to seek a reliable solution for uninterrupted computing experiences.
Greetings, everyone! As a software developer, I have encountered a significant issue with my system recently. While using Windows 11, it has become common to experience brief crashes, typically lasting about a second, such as when accessing the “control center” from the taskbar. However, unlike the typical behavior where the OS resumes functioning afterward, my system has started hanging during regular tasks. Initially, my computer operated smoothly without such interruptions, except for the taskbar issue that was resolved by installing ExplorerPatcher. Presently, I encounter system hangs while performing routine activities, where my mouse cursor remains movable for a brief period before the entire system freezes. Curiously, any audio playing at the time continues uninterrupted as if nothing is wrong, further complicating the situation. Notably, these hang-ups seem to occur most frequently during project build processes in Visual Studio. Interestingly, I have not faced this problem when indulging in graphically demanding games like GTA5, Valorant, or Dying Light 2 at ultra settings. To regain access to my system, a hard reset becomes necessary each time this issue arises. Despite owning a high-end PC, the event viewer offers minimal insight except for the recurring report of “The previous shutdown was unexpected.” This ongoing challenge has prompted me to seek a reliable solution for uninterrupted computing experiences. Read More
Reduce the inputs for the chi2gof function (follow-up question of: Using chi2gof to test two distributions)
This is a follow-up question of Using chi2gof to test two distributions.
@Allie had the following inputs, i.e. the binned observational data (x), the binned model data (y), and the bin edges (bins):
x= [41 22 11 10 9 5 2 3 2];
y= [38.052 24.2655 15.4665 9.8595 6.2895 4.011 2.562 1.6275 2.8665];
bins=[0:9:81];
and asked how to use "chi2gof to test if two distributions come from a common distribution (null hypothesis) or if they do not come from a common distribution (alternative hypothesis)".
The accepted answer comes from @Jeff Miller:
bins=[0:9:81];
xvals = bins(1:end-1)+4.5; % Here are some fake data values that belong in each bin.
xcounts= [41 22 11 10 9 5 2 3 2]; % These are the counts of the data values in each bin.
y= [38.052 24.2655 15.4665 9.8595 6.2895 4.011 2.562 1.6275 2.8665];
[h,p,stat]=chi2gof(xvals,’Edges’,bins,’Expected’,y,’Frequency’,xcounts,’EMin’,1)
However, by re-doing all the calculations, i.e.
% inputs
alpha = 0.05;
x= [41 22 11 10 9 5 2 3 2]; % <– observed data
y= [38.052 24.2655 15.4665 9.8595 6.2895 4.011 2.562 1.6275 2.8665]; % <– expected data
% Chi-square goodness-of-fit test
chi2 = sum(((x-y).^2)./y); % <– chi-square value
df = length(x)-1; % <– degrees of freedom
p = chi2cdf(chi2,df,’upper’); % <– p-value calculated from the chi-square distribution with "df" degrees of freedom
if p>alpha % <– accept or reject the null hypothesis, based on the p-value
h = 0; % <– disp(‘we fail to reject the null hypothesis’)
else
h = 1; % <– disp(‘we reject the null hypothesis’)
end
table([chi2; df; p; h],’RowNames’,{‘chi-square’,’df’,’p-value’,’h’},’VariableNames’,{‘Stats’})
I have realized that "xvals" and the "bins" are not necessary for the Chi-square goodness-of-fit test.
Then, is it possible to still use the chi2gof function, but just employing "x" and "y" (and "alpha") as the only inputs?This is a follow-up question of Using chi2gof to test two distributions.
@Allie had the following inputs, i.e. the binned observational data (x), the binned model data (y), and the bin edges (bins):
x= [41 22 11 10 9 5 2 3 2];
y= [38.052 24.2655 15.4665 9.8595 6.2895 4.011 2.562 1.6275 2.8665];
bins=[0:9:81];
and asked how to use "chi2gof to test if two distributions come from a common distribution (null hypothesis) or if they do not come from a common distribution (alternative hypothesis)".
The accepted answer comes from @Jeff Miller:
bins=[0:9:81];
xvals = bins(1:end-1)+4.5; % Here are some fake data values that belong in each bin.
xcounts= [41 22 11 10 9 5 2 3 2]; % These are the counts of the data values in each bin.
y= [38.052 24.2655 15.4665 9.8595 6.2895 4.011 2.562 1.6275 2.8665];
[h,p,stat]=chi2gof(xvals,’Edges’,bins,’Expected’,y,’Frequency’,xcounts,’EMin’,1)
However, by re-doing all the calculations, i.e.
% inputs
alpha = 0.05;
x= [41 22 11 10 9 5 2 3 2]; % <– observed data
y= [38.052 24.2655 15.4665 9.8595 6.2895 4.011 2.562 1.6275 2.8665]; % <– expected data
% Chi-square goodness-of-fit test
chi2 = sum(((x-y).^2)./y); % <– chi-square value
df = length(x)-1; % <– degrees of freedom
p = chi2cdf(chi2,df,’upper’); % <– p-value calculated from the chi-square distribution with "df" degrees of freedom
if p>alpha % <– accept or reject the null hypothesis, based on the p-value
h = 0; % <– disp(‘we fail to reject the null hypothesis’)
else
h = 1; % <– disp(‘we reject the null hypothesis’)
end
table([chi2; df; p; h],’RowNames’,{‘chi-square’,’df’,’p-value’,’h’},’VariableNames’,{‘Stats’})
I have realized that "xvals" and the "bins" are not necessary for the Chi-square goodness-of-fit test.
Then, is it possible to still use the chi2gof function, but just employing "x" and "y" (and "alpha") as the only inputs? This is a follow-up question of Using chi2gof to test two distributions.
@Allie had the following inputs, i.e. the binned observational data (x), the binned model data (y), and the bin edges (bins):
x= [41 22 11 10 9 5 2 3 2];
y= [38.052 24.2655 15.4665 9.8595 6.2895 4.011 2.562 1.6275 2.8665];
bins=[0:9:81];
and asked how to use "chi2gof to test if two distributions come from a common distribution (null hypothesis) or if they do not come from a common distribution (alternative hypothesis)".
The accepted answer comes from @Jeff Miller:
bins=[0:9:81];
xvals = bins(1:end-1)+4.5; % Here are some fake data values that belong in each bin.
xcounts= [41 22 11 10 9 5 2 3 2]; % These are the counts of the data values in each bin.
y= [38.052 24.2655 15.4665 9.8595 6.2895 4.011 2.562 1.6275 2.8665];
[h,p,stat]=chi2gof(xvals,’Edges’,bins,’Expected’,y,’Frequency’,xcounts,’EMin’,1)
However, by re-doing all the calculations, i.e.
% inputs
alpha = 0.05;
x= [41 22 11 10 9 5 2 3 2]; % <– observed data
y= [38.052 24.2655 15.4665 9.8595 6.2895 4.011 2.562 1.6275 2.8665]; % <– expected data
% Chi-square goodness-of-fit test
chi2 = sum(((x-y).^2)./y); % <– chi-square value
df = length(x)-1; % <– degrees of freedom
p = chi2cdf(chi2,df,’upper’); % <– p-value calculated from the chi-square distribution with "df" degrees of freedom
if p>alpha % <– accept or reject the null hypothesis, based on the p-value
h = 0; % <– disp(‘we fail to reject the null hypothesis’)
else
h = 1; % <– disp(‘we reject the null hypothesis’)
end
table([chi2; df; p; h],’RowNames’,{‘chi-square’,’df’,’p-value’,’h’},’VariableNames’,{‘Stats’})
I have realized that "xvals" and the "bins" are not necessary for the Chi-square goodness-of-fit test.
Then, is it possible to still use the chi2gof function, but just employing "x" and "y" (and "alpha") as the only inputs? chi2gof, distributions, chi-square, chi-square test MATLAB Answers — New Questions
How to setup a multi-agent DDPG
Hi,
I am trying to simulate a number of agents that collaboratively doing mapping. I designed the actor critic networks, but I have a problem that how I can write a code for gridworld file inside my simulink. Is there any related example?Hi,
I am trying to simulate a number of agents that collaboratively doing mapping. I designed the actor critic networks, but I have a problem that how I can write a code for gridworld file inside my simulink. Is there any related example? Hi,
I am trying to simulate a number of agents that collaboratively doing mapping. I designed the actor critic networks, but I have a problem that how I can write a code for gridworld file inside my simulink. Is there any related example? ddpg MATLAB Answers — New Questions
Can you convert DatetimeRuler to DurationRuler?
I have a series of utilities that generate figures like:
fh = figure;
ax = axes(fh);
plot(ax, datetime("now")+minutes(1:5), 1:5, "–x");
Which use datetime objects for the XData (and therefore have a DatetimeRuler for the x-axis) because it makes it easier to find reference data in the future.
However, for presentations, I generally want plots that use a DurationRuler for the sake of clarity. Is there any way to update ax.XAxis (or maybe even all of the ax.Children entries) such that I could have figures that look like they were generated like this instead:
fh = figure;
ax = axes(fh);
plot(ax, minutes(1:5), 1:5, "–x");
I could update all the plotting utilities to optionally use Duration objects from some reference but this would effect several utilities and it would be more convenient to just pass an axis or figure handle to some function that could do the conversion after the figure exists.I have a series of utilities that generate figures like:
fh = figure;
ax = axes(fh);
plot(ax, datetime("now")+minutes(1:5), 1:5, "–x");
Which use datetime objects for the XData (and therefore have a DatetimeRuler for the x-axis) because it makes it easier to find reference data in the future.
However, for presentations, I generally want plots that use a DurationRuler for the sake of clarity. Is there any way to update ax.XAxis (or maybe even all of the ax.Children entries) such that I could have figures that look like they were generated like this instead:
fh = figure;
ax = axes(fh);
plot(ax, minutes(1:5), 1:5, "–x");
I could update all the plotting utilities to optionally use Duration objects from some reference but this would effect several utilities and it would be more convenient to just pass an axis or figure handle to some function that could do the conversion after the figure exists. I have a series of utilities that generate figures like:
fh = figure;
ax = axes(fh);
plot(ax, datetime("now")+minutes(1:5), 1:5, "–x");
Which use datetime objects for the XData (and therefore have a DatetimeRuler for the x-axis) because it makes it easier to find reference data in the future.
However, for presentations, I generally want plots that use a DurationRuler for the sake of clarity. Is there any way to update ax.XAxis (or maybe even all of the ax.Children entries) such that I could have figures that look like they were generated like this instead:
fh = figure;
ax = axes(fh);
plot(ax, minutes(1:5), 1:5, "–x");
I could update all the plotting utilities to optionally use Duration objects from some reference but this would effect several utilities and it would be more convenient to just pass an axis or figure handle to some function that could do the conversion after the figure exists. plotting, axes, datetime MATLAB Answers — New Questions
Event transfer from Onprem to Cloud Connectivity
We have a On-Premises application (with Linux OS) that generates an multiple type of events and write them as files into local file system, with more than 50k events per day. The On-Premises infra have connectivity to Azure but application doesn’t have it. These event needs to be published to cloud based application, and we also need to audit every events, there will be high impact even if single event is lost.
The existing documentation is not sufficient to arrive at a solution, Is there any recommended options.
We have a On-Premises application (with Linux OS) that generates an multiple type of events and write them as files into local file system, with more than 50k events per day. The On-Premises infra have connectivity to Azure but application doesn’t have it. These event needs to be published to cloud based application, and we also need to audit every events, there will be high impact even if single event is lost.The existing documentation is not sufficient to arrive at a solution, Is there any recommended options. Read More
Comparing two columns with comma separated string values (match)
Hi,
I currently have two columns of reference data. Each cell contains comma separated values.
My aim is to find a match between any of the patent numbers in column A within the corresponding row in column B. E.g. in row 2, there is a match between value in column 1 (CN…385A) and column 2).
Ideally the output in column C would be “yes” or “match”.
Ideally want to keep cells formatted as they are, with delimiters between patent numbers.
many thanks
Hi, I currently have two columns of reference data. Each cell contains comma separated values. My aim is to find a match between any of the patent numbers in column A within the corresponding row in column B. E.g. in row 2, there is a match between value in column 1 (CN…385A) and column 2).Ideally the output in column C would be “yes” or “match”. Ideally want to keep cells formatted as they are, with delimiters between patent numbers. many thanks Read More
license function can’t list Computer Vision Toolbox™?
When I use license function to check if there is already a Computer Vision Toolbox™ in the MATLAB environment, I don’t know how to get what the function input parameter `feature` corresponds to the name of this toolbox? I have tried the following methods and they all return a status of 0, but I am sure that Computer Vision Toolbox is installed and working, how do I find out what the name of the `feature` corresponds to?
license("test","computer_vision_toolbox")
license("test","vision_toolbox")
license("checkout","computer_vision_toolbox")
——————————————————————————————————-
Another related question is: How can I check if a specific toolbox is installed in the current environment using MATLAB code?
As far as I know, the ver function can return all installed toolboxes status and then you can search for the name, but the official documentation no longer recommends using the ver function since R2023b. Instead, it suggests using the matlabRelease function, but this function only returns the version number and does not provide the installation status of the toolboxes.When I use license function to check if there is already a Computer Vision Toolbox™ in the MATLAB environment, I don’t know how to get what the function input parameter `feature` corresponds to the name of this toolbox? I have tried the following methods and they all return a status of 0, but I am sure that Computer Vision Toolbox is installed and working, how do I find out what the name of the `feature` corresponds to?
license("test","computer_vision_toolbox")
license("test","vision_toolbox")
license("checkout","computer_vision_toolbox")
——————————————————————————————————-
Another related question is: How can I check if a specific toolbox is installed in the current environment using MATLAB code?
As far as I know, the ver function can return all installed toolboxes status and then you can search for the name, but the official documentation no longer recommends using the ver function since R2023b. Instead, it suggests using the matlabRelease function, but this function only returns the version number and does not provide the installation status of the toolboxes. When I use license function to check if there is already a Computer Vision Toolbox™ in the MATLAB environment, I don’t know how to get what the function input parameter `feature` corresponds to the name of this toolbox? I have tried the following methods and they all return a status of 0, but I am sure that Computer Vision Toolbox is installed and working, how do I find out what the name of the `feature` corresponds to?
license("test","computer_vision_toolbox")
license("test","vision_toolbox")
license("checkout","computer_vision_toolbox")
——————————————————————————————————-
Another related question is: How can I check if a specific toolbox is installed in the current environment using MATLAB code?
As far as I know, the ver function can return all installed toolboxes status and then you can search for the name, but the official documentation no longer recommends using the ver function since R2023b. Instead, it suggests using the matlabRelease function, but this function only returns the version number and does not provide the installation status of the toolboxes. computer vision, installation MATLAB Answers — New Questions
Using OPC UA read and write blocks within a Simu,ink Model
I’m using OPC UA Read and Write blocks within a Simulink model. I want to create a simulation app (by selecting ‘Simulation App…’ from the ‘Save’ dropdown menu. However, the creation fails because the OPC UA classes do not support code generation.
Are there any plans to make them compileable? Alternatively, is there a workaround? I’ve tried to create bespoke read and write OPC UA blocks, but run into the same problem.
Thanks,I’m using OPC UA Read and Write blocks within a Simulink model. I want to create a simulation app (by selecting ‘Simulation App…’ from the ‘Save’ dropdown menu. However, the creation fails because the OPC UA classes do not support code generation.
Are there any plans to make them compileable? Alternatively, is there a workaround? I’ve tried to create bespoke read and write OPC UA blocks, but run into the same problem.
Thanks, I’m using OPC UA Read and Write blocks within a Simulink model. I want to create a simulation app (by selecting ‘Simulation App…’ from the ‘Save’ dropdown menu. However, the creation fails because the OPC UA classes do not support code generation.
Are there any plans to make them compileable? Alternatively, is there a workaround? I’ve tried to create bespoke read and write OPC UA blocks, but run into the same problem.
Thanks, opc ua, code generation MATLAB Answers — New Questions
I’m having trouble solving a system of nonlinear equations with the fmincon function.
I want to solve a system of equations containing two non-linear equations, one of which is Psh_newhv == Pse_newhv,the other is Qs_newhv==0, but solving it with the fmincon function doesn’t achieve the first constraint, how can I solve this problem?
% Given constants
V_s = 10*1e3/sqrt(3);
n_t = 25*sqrt(3);
V_r = 400/sqrt(3);
theta_r = pi/12;
Srate = 100*1e3/3;
Zbase = (V_r)^2/Srate;
X_r = 0.4*Zbase;
X_t = 400^2/(300*1e3)*4/100;
rho = 0:2*pi/72:2*pi;
V_se = 0.2*V_r;
V_se_newhv = 0.2*V_s;
Z_r = 1i * X_r;
% Initial guess
x0 = [0 0];
% Options for fmincon
options = optimoptions(‘fmincon’, ‘Algorithm’, ‘interior-point’, ‘Display’, ‘off’,’ConstraintTolerance’,1e-6);
% Constraints
lb = [];
ub = [];
% Solve for each rho
for m = 1:73
% Define the nonlinear constraint function
fun_newhv = @(x_newhv) myfun_newhv(x_newhv, rho(m));
% Use fmincon to solve the problem
[x_newhv, fval_newhv, exitflag_newhv(m), output_newhv] = fmincon(@(x_newhv) 0, x0, [], [], [], [], lb, ub, fun_newhv, options);
% Extract solutions
gamma_newhv(m) = x_newhv(1);
I_sh_newhv(m) = x_newhv(2);
I_r_newhv(m)=1/(Z_r+j*X_t)*(sqrt(3)*(V_s+V_se_newhv*exp(j*rho(m)))*exp(j*pi/6)/n_t-V_r*exp(j*theta_r));
V_tap_newhv=0.5*(V_s+V_se_newhv*exp(j*rho(m)))*exp(j*-pi/3);
Pr_newhv(m)=real(V_r*exp(j*theta_r)*conj( I_r_newhv(m)));
Qr_newhv(m)=imag(V_r*exp(j*theta_r)*conj( I_r_newhv(m)));
I_s_newhv(m)=0.5*I_sh_newhv(m)*exp(j*gamma_newhv(m))*exp(j*pi/3)+sqrt(3)/n_t* I_r_newhv(m)*exp(j*-pi/6);
Ps_newhv(m)=real(V_s*conj(I_s_newhv(m)));
Qs_newhv(m)=imag(V_s*conj(I_s_newhv(m)));
Psh_newhv(m)=real(V_tap_newhv*conj(I_sh_newhv(m)*exp(j*gamma_newhv(m))));
Qsh_newhv(m)=imag(V_tap_newhv*conj(I_sh_newhv(m)*exp(j*gamma_newhv(m))));
Ssh_newhv(m) = sqrt(Psh_newhv(m)^2 + Qsh_newhv(m)^2);
Pse_newhv(m)=real(V_se_newhv*exp(j*rho(m))*conj(I_sh_newhv(m)));
Qse_newhv(m)=imag(V_se_newhv*exp(j*rho(m))*conj(I_sh_newhv(m)));
Sse_newhv(m) = sqrt(Pse_newhv(m)^2 + Qse_newhv(m)^2);
end
polarplot( (Psh_newhv – Pse_newhv)/Srate,LineWidth=2)
hold on
polarplot( Qs_newhv/Srate,LineWidth=2)
% Nonlinear constraint function
function [c, ceq] = myfun_newhv(x_newhv, rho)
V_s = 10*1e3/sqrt(3);
n_t = 25*sqrt(3);
V_r = 400/sqrt(3);
theta_r = pi/12;
Srate = 100*1e3/3;
Zbase = (V_r)^2/Srate;
X_r = 0.4*Zbase;
X_t = 400^2/(300*1e3)*4/100;
V_se_newhv = 0.2*V_s;
Z_r = 1i * X_r;
% Extract variables
gamma_newhv = x_newhv(1);
I_sh_newhv = x_newhv(2);
% Compute intermediate quantities
I_r_newhv=1/(Z_r+j*X_t)*(sqrt(3)*(V_s+V_se_newhv*exp(j*rho))*exp(j*pi/6)/n_t-V_r*exp(j*theta_r));
I_s_newhv=0.5*I_sh_newhv*exp(j*gamma_newhv)*exp(j*pi/3)+sqrt(3)/n_t* I_r_newhv*exp(j*-pi/6);
Qs_newhv=imag(V_s*conj(I_s_newhv));
V_tap_newhv=0.5*(V_s+V_se_newhv*exp(j*rho))*exp(j*-pi/3);
Psh_newhv=real(V_tap_newhv*conj(I_sh_newhv*exp(j*gamma_newhv)));
Pse_newhv=real(V_se_newhv*exp(j*rho)*conj(I_s_newhv));
% Constraints
% Nonlinear equality constraints
ceq = [ Psh_newhv – Pse_newhv;Qs_newhv];
c = [];
endI want to solve a system of equations containing two non-linear equations, one of which is Psh_newhv == Pse_newhv,the other is Qs_newhv==0, but solving it with the fmincon function doesn’t achieve the first constraint, how can I solve this problem?
% Given constants
V_s = 10*1e3/sqrt(3);
n_t = 25*sqrt(3);
V_r = 400/sqrt(3);
theta_r = pi/12;
Srate = 100*1e3/3;
Zbase = (V_r)^2/Srate;
X_r = 0.4*Zbase;
X_t = 400^2/(300*1e3)*4/100;
rho = 0:2*pi/72:2*pi;
V_se = 0.2*V_r;
V_se_newhv = 0.2*V_s;
Z_r = 1i * X_r;
% Initial guess
x0 = [0 0];
% Options for fmincon
options = optimoptions(‘fmincon’, ‘Algorithm’, ‘interior-point’, ‘Display’, ‘off’,’ConstraintTolerance’,1e-6);
% Constraints
lb = [];
ub = [];
% Solve for each rho
for m = 1:73
% Define the nonlinear constraint function
fun_newhv = @(x_newhv) myfun_newhv(x_newhv, rho(m));
% Use fmincon to solve the problem
[x_newhv, fval_newhv, exitflag_newhv(m), output_newhv] = fmincon(@(x_newhv) 0, x0, [], [], [], [], lb, ub, fun_newhv, options);
% Extract solutions
gamma_newhv(m) = x_newhv(1);
I_sh_newhv(m) = x_newhv(2);
I_r_newhv(m)=1/(Z_r+j*X_t)*(sqrt(3)*(V_s+V_se_newhv*exp(j*rho(m)))*exp(j*pi/6)/n_t-V_r*exp(j*theta_r));
V_tap_newhv=0.5*(V_s+V_se_newhv*exp(j*rho(m)))*exp(j*-pi/3);
Pr_newhv(m)=real(V_r*exp(j*theta_r)*conj( I_r_newhv(m)));
Qr_newhv(m)=imag(V_r*exp(j*theta_r)*conj( I_r_newhv(m)));
I_s_newhv(m)=0.5*I_sh_newhv(m)*exp(j*gamma_newhv(m))*exp(j*pi/3)+sqrt(3)/n_t* I_r_newhv(m)*exp(j*-pi/6);
Ps_newhv(m)=real(V_s*conj(I_s_newhv(m)));
Qs_newhv(m)=imag(V_s*conj(I_s_newhv(m)));
Psh_newhv(m)=real(V_tap_newhv*conj(I_sh_newhv(m)*exp(j*gamma_newhv(m))));
Qsh_newhv(m)=imag(V_tap_newhv*conj(I_sh_newhv(m)*exp(j*gamma_newhv(m))));
Ssh_newhv(m) = sqrt(Psh_newhv(m)^2 + Qsh_newhv(m)^2);
Pse_newhv(m)=real(V_se_newhv*exp(j*rho(m))*conj(I_sh_newhv(m)));
Qse_newhv(m)=imag(V_se_newhv*exp(j*rho(m))*conj(I_sh_newhv(m)));
Sse_newhv(m) = sqrt(Pse_newhv(m)^2 + Qse_newhv(m)^2);
end
polarplot( (Psh_newhv – Pse_newhv)/Srate,LineWidth=2)
hold on
polarplot( Qs_newhv/Srate,LineWidth=2)
% Nonlinear constraint function
function [c, ceq] = myfun_newhv(x_newhv, rho)
V_s = 10*1e3/sqrt(3);
n_t = 25*sqrt(3);
V_r = 400/sqrt(3);
theta_r = pi/12;
Srate = 100*1e3/3;
Zbase = (V_r)^2/Srate;
X_r = 0.4*Zbase;
X_t = 400^2/(300*1e3)*4/100;
V_se_newhv = 0.2*V_s;
Z_r = 1i * X_r;
% Extract variables
gamma_newhv = x_newhv(1);
I_sh_newhv = x_newhv(2);
% Compute intermediate quantities
I_r_newhv=1/(Z_r+j*X_t)*(sqrt(3)*(V_s+V_se_newhv*exp(j*rho))*exp(j*pi/6)/n_t-V_r*exp(j*theta_r));
I_s_newhv=0.5*I_sh_newhv*exp(j*gamma_newhv)*exp(j*pi/3)+sqrt(3)/n_t* I_r_newhv*exp(j*-pi/6);
Qs_newhv=imag(V_s*conj(I_s_newhv));
V_tap_newhv=0.5*(V_s+V_se_newhv*exp(j*rho))*exp(j*-pi/3);
Psh_newhv=real(V_tap_newhv*conj(I_sh_newhv*exp(j*gamma_newhv)));
Pse_newhv=real(V_se_newhv*exp(j*rho)*conj(I_s_newhv));
% Constraints
% Nonlinear equality constraints
ceq = [ Psh_newhv – Pse_newhv;Qs_newhv];
c = [];
end I want to solve a system of equations containing two non-linear equations, one of which is Psh_newhv == Pse_newhv,the other is Qs_newhv==0, but solving it with the fmincon function doesn’t achieve the first constraint, how can I solve this problem?
% Given constants
V_s = 10*1e3/sqrt(3);
n_t = 25*sqrt(3);
V_r = 400/sqrt(3);
theta_r = pi/12;
Srate = 100*1e3/3;
Zbase = (V_r)^2/Srate;
X_r = 0.4*Zbase;
X_t = 400^2/(300*1e3)*4/100;
rho = 0:2*pi/72:2*pi;
V_se = 0.2*V_r;
V_se_newhv = 0.2*V_s;
Z_r = 1i * X_r;
% Initial guess
x0 = [0 0];
% Options for fmincon
options = optimoptions(‘fmincon’, ‘Algorithm’, ‘interior-point’, ‘Display’, ‘off’,’ConstraintTolerance’,1e-6);
% Constraints
lb = [];
ub = [];
% Solve for each rho
for m = 1:73
% Define the nonlinear constraint function
fun_newhv = @(x_newhv) myfun_newhv(x_newhv, rho(m));
% Use fmincon to solve the problem
[x_newhv, fval_newhv, exitflag_newhv(m), output_newhv] = fmincon(@(x_newhv) 0, x0, [], [], [], [], lb, ub, fun_newhv, options);
% Extract solutions
gamma_newhv(m) = x_newhv(1);
I_sh_newhv(m) = x_newhv(2);
I_r_newhv(m)=1/(Z_r+j*X_t)*(sqrt(3)*(V_s+V_se_newhv*exp(j*rho(m)))*exp(j*pi/6)/n_t-V_r*exp(j*theta_r));
V_tap_newhv=0.5*(V_s+V_se_newhv*exp(j*rho(m)))*exp(j*-pi/3);
Pr_newhv(m)=real(V_r*exp(j*theta_r)*conj( I_r_newhv(m)));
Qr_newhv(m)=imag(V_r*exp(j*theta_r)*conj( I_r_newhv(m)));
I_s_newhv(m)=0.5*I_sh_newhv(m)*exp(j*gamma_newhv(m))*exp(j*pi/3)+sqrt(3)/n_t* I_r_newhv(m)*exp(j*-pi/6);
Ps_newhv(m)=real(V_s*conj(I_s_newhv(m)));
Qs_newhv(m)=imag(V_s*conj(I_s_newhv(m)));
Psh_newhv(m)=real(V_tap_newhv*conj(I_sh_newhv(m)*exp(j*gamma_newhv(m))));
Qsh_newhv(m)=imag(V_tap_newhv*conj(I_sh_newhv(m)*exp(j*gamma_newhv(m))));
Ssh_newhv(m) = sqrt(Psh_newhv(m)^2 + Qsh_newhv(m)^2);
Pse_newhv(m)=real(V_se_newhv*exp(j*rho(m))*conj(I_sh_newhv(m)));
Qse_newhv(m)=imag(V_se_newhv*exp(j*rho(m))*conj(I_sh_newhv(m)));
Sse_newhv(m) = sqrt(Pse_newhv(m)^2 + Qse_newhv(m)^2);
end
polarplot( (Psh_newhv – Pse_newhv)/Srate,LineWidth=2)
hold on
polarplot( Qs_newhv/Srate,LineWidth=2)
% Nonlinear constraint function
function [c, ceq] = myfun_newhv(x_newhv, rho)
V_s = 10*1e3/sqrt(3);
n_t = 25*sqrt(3);
V_r = 400/sqrt(3);
theta_r = pi/12;
Srate = 100*1e3/3;
Zbase = (V_r)^2/Srate;
X_r = 0.4*Zbase;
X_t = 400^2/(300*1e3)*4/100;
V_se_newhv = 0.2*V_s;
Z_r = 1i * X_r;
% Extract variables
gamma_newhv = x_newhv(1);
I_sh_newhv = x_newhv(2);
% Compute intermediate quantities
I_r_newhv=1/(Z_r+j*X_t)*(sqrt(3)*(V_s+V_se_newhv*exp(j*rho))*exp(j*pi/6)/n_t-V_r*exp(j*theta_r));
I_s_newhv=0.5*I_sh_newhv*exp(j*gamma_newhv)*exp(j*pi/3)+sqrt(3)/n_t* I_r_newhv*exp(j*-pi/6);
Qs_newhv=imag(V_s*conj(I_s_newhv));
V_tap_newhv=0.5*(V_s+V_se_newhv*exp(j*rho))*exp(j*-pi/3);
Psh_newhv=real(V_tap_newhv*conj(I_sh_newhv*exp(j*gamma_newhv)));
Pse_newhv=real(V_se_newhv*exp(j*rho)*conj(I_s_newhv));
% Constraints
% Nonlinear equality constraints
ceq = [ Psh_newhv – Pse_newhv;Qs_newhv];
c = [];
end fmincon, nonlinear equation MATLAB Answers — New Questions
Changes in Predicted values after training
Hello Friends,
I need some help as regards predicted values from an LSTM neural netwrok that I designed. See the attached picture of the main code for the LSTM.
After training , the predicted values are always different from the previous simulation.
In the training options, I tried to set the BiasInitializer to zeros and the WeightsInitializer as well to ones but still the changes in predicted values always occur.
I will be glad if someone can guide me on this point.Hello Friends,
I need some help as regards predicted values from an LSTM neural netwrok that I designed. See the attached picture of the main code for the LSTM.
After training , the predicted values are always different from the previous simulation.
In the training options, I tried to set the BiasInitializer to zeros and the WeightsInitializer as well to ones but still the changes in predicted values always occur.
I will be glad if someone can guide me on this point. Hello Friends,
I need some help as regards predicted values from an LSTM neural netwrok that I designed. See the attached picture of the main code for the LSTM.
After training , the predicted values are always different from the previous simulation.
In the training options, I tried to set the BiasInitializer to zeros and the WeightsInitializer as well to ones but still the changes in predicted values always occur.
I will be glad if someone can guide me on this point. lstm, predict, training option MATLAB Answers — New Questions
Extended kalman filter jacobian function
I am trying to code my extended Kalman filter on a system and I know the function of the jacobian of the nonlinear output function. I read the documentation and look at the MeasurementJacobianFcn example, but I would need to pass to the function some parameters, is this possible?I am trying to code my extended Kalman filter on a system and I know the function of the jacobian of the nonlinear output function. I read the documentation and look at the MeasurementJacobianFcn example, but I would need to pass to the function some parameters, is this possible? I am trying to code my extended Kalman filter on a system and I know the function of the jacobian of the nonlinear output function. I read the documentation and look at the MeasurementJacobianFcn example, but I would need to pass to the function some parameters, is this possible? extended kalman filter, jacobian MATLAB Answers — New Questions