Month: July 2024
Leave-out-one cross validation during neural network training
Hello there I am trying to train a ML model with leave-out-one trial cross validation. Right now I have input data stored in the 1×10 cell array: "XTrain" with each cell containing the prediction inputs for all 10 trials and another 1×10 cell array: "YTrain" that contains the correposding continous variable we are trying to predict/output.
net = connectLayers(net,outputName,"fc");
% Specify training options
options = trainingOptions(‘adam’, …
‘MaxEpochs’, 60, …
‘MiniBatchSize’, 1, …
‘SequenceLength’, ‘longest’, …
‘InputDataFormats’, ‘CTB’, …
‘Plots’, ‘training-progress’, …
‘Metrics’, ‘rmse’, …
‘Verbose’, 0 …
‘Validation);
% Train the network
net = trainnet(XTrain,YTrain,net,"mse",options)
I have built my model’s network architecture stored in "net", but I am unsure of how to incorporte "leave out one trial" validation during training and then test my model’s performance. I want the model to pull out one trial at a time and then train the model and continue to do this for all 10 trials so that I end up with one final network trained and validated on all the trials. But I also want to have data to test the model’s performance? Do I need to create a loop for this? or is there a way I can specify this in the training options? Any help would be greatly appreciated!Hello there I am trying to train a ML model with leave-out-one trial cross validation. Right now I have input data stored in the 1×10 cell array: "XTrain" with each cell containing the prediction inputs for all 10 trials and another 1×10 cell array: "YTrain" that contains the correposding continous variable we are trying to predict/output.
net = connectLayers(net,outputName,"fc");
% Specify training options
options = trainingOptions(‘adam’, …
‘MaxEpochs’, 60, …
‘MiniBatchSize’, 1, …
‘SequenceLength’, ‘longest’, …
‘InputDataFormats’, ‘CTB’, …
‘Plots’, ‘training-progress’, …
‘Metrics’, ‘rmse’, …
‘Verbose’, 0 …
‘Validation);
% Train the network
net = trainnet(XTrain,YTrain,net,"mse",options)
I have built my model’s network architecture stored in "net", but I am unsure of how to incorporte "leave out one trial" validation during training and then test my model’s performance. I want the model to pull out one trial at a time and then train the model and continue to do this for all 10 trials so that I end up with one final network trained and validated on all the trials. But I also want to have data to test the model’s performance? Do I need to create a loop for this? or is there a way I can specify this in the training options? Any help would be greatly appreciated! Hello there I am trying to train a ML model with leave-out-one trial cross validation. Right now I have input data stored in the 1×10 cell array: "XTrain" with each cell containing the prediction inputs for all 10 trials and another 1×10 cell array: "YTrain" that contains the correposding continous variable we are trying to predict/output.
net = connectLayers(net,outputName,"fc");
% Specify training options
options = trainingOptions(‘adam’, …
‘MaxEpochs’, 60, …
‘MiniBatchSize’, 1, …
‘SequenceLength’, ‘longest’, …
‘InputDataFormats’, ‘CTB’, …
‘Plots’, ‘training-progress’, …
‘Metrics’, ‘rmse’, …
‘Verbose’, 0 …
‘Validation);
% Train the network
net = trainnet(XTrain,YTrain,net,"mse",options)
I have built my model’s network architecture stored in "net", but I am unsure of how to incorporte "leave out one trial" validation during training and then test my model’s performance. I want the model to pull out one trial at a time and then train the model and continue to do this for all 10 trials so that I end up with one final network trained and validated on all the trials. But I also want to have data to test the model’s performance? Do I need to create a loop for this? or is there a way I can specify this in the training options? Any help would be greatly appreciated! machine learning, validation, neural network, trainnet MATLAB Answers — New Questions
Incorrect Data Interpretation in UDP Reception with Simulink
On an ESP32, I am sending distance data via UDP to MATLAB. There are multiple distances involved, so both the receiver number (from 81 to 84) and the respective distance are transmitted. I can also receive and analyze the data using the following program:
% Set up the UDP receiver
udpReceiver = udpport("LocalPort", 4141);
% Define a function to parse the received UDP packet
% Main loop to continuously receive and display distances
while true
% Check if a packet is available
if udpReceiver.NumBytesAvailable > 0
% Read the packet
packet = read(udpReceiver, udpReceiver.NumBytesAvailable, "char");
% Parse the received packet
[distance1, distance2, distance3, distance4] = parsePacket(packet);
% Display current distances
fprintf(‘Distance from Device 1: %.2f metersn’, distance1);
fprintf(‘Distance from Device 2: %.2f metersn’, distance2);
fprintf(‘Distance from Device 3: %.2f metersn’, distance3);
fprintf(‘Distance from Device 4: %.2f metersn’, distance4);
fprintf(‘n’); % Add newline for clarity
end
pause(0.1);
end
% Clean up
delete(udpReceiver)
function [distance1, distance2, distance3, distance4] = parsePacket(packet)
% Convert packet to string
packetStr = char(packet);
% Split the string by semicolon
data = strsplit(packetStr, ‘;’);
% Initialize distances
distance1 = NaN;
distance2 = NaN;
distance3 = NaN;
distance4 = NaN;
% Parse each part of the data
for i = 1:length(data)
% Split by comma to separate address and distance
parts = strsplit(data{i}, ‘,’);
device = str2double(parts{1});
distance = str2double(parts{2});
% Assign distances based on address
switch device
case 1
distance1 = distance;
case 2
distance2 = distance;
case 3
distance3 = distance;
case 4
distance4 = distance;
end
end
end
Now I want to further process only the respective distances in Simulink. For this, I have converted the code into a Level 2 MATLAB function. Here is the code for it:
function UDP_Receiver(block)
setup(block);
function setup(block)
block.NumInputPorts = 0;
block.NumOutputPorts = 4;
block.SetPreCompInpPortInfoToDynamic;
block.SetPreCompOutPortInfoToDynamic;
block.NumDialogPrms = 0;
block.SampleTimes = [-1 0];
block.SimStateCompliance = ‘DefaultSimState’;
block.RegBlockMethod(‘SetInputPortSamplingMode’, @SetInpPortFrameData);
block.RegBlockMethod(‘Outputs’, @Outputs);
block.RegBlockMethod(‘Terminate’, @Terminate);
% Initialize UDP receiver
% Set output port sampling modes
for i = 1:block.NumOutputPorts
block.OutputPort(i).SamplingMode = ‘Sample’; % Set all output ports to Sample mode
end
block.SetAccelRunOnTLC(true);
function SetInpPortFrameData(block, idx, fd)
block.InputPort(idx).SamplingMode = fd;
for i = 1:block.NumOutputPorts
block.OutputPort(i).SamplingMode = fd;
end
function Outputs(block)
udpreceiver = udpport("LocalPort", 4141);
% Check if UDP receiver is valid
while true
if isvalid(udpreceiver)
% Check if a packet is available
if udpreceiver.NumBytesAvailable > 0
% Read the packet
packet = read(udpreceiver, udpreceiver.NumBytesAvailable, "char");
% Parse the received packet
[distance1, distance2, distance3, distance4] = parsePacket(packet);
% Output distances
block.OutputPort(1).Data = distance1;
block.OutputPort(2).Data = distance2;
block.OutputPort(3).Data = distance3;
block.OutputPort(4).Data = distance4;
end
end
end
function Terminate(block)
% Define a function to parse the received UDP packet
function [distance1, distance2, distance3, distance4] = parsePacket(packet)
% Initialize distances
distance1 = NaN;
distance2 = NaN;
distance3 = NaN;
distance4 = NaN;
% Convert packet to string
packetStr = char(packet);
% Split the string by semicolon
data = strsplit(packetStr, ‘;’);
% Parse each part of the data
for i = 1:length(data)
% Split by comma to separate address and distance
parts = strsplit(data{i}, ‘,’);
if numel(parts) == 2
device = str2double(parts{1});
distance = str2double(parts{2});
% Assign distances based on address
switch device
case 1
distance1 = distance;
case 2
distance2 = distance;
case 3
distance3 = distance;
case 4
distance4 = distance;
end
end
end
Even though it is the same code, the simulation gets terminated or the Data is wrong. What can i do?On an ESP32, I am sending distance data via UDP to MATLAB. There are multiple distances involved, so both the receiver number (from 81 to 84) and the respective distance are transmitted. I can also receive and analyze the data using the following program:
% Set up the UDP receiver
udpReceiver = udpport("LocalPort", 4141);
% Define a function to parse the received UDP packet
% Main loop to continuously receive and display distances
while true
% Check if a packet is available
if udpReceiver.NumBytesAvailable > 0
% Read the packet
packet = read(udpReceiver, udpReceiver.NumBytesAvailable, "char");
% Parse the received packet
[distance1, distance2, distance3, distance4] = parsePacket(packet);
% Display current distances
fprintf(‘Distance from Device 1: %.2f metersn’, distance1);
fprintf(‘Distance from Device 2: %.2f metersn’, distance2);
fprintf(‘Distance from Device 3: %.2f metersn’, distance3);
fprintf(‘Distance from Device 4: %.2f metersn’, distance4);
fprintf(‘n’); % Add newline for clarity
end
pause(0.1);
end
% Clean up
delete(udpReceiver)
function [distance1, distance2, distance3, distance4] = parsePacket(packet)
% Convert packet to string
packetStr = char(packet);
% Split the string by semicolon
data = strsplit(packetStr, ‘;’);
% Initialize distances
distance1 = NaN;
distance2 = NaN;
distance3 = NaN;
distance4 = NaN;
% Parse each part of the data
for i = 1:length(data)
% Split by comma to separate address and distance
parts = strsplit(data{i}, ‘,’);
device = str2double(parts{1});
distance = str2double(parts{2});
% Assign distances based on address
switch device
case 1
distance1 = distance;
case 2
distance2 = distance;
case 3
distance3 = distance;
case 4
distance4 = distance;
end
end
end
Now I want to further process only the respective distances in Simulink. For this, I have converted the code into a Level 2 MATLAB function. Here is the code for it:
function UDP_Receiver(block)
setup(block);
function setup(block)
block.NumInputPorts = 0;
block.NumOutputPorts = 4;
block.SetPreCompInpPortInfoToDynamic;
block.SetPreCompOutPortInfoToDynamic;
block.NumDialogPrms = 0;
block.SampleTimes = [-1 0];
block.SimStateCompliance = ‘DefaultSimState’;
block.RegBlockMethod(‘SetInputPortSamplingMode’, @SetInpPortFrameData);
block.RegBlockMethod(‘Outputs’, @Outputs);
block.RegBlockMethod(‘Terminate’, @Terminate);
% Initialize UDP receiver
% Set output port sampling modes
for i = 1:block.NumOutputPorts
block.OutputPort(i).SamplingMode = ‘Sample’; % Set all output ports to Sample mode
end
block.SetAccelRunOnTLC(true);
function SetInpPortFrameData(block, idx, fd)
block.InputPort(idx).SamplingMode = fd;
for i = 1:block.NumOutputPorts
block.OutputPort(i).SamplingMode = fd;
end
function Outputs(block)
udpreceiver = udpport("LocalPort", 4141);
% Check if UDP receiver is valid
while true
if isvalid(udpreceiver)
% Check if a packet is available
if udpreceiver.NumBytesAvailable > 0
% Read the packet
packet = read(udpreceiver, udpreceiver.NumBytesAvailable, "char");
% Parse the received packet
[distance1, distance2, distance3, distance4] = parsePacket(packet);
% Output distances
block.OutputPort(1).Data = distance1;
block.OutputPort(2).Data = distance2;
block.OutputPort(3).Data = distance3;
block.OutputPort(4).Data = distance4;
end
end
end
function Terminate(block)
% Define a function to parse the received UDP packet
function [distance1, distance2, distance3, distance4] = parsePacket(packet)
% Initialize distances
distance1 = NaN;
distance2 = NaN;
distance3 = NaN;
distance4 = NaN;
% Convert packet to string
packetStr = char(packet);
% Split the string by semicolon
data = strsplit(packetStr, ‘;’);
% Parse each part of the data
for i = 1:length(data)
% Split by comma to separate address and distance
parts = strsplit(data{i}, ‘,’);
if numel(parts) == 2
device = str2double(parts{1});
distance = str2double(parts{2});
% Assign distances based on address
switch device
case 1
distance1 = distance;
case 2
distance2 = distance;
case 3
distance3 = distance;
case 4
distance4 = distance;
end
end
end
Even though it is the same code, the simulation gets terminated or the Data is wrong. What can i do? On an ESP32, I am sending distance data via UDP to MATLAB. There are multiple distances involved, so both the receiver number (from 81 to 84) and the respective distance are transmitted. I can also receive and analyze the data using the following program:
% Set up the UDP receiver
udpReceiver = udpport("LocalPort", 4141);
% Define a function to parse the received UDP packet
% Main loop to continuously receive and display distances
while true
% Check if a packet is available
if udpReceiver.NumBytesAvailable > 0
% Read the packet
packet = read(udpReceiver, udpReceiver.NumBytesAvailable, "char");
% Parse the received packet
[distance1, distance2, distance3, distance4] = parsePacket(packet);
% Display current distances
fprintf(‘Distance from Device 1: %.2f metersn’, distance1);
fprintf(‘Distance from Device 2: %.2f metersn’, distance2);
fprintf(‘Distance from Device 3: %.2f metersn’, distance3);
fprintf(‘Distance from Device 4: %.2f metersn’, distance4);
fprintf(‘n’); % Add newline for clarity
end
pause(0.1);
end
% Clean up
delete(udpReceiver)
function [distance1, distance2, distance3, distance4] = parsePacket(packet)
% Convert packet to string
packetStr = char(packet);
% Split the string by semicolon
data = strsplit(packetStr, ‘;’);
% Initialize distances
distance1 = NaN;
distance2 = NaN;
distance3 = NaN;
distance4 = NaN;
% Parse each part of the data
for i = 1:length(data)
% Split by comma to separate address and distance
parts = strsplit(data{i}, ‘,’);
device = str2double(parts{1});
distance = str2double(parts{2});
% Assign distances based on address
switch device
case 1
distance1 = distance;
case 2
distance2 = distance;
case 3
distance3 = distance;
case 4
distance4 = distance;
end
end
end
Now I want to further process only the respective distances in Simulink. For this, I have converted the code into a Level 2 MATLAB function. Here is the code for it:
function UDP_Receiver(block)
setup(block);
function setup(block)
block.NumInputPorts = 0;
block.NumOutputPorts = 4;
block.SetPreCompInpPortInfoToDynamic;
block.SetPreCompOutPortInfoToDynamic;
block.NumDialogPrms = 0;
block.SampleTimes = [-1 0];
block.SimStateCompliance = ‘DefaultSimState’;
block.RegBlockMethod(‘SetInputPortSamplingMode’, @SetInpPortFrameData);
block.RegBlockMethod(‘Outputs’, @Outputs);
block.RegBlockMethod(‘Terminate’, @Terminate);
% Initialize UDP receiver
% Set output port sampling modes
for i = 1:block.NumOutputPorts
block.OutputPort(i).SamplingMode = ‘Sample’; % Set all output ports to Sample mode
end
block.SetAccelRunOnTLC(true);
function SetInpPortFrameData(block, idx, fd)
block.InputPort(idx).SamplingMode = fd;
for i = 1:block.NumOutputPorts
block.OutputPort(i).SamplingMode = fd;
end
function Outputs(block)
udpreceiver = udpport("LocalPort", 4141);
% Check if UDP receiver is valid
while true
if isvalid(udpreceiver)
% Check if a packet is available
if udpreceiver.NumBytesAvailable > 0
% Read the packet
packet = read(udpreceiver, udpreceiver.NumBytesAvailable, "char");
% Parse the received packet
[distance1, distance2, distance3, distance4] = parsePacket(packet);
% Output distances
block.OutputPort(1).Data = distance1;
block.OutputPort(2).Data = distance2;
block.OutputPort(3).Data = distance3;
block.OutputPort(4).Data = distance4;
end
end
end
function Terminate(block)
% Define a function to parse the received UDP packet
function [distance1, distance2, distance3, distance4] = parsePacket(packet)
% Initialize distances
distance1 = NaN;
distance2 = NaN;
distance3 = NaN;
distance4 = NaN;
% Convert packet to string
packetStr = char(packet);
% Split the string by semicolon
data = strsplit(packetStr, ‘;’);
% Parse each part of the data
for i = 1:length(data)
% Split by comma to separate address and distance
parts = strsplit(data{i}, ‘,’);
if numel(parts) == 2
device = str2double(parts{1});
distance = str2double(parts{2});
% Assign distances based on address
switch device
case 1
distance1 = distance;
case 2
distance2 = distance;
case 3
distance3 = distance;
case 4
distance4 = distance;
end
end
end
Even though it is the same code, the simulation gets terminated or the Data is wrong. What can i do? udp, udp receive, simulink, level2 function MATLAB Answers — New Questions
Unable to make columns in new web part
I’m creating a new web part and using what I think to be fairly simple coding to create columns in a web part and it just doesn’t work. I’ve tried it with “no framework” and “React” framework options and it displays the same. Each line above one another instead of next to one another, etc. The code below is from React framework.
What am I missing here?
I’d appreciate any assistance.
I’m creating a new web part and using what I think to be fairly simple coding to create columns in a web part and it just doesn’t work. I’ve tried it with “no framework” and “React” framework options and it displays the same. Each line above one another instead of next to one another, etc. The code below is from React framework. <div className=”ms-Grid” dir=”ltr”> <div className=”ms-Grid-row”> <div className=”ms-Grid-col ms-sm6 ms-md4 ms-lg2″>Aaaaaaa aaaaaaaaaaaa</div> <div className=”ms-Grid-col ms-sm6 ms-md8 ms-lg10″>Bbbbbbb bbbbbb bbbbbbbb</div> </div></div> What am I missing here? I’d appreciate any assistance. Read More
Filter 2D Array if row next to it is blank
Hi again,
I need to filter a column 2D array based on if there are values or not in the row next to it.
Sample file attached.
Thanks in advance.
Hi again, I need to filter a column 2D array based on if there are values or not in the row next to it. Sample file attached. Thanks in advance. Read More
Can’t remove Fireflies.ai
Hi–I’m trying to figure out how to remove Fireflies.ai. I’ve tried logging into the app, and it gives me a 403 error. I’ve recently changed employers–I’m wondering if it was installed on my former work account, and I no longer have access to it. But the app still joins all of my meetings and sends notes to my personal gmail account (notes that I can’t open, lol). I really need to get rid of this immediately–my new employer sees it as a security risk. I’m not super tech savvy. I would deeply appreciate your help. Thanks.
Hi–I’m trying to figure out how to remove Fireflies.ai. I’ve tried logging into the app, and it gives me a 403 error. I’ve recently changed employers–I’m wondering if it was installed on my former work account, and I no longer have access to it. But the app still joins all of my meetings and sends notes to my personal gmail account (notes that I can’t open, lol). I really need to get rid of this immediately–my new employer sees it as a security risk. I’m not super tech savvy. I would deeply appreciate your help. Thanks. Read More
Am trying to create group with dynamic user membership using attribute “Employee Type”
Am trying to create group with dynamic user membership using attribute “Employee Type”, tried to get details from Extension attribute but didn’t find any option, Did anyone tried this and able to do ? I found a posting where it said to create a custom attribute that would be populated by the ’employee Type’ field. That just seems a little strange to me to to create a filed to be exactly like the one that is already there.
Am trying to create group with dynamic user membership using attribute “Employee Type”, tried to get details from Extension attribute but didn’t find any option, Did anyone tried this and able to do ? I found a posting where it said to create a custom attribute that would be populated by the ’employee Type’ field. That just seems a little strange to me to to create a filed to be exactly like the one that is already there. Read More
Defender XDR Unified RBAC – How to manage incidents over GDAP ( CSP accounts )
Hello ,
I am experiencing difficulties in granting access to manage emails on Microsoft Defender XDR to the SOC team. While the RBAC model in Entra ID roles supports GDAP using our CSP accounts, the roles in Defender XDR operate under a completely independent model (unified RBAC defender XDR), making management via our CSP accounts impossible.
I have reviewed the Microsoft Defender Endpoint RBAC documentation but found no solution.
There are Email & collaboration roles in the Microsoft Defender portal that have no equivalent to Microsoft Entra roles, and are important for security operations (for example the Preview role and the Search and Purge role).
Could you provide guidance on how to achieve this, or suggest an alternative approach?
Your assistance would be greatly appreciated.
Hello ,I am experiencing difficulties in granting access to manage emails on Microsoft Defender XDR to the SOC team. While the RBAC model in Entra ID roles supports GDAP using our CSP accounts, the roles in Defender XDR operate under a completely independent model (unified RBAC defender XDR), making management via our CSP accounts impossible.I have reviewed the Microsoft Defender Endpoint RBAC documentation but found no solution. There are Email & collaboration roles in the Microsoft Defender portal that have no equivalent to Microsoft Entra roles, and are important for security operations (for example the Preview role and the Search and Purge role). Could you provide guidance on how to achieve this, or suggest an alternative approach? Your assistance would be greatly appreciated. Read More
pivot chart creation question
i have been showing people on excel 365 how to create a pivot chart directly from a data set using recommended charts and choosing the recommended chart with the pivot table icon in the top right
corner but today it appears to have disappeared as a choice. thoughts?
i have been showing people on excel 365 how to create a pivot chart directly from a data set using recommended charts and choosing the recommended chart with the pivot table icon in the top rightcorner but today it appears to have disappeared as a choice. thoughts? Read More
Add Booking Appointents to Calender as Free
Hello, I have a MS Bookings related question, I am not sure this is the right place, since I cannot add a bookings related tag.
However, the question relates to Shared Booking Pages. Is there any chance to gt appointment into one user mailbox calendar, he is part of the booking service staff.
But while there is another staff member whith regular settings, this user mailbox is aimed to only provide a gathered overview to several users (which are part of other shared booking pages) with all appointment.
So relevant for the booking it that only one out of two staff members calendar should be considered, while both calendars are invited for a booking. That’s why this specific mailbox (yet it is an user mailbox, might also be a shared mailbox if possible) should have all meetings shown as free, because otherwise it would interfere with availability of the “real” user to be booked.
any idea how I can accomplish this?
kind regards,
Dieter
Hello, I have a MS Bookings related question, I am not sure this is the right place, since I cannot add a bookings related tag.However, the question relates to Shared Booking Pages. Is there any chance to gt appointment into one user mailbox calendar, he is part of the booking service staff.But while there is another staff member whith regular settings, this user mailbox is aimed to only provide a gathered overview to several users (which are part of other shared booking pages) with all appointment.So relevant for the booking it that only one out of two staff members calendar should be considered, while both calendars are invited for a booking. That’s why this specific mailbox (yet it is an user mailbox, might also be a shared mailbox if possible) should have all meetings shown as free, because otherwise it would interfere with availability of the “real” user to be booked.any idea how I can accomplish this?kind regards,Dieter Read More
ASPX Files Now Download Instead of Launching from SharePoint
HI,
I have some concern, since a couples of weeks i have that behavior. Any idea why?
HI, I have some concern, since a couples of weeks i have that behavior. Any idea why? Read More
Structure data obtained from webread
Hi, I would like to have to automatize a procedure to extract data from different URLs, One example of one URL link is the following:
% Generating the URL link
url=’https://earthquake.usgs.gov/fdsnws/event/1/query?format=quakeml&eventid=us6000n8tq’;
% Reading the data
data=webread(url);
The variable “data” contains huge amount of information that I would like to structure in order to access and retrieve data easily without the need of creating a xml file.
I would appreciate the help.Hi, I would like to have to automatize a procedure to extract data from different URLs, One example of one URL link is the following:
% Generating the URL link
url=’https://earthquake.usgs.gov/fdsnws/event/1/query?format=quakeml&eventid=us6000n8tq’;
% Reading the data
data=webread(url);
The variable “data” contains huge amount of information that I would like to structure in order to access and retrieve data easily without the need of creating a xml file.
I would appreciate the help. Hi, I would like to have to automatize a procedure to extract data from different URLs, One example of one URL link is the following:
% Generating the URL link
url=’https://earthquake.usgs.gov/fdsnws/event/1/query?format=quakeml&eventid=us6000n8tq’;
% Reading the data
data=webread(url);
The variable “data” contains huge amount of information that I would like to structure in order to access and retrieve data easily without the need of creating a xml file.
I would appreciate the help. structuring data from webread MATLAB Answers — New Questions
I don’t understand an error message I get that’s related to function ode45.
The error message I get is:
Arrays have incompatible sizes for this operation.
Error in ode45 (line 299)
y5 = y + h .* (b41.*f1 + b42.*f2 + b43.*f3 + b44.*f4 );
I’ve checked my initial condition vector is the correct size. I’m not sure what this error indicated might be wrong in my code.The error message I get is:
Arrays have incompatible sizes for this operation.
Error in ode45 (line 299)
y5 = y + h .* (b41.*f1 + b42.*f2 + b43.*f3 + b44.*f4 );
I’ve checked my initial condition vector is the correct size. I’m not sure what this error indicated might be wrong in my code. The error message I get is:
Arrays have incompatible sizes for this operation.
Error in ode45 (line 299)
y5 = y + h .* (b41.*f1 + b42.*f2 + b43.*f3 + b44.*f4 );
I’ve checked my initial condition vector is the correct size. I’m not sure what this error indicated might be wrong in my code. ode45, matlab MATLAB Answers — New Questions
how can solve this problem : Conversion to cell from double is not possible.
what the error (Error using Untitled18 (line 12)
Conversion to cell from double is not possible.)
% Ensure all columns except the last one are numeric
for i = 1:(width(data) – 1)
if iscell(data{:, i})
data{:, i} = grp2idx(categorical(data{:, i}));
elseif ischar(data{:, i})
data{:, i} = grp2idx(categorical(data{:, i}));
end
endwhat the error (Error using Untitled18 (line 12)
Conversion to cell from double is not possible.)
% Ensure all columns except the last one are numeric
for i = 1:(width(data) – 1)
if iscell(data{:, i})
data{:, i} = grp2idx(categorical(data{:, i}));
elseif ischar(data{:, i})
data{:, i} = grp2idx(categorical(data{:, i}));
end
end what the error (Error using Untitled18 (line 12)
Conversion to cell from double is not possible.)
% Ensure all columns except the last one are numeric
for i = 1:(width(data) – 1)
if iscell(data{:, i})
data{:, i} = grp2idx(categorical(data{:, i}));
elseif ischar(data{:, i})
data{:, i} = grp2idx(categorical(data{:, i}));
end
end axes, optimization MATLAB Answers — New Questions
MS Teams Detection in Intune
I need a proper detection script to ensure that my new teams installation is successful or not. Can I use this as a detection script? I see that this one and others I have used shows as failed if ($null -eq (Get-AppxPackage -Name MSTeams)) {Write-Host “New Teams client not found”exit 1} Else {Write-Host “New Teams client found”Exit 0} Some are showing as installed and some are showing as failed. I want to have a proper detection script for me to ensure that the new teams is installed. Any help would be great. Read More
Automatically populate date to cell in Excel (with VBA)
I’ve create a VBA in Excel but would like to respective entries when data is added to automatically populate a date and time stamp in Column 3 of the worksheet. I was able to use a formula that worked if I manually entered information directly into the worksheet but I’d like for the field to populate if the data comes from the VBA macro.
I’ve create a VBA in Excel but would like to respective entries when data is added to automatically populate a date and time stamp in Column 3 of the worksheet. I was able to use a formula that worked if I manually entered information directly into the worksheet but I’d like for the field to populate if the data comes from the VBA macro. Read More
Teams for Mac Opens to Viva Connections
This started happening Monday to both Windows and Mac in which, every time a user completely quits and re-opens Teams client, it defaults to Viva Connections and our SharePoint page. This isn’t a big deal but now for Mac clients, anytime we close, not completely quit, it defaults back to Viva Connections. Minimizing doesn’t do it but if clicking the red x to close it to the background does this.
Tested on MacOS Sonoma 14.5 (23F79)
Teams for Mac Version 24180.207.2997.1350 (24180.207.2997.1350)
This started happening Monday to both Windows and Mac in which, every time a user completely quits and re-opens Teams client, it defaults to Viva Connections and our SharePoint page. This isn’t a big deal but now for Mac clients, anytime we close, not completely quit, it defaults back to Viva Connections. Minimizing doesn’t do it but if clicking the red x to close it to the background does this. Tested on MacOS Sonoma 14.5 (23F79) Teams for Mac Version 24180.207.2997.1350 (24180.207.2997.1350) Read More
Win 11, DUO, Global Protect and Idle time | Lose internet connection
Hello,
My company has upgraded to Windows 11.
We use DUO to log in
We use Global Protect as a VPN
I am hard-wired via ethernet and use docking stations to run multiple monitors (8). The ethernet cable from the docking station goes to a switch and then to my AT&T router for the house.
When I go to lunch and come back, my network adapter drops the connection and does not sign me in with DUO. I have to use my offline code, and then my Global Protect VPN does not and will not reconnect after countless tries. I have to reboot for the internet to reconnect fully.
After testing two times, I’ve noticed that it seems to work if I unplug my ethernet cable from my docking station and then plug it back in.
Has anyone else had this issue? Is it a known bug? Is the fix to unplug my ethernet cable after a 30-minute idle time after the computer sleeps?
Thoughts?
Hello,My company has upgraded to Windows 11.We use DUO to log inWe use Global Protect as a VPNI am hard-wired via ethernet and use docking stations to run multiple monitors (8). The ethernet cable from the docking station goes to a switch and then to my AT&T router for the house. When I go to lunch and come back, my network adapter drops the connection and does not sign me in with DUO. I have to use my offline code, and then my Global Protect VPN does not and will not reconnect after countless tries. I have to reboot for the internet to reconnect fully. After testing two times, I’ve noticed that it seems to work if I unplug my ethernet cable from my docking station and then plug it back in. Has anyone else had this issue? Is it a known bug? Is the fix to unplug my ethernet cable after a 30-minute idle time after the computer sleeps? Thoughts? Read More
Power BI DAX measurements
Hello Power BI users. I am trying to create a measurement that gives me the top 10 providers experiencing patient’s leaving against staff advice (ASA). The date that I am trying to create this measure lives in two separate tables from two different sources. I’ve connected these two tables using a date table to connect the two tables.
In the ASA_Ali_1 table there are multiple programs with dates listed within each row. These dates include program capacity which will need to be used in the calculation. (of note, the ASA_Ali_1 table does not contain case by case basis information but a summation of ASAs that have occurred for each date corresponding to a specific program). In the CLEAN_ASA table, contains case by case i.e., client leaving ASA and the provider that was working with said client at the time of their departure.
I need to use the program capacity to generate a relative number of ASAs of a specific provider (contained in CLEAN_ASA) against the average program capacity (contained in ASA_Ali_1). I would like the output to show me the top 10 providers experiencing ASAs for the most recent month.
Please let me know if I can create DAX measurements within both tables to generate this output. Any help would be greatly appreciated 🙂
Hello Power BI users. I am trying to create a measurement that gives me the top 10 providers experiencing patient’s leaving against staff advice (ASA). The date that I am trying to create this measure lives in two separate tables from two different sources. I’ve connected these two tables using a date table to connect the two tables. In the ASA_Ali_1 table there are multiple programs with dates listed within each row. These dates include program capacity which will need to be used in the calculation. (of note, the ASA_Ali_1 table does not contain case by case basis information but a summation of ASAs that have occurred for each date corresponding to a specific program). In the CLEAN_ASA table, contains case by case i.e., client leaving ASA and the provider that was working with said client at the time of their departure.I need to use the program capacity to generate a relative number of ASAs of a specific provider (contained in CLEAN_ASA) against the average program capacity (contained in ASA_Ali_1). I would like the output to show me the top 10 providers experiencing ASAs for the most recent month. Please let me know if I can create DAX measurements within both tables to generate this output. Any help would be greatly appreciated 🙂 Read More
Sorry, We Need to Verify Your Subscription: What Should I Do?
I recently tried to access a service I subscribed to, but I received a message saying ‘Sorry, we need to verify your subscription.’ I’m not sure what this means or what steps I should take next. Has anyone else encountered this issue with subscription services? How did you resolve it? Any advice on what I should do to verify my subscription?
I recently tried to access a service I subscribed to, but I received a message saying ‘Sorry, we need to verify your subscription.’ I’m not sure what this means or what steps I should take next. Has anyone else encountered this issue with subscription services? How did you resolve it? Any advice on what I should do to verify my subscription? Read More
Help Needed: Resolving “Printer Not Activated Error code -20
Hello Community members,
I need some assistance with fixing the “Printer Not Activated Error code -20” that keeps appearing whenever I attempt to print. I’m using [mention your operating system] and have tried various troubleshooting steps such as updating drivers, checking printer connections, and ensuring no pending print jobs. Despite these efforts, the error persists. Could someone please provide a step-by-step solution or additional troubleshooting tips to help me resolve this issue? Thank you in advance for your help!
Hello Community members,I need some assistance with fixing the “Printer Not Activated Error code -20” that keeps appearing whenever I attempt to print. I’m using [mention your operating system] and have tried various troubleshooting steps such as updating drivers, checking printer connections, and ensuring no pending print jobs. Despite these efforts, the error persists. Could someone please provide a step-by-step solution or additional troubleshooting tips to help me resolve this issue? Thank you in advance for your help! Read More