Category: News
Alert Creation on Duplicate Event Logs
Hi, I would like to setup a simple analytic rule and trigger an alert on an event with “High Severity” in log analytics table. I will group all events into one alert.
Example:
Logs_CL
| where Category == “High”
The challenge is, the same “high severity log events” gets ingested everyday which is kind of causing duplication of log entries.
What would be the best way to setup this rule to only alert once on these events and do not generate an alert again if the same events get ingested next day?
thanks
Hi, I would like to setup a simple analytic rule and trigger an alert on an event with “High Severity” in log analytics table. I will group all events into one alert.Example:Logs_CL| where Category == “High” The challenge is, the same “high severity log events” gets ingested everyday which is kind of causing duplication of log entries.What would be the best way to setup this rule to only alert once on these events and do not generate an alert again if the same events get ingested next day? thanks Read More
Extended Side Bar Menu Options
Greetings,
I have been wanting to build out some content in SharePoint using something similar to the page layout used on the Microsoft Learn site.
i.e. Collapsable menus on the left, with associated content on the right. Current OOTB parts and menus are limited in depth and management and interested in solutions or add-ons that others may have found to achieve something similar.
Thanks in advanced
Greetings, I have been wanting to build out some content in SharePoint using something similar to the page layout used on the Microsoft Learn site. i.e. Collapsable menus on the left, with associated content on the right. Current OOTB parts and menus are limited in depth and management and interested in solutions or add-ons that others may have found to achieve something similar. Thanks in advanced Read More
Calculating the radius of a link budget
Hi there, how would I calculate the cell radius of a link budget?
I have a given link budget but just on the uplink. Would I need to use the satellite link budget app within MATLAB or is there a way to code this?
Thanks in advance,
P.S. not a beg for code, just a point in the right direction would be helpful please?Hi there, how would I calculate the cell radius of a link budget?
I have a given link budget but just on the uplink. Would I need to use the satellite link budget app within MATLAB or is there a way to code this?
Thanks in advance,
P.S. not a beg for code, just a point in the right direction would be helpful please? Hi there, how would I calculate the cell radius of a link budget?
I have a given link budget but just on the uplink. Would I need to use the satellite link budget app within MATLAB or is there a way to code this?
Thanks in advance,
P.S. not a beg for code, just a point in the right direction would be helpful please? uplink, link budget MATLAB Answers — New Questions
listening to the creation/deletion of a file with specific name.
Hi,
I’m wondering if it is possible somehow to listen to the creation/deletion of a file with an specific name. I know in Windows one has the option of controling .NET events, but I need a similar functionality also in Linux and Mac… I know I can create timers that scan continuously the file system, but this solution is rather inelegant and seems to compromise the performance of my code, so I’m interested in a solution more oriented to actual listeners… Any ideas?
Thanks in advance,
DanielHi,
I’m wondering if it is possible somehow to listen to the creation/deletion of a file with an specific name. I know in Windows one has the option of controling .NET events, but I need a similar functionality also in Linux and Mac… I know I can create timers that scan continuously the file system, but this solution is rather inelegant and seems to compromise the performance of my code, so I’m interested in a solution more oriented to actual listeners… Any ideas?
Thanks in advance,
Daniel Hi,
I’m wondering if it is possible somehow to listen to the creation/deletion of a file with an specific name. I know in Windows one has the option of controling .NET events, but I need a similar functionality also in Linux and Mac… I know I can create timers that scan continuously the file system, but this solution is rather inelegant and seems to compromise the performance of my code, so I’m interested in a solution more oriented to actual listeners… Any ideas?
Thanks in advance,
Daniel listener, file system, system.io.filesystemwatcher, linux, files MATLAB Answers — New Questions
Can anyone share MR damper model for 2 DOF suspension model?
Hello Everyone,
I am working on Magnetorheological Fluid Damper for vehicle suspension. My Model is not working. I have tried my model with different road input profiles with a CSC controller for the voltage. But the model does not show
the increase in the force with the increase of voltage.
Can anyone help me with this?
Thank you very much.
Regards
BaigHello Everyone,
I am working on Magnetorheological Fluid Damper for vehicle suspension. My Model is not working. I have tried my model with different road input profiles with a CSC controller for the voltage. But the model does not show
the increase in the force with the increase of voltage.
Can anyone help me with this?
Thank you very much.
Regards
Baig Hello Everyone,
I am working on Magnetorheological Fluid Damper for vehicle suspension. My Model is not working. I have tried my model with different road input profiles with a CSC controller for the voltage. But the model does not show
the increase in the force with the increase of voltage.
Can anyone help me with this?
Thank you very much.
Regards
Baig mr damper, magnetorheologica fluid damper MATLAB Answers — New Questions
Solving ODE using laplace
This is the question I’m struggling on
Using the Laplace transform find the solution for the following ODE:
d^2/dt(y(t)) + 16y(t) = 16[1(t-3) -1(t)]
initial conditions:
y(0) = 0
dy(t)/dt = 0
I have to solve the ODE with laplace and with inverse laplace
Save the inverse laplace in y_sol.
This is what I wrote but it gives me the wrong answer:
syms t s y(t) Y X
y0 = 0;
dot_y0 = 0;
dot_y = diff(y,t);
ddot_y = diff(dot_y,t);
ode = ddot_y + 16*y == 16*(1*(t-3)-1*(t))
Y1 = laplace(ode,t,s)
ysol1 = subs(Y1,laplace(y,t,s),X)
ysol2 = subs(ysol1,y(0),y0)
ysol3 = subs(ysol2, subs(diff(y(t), t), t, 0), dot_y0)
ysol = solve(ysol3, X)
Y = simplify(expand(ysol))
y_sol = ilaplace(Y)This is the question I’m struggling on
Using the Laplace transform find the solution for the following ODE:
d^2/dt(y(t)) + 16y(t) = 16[1(t-3) -1(t)]
initial conditions:
y(0) = 0
dy(t)/dt = 0
I have to solve the ODE with laplace and with inverse laplace
Save the inverse laplace in y_sol.
This is what I wrote but it gives me the wrong answer:
syms t s y(t) Y X
y0 = 0;
dot_y0 = 0;
dot_y = diff(y,t);
ddot_y = diff(dot_y,t);
ode = ddot_y + 16*y == 16*(1*(t-3)-1*(t))
Y1 = laplace(ode,t,s)
ysol1 = subs(Y1,laplace(y,t,s),X)
ysol2 = subs(ysol1,y(0),y0)
ysol3 = subs(ysol2, subs(diff(y(t), t), t, 0), dot_y0)
ysol = solve(ysol3, X)
Y = simplify(expand(ysol))
y_sol = ilaplace(Y) This is the question I’m struggling on
Using the Laplace transform find the solution for the following ODE:
d^2/dt(y(t)) + 16y(t) = 16[1(t-3) -1(t)]
initial conditions:
y(0) = 0
dy(t)/dt = 0
I have to solve the ODE with laplace and with inverse laplace
Save the inverse laplace in y_sol.
This is what I wrote but it gives me the wrong answer:
syms t s y(t) Y X
y0 = 0;
dot_y0 = 0;
dot_y = diff(y,t);
ddot_y = diff(dot_y,t);
ode = ddot_y + 16*y == 16*(1*(t-3)-1*(t))
Y1 = laplace(ode,t,s)
ysol1 = subs(Y1,laplace(y,t,s),X)
ysol2 = subs(ysol1,y(0),y0)
ysol3 = subs(ysol2, subs(diff(y(t), t), t, 0), dot_y0)
ysol = solve(ysol3, X)
Y = simplify(expand(ysol))
y_sol = ilaplace(Y) ode MATLAB Answers — New Questions
Non linear mixed effects model – Fitting Time Activity Curve
Hello MATLAB users!
I’m facing some issues with fitting the data I have in a excel spreadsheet. The Excel table contains 16 columns and 150 rows, excluding the header. From left to right, the columns are Times, Kidneys_P1, Kidneys_P2, Kidneys_P3, Kidneys_P4, Kidneys_P5, Tumor_P1, Tumor_P2, Tumor_P3, Tumor_P4, Tumor_P5, Blood_P1, Blood_P2, Blood_P3, Blood_P4, Blood_P5. The values represent the administered activity (radioactive activity) in patients. I want to fit the curves using a non-linear mixed-effects model, using the following equation:
model = [A1*e^-(λ1+λ1_phys)*t] + [A2*e^-(λ_phys)*t] – [A3*e^-(λ_2+λ_phys)*t] – (A1+A2-A3)*e^-(λ_bc+λ_phys)*t
where A1, A2, and A3 are the coefficients of the respective exponential terms with values ≥ 0, λ1 and λ2 are biological rate constants with values ≥ 0, λ_bc is the rate of blood circulation approximated as λbc = ln(2)/1min, and λphys represents the radionuclide physical decay constant = ln(2)/6.7*24*60 = 7.18E-5 min-1.
Here is a piece of my MATLAB code:
% Import Excel Data
clc, clear all, format compact
TAC_data = readtable("CorrectedFile.xlsx");
% Extract the times and activity data for each organ and patient
times = TAC_data{:,1};
kidneys = TAC_data(:, 2:6);
tumor = TAC_data(:, 7:11);
blood = TAC_data(:, 12:16);
% Initial guess
initialGuess = [0.5, 0.5, 0.5, 0.1, 0.1, 7.18E-5, 0.30];
% Model function
model = @(params, times) (params(1) * exp(-(params(4) + params(6)) * times)) + …
(params(2) * exp(-params(6) * times)) – …
(params(3) * exp(-(params(5) + params(6)) * times)) – …
(params(1) + params(2) – params(3)) * exp(-(params(7) + params(6)) * times);
% Iterate over each organ and perform the curve fitting for all patients within that organ
organs = {‘Kidneys’, ‘Tumor’, ‘Blood’};
patients = {‘P1’, ‘P2’, ‘P3’, ‘P4’, ‘P5’};
optimized_parameters = cell(length(organs), length(patients));
for i = 1:length(organs)
organ = organs{i};
% Select the data for the current organ
organ_data = TAC_data(:, (i-1)*5 + 2 : i*5 + 1);
% Stack the columns of organ data into a matrix
stacked_organ_data = table2array(organ_data);
% Perform curve fitting for each combination of organ and patient
for j = 1:length(patients)
% Select the activity data for the current patient
activity = stacked_organ_data(:, j);
% Create the grouping variable for this patient
patient_group = repmat(j, size(activity)); % Repeat patient index
% Perform curve fitting for the current organ and patient
[optimized_params, ~, ~] = nlmefitsa(times, activity, patient_group, [], model, initialGuess);
% Store the optimized parameters
optimized_parameters{i, j} = optimized_params;
% Print the optimized parameters
fprintf(‘Optimized parameters for %s – %s:n’, organ, patients{j});
disp(optimized_params);
end
end
In the line "Perform curve fitting" I am using the nlmefitsa tool, however, I ran the code and got the following error. Sorry in advance, I don`t know how to put the error text in red.
Error using nlmefitsa>modelcaller
Model function has returned Inf or NaN values.
Error in nlmefitsa>@(p,x,v,e)modelcaller(fvc,vect,modelfun,IdM,transphi(p),x,v,e) (line 602)
structural_model = @(p,x,v,e) modelcaller(fvc,vect,modelfun,IdM,transphi(p),x,v,e);
Error in nlmefitsa>saem_randstep (line 2120)
[f,g] = structural_model(phiMc,XM,VM,errmod);
Error in nlmefitsa/onefit (line 692)
[f,g,etaMc] = saem_randstep(ind_eta,eta0,vk2,myrandn,cholfact,…
Error in nlmefitsa (line 470)
[stop,betas(:,jrep),Gj,statsj,b_hat(idxRandPerm,uId,jrep)] = onefit(beta0(:,jbeta));
Error in test (line 43)
[optimized_params, ~, ~] = nlmefitsa(times, activity, patient_group, [], model, initialGuess);
I think the error can be related to the initial guess, but I don’t know how to fix it.
Any help is welcome. I appreciate it if anyone can assist me!Hello MATLAB users!
I’m facing some issues with fitting the data I have in a excel spreadsheet. The Excel table contains 16 columns and 150 rows, excluding the header. From left to right, the columns are Times, Kidneys_P1, Kidneys_P2, Kidneys_P3, Kidneys_P4, Kidneys_P5, Tumor_P1, Tumor_P2, Tumor_P3, Tumor_P4, Tumor_P5, Blood_P1, Blood_P2, Blood_P3, Blood_P4, Blood_P5. The values represent the administered activity (radioactive activity) in patients. I want to fit the curves using a non-linear mixed-effects model, using the following equation:
model = [A1*e^-(λ1+λ1_phys)*t] + [A2*e^-(λ_phys)*t] – [A3*e^-(λ_2+λ_phys)*t] – (A1+A2-A3)*e^-(λ_bc+λ_phys)*t
where A1, A2, and A3 are the coefficients of the respective exponential terms with values ≥ 0, λ1 and λ2 are biological rate constants with values ≥ 0, λ_bc is the rate of blood circulation approximated as λbc = ln(2)/1min, and λphys represents the radionuclide physical decay constant = ln(2)/6.7*24*60 = 7.18E-5 min-1.
Here is a piece of my MATLAB code:
% Import Excel Data
clc, clear all, format compact
TAC_data = readtable("CorrectedFile.xlsx");
% Extract the times and activity data for each organ and patient
times = TAC_data{:,1};
kidneys = TAC_data(:, 2:6);
tumor = TAC_data(:, 7:11);
blood = TAC_data(:, 12:16);
% Initial guess
initialGuess = [0.5, 0.5, 0.5, 0.1, 0.1, 7.18E-5, 0.30];
% Model function
model = @(params, times) (params(1) * exp(-(params(4) + params(6)) * times)) + …
(params(2) * exp(-params(6) * times)) – …
(params(3) * exp(-(params(5) + params(6)) * times)) – …
(params(1) + params(2) – params(3)) * exp(-(params(7) + params(6)) * times);
% Iterate over each organ and perform the curve fitting for all patients within that organ
organs = {‘Kidneys’, ‘Tumor’, ‘Blood’};
patients = {‘P1’, ‘P2’, ‘P3’, ‘P4’, ‘P5’};
optimized_parameters = cell(length(organs), length(patients));
for i = 1:length(organs)
organ = organs{i};
% Select the data for the current organ
organ_data = TAC_data(:, (i-1)*5 + 2 : i*5 + 1);
% Stack the columns of organ data into a matrix
stacked_organ_data = table2array(organ_data);
% Perform curve fitting for each combination of organ and patient
for j = 1:length(patients)
% Select the activity data for the current patient
activity = stacked_organ_data(:, j);
% Create the grouping variable for this patient
patient_group = repmat(j, size(activity)); % Repeat patient index
% Perform curve fitting for the current organ and patient
[optimized_params, ~, ~] = nlmefitsa(times, activity, patient_group, [], model, initialGuess);
% Store the optimized parameters
optimized_parameters{i, j} = optimized_params;
% Print the optimized parameters
fprintf(‘Optimized parameters for %s – %s:n’, organ, patients{j});
disp(optimized_params);
end
end
In the line "Perform curve fitting" I am using the nlmefitsa tool, however, I ran the code and got the following error. Sorry in advance, I don`t know how to put the error text in red.
Error using nlmefitsa>modelcaller
Model function has returned Inf or NaN values.
Error in nlmefitsa>@(p,x,v,e)modelcaller(fvc,vect,modelfun,IdM,transphi(p),x,v,e) (line 602)
structural_model = @(p,x,v,e) modelcaller(fvc,vect,modelfun,IdM,transphi(p),x,v,e);
Error in nlmefitsa>saem_randstep (line 2120)
[f,g] = structural_model(phiMc,XM,VM,errmod);
Error in nlmefitsa/onefit (line 692)
[f,g,etaMc] = saem_randstep(ind_eta,eta0,vk2,myrandn,cholfact,…
Error in nlmefitsa (line 470)
[stop,betas(:,jrep),Gj,statsj,b_hat(idxRandPerm,uId,jrep)] = onefit(beta0(:,jbeta));
Error in test (line 43)
[optimized_params, ~, ~] = nlmefitsa(times, activity, patient_group, [], model, initialGuess);
I think the error can be related to the initial guess, but I don’t know how to fix it.
Any help is welcome. I appreciate it if anyone can assist me! Hello MATLAB users!
I’m facing some issues with fitting the data I have in a excel spreadsheet. The Excel table contains 16 columns and 150 rows, excluding the header. From left to right, the columns are Times, Kidneys_P1, Kidneys_P2, Kidneys_P3, Kidneys_P4, Kidneys_P5, Tumor_P1, Tumor_P2, Tumor_P3, Tumor_P4, Tumor_P5, Blood_P1, Blood_P2, Blood_P3, Blood_P4, Blood_P5. The values represent the administered activity (radioactive activity) in patients. I want to fit the curves using a non-linear mixed-effects model, using the following equation:
model = [A1*e^-(λ1+λ1_phys)*t] + [A2*e^-(λ_phys)*t] – [A3*e^-(λ_2+λ_phys)*t] – (A1+A2-A3)*e^-(λ_bc+λ_phys)*t
where A1, A2, and A3 are the coefficients of the respective exponential terms with values ≥ 0, λ1 and λ2 are biological rate constants with values ≥ 0, λ_bc is the rate of blood circulation approximated as λbc = ln(2)/1min, and λphys represents the radionuclide physical decay constant = ln(2)/6.7*24*60 = 7.18E-5 min-1.
Here is a piece of my MATLAB code:
% Import Excel Data
clc, clear all, format compact
TAC_data = readtable("CorrectedFile.xlsx");
% Extract the times and activity data for each organ and patient
times = TAC_data{:,1};
kidneys = TAC_data(:, 2:6);
tumor = TAC_data(:, 7:11);
blood = TAC_data(:, 12:16);
% Initial guess
initialGuess = [0.5, 0.5, 0.5, 0.1, 0.1, 7.18E-5, 0.30];
% Model function
model = @(params, times) (params(1) * exp(-(params(4) + params(6)) * times)) + …
(params(2) * exp(-params(6) * times)) – …
(params(3) * exp(-(params(5) + params(6)) * times)) – …
(params(1) + params(2) – params(3)) * exp(-(params(7) + params(6)) * times);
% Iterate over each organ and perform the curve fitting for all patients within that organ
organs = {‘Kidneys’, ‘Tumor’, ‘Blood’};
patients = {‘P1’, ‘P2’, ‘P3’, ‘P4’, ‘P5’};
optimized_parameters = cell(length(organs), length(patients));
for i = 1:length(organs)
organ = organs{i};
% Select the data for the current organ
organ_data = TAC_data(:, (i-1)*5 + 2 : i*5 + 1);
% Stack the columns of organ data into a matrix
stacked_organ_data = table2array(organ_data);
% Perform curve fitting for each combination of organ and patient
for j = 1:length(patients)
% Select the activity data for the current patient
activity = stacked_organ_data(:, j);
% Create the grouping variable for this patient
patient_group = repmat(j, size(activity)); % Repeat patient index
% Perform curve fitting for the current organ and patient
[optimized_params, ~, ~] = nlmefitsa(times, activity, patient_group, [], model, initialGuess);
% Store the optimized parameters
optimized_parameters{i, j} = optimized_params;
% Print the optimized parameters
fprintf(‘Optimized parameters for %s – %s:n’, organ, patients{j});
disp(optimized_params);
end
end
In the line "Perform curve fitting" I am using the nlmefitsa tool, however, I ran the code and got the following error. Sorry in advance, I don`t know how to put the error text in red.
Error using nlmefitsa>modelcaller
Model function has returned Inf or NaN values.
Error in nlmefitsa>@(p,x,v,e)modelcaller(fvc,vect,modelfun,IdM,transphi(p),x,v,e) (line 602)
structural_model = @(p,x,v,e) modelcaller(fvc,vect,modelfun,IdM,transphi(p),x,v,e);
Error in nlmefitsa>saem_randstep (line 2120)
[f,g] = structural_model(phiMc,XM,VM,errmod);
Error in nlmefitsa/onefit (line 692)
[f,g,etaMc] = saem_randstep(ind_eta,eta0,vk2,myrandn,cholfact,…
Error in nlmefitsa (line 470)
[stop,betas(:,jrep),Gj,statsj,b_hat(idxRandPerm,uId,jrep)] = onefit(beta0(:,jbeta));
Error in test (line 43)
[optimized_params, ~, ~] = nlmefitsa(times, activity, patient_group, [], model, initialGuess);
I think the error can be related to the initial guess, but I don’t know how to fix it.
Any help is welcome. I appreciate it if anyone can assist me! non linear mixed effects, curve fitting MATLAB Answers — New Questions
Bookings reminder
Hi everyone!
The problem I have is that the reminder I have set on booking for 1 day before the reservation does not work and never is sent.
Does somebody know something about how to resolve this problem? I have tried to create several new services, duplicate others, and so on, but nothing happens.
Thank you in advance.
Ivan_Garo
Hi everyone! The problem I have is that the reminder I have set on booking for 1 day before the reservation does not work and never is sent.Does somebody know something about how to resolve this problem? I have tried to create several new services, duplicate others, and so on, but nothing happens. Thank you in advance.Ivan_Garo Read More
Simscape Multibody: external force and motion inputs, reaction torque sensing.
Hello everyone!
I’m using simscape multibody and I’m studying a simple 2-links multibody system.
The frame (1st link) is connected to the 2nd one through a revolute joint coupling.
I’d like to apply:
a vertical external force (Fext) at the end of the 2nd link
vary the angle-joint position (theta) from 45° to 60° (therefore, apply a vector, as the angle input, to the joint in Simscape)
The purpose of this study is to sense the Reaction torque (T) at the joint that balances the Fext so that the system stays sill (for every configuration of theta).
How can I do it using Simscape multibody’s blocks?
Thank you very much in advance :)Hello everyone!
I’m using simscape multibody and I’m studying a simple 2-links multibody system.
The frame (1st link) is connected to the 2nd one through a revolute joint coupling.
I’d like to apply:
a vertical external force (Fext) at the end of the 2nd link
vary the angle-joint position (theta) from 45° to 60° (therefore, apply a vector, as the angle input, to the joint in Simscape)
The purpose of this study is to sense the Reaction torque (T) at the joint that balances the Fext so that the system stays sill (for every configuration of theta).
How can I do it using Simscape multibody’s blocks?
Thank you very much in advance 🙂 Hello everyone!
I’m using simscape multibody and I’m studying a simple 2-links multibody system.
The frame (1st link) is connected to the 2nd one through a revolute joint coupling.
I’d like to apply:
a vertical external force (Fext) at the end of the 2nd link
vary the angle-joint position (theta) from 45° to 60° (therefore, apply a vector, as the angle input, to the joint in Simscape)
The purpose of this study is to sense the Reaction torque (T) at the joint that balances the Fext so that the system stays sill (for every configuration of theta).
How can I do it using Simscape multibody’s blocks?
Thank you very much in advance 🙂 simscape, multibody, torque, force, position, sensing, input, joint, angle, variable, reaction MATLAB Answers — New Questions
Simulink rocket simulation, the scope is not working
Hello guys,
It’s urgent, I have rocket simulation, takeoff and landing, the problem is that the simulation is working and in the display I get values, but when I enter the scope there is no graph that show. I will share with you the simulink and matlab code files. can you please correct the problem and send me the working one.
here are the parameters
as you can see in the display there are values but nothing in the scope.
Please can you fix it thank you.Hello guys,
It’s urgent, I have rocket simulation, takeoff and landing, the problem is that the simulation is working and in the display I get values, but when I enter the scope there is no graph that show. I will share with you the simulink and matlab code files. can you please correct the problem and send me the working one.
here are the parameters
as you can see in the display there are values but nothing in the scope.
Please can you fix it thank you. Hello guys,
It’s urgent, I have rocket simulation, takeoff and landing, the problem is that the simulation is working and in the display I get values, but when I enter the scope there is no graph that show. I will share with you the simulink and matlab code files. can you please correct the problem and send me the working one.
here are the parameters
as you can see in the display there are values but nothing in the scope.
Please can you fix it thank you. simulink, rocket, control, matlab, scope MATLAB Answers — New Questions
Tranpose Data
Please can anyone assist me on how I can easily transpose this data on the left A-C so it looks like the one on the right E-G, the idea is to have a simple order sheet for the client to add the quantity they want then transpose the data to look like (Column E-G)
Thank you!
Please can anyone assist me on how I can easily transpose this data on the left A-C so it looks like the one on the right E-G, the idea is to have a simple order sheet for the client to add the quantity they want then transpose the data to look like (Column E-G)Thank you! Read More
Evaluation- Azure OpenAI Deployments: Failed to fetch Azure OpenAI deployments for connection
i am able to test my deployment in playground with my own data but now when trying to evaluate model metrics getting this error “Azure OpenAI Deployments: Failed to fetch Azure OpenAI deployments for connection”. any idea how to fix?
i am able to test my deployment in playground with my own data but now when trying to evaluate model metrics getting this error “Azure OpenAI Deployments: Failed to fetch Azure OpenAI deployments for connection”. any idea how to fix? Read More
How to install Evernote in new outlook
Hello
Please i need your help on this issue.
Trying to install Evernote add in in New Outlook
Hello Please i need your help on this issue. Trying to install Evernote add in in New Outlook Read More
Trying again. Posted a few minutes ago, but…
For some reason, I am informed I made zero posts…
Heh. Senility?
Anyway…
Just took the plunge and upgraded myMicro$oft Office
2019 to 365 subscription. Playing around with it. Seems good so far…
My questions for today are:
Can I save my files directly to my pc instead of to the cloud?
Is it possible to delete cloud saved files?
Thanks in advance.
For some reason, I am informed I made zero posts…Heh. Senility? Anyway…Just took the plunge and upgraded myMicro$oft Office 2019 to 365 subscription. Playing around with it. Seems good so far…My questions for today are:Can I save my files directly to my pc instead of to the cloud?Is it possible to delete cloud saved files? Thanks in advance. Read More
Generating an unknown ammount of Buttons in App Designer
Hello,
I’m trying to generate Buttons programmatically with the App Designer.
I have an Excel File, where all the names of the Buttons are listet, not knowing how many Buttons (or lines in Excel) will be needed.
I figured out how to create components with the App Designer programmtically:
https://de.mathworks.com/help/matlab/creating_guis/add-ui-components-to-app-designer-programmatically.html
So I tried many things, but none of them worked.
The problem is, that (as far as I understood) every Button (or other element) in the GUI needs his own variable. So I have to create new variables with the function eval, wich is, how I found out on every site here, absoulutly forbidden…
My first thought was to create an Array, but it didn’t work:
Unable to perform assignment because dot indexing is not supported for variables of this type.
And heres the Code:
A = [378 700 100 22]; %Position of the Button
allKeys = string(keys(CellContOne)); %allKeys gets all the Buttonnames as a String
UniButton = zeros(length(allKeys)); %An Array with the length of the List is created
for i = 1:length(allKeys) %For Loop to create the Buttons
UniButton(i) = uibutton(app.UIFigure, ‘state’); %Creating a Button
UniButton(i).Position = A; %Giving the Button a position
UniButton(i).Text = allKeys(i); %Giving the Button it’s Text
b_text = UniButton(i).Text; %global Variable gets the Text
b_value = UniButton(i).Value; %global Variable gets the Value
UniButton(i).ValueChangedFcn = @app.mybuttonpress; %Callback function
A(2) = A(2) -25; %Position change for the next Button
end
I also tried using just one variable for every Button, but it didn’t work because the GUI wasn’t able to figure out wich button was pressed (I need this information for the callback) The code looks the same, just without the index (i) and the line UniButton = zeros(length(allKeys));
Structures and Cell Arrays also didn’t work for me.
I hope You can help me!Hello,
I’m trying to generate Buttons programmatically with the App Designer.
I have an Excel File, where all the names of the Buttons are listet, not knowing how many Buttons (or lines in Excel) will be needed.
I figured out how to create components with the App Designer programmtically:
https://de.mathworks.com/help/matlab/creating_guis/add-ui-components-to-app-designer-programmatically.html
So I tried many things, but none of them worked.
The problem is, that (as far as I understood) every Button (or other element) in the GUI needs his own variable. So I have to create new variables with the function eval, wich is, how I found out on every site here, absoulutly forbidden…
My first thought was to create an Array, but it didn’t work:
Unable to perform assignment because dot indexing is not supported for variables of this type.
And heres the Code:
A = [378 700 100 22]; %Position of the Button
allKeys = string(keys(CellContOne)); %allKeys gets all the Buttonnames as a String
UniButton = zeros(length(allKeys)); %An Array with the length of the List is created
for i = 1:length(allKeys) %For Loop to create the Buttons
UniButton(i) = uibutton(app.UIFigure, ‘state’); %Creating a Button
UniButton(i).Position = A; %Giving the Button a position
UniButton(i).Text = allKeys(i); %Giving the Button it’s Text
b_text = UniButton(i).Text; %global Variable gets the Text
b_value = UniButton(i).Value; %global Variable gets the Value
UniButton(i).ValueChangedFcn = @app.mybuttonpress; %Callback function
A(2) = A(2) -25; %Position change for the next Button
end
I also tried using just one variable for every Button, but it didn’t work because the GUI wasn’t able to figure out wich button was pressed (I need this information for the callback) The code looks the same, just without the index (i) and the line UniButton = zeros(length(allKeys));
Structures and Cell Arrays also didn’t work for me.
I hope You can help me! Hello,
I’m trying to generate Buttons programmatically with the App Designer.
I have an Excel File, where all the names of the Buttons are listet, not knowing how many Buttons (or lines in Excel) will be needed.
I figured out how to create components with the App Designer programmtically:
https://de.mathworks.com/help/matlab/creating_guis/add-ui-components-to-app-designer-programmatically.html
So I tried many things, but none of them worked.
The problem is, that (as far as I understood) every Button (or other element) in the GUI needs his own variable. So I have to create new variables with the function eval, wich is, how I found out on every site here, absoulutly forbidden…
My first thought was to create an Array, but it didn’t work:
Unable to perform assignment because dot indexing is not supported for variables of this type.
And heres the Code:
A = [378 700 100 22]; %Position of the Button
allKeys = string(keys(CellContOne)); %allKeys gets all the Buttonnames as a String
UniButton = zeros(length(allKeys)); %An Array with the length of the List is created
for i = 1:length(allKeys) %For Loop to create the Buttons
UniButton(i) = uibutton(app.UIFigure, ‘state’); %Creating a Button
UniButton(i).Position = A; %Giving the Button a position
UniButton(i).Text = allKeys(i); %Giving the Button it’s Text
b_text = UniButton(i).Text; %global Variable gets the Text
b_value = UniButton(i).Value; %global Variable gets the Value
UniButton(i).ValueChangedFcn = @app.mybuttonpress; %Callback function
A(2) = A(2) -25; %Position change for the next Button
end
I also tried using just one variable for every Button, but it didn’t work because the GUI wasn’t able to figure out wich button was pressed (I need this information for the callback) The code looks the same, just without the index (i) and the line UniButton = zeros(length(allKeys));
Structures and Cell Arrays also didn’t work for me.
I hope You can help me! appdesigner MATLAB Answers — New Questions
Problem with the odt notation of “configureTerminator” for serialport
Hi,
I do this with serial port:
sss=serialport(‘com1’,9600)
Then, I try to configure the terminator with the dot notation:
sss.configureTerminator = ‘CR’
I receive this error:
Assignment not supported because the result of method ‘configureTerminator’ is a temporary value.
If I do this:
>> configureTerminator(sss,’cr’)
that works.
Why? I wrong something in the sintax?
All the other commnads I used like flush, write, writeline, read, etc have not shown problems with dot notation.
Tyhank you, Gianluigi
PS: This is my license:
—————————————————————————————————–
MATLAB Version: 24.1.0.2461801 (R2024a) Prerelease Update 1
MATLAB License Number: ••••••
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 19045)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
—————————————————————————————————–
MATLAB Version 24.1 (R2024a)
Simulink Version 24.1 (R2024a)
Curve Fitting Toolbox Version 24.1 (R2024a)
Data Acquisition Toolbox Version 24.1 (R2024a)
Database Toolbox Version 24.1 (R2024a)
Instrument Control Toolbox Version 24.1 (R2024a)
Optimization Toolbox Version 24.1 (R2024a)
Parallel Computing Toolbox Version 24.1 (R2024a)
Simscape Version 24.1 (R2024a)
Simscape Electrical Version 24.1 (R2024a)
Symbolic Math Toolbox Version 24.1 (R2024a)
System Composer Version 24.1 (R2024a)Hi,
I do this with serial port:
sss=serialport(‘com1’,9600)
Then, I try to configure the terminator with the dot notation:
sss.configureTerminator = ‘CR’
I receive this error:
Assignment not supported because the result of method ‘configureTerminator’ is a temporary value.
If I do this:
>> configureTerminator(sss,’cr’)
that works.
Why? I wrong something in the sintax?
All the other commnads I used like flush, write, writeline, read, etc have not shown problems with dot notation.
Tyhank you, Gianluigi
PS: This is my license:
—————————————————————————————————–
MATLAB Version: 24.1.0.2461801 (R2024a) Prerelease Update 1
MATLAB License Number: ••••••
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 19045)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
—————————————————————————————————–
MATLAB Version 24.1 (R2024a)
Simulink Version 24.1 (R2024a)
Curve Fitting Toolbox Version 24.1 (R2024a)
Data Acquisition Toolbox Version 24.1 (R2024a)
Database Toolbox Version 24.1 (R2024a)
Instrument Control Toolbox Version 24.1 (R2024a)
Optimization Toolbox Version 24.1 (R2024a)
Parallel Computing Toolbox Version 24.1 (R2024a)
Simscape Version 24.1 (R2024a)
Simscape Electrical Version 24.1 (R2024a)
Symbolic Math Toolbox Version 24.1 (R2024a)
System Composer Version 24.1 (R2024a) Hi,
I do this with serial port:
sss=serialport(‘com1’,9600)
Then, I try to configure the terminator with the dot notation:
sss.configureTerminator = ‘CR’
I receive this error:
Assignment not supported because the result of method ‘configureTerminator’ is a temporary value.
If I do this:
>> configureTerminator(sss,’cr’)
that works.
Why? I wrong something in the sintax?
All the other commnads I used like flush, write, writeline, read, etc have not shown problems with dot notation.
Tyhank you, Gianluigi
PS: This is my license:
—————————————————————————————————–
MATLAB Version: 24.1.0.2461801 (R2024a) Prerelease Update 1
MATLAB License Number: ••••••
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 19045)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
—————————————————————————————————–
MATLAB Version 24.1 (R2024a)
Simulink Version 24.1 (R2024a)
Curve Fitting Toolbox Version 24.1 (R2024a)
Data Acquisition Toolbox Version 24.1 (R2024a)
Database Toolbox Version 24.1 (R2024a)
Instrument Control Toolbox Version 24.1 (R2024a)
Optimization Toolbox Version 24.1 (R2024a)
Parallel Computing Toolbox Version 24.1 (R2024a)
Simscape Version 24.1 (R2024a)
Simscape Electrical Version 24.1 (R2024a)
Symbolic Math Toolbox Version 24.1 (R2024a)
System Composer Version 24.1 (R2024a) serialport, configureterminator MATLAB Answers — New Questions
Choose a random button from a set of 9 arranged in a 3×3?
app.FirstNumber.Text = num2str(app.First_Number);
app.SecondNumber.Text = num2str(app.Second_Number);
app.Operator.Text = "+";
Answer = app.First_Number + app.Second_Number; % Operator needs to be able to change
n = randi(9);
app.Button_(n).Text = num2str(Answer); % Button needs to move to a random button_(1-9)
Essentially im trying to make a random button become the correct answer, but i keep getting an error message of Button_ is not a recodnized method or property.app.FirstNumber.Text = num2str(app.First_Number);
app.SecondNumber.Text = num2str(app.Second_Number);
app.Operator.Text = "+";
Answer = app.First_Number + app.Second_Number; % Operator needs to be able to change
n = randi(9);
app.Button_(n).Text = num2str(Answer); % Button needs to move to a random button_(1-9)
Essentially im trying to make a random button become the correct answer, but i keep getting an error message of Button_ is not a recodnized method or property. app.FirstNumber.Text = num2str(app.First_Number);
app.SecondNumber.Text = num2str(app.Second_Number);
app.Operator.Text = "+";
Answer = app.First_Number + app.Second_Number; % Operator needs to be able to change
n = randi(9);
app.Button_(n).Text = num2str(Answer); % Button needs to move to a random button_(1-9)
Essentially im trying to make a random button become the correct answer, but i keep getting an error message of Button_ is not a recodnized method or property. button, error MATLAB Answers — New Questions
Add-on Explorer shows a blank window
When I open the Add-on Explorer, it only shows a blank window. But if I move around the cursor, it does change its look (from ‘Normal Select’ to ‘Link Select’, as the picture shows) at some places.
<</matlabcentral/answers/uploaded_files/120430/problem.png>>
Besides, Add-on Manager shows the same problem, while the ‘Package App’ window works fine.
I tried reinstall MATLAB, but the problem remained.
(I’m using MATLAB R2018a on Windows 10 64-bit)
Recently I used an extended monitor, and I wonder if that’s the cause of the problem.
In case there is no solution, can I install a .mlpkginstall file manually?When I open the Add-on Explorer, it only shows a blank window. But if I move around the cursor, it does change its look (from ‘Normal Select’ to ‘Link Select’, as the picture shows) at some places.
<</matlabcentral/answers/uploaded_files/120430/problem.png>>
Besides, Add-on Manager shows the same problem, while the ‘Package App’ window works fine.
I tried reinstall MATLAB, but the problem remained.
(I’m using MATLAB R2018a on Windows 10 64-bit)
Recently I used an extended monitor, and I wonder if that’s the cause of the problem.
In case there is no solution, can I install a .mlpkginstall file manually? When I open the Add-on Explorer, it only shows a blank window. But if I move around the cursor, it does change its look (from ‘Normal Select’ to ‘Link Select’, as the picture shows) at some places.
<</matlabcentral/answers/uploaded_files/120430/problem.png>>
Besides, Add-on Manager shows the same problem, while the ‘Package App’ window works fine.
I tried reinstall MATLAB, but the problem remained.
(I’m using MATLAB R2018a on Windows 10 64-bit)
Recently I used an extended monitor, and I wonder if that’s the cause of the problem.
In case there is no solution, can I install a .mlpkginstall file manually? add-on explorer, add-on manager, blank window MATLAB Answers — New Questions
Temporarly suspended
On one of my email addresses I sometimes get this “Your account has been locked”
“We’ve detected some activity that violates our Microsoft Services Agreement and have locked your account.”
I can always log in fine but then I reply to an email and every so often it doesn’t send and asks me to press a link, which opens a blank page. But now I know I need to log out and try to log back in again and it says Your account has been locked. I need to put in a mobile number and it unlocks it. But lately it has been saying “Something went wrong” or the “Service under maintenance” now it’s not accepting my phone number and I tried another phone number and that didn’t work either. I hope by tomorrow it will work again.
There is no reason why the account should be getting suspended, none of my other Microsoft accounts have ever been suspended and with this account that does get suspended I am only talking to one person via email about every day things, I receive no spam emails and my password is very very strong random letters/numbers/special. I put my email in “Have I been pwned” but nothing there. I guess the only thing it could be is someone using my email address to send spam without having access to my account, just using it for the from field. But I never receive any postmaster undeliverable emails or anything. The person I email uses Protonmail, I once had my email come back to me as it was flagged as spam by protonmail but it was just too long in length, so I cut out some of the old replies and resent it OK.
I don’t know why this account keeps getting locked? I don’t use a VPN with it or anything.
On one of my email addresses I sometimes get this “Your account has been locked””We’ve detected some activity that violates our Microsoft Services Agreement and have locked your account.”I can always log in fine but then I reply to an email and every so often it doesn’t send and asks me to press a link, which opens a blank page. But now I know I need to log out and try to log back in again and it says Your account has been locked. I need to put in a mobile number and it unlocks it. But lately it has been saying “Something went wrong” or the “Service under maintenance” now it’s not accepting my phone number and I tried another phone number and that didn’t work either. I hope by tomorrow it will work again. There is no reason why the account should be getting suspended, none of my other Microsoft accounts have ever been suspended and with this account that does get suspended I am only talking to one person via email about every day things, I receive no spam emails and my password is very very strong random letters/numbers/special. I put my email in “Have I been pwned” but nothing there. I guess the only thing it could be is someone using my email address to send spam without having access to my account, just using it for the from field. But I never receive any postmaster undeliverable emails or anything. The person I email uses Protonmail, I once had my email come back to me as it was flagged as spam by protonmail but it was just too long in length, so I cut out some of the old replies and resent it OK. I don’t know why this account keeps getting locked? I don’t use a VPN with it or anything. Read More
Why are my error bars multicoloured with no line?
When I run this very simple code the graph plotted has multicoloured error bars and no joining line? Why.
figure(24)
x = 20:1:25;
y = [1.75 1.78 1.81 1.85 1.9 1.95];
err = 0.1;
errorbar(x,y,err)When I run this very simple code the graph plotted has multicoloured error bars and no joining line? Why.
figure(24)
x = 20:1:25;
y = [1.75 1.78 1.81 1.85 1.9 1.95];
err = 0.1;
errorbar(x,y,err) When I run this very simple code the graph plotted has multicoloured error bars and no joining line? Why.
figure(24)
x = 20:1:25;
y = [1.75 1.78 1.81 1.85 1.9 1.95];
err = 0.1;
errorbar(x,y,err) errorbar, graph, matlab MATLAB Answers — New Questions