Month: July 2024
How to loop through cell array and apply script to each double?
Hi,
I have a cell array of cell arrays of doubles called "C_512_numeric". I have the script called edit and I want to loop through all columns in the doubles in C_512_numeric and use the column data as input for edit (first argument). I have attached the script.
How would I write this code?Hi,
I have a cell array of cell arrays of doubles called "C_512_numeric". I have the script called edit and I want to loop through all columns in the doubles in C_512_numeric and use the column data as input for edit (first argument). I have attached the script.
How would I write this code? Hi,
I have a cell array of cell arrays of doubles called "C_512_numeric". I have the script called edit and I want to loop through all columns in the doubles in C_512_numeric and use the column data as input for edit (first argument). I have attached the script.
How would I write this code? cells, doubles, script, input MATLAB Answers — New Questions
how to reduce blob analysis rate in video so that object counting can happen every 3 seconds
I would like to do object counting but my code is checking for region of intereste every 1/30 second due to 30 frames per second because of this everytime it is detecting the object, any way i can solve this problem?
clc;
%% Setup of video
vidReader=vision.VideoFileReader(‘hvsstop2.mp4’);
vidReader.VideoOutputDataType=’double’;
mywriter=VideoWriter(‘mymovie.mp4’);
open(mywriter);
%% structural element
diskelem=strel(‘disk’,2);
hblob=vision.BlobAnalysis(‘MinimumBlobArea’,1500,’MaximumBlobArea’,4000);
vidPlayer = vision.DeployableVideoPlayer;
while ~isDone(vidReader)
%read frame
vidframe=step(vidReader);
%rgb to hsv color space
I=rgb2hsv(vidframe);
%htextins=insertText(I,’position’,[20,20],’Color’,[255 255 0],’Fontsize’,30);
% Define thresholds for channel 1 based on histogram settings
channel1Min = 0.615;
channel1Max = 0.962;
% Define thresholds for channel 2 based on histogram settings
channel2Min = 0.000;
channel2Max = 0.058;
% Define thresholds for channel 3 based on histogram settings
channel3Min = 0.723;
channel3Max = 1.000;
% Create mask based on chosen histogram thresholds
sliderBW = (I(:,:,1) >= channel1Min ) & (I(:,:,1) <= channel1Max) & …
(I(:,:,2) >= channel2Min ) & (I(:,:,2) <= channel2Max) & …
(I(:,:,3) >= channel3Min ) & (I(:,:,3) <= channel3Max);
BW = sliderBW;
%using morphological operations
ibwopen=imopen(BW,diskelem);
%extract the blobs from the frame
[areaOut,centroidOut, bboxOut]=step(hblob,ibwopen);
%draw a box around detected objects
%ishape=insertShape(vidframe,’Rectangle’,bboxOut,’ShapeColor’,’black’);
%iannotate = insertObjectAnnotation(vidframe,"rectangle",bboxOut,’cardboard’,TextBoxOpacity=0.9,FontSize=18);
iannotate_vid = insertObjectAnnotation(vidframe,"rectangle",…
bboxOut,’versatilis’,TextBoxOpacity=0.9,FontSize=30);
%paly in video player
vidPlayer(iannotate_vid);
writeVideo(mywriter,iannotate_vid);
end
%%release
release(vidReader)
release(hblob)
release(vidPlayer)
close(mywriter)
%release(ishape)I would like to do object counting but my code is checking for region of intereste every 1/30 second due to 30 frames per second because of this everytime it is detecting the object, any way i can solve this problem?
clc;
%% Setup of video
vidReader=vision.VideoFileReader(‘hvsstop2.mp4’);
vidReader.VideoOutputDataType=’double’;
mywriter=VideoWriter(‘mymovie.mp4’);
open(mywriter);
%% structural element
diskelem=strel(‘disk’,2);
hblob=vision.BlobAnalysis(‘MinimumBlobArea’,1500,’MaximumBlobArea’,4000);
vidPlayer = vision.DeployableVideoPlayer;
while ~isDone(vidReader)
%read frame
vidframe=step(vidReader);
%rgb to hsv color space
I=rgb2hsv(vidframe);
%htextins=insertText(I,’position’,[20,20],’Color’,[255 255 0],’Fontsize’,30);
% Define thresholds for channel 1 based on histogram settings
channel1Min = 0.615;
channel1Max = 0.962;
% Define thresholds for channel 2 based on histogram settings
channel2Min = 0.000;
channel2Max = 0.058;
% Define thresholds for channel 3 based on histogram settings
channel3Min = 0.723;
channel3Max = 1.000;
% Create mask based on chosen histogram thresholds
sliderBW = (I(:,:,1) >= channel1Min ) & (I(:,:,1) <= channel1Max) & …
(I(:,:,2) >= channel2Min ) & (I(:,:,2) <= channel2Max) & …
(I(:,:,3) >= channel3Min ) & (I(:,:,3) <= channel3Max);
BW = sliderBW;
%using morphological operations
ibwopen=imopen(BW,diskelem);
%extract the blobs from the frame
[areaOut,centroidOut, bboxOut]=step(hblob,ibwopen);
%draw a box around detected objects
%ishape=insertShape(vidframe,’Rectangle’,bboxOut,’ShapeColor’,’black’);
%iannotate = insertObjectAnnotation(vidframe,"rectangle",bboxOut,’cardboard’,TextBoxOpacity=0.9,FontSize=18);
iannotate_vid = insertObjectAnnotation(vidframe,"rectangle",…
bboxOut,’versatilis’,TextBoxOpacity=0.9,FontSize=30);
%paly in video player
vidPlayer(iannotate_vid);
writeVideo(mywriter,iannotate_vid);
end
%%release
release(vidReader)
release(hblob)
release(vidPlayer)
close(mywriter)
%release(ishape) I would like to do object counting but my code is checking for region of intereste every 1/30 second due to 30 frames per second because of this everytime it is detecting the object, any way i can solve this problem?
clc;
%% Setup of video
vidReader=vision.VideoFileReader(‘hvsstop2.mp4’);
vidReader.VideoOutputDataType=’double’;
mywriter=VideoWriter(‘mymovie.mp4’);
open(mywriter);
%% structural element
diskelem=strel(‘disk’,2);
hblob=vision.BlobAnalysis(‘MinimumBlobArea’,1500,’MaximumBlobArea’,4000);
vidPlayer = vision.DeployableVideoPlayer;
while ~isDone(vidReader)
%read frame
vidframe=step(vidReader);
%rgb to hsv color space
I=rgb2hsv(vidframe);
%htextins=insertText(I,’position’,[20,20],’Color’,[255 255 0],’Fontsize’,30);
% Define thresholds for channel 1 based on histogram settings
channel1Min = 0.615;
channel1Max = 0.962;
% Define thresholds for channel 2 based on histogram settings
channel2Min = 0.000;
channel2Max = 0.058;
% Define thresholds for channel 3 based on histogram settings
channel3Min = 0.723;
channel3Max = 1.000;
% Create mask based on chosen histogram thresholds
sliderBW = (I(:,:,1) >= channel1Min ) & (I(:,:,1) <= channel1Max) & …
(I(:,:,2) >= channel2Min ) & (I(:,:,2) <= channel2Max) & …
(I(:,:,3) >= channel3Min ) & (I(:,:,3) <= channel3Max);
BW = sliderBW;
%using morphological operations
ibwopen=imopen(BW,diskelem);
%extract the blobs from the frame
[areaOut,centroidOut, bboxOut]=step(hblob,ibwopen);
%draw a box around detected objects
%ishape=insertShape(vidframe,’Rectangle’,bboxOut,’ShapeColor’,’black’);
%iannotate = insertObjectAnnotation(vidframe,"rectangle",bboxOut,’cardboard’,TextBoxOpacity=0.9,FontSize=18);
iannotate_vid = insertObjectAnnotation(vidframe,"rectangle",…
bboxOut,’versatilis’,TextBoxOpacity=0.9,FontSize=30);
%paly in video player
vidPlayer(iannotate_vid);
writeVideo(mywriter,iannotate_vid);
end
%%release
release(vidReader)
release(hblob)
release(vidPlayer)
close(mywriter)
%release(ishape) computer vision, blob MATLAB Answers — New Questions
Microsoft Security Operations Analyst Blueprint Survey Opportunity
Microsoft is updating a certification for Microsoft Security Operations Analyst. We need your input through our exam blueprinting surveys.
The blueprint determines how many questions each skill in the exam will be assigned. Please complete the online survey by August 7th, 2024. Please also feel free to forward the survey to any colleagues you consider subject matter experts for this certification. If you have any questions, feel free to contact Rohan Mahadevan rmahadevan@microsoft.com or John Sowles at josowles@microsoft.com.
Microsoft Security Operations Analyst blueprint survey link:
https://microsoftlearning.co1.qualtrics.com/jfe/form/SV_cHeM9OLKvCVjHUO
Microsoft is updating a certification for Microsoft Security Operations Analyst. We need your input through our exam blueprinting surveys.
The blueprint determines how many questions each skill in the exam will be assigned. Please complete the online survey by August 7th, 2024. Please also feel free to forward the survey to any colleagues you consider subject matter experts for this certification. If you have any questions, feel free to contact Rohan Mahadevan rmahadevan@microsoft.com or John Sowles at josowles@microsoft.com.
Microsoft Security Operations Analyst blueprint survey link:
https://microsoftlearning.co1.qualtrics.com/jfe/form/SV_cHeM9OLKvCVjHUO Read More
Using categories in Outlook Webclient OWA
Hello,
I can define and assign categories to an email but I found no way to filter by them.
Any help would be highly appreciated – thanks!
Kind regards
Chris
Hello,I can define and assign categories to an email but I found no way to filter by them. Any help would be highly appreciated – thanks! Kind regardsChris Read More
Access Denied Error When Using Enter-PSSession in Workgroup/Entra Joined Env
Hello everyone,
I’m currently facing an issue with establishing an Enter-PSSession connection between two computers in my setup. Here are the details:
Computer1: Hybrid Entra Joined, hostname: Computer1Computer2: Workplace/Entra Joined, hostname: Computer2
I would like to connect from Computer1 to Computer2 using Enter-PSSession. My account is a Hybrid Account and part of the Local Admin Group on Computer2. Both computers are connected with the same Entra ID.
The firewall on Computer2 has an open port (HTTP Port 8085). Although the computers are not in the same subnet, the network layer seems to be functioning correctly.
I have made the following registry entries on Computer1:
Registry-Key: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionWSMANClient trusted_hosts “*”
Registry-Key: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionWSMANClient spn_prefix “HOST”
To establish a connection, I use the following string:
Enter-PSSession -ComputerName XX.XX.XXX.55 -Port 5985 -Credential $aadusername1 -Authentication Negotiate
Unfortunately, I am unable to connect to Computer2. I receive the following error message:
Connecting to remote server XX.XX.XXX.55 failed with the following error message: Access is denied. For more information, please refer to the about_Remote_Troubleshooting Help topic.
In the Event Log of Computer2 i see following Event Log entry:
Antragsteller:
Sicherheits-ID: NULL SID
Kontoname: –
Kontodomäne: –
Anmelde-ID: 0x0
Anmeldetyp: 3
Konto, für das die Anmeldung fehlgeschlagen ist:
Sicherheits-ID: NULL SID
Kontoname: email address removed for privacy reasons
Kontodomäne: AzureAD
Fehlerinformationen:
Fehlerursache: Unbekannter Benutzername oder ungültiges Kennwort.
Status: 0xC000006D
Unterstatus:: 0xC0000064
Prozessinformationen:
Aufrufprozess-ID: 0x0
Aufrufprozessname: –
Netzwerkinformationen:
Arbeitsstationsname: Computer1
Quellnetzwerkadresse: YY.YY.YYY.11
Quellport: 55343
Detaillierte Authentifizierungsinformationen:
Anmeldeprozess: NtLmSsp
Authentifizierungspaket: NTLM
Übertragene Dienste: –
Paketname (nur NTLM): –
Schlüssellänge: 0
We encountered an issue where establishing a connection using Basic Authentication is not possible. However, when connecting from Computer2 to Computer2 using the described connection, the connection can be successfully established. The Event Log shows the following security protocols:
Anmeldeprozess: Pku2uSspAuthentifizierungspaket: NegoExtender
If anyone has any insights or suggestions on how to solve this problem and enable a successful connection with the desired security protocols, your input would be greatly appreciated. Thank you!
Hello everyone,I’m currently facing an issue with establishing an Enter-PSSession connection between two computers in my setup. Here are the details:Computer1: Hybrid Entra Joined, hostname: Computer1Computer2: Workplace/Entra Joined, hostname: Computer2I would like to connect from Computer1 to Computer2 using Enter-PSSession. My account is a Hybrid Account and part of the Local Admin Group on Computer2. Both computers are connected with the same Entra ID.The firewall on Computer2 has an open port (HTTP Port 8085). Although the computers are not in the same subnet, the network layer seems to be functioning correctly.I have made the following registry entries on Computer1: Registry-Key: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionWSMANClient trusted_hosts “*”Registry-Key: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionWSMANClient spn_prefix “HOST” To establish a connection, I use the following string:$aadusername1 = Get-Credential -UserName “AzureADusername1 @domain.ch” -Message “AzureADemail address removed for privacy reasons”
Enter-PSSession -ComputerName XX.XX.XXX.55 -Port 5985 -Credential $aadusername1 -Authentication NegotiateUnfortunately, I am unable to connect to Computer2. I receive the following error message:Connecting to remote server XX.XX.XXX.55 failed with the following error message: Access is denied. For more information, please refer to the about_Remote_Troubleshooting Help topic.In the Event Log of Computer2 i see following Event Log entry:Event ID: 4625
Antragsteller:
Sicherheits-ID: NULL SID
Kontoname: –
Kontodomäne: –
Anmelde-ID: 0x0
Anmeldetyp: 3
Konto, für das die Anmeldung fehlgeschlagen ist:
Sicherheits-ID: NULL SID
Kontoname: email address removed for privacy reasons
Kontodomäne: AzureAD
Fehlerinformationen:
Fehlerursache: Unbekannter Benutzername oder ungültiges Kennwort.
Status: 0xC000006D
Unterstatus:: 0xC0000064
Prozessinformationen:
Aufrufprozess-ID: 0x0
Aufrufprozessname: –
Netzwerkinformationen:
Arbeitsstationsname: Computer1
Quellnetzwerkadresse: YY.YY.YYY.11
Quellport: 55343
Detaillierte Authentifizierungsinformationen:
Anmeldeprozess: NtLmSsp
Authentifizierungspaket: NTLM
Übertragene Dienste: –
Paketname (nur NTLM): –
Schlüssellänge: 0We encountered an issue where establishing a connection using Basic Authentication is not possible. However, when connecting from Computer2 to Computer2 using the described connection, the connection can be successfully established. The Event Log shows the following security protocols:Anmeldeprozess: Pku2uSspAuthentifizierungspaket: NegoExtenderIf anyone has any insights or suggestions on how to solve this problem and enable a successful connection with the desired security protocols, your input would be greatly appreciated. Thank you! Read More
Microsoft Defender for Endpoint fails policy deploy to Windows 10 Enterprise VM
We have Microsoft Defender for Cloud enabled and all of our subscriptions have a fully enabled Servers, Plan 2.
And yes, defender does automatically apply the ‘MDE.Windows’ extension to all of our VMs.
I reviewed the compatibility of Defender for Endpoint
https://learn.microsoft.com/en-us/defender-endpoint/minimum-requirements
And under ‘Supported Windows versions’; ‘Windows 10 Enterprise’ is listed as being supported.
All of our VMs are Windows 10 Enterprise. For instance I have a VM created with this offering from the marketplace
“imageReference”: {
“publisher”: “MicrosoftWindowsDesktop”,
“offer”: “Windows-10”,
“sku”: “win10-22h2-ent-g2”,
“version”: “latest”,
“exactVersion”: “19045.4046.240203”
The problem is that when the VM Extension ‘MDE.Windows’ is automatically applied by Defender for Cloud… there is an error status message.
Failed to configure Microsoft Defender for Endpoint: Onboarding to MDE via Microsoft Defender for Cloud for this operating system is not supported. Read more about supported operating systems: https://docs.microsoft.com/en-us/azure/defender-for-cloud/integration-defender-for-endpoint?tabs=linux#availability
Digging into the logs, at C:WindowsAzureLogsPluginsMicrosoft.Azure.AzureDefenderForServers.MDE.Windows1.0.10.3on the VM for the plugin i see…
VERBOSE: [2024-07-24 13:46:41Z][Information] Major version: 10
VERBOSE: [2024-07-24 13:46:41Z][Information] Minor version: 0
VERBOSE: [2024-07-24 13:46:41Z][Information] Build version: 19045
VERBOSE: [2024-07-24 13:46:42Z][Information] OS Name: Microsoft Windows 10 Enterprise
VERBOSE: [2024-07-24 13:46:42Z][Information] Product type: 1
VERBOSE: [2024-07-24 13:46:42Z][Information] OperatingSystem SKU: 4
Digging into the plugin code MdeExtensionHandler.ps1 there is this line…
It appears that not ALL versions of Windows 10 Enterprise is supported.
What are my alternatives ?
We have Microsoft Defender for Cloud enabled and all of our subscriptions have a fully enabled Servers, Plan 2. And yes, defender does automatically apply the ‘MDE.Windows’ extension to all of our VMs. I reviewed the compatibility of Defender for Endpointhttps://learn.microsoft.com/en-us/defender-endpoint/minimum-requirementsAnd under ‘Supported Windows versions’; ‘Windows 10 Enterprise’ is listed as being supported. All of our VMs are Windows 10 Enterprise. For instance I have a VM created with this offering from the marketplace “imageReference”: {
“publisher”: “MicrosoftWindowsDesktop”,
“offer”: “Windows-10”,
“sku”: “win10-22h2-ent-g2”,
“version”: “latest”,
“exactVersion”: “19045.4046.240203”
The problem is that when the VM Extension ‘MDE.Windows’ is automatically applied by Defender for Cloud… there is an error status message. Failed to configure Microsoft Defender for Endpoint: Onboarding to MDE via Microsoft Defender for Cloud for this operating system is not supported. Read more about supported operating systems: https://docs.microsoft.com/en-us/azure/defender-for-cloud/integration-defender-for-endpoint?tabs=linux#availability
Digging into the logs, at C:WindowsAzureLogsPluginsMicrosoft.Azure.AzureDefenderForServers.MDE.Windows1.0.10.3on the VM for the plugin i see… VERBOSE: [2024-07-24 13:46:41Z][Information] Major version: 10
VERBOSE: [2024-07-24 13:46:41Z][Information] Minor version: 0
VERBOSE: [2024-07-24 13:46:41Z][Information] Build version: 19045
VERBOSE: [2024-07-24 13:46:42Z][Information] OS Name: Microsoft Windows 10 Enterprise
VERBOSE: [2024-07-24 13:46:42Z][Information] Product type: 1
VERBOSE: [2024-07-24 13:46:42Z][Information] OperatingSystem SKU: 4
Digging into the plugin code MdeExtensionHandler.ps1 there is this line… It appears that not ALL versions of Windows 10 Enterprise is supported.What are my alternatives ? Read More
Broken Links – missing resources
Many of the links on Developing security solutions with Microsoft are broken, Does anyone know how to get them fixed?
Many of the links on Developing security solutions with Microsoft are broken, Does anyone know how to get them fixed? Read More
“VIew Report” button is missing on Store Certification Upload status(Certification Status)
After my last application upload to Store Certification, i got that Certification process has failed.
The parter page tells to click on button “View Report”, but theres no button on page.
I know that page has new stuff, so i think something is missing on it.
Does anyone have experience something similar? How should I proceed? I am currently unable to access the report to find out what is wrong with the submission/application.
As the help pages says, this button should be around here:
Thanks in advance,
Helmuth
After my last application upload to Store Certification, i got that Certification process has failed. The parter page tells to click on button “View Report”, but theres no button on page. I know that page has new stuff, so i think something is missing on it. Does anyone have experience something similar? How should I proceed? I am currently unable to access the report to find out what is wrong with the submission/application. As the help pages says, this button should be around here: Thanks in advance,Helmuth Read More
How to convert tables into numeric arrays?
Hi I have the data set C_512 (see attached) and I want to make the tables within the cells of the cell array into numeric arrays so that there are no longer any tables in C_512. I used this code below:
% Load the .mat file
load(‘/path/to/C_512.mat’);
% Initialize a new cell array to store numeric arrays
C_512_numeric = cell(size(C_512));
% Loop through each cell and convert its content to numeric arrays
for i = 1:size(C_512, 1)
for j = 1:size(C_512, 2)
T = C_512{i, j};
if istable(T)
C_512_numeric{i, j} = table2array(T);
else
C_512_numeric{i, j} = T; % If it’s already an array or matrix
end
end
end
% Save the numeric data to a new .mat file
save(‘C_512_numeric.mat’, ‘C_512_numeric’);
Unfortunately, C_512_numeric still contains tables. Why is that?Hi I have the data set C_512 (see attached) and I want to make the tables within the cells of the cell array into numeric arrays so that there are no longer any tables in C_512. I used this code below:
% Load the .mat file
load(‘/path/to/C_512.mat’);
% Initialize a new cell array to store numeric arrays
C_512_numeric = cell(size(C_512));
% Loop through each cell and convert its content to numeric arrays
for i = 1:size(C_512, 1)
for j = 1:size(C_512, 2)
T = C_512{i, j};
if istable(T)
C_512_numeric{i, j} = table2array(T);
else
C_512_numeric{i, j} = T; % If it’s already an array or matrix
end
end
end
% Save the numeric data to a new .mat file
save(‘C_512_numeric.mat’, ‘C_512_numeric’);
Unfortunately, C_512_numeric still contains tables. Why is that? Hi I have the data set C_512 (see attached) and I want to make the tables within the cells of the cell array into numeric arrays so that there are no longer any tables in C_512. I used this code below:
% Load the .mat file
load(‘/path/to/C_512.mat’);
% Initialize a new cell array to store numeric arrays
C_512_numeric = cell(size(C_512));
% Loop through each cell and convert its content to numeric arrays
for i = 1:size(C_512, 1)
for j = 1:size(C_512, 2)
T = C_512{i, j};
if istable(T)
C_512_numeric{i, j} = table2array(T);
else
C_512_numeric{i, j} = T; % If it’s already an array or matrix
end
end
end
% Save the numeric data to a new .mat file
save(‘C_512_numeric.mat’, ‘C_512_numeric’);
Unfortunately, C_512_numeric still contains tables. Why is that? convert, tables, numeric array, error, cell MATLAB Answers — New Questions
Simscape version change cause problem
Hi all, we created a simscape model in MATLAB 2021a which perfectly works. When I open it in MATLAB 2024a or in MATLAB online, I receive many errors. One of the error is
"Cannot find library called ‘sm_cable_robot_lib’. "
and
"Pulley-End Alignment1′ cannot be found on MATLAB path or has an invalid path."
I search for sm_cable_robot_lib but no result. Is there any change in simscape in MATLAB 2024?Hi all, we created a simscape model in MATLAB 2021a which perfectly works. When I open it in MATLAB 2024a or in MATLAB online, I receive many errors. One of the error is
"Cannot find library called ‘sm_cable_robot_lib’. "
and
"Pulley-End Alignment1′ cannot be found on MATLAB path or has an invalid path."
I search for sm_cable_robot_lib but no result. Is there any change in simscape in MATLAB 2024? Hi all, we created a simscape model in MATLAB 2021a which perfectly works. When I open it in MATLAB 2024a or in MATLAB online, I receive many errors. One of the error is
"Cannot find library called ‘sm_cable_robot_lib’. "
and
"Pulley-End Alignment1′ cannot be found on MATLAB path or has an invalid path."
I search for sm_cable_robot_lib but no result. Is there any change in simscape in MATLAB 2024? simscape, cable-robot, pulley MATLAB Answers — New Questions
Datetime format capatilization sensitivity inconsistent?
So I was trying to add milliseconds to my datetime variables and found a sort of inconsistency?
When setting datetime format using datetime(‘now’,’Format’,’hh:mm:ss.sss’) , the sss at the end is not capatilization sensitive; but when trying to access and change it using variable_name.Format = ‘hh:mm:ss.SSS’, the SSS at the end is capatilization sensitive.
Is this a minor inconsitency or is this intended? If it’s the latter what is the rationale behind? As it only makes it more confusing imoSo I was trying to add milliseconds to my datetime variables and found a sort of inconsistency?
When setting datetime format using datetime(‘now’,’Format’,’hh:mm:ss.sss’) , the sss at the end is not capatilization sensitive; but when trying to access and change it using variable_name.Format = ‘hh:mm:ss.SSS’, the SSS at the end is capatilization sensitive.
Is this a minor inconsitency or is this intended? If it’s the latter what is the rationale behind? As it only makes it more confusing imo So I was trying to add milliseconds to my datetime variables and found a sort of inconsistency?
When setting datetime format using datetime(‘now’,’Format’,’hh:mm:ss.sss’) , the sss at the end is not capatilization sensitive; but when trying to access and change it using variable_name.Format = ‘hh:mm:ss.SSS’, the SSS at the end is capatilization sensitive.
Is this a minor inconsitency or is this intended? If it’s the latter what is the rationale behind? As it only makes it more confusing imo datetime MATLAB Answers — New Questions
IF statement help
I am trying to make a table that corresponds to data in another table.
I have column A5:A30 set up with supplier names, and column J5:J30 set up with costs associated with that supplier.
Down below this table I have A32:A40 with Supplier names, and B32:B40 with their original costs.
I am trying to get column C32:C40 to show me the final costs by using an IF statement. If row 5 has “supplier name” in column a, add B32+J5.
I can make the if statement work once, but I am trying to get it to add the original cost in B32 plus any value in J5:30 if column a has that specific supplier’s name.
Any help can be appreciated.
I am trying to make a table that corresponds to data in another table.I have column A5:A30 set up with supplier names, and column J5:J30 set up with costs associated with that supplier.Down below this table I have A32:A40 with Supplier names, and B32:B40 with their original costs. I am trying to get column C32:C40 to show me the final costs by using an IF statement. If row 5 has “supplier name” in column a, add B32+J5. I can make the if statement work once, but I am trying to get it to add the original cost in B32 plus any value in J5:30 if column a has that specific supplier’s name. Any help can be appreciated. Read More
Teams premium usage reports (Where can I find them?)
I work in a large company and we have a small 10-person population who is testing Teams premium features.
While trying to determine the success of the pilot, I realize there is no reporting options for Teams premium services specifically like there are for Copilot. Does anyone know how to get a report from the Admin portal under “Usage and reports” for teams’ premium licensing? Do I have to do it by features and by the 10 users? I appreciate your insight and welcome suggestions.
I work in a large company and we have a small 10-person population who is testing Teams premium features. While trying to determine the success of the pilot, I realize there is no reporting options for Teams premium services specifically like there are for Copilot. Does anyone know how to get a report from the Admin portal under “Usage and reports” for teams’ premium licensing? Do I have to do it by features and by the 10 users? I appreciate your insight and welcome suggestions. Read More
How to insert a large amt of rows in the middle of a spreadsheet
How can I insert 820 rows in the middle of a spreadsheet without adding each row one by one and without overriding anything?
How can I insert 820 rows in the middle of a spreadsheet without adding each row one by one and without overriding anything? Read More
How do you access the datatype of Bus Element Ports in MATLAB
I have a model that outputs a Bus of type ‘TestBus’. The Bus is comprised of three Doubles, which I define and output using ‘Bus Element Outports’.
I would like to access the output datatype of my entire model (which is a ‘TestBus’). However, when I access the datatype of the Bus Element Outports, I receive ‘Double’ instead of ‘TestBus’.
For instance, the following code returns ‘Double’ on my compiled model:
get(<Bus Element Handle>,’CompiledPortDataTypes’).Inport{1}; % Returns Double, should return TestBus
How can I access the Bus output datatype of my Bus Element Ports?I have a model that outputs a Bus of type ‘TestBus’. The Bus is comprised of three Doubles, which I define and output using ‘Bus Element Outports’.
I would like to access the output datatype of my entire model (which is a ‘TestBus’). However, when I access the datatype of the Bus Element Outports, I receive ‘Double’ instead of ‘TestBus’.
For instance, the following code returns ‘Double’ on my compiled model:
get(<Bus Element Handle>,’CompiledPortDataTypes’).Inport{1}; % Returns Double, should return TestBus
How can I access the Bus output datatype of my Bus Element Ports? I have a model that outputs a Bus of type ‘TestBus’. The Bus is comprised of three Doubles, which I define and output using ‘Bus Element Outports’.
I would like to access the output datatype of my entire model (which is a ‘TestBus’). However, when I access the datatype of the Bus Element Outports, I receive ‘Double’ instead of ‘TestBus’.
For instance, the following code returns ‘Double’ on my compiled model:
get(<Bus Element Handle>,’CompiledPortDataTypes’).Inport{1}; % Returns Double, should return TestBus
How can I access the Bus output datatype of my Bus Element Ports? buselement, ports, compiledportdatatypes, outdatatypestr MATLAB Answers — New Questions
How to calculate Coherence Bandwidth from transfer Function H(f)?
Hello,
I have measurement data S21, of many different channels. How can I calculate the coherence Bandwidth of the channels from that?
Thanks a lot for your valuable helpHello,
I have measurement data S21, of many different channels. How can I calculate the coherence Bandwidth of the channels from that?
Thanks a lot for your valuable help Hello,
I have measurement data S21, of many different channels. How can I calculate the coherence Bandwidth of the channels from that?
Thanks a lot for your valuable help communication, digital signal processing MATLAB Answers — New Questions
UIfigure value changes on a while loop
לק"י
Hello!
I have a time series stack of cell masks of 21 timepoints. each mask has a unique gray scale value of its own.
I need to acquire a single pixel grayscale vlaue by clicking on the desired cell mask.
My strategy is to have two figures open at the same time.
The first figure will present the image of a single time sequence and after a pixel will be chosen it’s grayscale value will be saved.
The second figure will present a loop of the time series to allow me for easy identification of the desired cell. I will only see it no interactions made with this loop figure.
This figure is running with a while loop, that will end only when I click and UIfigure (b) of a button, so the condition is when b.Value==0.
When I run the code, I awkwardly get an error when enetring the third while loop.
The code:
filename=’17.07.2024 aHER2 carrier W.T cd45low+cd4+lstrckr001 cellpose stack.tif’;
info = imfinfo(filename);
numberOfImages = length(info);
j=1;
for i= 1:numberOfImages
crntimg=imread(filename, i);
figure (1)
imshow (crntimg,[]);
impixelinfo
fig = uifigure;
b = uibutton(fig,"state", "Text","Press to end", "IconAlignment","top", …
"Position",[100 100 50 50]);
while b.Value == 0
k=1
crntimgloop=imread(filename, j);
imshow (crntimgloop,[]);
if j<21
j=j+1;
else
j=1;
end
j
end
end
The error output:
j =
3
Invalid or deleted object.
Error in matlab.ui.control.internal.model.AbstractBinaryComponent/get.Value (line 95)
value = obj.PrivateValue;
Error in Cell_mask_identification_over_time (line 13)
while b.Value == 0
I tried to upload the mask’s time series file, but it was too large.
Thanks,
Amit.לק"י
Hello!
I have a time series stack of cell masks of 21 timepoints. each mask has a unique gray scale value of its own.
I need to acquire a single pixel grayscale vlaue by clicking on the desired cell mask.
My strategy is to have two figures open at the same time.
The first figure will present the image of a single time sequence and after a pixel will be chosen it’s grayscale value will be saved.
The second figure will present a loop of the time series to allow me for easy identification of the desired cell. I will only see it no interactions made with this loop figure.
This figure is running with a while loop, that will end only when I click and UIfigure (b) of a button, so the condition is when b.Value==0.
When I run the code, I awkwardly get an error when enetring the third while loop.
The code:
filename=’17.07.2024 aHER2 carrier W.T cd45low+cd4+lstrckr001 cellpose stack.tif’;
info = imfinfo(filename);
numberOfImages = length(info);
j=1;
for i= 1:numberOfImages
crntimg=imread(filename, i);
figure (1)
imshow (crntimg,[]);
impixelinfo
fig = uifigure;
b = uibutton(fig,"state", "Text","Press to end", "IconAlignment","top", …
"Position",[100 100 50 50]);
while b.Value == 0
k=1
crntimgloop=imread(filename, j);
imshow (crntimgloop,[]);
if j<21
j=j+1;
else
j=1;
end
j
end
end
The error output:
j =
3
Invalid or deleted object.
Error in matlab.ui.control.internal.model.AbstractBinaryComponent/get.Value (line 95)
value = obj.PrivateValue;
Error in Cell_mask_identification_over_time (line 13)
while b.Value == 0
I tried to upload the mask’s time series file, but it was too large.
Thanks,
Amit. לק"י
Hello!
I have a time series stack of cell masks of 21 timepoints. each mask has a unique gray scale value of its own.
I need to acquire a single pixel grayscale vlaue by clicking on the desired cell mask.
My strategy is to have two figures open at the same time.
The first figure will present the image of a single time sequence and after a pixel will be chosen it’s grayscale value will be saved.
The second figure will present a loop of the time series to allow me for easy identification of the desired cell. I will only see it no interactions made with this loop figure.
This figure is running with a while loop, that will end only when I click and UIfigure (b) of a button, so the condition is when b.Value==0.
When I run the code, I awkwardly get an error when enetring the third while loop.
The code:
filename=’17.07.2024 aHER2 carrier W.T cd45low+cd4+lstrckr001 cellpose stack.tif’;
info = imfinfo(filename);
numberOfImages = length(info);
j=1;
for i= 1:numberOfImages
crntimg=imread(filename, i);
figure (1)
imshow (crntimg,[]);
impixelinfo
fig = uifigure;
b = uibutton(fig,"state", "Text","Press to end", "IconAlignment","top", …
"Position",[100 100 50 50]);
while b.Value == 0
k=1
crntimgloop=imread(filename, j);
imshow (crntimgloop,[]);
if j<21
j=j+1;
else
j=1;
end
j
end
end
The error output:
j =
3
Invalid or deleted object.
Error in matlab.ui.control.internal.model.AbstractBinaryComponent/get.Value (line 95)
value = obj.PrivateValue;
Error in Cell_mask_identification_over_time (line 13)
while b.Value == 0
I tried to upload the mask’s time series file, but it was too large.
Thanks,
Amit. uifigure, loops, while loop MATLAB Answers — New Questions
Need help with homework.
This is only my first couple of days using MATLAB. Basically I am trying to make a little temperature conversion program however the displayed answer is always in the form of a 1 x 2 matrix. Any advice is appreciated.
% prompt for user to choose which conversion
chosen_temp = input(‘What is ur chosen conversion, Celsius to Farenheit (1) or Farenheit to Celsius (2): ‘,’s’);
% using that answer to determine which formula is needed and then the
% converted answer
switch chosen_temp
case ‘1’
disp(‘Celsius to Farenheit’)
initial_temp = input(‘Enter the temperature you would like to convert in Celsius:’, ‘s’);
temperature = initial_temp * 9 / 5 + 32
case ‘2’
disp(‘Farenheit to Celsius’)
initial_temp = input(‘Enter the temperature you would like to convert in Farenheit:’, ‘s’);
temperature = (initial_temp – 32) * (5 / 9)
endThis is only my first couple of days using MATLAB. Basically I am trying to make a little temperature conversion program however the displayed answer is always in the form of a 1 x 2 matrix. Any advice is appreciated.
% prompt for user to choose which conversion
chosen_temp = input(‘What is ur chosen conversion, Celsius to Farenheit (1) or Farenheit to Celsius (2): ‘,’s’);
% using that answer to determine which formula is needed and then the
% converted answer
switch chosen_temp
case ‘1’
disp(‘Celsius to Farenheit’)
initial_temp = input(‘Enter the temperature you would like to convert in Celsius:’, ‘s’);
temperature = initial_temp * 9 / 5 + 32
case ‘2’
disp(‘Farenheit to Celsius’)
initial_temp = input(‘Enter the temperature you would like to convert in Farenheit:’, ‘s’);
temperature = (initial_temp – 32) * (5 / 9)
end This is only my first couple of days using MATLAB. Basically I am trying to make a little temperature conversion program however the displayed answer is always in the form of a 1 x 2 matrix. Any advice is appreciated.
% prompt for user to choose which conversion
chosen_temp = input(‘What is ur chosen conversion, Celsius to Farenheit (1) or Farenheit to Celsius (2): ‘,’s’);
% using that answer to determine which formula is needed and then the
% converted answer
switch chosen_temp
case ‘1’
disp(‘Celsius to Farenheit’)
initial_temp = input(‘Enter the temperature you would like to convert in Celsius:’, ‘s’);
temperature = initial_temp * 9 / 5 + 32
case ‘2’
disp(‘Farenheit to Celsius’)
initial_temp = input(‘Enter the temperature you would like to convert in Farenheit:’, ‘s’);
temperature = (initial_temp – 32) * (5 / 9)
end transferred MATLAB Answers — New Questions
Is there a Matlab command to check the expiration date of my license?
I’d like to follow the expiration date of my Matlab license from within Matlab. Is there a Matlab command to check the expiration date of my license?I’d like to follow the expiration date of my Matlab license from within Matlab. Is there a Matlab command to check the expiration date of my license? I’d like to follow the expiration date of my Matlab license from within Matlab. Is there a Matlab command to check the expiration date of my license? license, license expiration MATLAB Answers — New Questions
Autoruns renders system unbootable
Autoruns renders system unbootable, while using it from within WinPE:
Autoruns -> Files -> Analyze Offline System…
Last version causing no trouble using it this way is 13.100.
https://learn.microsoft.com/en-us/sysinternals/downloads/autoruns
Running Autoruns from a fully installed system and using this method does not cause any problems so far.
Affected registry hives are SOFTWARE and SYSTEM.
Recovering the system or at least some entries is only successful with an (older) existing backup of the registry files.
The corrupted registry file SYSTEM even lost the computername. All information off the harddrives are lost too.
Registry Recon confirms it. All red entries have been damaged.
I am not sure where exactly i should report this.
It can easily be reproduced by running it under any WinPE, it happens every time i used it.
I like to use the newest versions under PE again.
Maybe there is a way to recover the lost entries.
I appreciate any help.
With kind regards
Autoruns renders system unbootable, while using it from within WinPE:Autoruns -> Files -> Analyze Offline System…Last version causing no trouble using it this way is 13.100. https://learn.microsoft.com/en-us/sysinternals/downloads/autoruns Running Autoruns from a fully installed system and using this method does not cause any problems so far.Affected registry hives are SOFTWARE and SYSTEM.Recovering the system or at least some entries is only successful with an (older) existing backup of the registry files.The corrupted registry file SYSTEM even lost the computername. All information off the harddrives are lost too.Registry Recon confirms it. All red entries have been damaged. I am not sure where exactly i should report this.It can easily be reproduced by running it under any WinPE, it happens every time i used it. I like to use the newest versions under PE again.Maybe there is a way to recover the lost entries. I appreciate any help. With kind regards Read More