Category: News
Why I Am Getting QuickBooks unrecoverable error when opening company file
I’m encountering a QuickBooks unrecoverable error every time I try to open my company file. It’s frustrating because I can’t access my financial data. What could be causing this issue, and how can I fix it? I’m using QuickBooks Desktop on Windows 10.
I’m encountering a QuickBooks unrecoverable error every time I try to open my company file. It’s frustrating because I can’t access my financial data. What could be causing this issue, and how can I fix it? I’m using QuickBooks Desktop on Windows 10. Read More
Why does my ode45 return a solution with the first values as zero despite I supplying non-zero initial conditions?
In the following code to simulate Pond volume and water temperature changes the code returns the solution (Y) with the first values of pondvolume and water temperature as 0,0. What could be the problem and ho can I solve it?
% Solar constant [MJ m-2 min-1]
Gsc = 0.08;
lat = 0; % Latitude
% Define simulation period
startdate = datetime(2023, 01, 01, ‘Format’, ‘uuuu-MM-dd’);
finishdate = datetime(2023, 06, 30, ‘Format’, ‘uuuu-MM-dd’);
tspans = (1:1:days(finishdate – startdate) + 1);
% Initialize arrays to store MM, doy, and dd values
MM_array_s = zeros(1, days(finishdate – startdate) + 1);
doy_array_s = zeros(1, days(finishdate – startdate) + 1);
dd_array_s = zeros(1, days(finishdate – startdate) + 1);
% Convert date to datetime object
for idx = 1:days(finishdate – startdate) + 1
current_date = startdate + days(idx – 1);
MM = month(current_date);
dd = day(current_date);
doy = days(current_date – datetime(year(current_date), 1, 1)) + 1;
% Store values in arrays
MM_array_s(idx) = MM;
doy_array_s(idx) = doy;
dd_array_s(idx) = dd;
end
CWR = 20; % To be read from Aquacrop
A_Irr = 200;
Irr_data = A_Irr * CWR / 1000*ones(length(tspans),1);
T_a_data = 25 *ones(length(tspans),1); % Later read from file/ it should be a data series
U2_data = 1.3*ones(length(tspans),1); % Read from file
RH_data = 0.75*ones(length(tspans),1); % Read from file
Y= zeros(length(tspans), 2);
Rho_net_values =zeros(length(tspans), 1);
for t=1:length(tspans)-1
T_a =T_a_data(t);
U2 = U2_data(t);
RH = RH_data(t);
Irr = Irr_data(t);
doy_array = doy_array_s(t);
% Convert latitude to radians
phi = deg2rad(lat);
% Calculate inverse relative distance Earth-Sun (dr)
dr = 1 + 0.033 * cos(2 .* pi .* doy_array ./ 365);
% Calculate solar declination (delta)
delta = 0.409 * sin(((2 * pi ./ 365)* doy_array) – 1.39);
% Calculate sunset hour angle (ws)
ws = acos(-tan(phi) * tan(delta));
% Calculate extraterrestrial radiation (Ra)
Ra = 1000*extraterrestrialRadiation(Gsc, dr, pi, phi, ws, delta);
% Display the result
% Constants and parameters
As = 0.06;
as = 0.25;
bs = 0.5;
%N = (2 / 15) .* acos(-tand(lat) .* tand(rad2deg(delta)));
N = (24/pi)*ws;
n = 11; %to be provided as a data series
Rs = (as + (bs .* (n ./ N))) .* Ra;
% Calculate net shortwave solar radiation (and photoperiod/24(phi_Light))
pi_light = N / 24;
Rho_SWR = Rs * (1 – As);
% Calculate rho_an (the difference between the incident and reflected components of long-wave radiation)
sigma = 4.896 * 10^(-6);
r = 0.36; % Change the value as necessary
C_c = 0.5; % Read from file/enter
epslon_a = 0.937 * 10^-5 * (273+T_a).^2 * (1 + 0.17 * C_c^2);
Rho_an = (1 – r) * epslon_a * sigma .* (273+T_a).^4;
% Calculate Water Surface Radiation (HO2_heat_Emm)
Initial_T_w = 27;
T_w = Initial_T_w; % To be simulated first
epslon_w = 0.97;
Rho_HO2_heat_Emm = epslon_w * sigma * (273+T_w).^4;
% Calculate Evaporative Heat Loss (Evap_HLoss)
bo = 368.61;
lambda = 311.02;
es = 25.37 * exp(17.62 – 5271 ./ (273+T_w));
ea = RH .* 25.37 .* exp(17.62 – 5271 ./ (273+T_a));
z = 1000; % Entered in the app
P = 760 / (10^(z / 19748.2));
T_wv = ((273+T_w) / (1.0 – (0.378 * es / P)));
T_av = ((273+T_a) / (1.0 – (0.378 * ea / P)));
Rho_Evap_HLoss = (es – ea) * (lambda * ((T_wv – T_av))^(1 / 3) + bo * U2);
% Calculate Conductive Heat Loss or Gain (Heat_cond)
Rho_Heat_cond = Rho_Evap_HLoss * 0.61 * 10^-3 * P * (((273+T_w) – (273+T_a)) / (es – ea));
Rho_net= Rho_SWR + Rho_an – Rho_HO2_heat_Emm – Rho_Evap_HLoss + Rho_Heat_cond;
% Define Rho_net as an anonymous function of time
%Computation of water balance components
A = 100;
pond_depth = 1;
V = A * pond_depth;
dmin = 0.8;
dcurr = 0.6;
dmax = pond_depth;
Ir = 12.923;
if Ir == 0
Qi = A * (dmin – dcurr) / tspans(2);
else
Qi = Ir / 100 * V;
end
Er = 10;
if Er == 0
Qe = A * (dcurr – dmax) / tspans(2);
else
Qe = Er / 100 * V;
end
pd = 10; % To be read from a file
PCP = A * pd / 1000;
Density_w = 1000;
Latent_vapw = 2260;
Evap = A * Rho_Evap_HLoss / (Density_w * Latent_vapw);
Sr = 5;
Seep = A * Sr / 1000;
% Initial conditions for the ODEs
T_win = 27; % Initial water temperature
T_wout = 27;
Cpw = 4.18;
% Define your ODEs
dVdt = @(t, Y) Qi + PCP – Qe + Evap + Seep – Irr;
dTdt = @(t, Y) Qi * T_win / Y(1) – Qe * T_wout / Y(1) + Rho_net / (Density_w * Cpw * pond_depth) – Y(2) / Y(1) * dVdt(t,Y);
% Combine the ODEs into a single function
dYdt = @(t, Y) [dVdt(t, Y); dTdt(t, Y)];
% Set initial conditions
Initial_conditions10 = [V; Initial_T_w]; % Ensure that this is a column vector
% Solve the system of ODEs using ode45
options = odeset(‘AbsTol’, 1e-6, ‘RelTol’, 1e-6);
[t_integrated10,Y_integrated]=ode45(@(t,Y) dYdt(t,Y),tspans(t:t+1),Initial_conditions10);
Y(t+1,:) = Y_integrated(end,:);
Initial_conditions10=Y(t+1,:);
Rho_net_values(t+1) = Rho_net;
end
disp([‘Extraterrestrial Radiation (Ra): ‘ num2str(Ra(1)) ‘ kJ/m^2/day’]); % Displaying only the first value
figure
plot(tspans(1):tspans(end), Rho_net_values(tspans(1):tspans(end)), ‘.’, ‘markersize’, 3), grid on,
title(‘rho_{net}’)
% Extract results
V_solution = Y(:, 1);
T_w_solution = Y(:, 2);
% Display or use the solutions as needed
disp(‘Volume (V) solution:’);
disp(V_solution);
disp(‘Water Temperature (T_w) solution:’);
disp(T_w_solution);
% Plot the results
figure;
subplot(2, 1, 1);
plot(tspans, V_solution); grid on
title(‘Volume (V) vs Time’);
xlabel(‘Time’);
ylabel(‘Volume (V)’);
subplot(2, 1, 2);
plot(tspans, T_w_solution); grid on
title(‘Water Temperature (T_w) vs Time’);
xlabel(‘Time’);
ylabel(‘Water Temperature (T_w)’);
function Ra = extraterrestrialRadiation(Gsc, dr, pi, phi, ws, delta)
% Calculate extraterrestrial radiation (Ra)
Ra = (24 * 60 / pi) * Gsc * dr .* (ws .* sin(phi) .* sin(delta) + cos(phi) .* cos(delta) .* sin(ws));
endIn the following code to simulate Pond volume and water temperature changes the code returns the solution (Y) with the first values of pondvolume and water temperature as 0,0. What could be the problem and ho can I solve it?
% Solar constant [MJ m-2 min-1]
Gsc = 0.08;
lat = 0; % Latitude
% Define simulation period
startdate = datetime(2023, 01, 01, ‘Format’, ‘uuuu-MM-dd’);
finishdate = datetime(2023, 06, 30, ‘Format’, ‘uuuu-MM-dd’);
tspans = (1:1:days(finishdate – startdate) + 1);
% Initialize arrays to store MM, doy, and dd values
MM_array_s = zeros(1, days(finishdate – startdate) + 1);
doy_array_s = zeros(1, days(finishdate – startdate) + 1);
dd_array_s = zeros(1, days(finishdate – startdate) + 1);
% Convert date to datetime object
for idx = 1:days(finishdate – startdate) + 1
current_date = startdate + days(idx – 1);
MM = month(current_date);
dd = day(current_date);
doy = days(current_date – datetime(year(current_date), 1, 1)) + 1;
% Store values in arrays
MM_array_s(idx) = MM;
doy_array_s(idx) = doy;
dd_array_s(idx) = dd;
end
CWR = 20; % To be read from Aquacrop
A_Irr = 200;
Irr_data = A_Irr * CWR / 1000*ones(length(tspans),1);
T_a_data = 25 *ones(length(tspans),1); % Later read from file/ it should be a data series
U2_data = 1.3*ones(length(tspans),1); % Read from file
RH_data = 0.75*ones(length(tspans),1); % Read from file
Y= zeros(length(tspans), 2);
Rho_net_values =zeros(length(tspans), 1);
for t=1:length(tspans)-1
T_a =T_a_data(t);
U2 = U2_data(t);
RH = RH_data(t);
Irr = Irr_data(t);
doy_array = doy_array_s(t);
% Convert latitude to radians
phi = deg2rad(lat);
% Calculate inverse relative distance Earth-Sun (dr)
dr = 1 + 0.033 * cos(2 .* pi .* doy_array ./ 365);
% Calculate solar declination (delta)
delta = 0.409 * sin(((2 * pi ./ 365)* doy_array) – 1.39);
% Calculate sunset hour angle (ws)
ws = acos(-tan(phi) * tan(delta));
% Calculate extraterrestrial radiation (Ra)
Ra = 1000*extraterrestrialRadiation(Gsc, dr, pi, phi, ws, delta);
% Display the result
% Constants and parameters
As = 0.06;
as = 0.25;
bs = 0.5;
%N = (2 / 15) .* acos(-tand(lat) .* tand(rad2deg(delta)));
N = (24/pi)*ws;
n = 11; %to be provided as a data series
Rs = (as + (bs .* (n ./ N))) .* Ra;
% Calculate net shortwave solar radiation (and photoperiod/24(phi_Light))
pi_light = N / 24;
Rho_SWR = Rs * (1 – As);
% Calculate rho_an (the difference between the incident and reflected components of long-wave radiation)
sigma = 4.896 * 10^(-6);
r = 0.36; % Change the value as necessary
C_c = 0.5; % Read from file/enter
epslon_a = 0.937 * 10^-5 * (273+T_a).^2 * (1 + 0.17 * C_c^2);
Rho_an = (1 – r) * epslon_a * sigma .* (273+T_a).^4;
% Calculate Water Surface Radiation (HO2_heat_Emm)
Initial_T_w = 27;
T_w = Initial_T_w; % To be simulated first
epslon_w = 0.97;
Rho_HO2_heat_Emm = epslon_w * sigma * (273+T_w).^4;
% Calculate Evaporative Heat Loss (Evap_HLoss)
bo = 368.61;
lambda = 311.02;
es = 25.37 * exp(17.62 – 5271 ./ (273+T_w));
ea = RH .* 25.37 .* exp(17.62 – 5271 ./ (273+T_a));
z = 1000; % Entered in the app
P = 760 / (10^(z / 19748.2));
T_wv = ((273+T_w) / (1.0 – (0.378 * es / P)));
T_av = ((273+T_a) / (1.0 – (0.378 * ea / P)));
Rho_Evap_HLoss = (es – ea) * (lambda * ((T_wv – T_av))^(1 / 3) + bo * U2);
% Calculate Conductive Heat Loss or Gain (Heat_cond)
Rho_Heat_cond = Rho_Evap_HLoss * 0.61 * 10^-3 * P * (((273+T_w) – (273+T_a)) / (es – ea));
Rho_net= Rho_SWR + Rho_an – Rho_HO2_heat_Emm – Rho_Evap_HLoss + Rho_Heat_cond;
% Define Rho_net as an anonymous function of time
%Computation of water balance components
A = 100;
pond_depth = 1;
V = A * pond_depth;
dmin = 0.8;
dcurr = 0.6;
dmax = pond_depth;
Ir = 12.923;
if Ir == 0
Qi = A * (dmin – dcurr) / tspans(2);
else
Qi = Ir / 100 * V;
end
Er = 10;
if Er == 0
Qe = A * (dcurr – dmax) / tspans(2);
else
Qe = Er / 100 * V;
end
pd = 10; % To be read from a file
PCP = A * pd / 1000;
Density_w = 1000;
Latent_vapw = 2260;
Evap = A * Rho_Evap_HLoss / (Density_w * Latent_vapw);
Sr = 5;
Seep = A * Sr / 1000;
% Initial conditions for the ODEs
T_win = 27; % Initial water temperature
T_wout = 27;
Cpw = 4.18;
% Define your ODEs
dVdt = @(t, Y) Qi + PCP – Qe + Evap + Seep – Irr;
dTdt = @(t, Y) Qi * T_win / Y(1) – Qe * T_wout / Y(1) + Rho_net / (Density_w * Cpw * pond_depth) – Y(2) / Y(1) * dVdt(t,Y);
% Combine the ODEs into a single function
dYdt = @(t, Y) [dVdt(t, Y); dTdt(t, Y)];
% Set initial conditions
Initial_conditions10 = [V; Initial_T_w]; % Ensure that this is a column vector
% Solve the system of ODEs using ode45
options = odeset(‘AbsTol’, 1e-6, ‘RelTol’, 1e-6);
[t_integrated10,Y_integrated]=ode45(@(t,Y) dYdt(t,Y),tspans(t:t+1),Initial_conditions10);
Y(t+1,:) = Y_integrated(end,:);
Initial_conditions10=Y(t+1,:);
Rho_net_values(t+1) = Rho_net;
end
disp([‘Extraterrestrial Radiation (Ra): ‘ num2str(Ra(1)) ‘ kJ/m^2/day’]); % Displaying only the first value
figure
plot(tspans(1):tspans(end), Rho_net_values(tspans(1):tspans(end)), ‘.’, ‘markersize’, 3), grid on,
title(‘rho_{net}’)
% Extract results
V_solution = Y(:, 1);
T_w_solution = Y(:, 2);
% Display or use the solutions as needed
disp(‘Volume (V) solution:’);
disp(V_solution);
disp(‘Water Temperature (T_w) solution:’);
disp(T_w_solution);
% Plot the results
figure;
subplot(2, 1, 1);
plot(tspans, V_solution); grid on
title(‘Volume (V) vs Time’);
xlabel(‘Time’);
ylabel(‘Volume (V)’);
subplot(2, 1, 2);
plot(tspans, T_w_solution); grid on
title(‘Water Temperature (T_w) vs Time’);
xlabel(‘Time’);
ylabel(‘Water Temperature (T_w)’);
function Ra = extraterrestrialRadiation(Gsc, dr, pi, phi, ws, delta)
% Calculate extraterrestrial radiation (Ra)
Ra = (24 * 60 / pi) * Gsc * dr .* (ws .* sin(phi) .* sin(delta) + cos(phi) .* cos(delta) .* sin(ws));
end In the following code to simulate Pond volume and water temperature changes the code returns the solution (Y) with the first values of pondvolume and water temperature as 0,0. What could be the problem and ho can I solve it?
% Solar constant [MJ m-2 min-1]
Gsc = 0.08;
lat = 0; % Latitude
% Define simulation period
startdate = datetime(2023, 01, 01, ‘Format’, ‘uuuu-MM-dd’);
finishdate = datetime(2023, 06, 30, ‘Format’, ‘uuuu-MM-dd’);
tspans = (1:1:days(finishdate – startdate) + 1);
% Initialize arrays to store MM, doy, and dd values
MM_array_s = zeros(1, days(finishdate – startdate) + 1);
doy_array_s = zeros(1, days(finishdate – startdate) + 1);
dd_array_s = zeros(1, days(finishdate – startdate) + 1);
% Convert date to datetime object
for idx = 1:days(finishdate – startdate) + 1
current_date = startdate + days(idx – 1);
MM = month(current_date);
dd = day(current_date);
doy = days(current_date – datetime(year(current_date), 1, 1)) + 1;
% Store values in arrays
MM_array_s(idx) = MM;
doy_array_s(idx) = doy;
dd_array_s(idx) = dd;
end
CWR = 20; % To be read from Aquacrop
A_Irr = 200;
Irr_data = A_Irr * CWR / 1000*ones(length(tspans),1);
T_a_data = 25 *ones(length(tspans),1); % Later read from file/ it should be a data series
U2_data = 1.3*ones(length(tspans),1); % Read from file
RH_data = 0.75*ones(length(tspans),1); % Read from file
Y= zeros(length(tspans), 2);
Rho_net_values =zeros(length(tspans), 1);
for t=1:length(tspans)-1
T_a =T_a_data(t);
U2 = U2_data(t);
RH = RH_data(t);
Irr = Irr_data(t);
doy_array = doy_array_s(t);
% Convert latitude to radians
phi = deg2rad(lat);
% Calculate inverse relative distance Earth-Sun (dr)
dr = 1 + 0.033 * cos(2 .* pi .* doy_array ./ 365);
% Calculate solar declination (delta)
delta = 0.409 * sin(((2 * pi ./ 365)* doy_array) – 1.39);
% Calculate sunset hour angle (ws)
ws = acos(-tan(phi) * tan(delta));
% Calculate extraterrestrial radiation (Ra)
Ra = 1000*extraterrestrialRadiation(Gsc, dr, pi, phi, ws, delta);
% Display the result
% Constants and parameters
As = 0.06;
as = 0.25;
bs = 0.5;
%N = (2 / 15) .* acos(-tand(lat) .* tand(rad2deg(delta)));
N = (24/pi)*ws;
n = 11; %to be provided as a data series
Rs = (as + (bs .* (n ./ N))) .* Ra;
% Calculate net shortwave solar radiation (and photoperiod/24(phi_Light))
pi_light = N / 24;
Rho_SWR = Rs * (1 – As);
% Calculate rho_an (the difference between the incident and reflected components of long-wave radiation)
sigma = 4.896 * 10^(-6);
r = 0.36; % Change the value as necessary
C_c = 0.5; % Read from file/enter
epslon_a = 0.937 * 10^-5 * (273+T_a).^2 * (1 + 0.17 * C_c^2);
Rho_an = (1 – r) * epslon_a * sigma .* (273+T_a).^4;
% Calculate Water Surface Radiation (HO2_heat_Emm)
Initial_T_w = 27;
T_w = Initial_T_w; % To be simulated first
epslon_w = 0.97;
Rho_HO2_heat_Emm = epslon_w * sigma * (273+T_w).^4;
% Calculate Evaporative Heat Loss (Evap_HLoss)
bo = 368.61;
lambda = 311.02;
es = 25.37 * exp(17.62 – 5271 ./ (273+T_w));
ea = RH .* 25.37 .* exp(17.62 – 5271 ./ (273+T_a));
z = 1000; % Entered in the app
P = 760 / (10^(z / 19748.2));
T_wv = ((273+T_w) / (1.0 – (0.378 * es / P)));
T_av = ((273+T_a) / (1.0 – (0.378 * ea / P)));
Rho_Evap_HLoss = (es – ea) * (lambda * ((T_wv – T_av))^(1 / 3) + bo * U2);
% Calculate Conductive Heat Loss or Gain (Heat_cond)
Rho_Heat_cond = Rho_Evap_HLoss * 0.61 * 10^-3 * P * (((273+T_w) – (273+T_a)) / (es – ea));
Rho_net= Rho_SWR + Rho_an – Rho_HO2_heat_Emm – Rho_Evap_HLoss + Rho_Heat_cond;
% Define Rho_net as an anonymous function of time
%Computation of water balance components
A = 100;
pond_depth = 1;
V = A * pond_depth;
dmin = 0.8;
dcurr = 0.6;
dmax = pond_depth;
Ir = 12.923;
if Ir == 0
Qi = A * (dmin – dcurr) / tspans(2);
else
Qi = Ir / 100 * V;
end
Er = 10;
if Er == 0
Qe = A * (dcurr – dmax) / tspans(2);
else
Qe = Er / 100 * V;
end
pd = 10; % To be read from a file
PCP = A * pd / 1000;
Density_w = 1000;
Latent_vapw = 2260;
Evap = A * Rho_Evap_HLoss / (Density_w * Latent_vapw);
Sr = 5;
Seep = A * Sr / 1000;
% Initial conditions for the ODEs
T_win = 27; % Initial water temperature
T_wout = 27;
Cpw = 4.18;
% Define your ODEs
dVdt = @(t, Y) Qi + PCP – Qe + Evap + Seep – Irr;
dTdt = @(t, Y) Qi * T_win / Y(1) – Qe * T_wout / Y(1) + Rho_net / (Density_w * Cpw * pond_depth) – Y(2) / Y(1) * dVdt(t,Y);
% Combine the ODEs into a single function
dYdt = @(t, Y) [dVdt(t, Y); dTdt(t, Y)];
% Set initial conditions
Initial_conditions10 = [V; Initial_T_w]; % Ensure that this is a column vector
% Solve the system of ODEs using ode45
options = odeset(‘AbsTol’, 1e-6, ‘RelTol’, 1e-6);
[t_integrated10,Y_integrated]=ode45(@(t,Y) dYdt(t,Y),tspans(t:t+1),Initial_conditions10);
Y(t+1,:) = Y_integrated(end,:);
Initial_conditions10=Y(t+1,:);
Rho_net_values(t+1) = Rho_net;
end
disp([‘Extraterrestrial Radiation (Ra): ‘ num2str(Ra(1)) ‘ kJ/m^2/day’]); % Displaying only the first value
figure
plot(tspans(1):tspans(end), Rho_net_values(tspans(1):tspans(end)), ‘.’, ‘markersize’, 3), grid on,
title(‘rho_{net}’)
% Extract results
V_solution = Y(:, 1);
T_w_solution = Y(:, 2);
% Display or use the solutions as needed
disp(‘Volume (V) solution:’);
disp(V_solution);
disp(‘Water Temperature (T_w) solution:’);
disp(T_w_solution);
% Plot the results
figure;
subplot(2, 1, 1);
plot(tspans, V_solution); grid on
title(‘Volume (V) vs Time’);
xlabel(‘Time’);
ylabel(‘Volume (V)’);
subplot(2, 1, 2);
plot(tspans, T_w_solution); grid on
title(‘Water Temperature (T_w) vs Time’);
xlabel(‘Time’);
ylabel(‘Water Temperature (T_w)’);
function Ra = extraterrestrialRadiation(Gsc, dr, pi, phi, ws, delta)
% Calculate extraterrestrial radiation (Ra)
Ra = (24 * 60 / pi) * Gsc * dr .* (ws .* sin(phi) .* sin(delta) + cos(phi) .* cos(delta) .* sin(ws));
end ode45 MATLAB Answers — New Questions
How to Fix QuickBooks Won’t Open Company File?
I’m encountering a frustrating issue with QuickBooks Won’t Open Company File. Every time I try, it just freezes or crashes. I’ve tried restarting my computer and reinstalling QuickBooks, but nothing seems to work. What could be causing this problem, and how can I fix it?
I’m encountering a frustrating issue with QuickBooks Won’t Open Company File. Every time I try, it just freezes or crashes. I’ve tried restarting my computer and reinstalling QuickBooks, but nothing seems to work. What could be causing this problem, and how can I fix it? Read More
3D U-Net Semantic Segmentation on custom CT dataset
Hello:
I am trying to apply the concept and sample code of the tutorial "3D brain tumor segmentation using deep learning" found on the below link –
https://in.mathworks.com/help/deeplearning/examples/segment-3d-brain-tumor-using-deep-learning.html
to a custom CT dataset in order to segment the lymph nodes. In my use case also there are 2 classes i.e background and lymph nodes. The current dataset has less data points (70 in total) and the split after preprocessing is 56 for train, 10 for validation and 4 for test.
I have modified the preprocessing code to accept the custom dataset and am cropping the ROI (i.e. the cubiod region around the abdomen which has the ground truth for the lumph nodes from the full CT Torso Volume)
I have visualized the patches that are extracted by the randomPatchExtractorDatastore and found that there is a class imbalance i.e. 4 out of 5 times the extracted patch has a Lymph node portion and 1 out of 5 times – it has the background portion. So, this may be causing an issue is what I am suspecting. (The dice accuracy suggest the same – as mentioed at the later part of this text)
In my case the volume image are 1 channel where as in the tutorial the volume image are 4 channel, so I have changed the input_layer to [64 64 64 1]
The code is working and there are no errors. The training process is also working but the accuracy starts at 100% and the loss starts at approx 1. So, this is unlike the graph shown in the tutorial where the accuracy gradually increase and reaches about 72 %. To train 1 EPOCH it takes like 75 mins on RTX 2080Ti so I tried training for 10 epochs as I was suspicious about the class imbalance of the randomly extracted patches.
I used PatchPerImage = 32 and the initial learning rate at 0.001 for the 1st 5 EPOCHs. The validation freq is 10.
Training Graph is as below –
The segmentation test shows that the model is just identifing the background and not learning to segment the lymph node. The Quantify Segmentation Accuracy section of the code suggest the same thing that the lymph nodes are not identified by the newtork.
Average Dice Score of the background across 4 test volumes = 0.99685 and
Average Dice Score of the lymph nodes across 4 test volumes = 0
Box plot of the Dice Score is as below –
I need some help and guidance on the following –
So, what can be the reason for this. Is class imbalance the reason or lack of training or few datapoint ?
How can i ensure that the patches in the randomPatchExtractorDatastore are equally balance accross both the classes i.e. Background and Lymph Nodes ?
Also, should i train the network for more epochs (like 50 or 100) before evaluating its efficacy ?
Is the limited data point the problem. I only have 175 total datapoints in the comprehensive dataset. So, should i use a higher patchPerImage value like 64 (instead of 16 as used in the tutorial)
Thanks for your guidance.Hello:
I am trying to apply the concept and sample code of the tutorial "3D brain tumor segmentation using deep learning" found on the below link –
https://in.mathworks.com/help/deeplearning/examples/segment-3d-brain-tumor-using-deep-learning.html
to a custom CT dataset in order to segment the lymph nodes. In my use case also there are 2 classes i.e background and lymph nodes. The current dataset has less data points (70 in total) and the split after preprocessing is 56 for train, 10 for validation and 4 for test.
I have modified the preprocessing code to accept the custom dataset and am cropping the ROI (i.e. the cubiod region around the abdomen which has the ground truth for the lumph nodes from the full CT Torso Volume)
I have visualized the patches that are extracted by the randomPatchExtractorDatastore and found that there is a class imbalance i.e. 4 out of 5 times the extracted patch has a Lymph node portion and 1 out of 5 times – it has the background portion. So, this may be causing an issue is what I am suspecting. (The dice accuracy suggest the same – as mentioed at the later part of this text)
In my case the volume image are 1 channel where as in the tutorial the volume image are 4 channel, so I have changed the input_layer to [64 64 64 1]
The code is working and there are no errors. The training process is also working but the accuracy starts at 100% and the loss starts at approx 1. So, this is unlike the graph shown in the tutorial where the accuracy gradually increase and reaches about 72 %. To train 1 EPOCH it takes like 75 mins on RTX 2080Ti so I tried training for 10 epochs as I was suspicious about the class imbalance of the randomly extracted patches.
I used PatchPerImage = 32 and the initial learning rate at 0.001 for the 1st 5 EPOCHs. The validation freq is 10.
Training Graph is as below –
The segmentation test shows that the model is just identifing the background and not learning to segment the lymph node. The Quantify Segmentation Accuracy section of the code suggest the same thing that the lymph nodes are not identified by the newtork.
Average Dice Score of the background across 4 test volumes = 0.99685 and
Average Dice Score of the lymph nodes across 4 test volumes = 0
Box plot of the Dice Score is as below –
I need some help and guidance on the following –
So, what can be the reason for this. Is class imbalance the reason or lack of training or few datapoint ?
How can i ensure that the patches in the randomPatchExtractorDatastore are equally balance accross both the classes i.e. Background and Lymph Nodes ?
Also, should i train the network for more epochs (like 50 or 100) before evaluating its efficacy ?
Is the limited data point the problem. I only have 175 total datapoints in the comprehensive dataset. So, should i use a higher patchPerImage value like 64 (instead of 16 as used in the tutorial)
Thanks for your guidance. Hello:
I am trying to apply the concept and sample code of the tutorial "3D brain tumor segmentation using deep learning" found on the below link –
https://in.mathworks.com/help/deeplearning/examples/segment-3d-brain-tumor-using-deep-learning.html
to a custom CT dataset in order to segment the lymph nodes. In my use case also there are 2 classes i.e background and lymph nodes. The current dataset has less data points (70 in total) and the split after preprocessing is 56 for train, 10 for validation and 4 for test.
I have modified the preprocessing code to accept the custom dataset and am cropping the ROI (i.e. the cubiod region around the abdomen which has the ground truth for the lumph nodes from the full CT Torso Volume)
I have visualized the patches that are extracted by the randomPatchExtractorDatastore and found that there is a class imbalance i.e. 4 out of 5 times the extracted patch has a Lymph node portion and 1 out of 5 times – it has the background portion. So, this may be causing an issue is what I am suspecting. (The dice accuracy suggest the same – as mentioed at the later part of this text)
In my case the volume image are 1 channel where as in the tutorial the volume image are 4 channel, so I have changed the input_layer to [64 64 64 1]
The code is working and there are no errors. The training process is also working but the accuracy starts at 100% and the loss starts at approx 1. So, this is unlike the graph shown in the tutorial where the accuracy gradually increase and reaches about 72 %. To train 1 EPOCH it takes like 75 mins on RTX 2080Ti so I tried training for 10 epochs as I was suspicious about the class imbalance of the randomly extracted patches.
I used PatchPerImage = 32 and the initial learning rate at 0.001 for the 1st 5 EPOCHs. The validation freq is 10.
Training Graph is as below –
The segmentation test shows that the model is just identifing the background and not learning to segment the lymph node. The Quantify Segmentation Accuracy section of the code suggest the same thing that the lymph nodes are not identified by the newtork.
Average Dice Score of the background across 4 test volumes = 0.99685 and
Average Dice Score of the lymph nodes across 4 test volumes = 0
Box plot of the Dice Score is as below –
I need some help and guidance on the following –
So, what can be the reason for this. Is class imbalance the reason or lack of training or few datapoint ?
How can i ensure that the patches in the randomPatchExtractorDatastore are equally balance accross both the classes i.e. Background and Lymph Nodes ?
Also, should i train the network for more epochs (like 50 or 100) before evaluating its efficacy ?
Is the limited data point the problem. I only have 175 total datapoints in the comprehensive dataset. So, should i use a higher patchPerImage value like 64 (instead of 16 as used in the tutorial)
Thanks for your guidance. 3d, unet, semantic segmentation, deep learning, custom dataset, own dataset, class imbalance, randompatchextractordatastore, random patch extractor datastore MATLAB Answers — New Questions
Loaded quaternion but still cannot find slerp
After installing the Sensor Fusion toolbox, Matlab reopens. I used the following code:
q1 = quaternion([75,-20,-10],"eulerd","ZYZ","frame");
q2 = quaternion([-45,20,30],"eulerd","ZYZ","frame");
T = 0.5;
b = slerp(q1,q2,T);
But MATLAB returns error:
Unrecognized function or variable ‘slerp’.
When I look it up, the only posts say quaternion must be loaded, and it is indeed loaded since I can see Quaternion objects for q1 and q2. Then, I also installed navigation toolbox, but the problem remains.After installing the Sensor Fusion toolbox, Matlab reopens. I used the following code:
q1 = quaternion([75,-20,-10],"eulerd","ZYZ","frame");
q2 = quaternion([-45,20,30],"eulerd","ZYZ","frame");
T = 0.5;
b = slerp(q1,q2,T);
But MATLAB returns error:
Unrecognized function or variable ‘slerp’.
When I look it up, the only posts say quaternion must be loaded, and it is indeed loaded since I can see Quaternion objects for q1 and q2. Then, I also installed navigation toolbox, but the problem remains. After installing the Sensor Fusion toolbox, Matlab reopens. I used the following code:
q1 = quaternion([75,-20,-10],"eulerd","ZYZ","frame");
q2 = quaternion([-45,20,30],"eulerd","ZYZ","frame");
T = 0.5;
b = slerp(q1,q2,T);
But MATLAB returns error:
Unrecognized function or variable ‘slerp’.
When I look it up, the only posts say quaternion must be loaded, and it is indeed loaded since I can see Quaternion objects for q1 and q2. Then, I also installed navigation toolbox, but the problem remains. toolbox, installation, slerp MATLAB Answers — New Questions
Opportunity Details and Summary not showing up in Outlook
Hi ,
I have configured the sales copilot add-in but the only feature is see is linking and creating contact in Dynamics 365.
Email drafting, opportunity summary and other features are not coming up in Outlook add-in
Hi , I have configured the sales copilot add-in but the only feature is see is linking and creating contact in Dynamics 365. Email drafting, opportunity summary and other features are not coming up in Outlook add-in Read More
Person or Group column not allowing me to select options
Hi,
I have a Person or Group column on SharePoint. When trying to select some of the items they are coming up when I search for them but when I select them, it comes up with the message saying “We couldn’t find an exact match”. Does anyone know why this might be occurring and how I can get round it? Any help would be really appreciated.
Thanks,
Lucy
Hi, I have a Person or Group column on SharePoint. When trying to select some of the items they are coming up when I search for them but when I select them, it comes up with the message saying “We couldn’t find an exact match”. Does anyone know why this might be occurring and how I can get round it? Any help would be really appreciated. Thanks,Lucy Read More
Bulk Checkin in Sharepoint
I want to create a manually triggered flow in Power Automate to check in all files checked out by me in SharePoint, which are located in different folders. Is it possible to have such a flow?
I want to create a manually triggered flow in Power Automate to check in all files checked out by me in SharePoint, which are located in different folders. Is it possible to have such a flow? Read More
Why is My QuickBooks desktop 2022 running slow After latest Update?
I’m experiencing significant slowdowns with QuickBooks Desktop 2022, making it difficult to manage my finances efficiently. It’s frustrating as it disrupts my workflow and impacts productivity. Could you provide guidance on troubleshooting steps to address this issue? I need solutions that can help optimize the performance of QuickBooks and restore its speed to ensure seamless operation.
I’m experiencing significant slowdowns with QuickBooks Desktop 2022, making it difficult to manage my finances efficiently. It’s frustrating as it disrupts my workflow and impacts productivity. Could you provide guidance on troubleshooting steps to address this issue? I need solutions that can help optimize the performance of QuickBooks and restore its speed to ensure seamless operation. Read More
Disable link preview image
When copy-paste a link into a Microsoft Teams Chat window an extra large thumbnail (image preview) is inserted too.
I can close this thumbnail (thumb).
But it is very annoying to close each Web Link Preview Image or Link Thumbnail.
I do work a lot with links and references to other documents, I do not need to Microsoft Team to show a generic thumb towards those sites.
Skype has this feature of: Disable link preview image, where is it in Teams?
When copy-paste a link into a Microsoft Teams Chat window an extra large thumbnail (image preview) is inserted too.I can close this thumbnail (thumb). But it is very annoying to close each Web Link Preview Image or Link Thumbnail. I do work a lot with links and references to other documents, I do not need to Microsoft Team to show a generic thumb towards those sites. Skype has this feature of: Disable link preview image, where is it in Teams? Read More
New to MS Project – Changing start dates not being picked up.
This might be an easy question – I am new to MS Project. In a recent training group when changing the Start Date for a project in Project Information, the new start date is not picked up on the task list and Gantt chart? In a group of four people, my system was the only one ignoring the new start dates.
Our training facilitator had never experienced this before and was unsure how to help….
This might be an easy question – I am new to MS Project. In a recent training group when changing the Start Date for a project in Project Information, the new start date is not picked up on the task list and Gantt chart? In a group of four people, my system was the only one ignoring the new start dates. Our training facilitator had never experienced this before and was unsure how to help…. Read More
What To Do When Stuck In QuickBooks Enterprise 2022 Running Slow Issue?
Help! My QuickBooks Enterprise 2022 is running painfully slow. It’s affecting my productivity and causing frustration. What could be causing this sluggishness, and how can I resolve it quickly?
Help! My QuickBooks Enterprise 2022 is running painfully slow. It’s affecting my productivity and causing frustration. What could be causing this sluggishness, and how can I resolve it quickly? Read More
Teams for VDI – Screenshots Meetings
Any details on when being able to screenshot meetings/shared screens will be available for Teams for VDI / Windows 365? Currently have to use local desktop which is beyond annoying
https://learn.microsoft.com/en-us/azure/virtual-desktop/troubleshoot-teams#calls-and-meetings
Any details on when being able to screenshot meetings/shared screens will be available for Teams for VDI / Windows 365? Currently have to use local desktop which is beyond annoyinghttps://learn.microsoft.com/en-us/azure/virtual-desktop/troubleshoot-teams#calls-and-meetings Read More
How to Fix QuickBooks Desktop has Stopped Working after latest updates?
I recently updated my QuickBooks Desktop software, but now it keeps crashing with a ‘QuickBooks Desktop has Stopped Working’ message. I’m unable to access my financial data or complete any tasks. What could be causing this issue, and how can I resolve it quickly?
I recently updated my QuickBooks Desktop software, but now it keeps crashing with a ‘QuickBooks Desktop has Stopped Working’ message. I’m unable to access my financial data or complete any tasks. What could be causing this issue, and how can I resolve it quickly? Read More
Teams Adds Slash Commands to the Message Compose Box
Teams has added the ability to use slash commands (shortcuts) to the message compose box. Although the feature seems useful, I wonder about its potential usage. The fact is that people are pretty accustomed to how they compose message text and other options are available to add Loop or code blocks or set their online status, so why would they use the slash commands in the message compose box?
https://office365itpros.com/2024/05/16/teams-slash-commands/
Teams has added the ability to use slash commands (shortcuts) to the message compose box. Although the feature seems useful, I wonder about its potential usage. The fact is that people are pretty accustomed to how they compose message text and other options are available to add Loop or code blocks or set their online status, so why would they use the slash commands in the message compose box?
https://office365itpros.com/2024/05/16/teams-slash-commands/ Read More
Lesson Learned #488: A severe error occurred on the current command. Operation cancelled by user.
Today, I worked on a service request that our customer got this error message: “A severe error occurred on the current command. The results, if any, should be discarded.rnOperation cancelled by user.“. This cancellation happens before the CommandTimeout duration is met in the SQL Client application, normally, asynchronous database operations that the CancellationToken setting is reached. Following I would like to share with you my lessons learned.
The customer application was running asynchronous database operations and two primary types of cancellations can occur:
A CommandTimeout cancellation typically indicates that the query is taking longer than expected, possibly due to database performance issues or query complexity. On the other hand, a cancellation triggered by a CancellationToken may be due to application logic deciding to abort the operation, often in response to user actions or to maintain application responsiveness.
Error Handling and Connection Resilience:
Errors during query execution, such as syntax errors or references to non-existent database objects, necessitate immediate attention and are not suitable for retry logic. The application must distinguish these errors from transient faults, where retry logic with exponential backoff can be beneficial. Moreover, connection resilience is paramount, and implementing a retry mechanism for establishing database connections ensures that transient network issues do not disrupt application functionality.
Measuring Query Execution Time:
Gauging the execution time of queries is instrumental in identifying performance bottlenecks and optimizing database interactions. The example code demonstrates using a Stopwatch to measure and log the duration of query execution, providing valuable insights for performance tuning.
Adaptive Timeout Strategy:
The code snippet illustrates an adaptive approach to handling query cancellations due to timeouts. By dynamically adjusting the CommandTimeout and CancellationToken timeout values upon encountering a timeout-related cancellation, the application attempts to afford the query additional time to complete in subsequent retries, where feasible.
Tests and Results:
I conducted a series of tests to understand the behavior under different scenarios and the corresponding exceptions thrown by the .NET application. Here are the findings:
Cancellation Prior to Query Execution:
Scenario: The cancellation occurs before the query gets a chance to execute, potentially due to reasons such as application overload or a preemptive cancellation policy.
Exception Thrown: TaskCanceledException
Internal Error Message: “A task was canceled.”
Explanation: This exception is thrown when the operation is canceled through a CancellationToken, indicating that the asynchronous task was canceled before it could begin executing the SQL command. It reflects the application’s decision to abort the operation, often to maintain responsiveness or manage workload.
Cancellation Due to CommandTimeout:
Scenario: The cancellation is triggered by reaching the CommandTimeout of SqlCommand, indicating that the query’s execution duration exceeded the specified timeout limit.
Exception Thrown: SqlException with an error number of -2
Internal Error Message: “Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.”
Explanation: This exception occurs when the query execution time surpasses the CommandTimeout value, prompting SQL Server to halt the operation. It suggests that the query may be too complex, the server is under heavy load, or there are network latency issues.
Cancellation Before CommandTimeout is Reached:
Scenario: The cancellation happens before the CommandTimeout duration is met, not due to the CommandTimeout setting but possibly due to an explicit cancellation request or an unforeseen severe error during execution.
Exception Thrown: General Exception (or a more specific exception depending on the context)
Internal Error Message: “A severe error occurred on the current command. The results, if any, should be discarded.rnOperation cancelled by user.”
Explanation: This exception indicates an abrupt termination of the command, potentially due to an external cancellation signal or a critical error that necessitates aborting the command. Unlike the TaskCanceledException, this may not always originate from a CancellationToken and can indicate more severe issues with the command or the connection.
using System;
using System.Diagnostics;
using System.Data;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Data.SqlClient;
namespace CancellationToken
{
class Program
{
private static string ConnectionString = “Server=tcp:servername.database.windows.net,1433;User Id=username;Password=pwd!;Initial Catalog=dbname;Persist Security Info=False;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;Pooling=true;Max Pool size=100;Min Pool Size=1;ConnectRetryCount=3;ConnectRetryInterval=10;Application Name=ConnTest”;
private static string Query = “waitfor delay ’00:00:20′”;
static async Task Main(string[] args)
{
SqlConnection connection = await EstablishConnectionWithRetriesAsync(3, 2000);
if (connection == null)
{
Console.WriteLine(“Failed to establish a database connection.”);
return;
}
await ExecuteQueryWithRetriesAsync(connection, 5, 1000, 10000,15);
connection.Close();
}
private static async Task<SqlConnection> EstablishConnectionWithRetriesAsync(int maxRetries, int initialDelay)
{
SqlConnection connection = null;
int retryDelay = initialDelay;
for (int attempt = 1; attempt <= maxRetries; attempt++)
{
try
{
connection = new SqlConnection(ConnectionString);
await connection.OpenAsync();
Console.WriteLine(“Connection established successfully.”);
return connection;
}
catch (SqlException ex)
{
Console.WriteLine($”Failed to establish connection: {ex.Message}. Attempt {attempt} of {maxRetries}.”);
if (attempt == maxRetries)
{
Console.WriteLine(“Maximum number of connection attempts reached. The application will terminate.”);
return null;
}
Console.WriteLine($”Waiting {retryDelay / 1000} seconds before the next connection attempt…”);
await Task.Delay(retryDelay);
retryDelay *= 2;
}
}
return null;
}
private static async Task ExecuteQueryWithRetriesAsync(SqlConnection connection, int maxRetries, int initialDelay, int CancellationTokenTimeout, int CommandSQLTimeout)
{
int retryDelay = initialDelay;
for (int attempt = 1; attempt <= maxRetries; attempt++)
{
using (var cts = new CancellationTokenSource())
{
cts.CancelAfter(CancellationTokenTimeout*attempt); // Set CancellationToken timeout to 10 seconds
try
{
using (SqlCommand command = new SqlCommand(Query, connection))
{
command.CommandTimeout = CommandSQLTimeout*attempt; // Set CommandTimeout to 15 seconds
Stopwatch stopwatch = Stopwatch.StartNew();
await command.ExecuteNonQueryAsync(cts.Token);
stopwatch.Stop();
Console.WriteLine($”Query executed successfully in {stopwatch.ElapsedMilliseconds} milliseconds.”);
return;
}
}
catch (TaskCanceledException)
{
Console.WriteLine($”Query execution was canceled by the CancellationToken. Attempt {attempt} of {maxRetries}.”);
}
catch (SqlException ex) when (ex.Number == -2)
{
Console.WriteLine($”Query execution was canceled due to CommandTimeout. Attempt {attempt} of {maxRetries}.”);
}
catch (SqlException ex) when (ex.Number == 207 || ex.Number == 208 || ex.Number == 2627)
{
Console.WriteLine($”SQL error preventing retries: {ex.Message}”);
return;
}
catch (Exception ex)
{
Console.WriteLine($”An exception occurred: {ex.Message}”);
return;
}
Console.WriteLine($”Waiting {retryDelay / 1000} seconds before the next query attempt…”);
await Task.Delay(retryDelay);
retryDelay *= 2;
}
}
}
}
}
Disclaimer:
The example code provided in this article is intended for educational and informational purposes only. It is strongly recommended to test this code in a controlled and secure environment before implementing it in any production system. The user assumes full responsibility for any risks, damages, or losses incurred by using the code. The author and the blog are not liable for any issues that may arise from the use or misuse of the provided code.
Microsoft Tech Community – Latest Blogs –Read More
my netcdf.open can not open the url I want ;help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
error:
…
READDAP_New: did not work at 98 try: lets try again.
READDAP_New: did not work at 99 try: lets try again.
READDAP_New: did not work at 100 try: lets try again.
READDAP_New: did not work at 101 try: lets try again.
错误使用 readdap (line 45)
READDAP_New: repeated failures after 100 queries
出错 get_ECCO_subgrid (line 45)
lon=readdap(path,’LONGITUDE_T’,[]);
出错 download_ECCO (line 65)
get_ECCO_subgrid(fname,lonmin,lonmax,latmin,latmax);
出错 make_OGCM (line 122)
eval([‘download_’,OGCM,'(Ymin,Ymax,Mmin,Mmax,lonmin,lonmax,latmin,latmax,’,…
readdap (line 45):
if nargin <2
disp([‘not engough input argments’]);
elseif nargin <3 || isempty(query)
disp([‘READDAP_New: Extract : ‘, varname])
while isempty(data)
if ntry>nmax
error([‘READDAP_New: repeated failures after ‘,num2str(nmax),’ queries’])
end
ntry=ntry+1;
try
ncid = netcdf.open ( url,’NOWRITE’ );
varid = netcdf.inqVarID(ncid,varname);
data = netcdf.getVar(ncid,varid,’double’);
netcdf.close (ncid);
catch
data=[];
disp([‘READDAP_New: did not work at ‘,num2str(ntry),’ try: lets try again.’])
end
end
else
…….
the problem:error:
…
READDAP_New: did not work at 98 try: lets try again.
READDAP_New: did not work at 99 try: lets try again.
READDAP_New: did not work at 100 try: lets try again.
READDAP_New: did not work at 101 try: lets try again.
错误使用 readdap (line 45)
READDAP_New: repeated failures after 100 queries
出错 get_ECCO_subgrid (line 45)
lon=readdap(path,’LONGITUDE_T’,[]);
出错 download_ECCO (line 65)
get_ECCO_subgrid(fname,lonmin,lonmax,latmin,latmax);
出错 make_OGCM (line 122)
eval([‘download_’,OGCM,'(Ymin,Ymax,Mmin,Mmax,lonmin,lonmax,latmin,latmax,’,…
readdap (line 45):
if nargin <2
disp([‘not engough input argments’]);
elseif nargin <3 || isempty(query)
disp([‘READDAP_New: Extract : ‘, varname])
while isempty(data)
if ntry>nmax
error([‘READDAP_New: repeated failures after ‘,num2str(nmax),’ queries’])
end
ntry=ntry+1;
try
ncid = netcdf.open ( url,’NOWRITE’ );
varid = netcdf.inqVarID(ncid,varname);
data = netcdf.getVar(ncid,varid,’double’);
netcdf.close (ncid);
catch
data=[];
disp([‘READDAP_New: did not work at ‘,num2str(ntry),’ try: lets try again.’])
end
end
else
…….
the problem: error:
…
READDAP_New: did not work at 98 try: lets try again.
READDAP_New: did not work at 99 try: lets try again.
READDAP_New: did not work at 100 try: lets try again.
READDAP_New: did not work at 101 try: lets try again.
错误使用 readdap (line 45)
READDAP_New: repeated failures after 100 queries
出错 get_ECCO_subgrid (line 45)
lon=readdap(path,’LONGITUDE_T’,[]);
出错 download_ECCO (line 65)
get_ECCO_subgrid(fname,lonmin,lonmax,latmin,latmax);
出错 make_OGCM (line 122)
eval([‘download_’,OGCM,'(Ymin,Ymax,Mmin,Mmax,lonmin,lonmax,latmin,latmax,’,…
readdap (line 45):
if nargin <2
disp([‘not engough input argments’]);
elseif nargin <3 || isempty(query)
disp([‘READDAP_New: Extract : ‘, varname])
while isempty(data)
if ntry>nmax
error([‘READDAP_New: repeated failures after ‘,num2str(nmax),’ queries’])
end
ntry=ntry+1;
try
ncid = netcdf.open ( url,’NOWRITE’ );
varid = netcdf.inqVarID(ncid,varname);
data = netcdf.getVar(ncid,varid,’double’);
netcdf.close (ncid);
catch
data=[];
disp([‘READDAP_New: did not work at ‘,num2str(ntry),’ try: lets try again.’])
end
end
else
…….
the problem: netcdf.open MATLAB Answers — New Questions
Not able to use ‘urROSNode’ or ‘universalrobot’ API due to ROS action server unavailable.
Facing following error message while setting up ROS VM and using ‘universalrobot’ API from ‘Robotics System Toolbox Support Package for Universal Robots UR Series Manipulators’.
Error:
Error using codertarget.manipROSInterface.manipulatorROSInterface/initializeROSActionClient (line 359)
The ROS action server "/pos_joint_traj_controller/follow_joint_trajectory" is currently unavailable.Facing following error message while setting up ROS VM and using ‘universalrobot’ API from ‘Robotics System Toolbox Support Package for Universal Robots UR Series Manipulators’.
Error:
Error using codertarget.manipROSInterface.manipulatorROSInterface/initializeROSActionClient (line 359)
The ROS action server "/pos_joint_traj_controller/follow_joint_trajectory" is currently unavailable. Facing following error message while setting up ROS VM and using ‘universalrobot’ API from ‘Robotics System Toolbox Support Package for Universal Robots UR Series Manipulators’.
Error:
Error using codertarget.manipROSInterface.manipulatorROSInterface/initializeROSActionClient (line 359)
The ROS action server "/pos_joint_traj_controller/follow_joint_trajectory" is currently unavailable. #universalrobot, #urrosnode MATLAB Answers — New Questions
MATLAB third package Simulink for Arduino take too long time ?
MATLAB third package Simulink for Arduino take too long time ? what can i do ?MATLAB third package Simulink for Arduino take too long time ? what can i do ? MATLAB third package Simulink for Arduino take too long time ? what can i do ? matlab support, simulink arduino MATLAB Answers — New Questions
I want to classify linear, parabolic and exponential functions using machine learning.
I need to use machine learning for this project. 10 x and y values of the functions will be given and using these values, it will be understood whether the other functions to be written are linear parabolic or exponential functions. I need help with where to start and where to go after. Not sure what to do.I need to use machine learning for this project. 10 x and y values of the functions will be given and using these values, it will be understood whether the other functions to be written are linear parabolic or exponential functions. I need help with where to start and where to go after. Not sure what to do. I need to use machine learning for this project. 10 x and y values of the functions will be given and using these values, it will be understood whether the other functions to be written are linear parabolic or exponential functions. I need help with where to start and where to go after. Not sure what to do. machine learning MATLAB Answers — New Questions