Category: News
Empty figure window when plotted from Python
Hi,
I tried to plot a MATLAB figure using a MATLAB funciton from Python script.
I used the following MATLAB funtion (plot_test.m) to draw a simple line graph:
function h = plot_test()
clear; close all;
h = plot(1:10, 2:11, ‘o:’)
grid on;
end
I called the MATLAB funciton from Python (plot_test.py):
import matlab.engine
eng = matlab.engine.start_matlab()
h = eng.plot_test()
input("Press Enter to quit…")
eng.quit()
The MATLAB figure window was opened. But it was empty.
Could you help me?
The system environments are as follows:
MATLAB: R2023b
Python: 3.11.8
OS: Fedora Linux 6.8.6-100.fc38.x86_64
Shell: bash 5.2.26
Resolution: 1680×1050
Gnome:44.1
I suspect that the resolution might have some impact on this result because when I run the same code in another Fedora machine with 1920×1080 monitor, it shows the graph.Hi,
I tried to plot a MATLAB figure using a MATLAB funciton from Python script.
I used the following MATLAB funtion (plot_test.m) to draw a simple line graph:
function h = plot_test()
clear; close all;
h = plot(1:10, 2:11, ‘o:’)
grid on;
end
I called the MATLAB funciton from Python (plot_test.py):
import matlab.engine
eng = matlab.engine.start_matlab()
h = eng.plot_test()
input("Press Enter to quit…")
eng.quit()
The MATLAB figure window was opened. But it was empty.
Could you help me?
The system environments are as follows:
MATLAB: R2023b
Python: 3.11.8
OS: Fedora Linux 6.8.6-100.fc38.x86_64
Shell: bash 5.2.26
Resolution: 1680×1050
Gnome:44.1
I suspect that the resolution might have some impact on this result because when I run the same code in another Fedora machine with 1920×1080 monitor, it shows the graph. Hi,
I tried to plot a MATLAB figure using a MATLAB funciton from Python script.
I used the following MATLAB funtion (plot_test.m) to draw a simple line graph:
function h = plot_test()
clear; close all;
h = plot(1:10, 2:11, ‘o:’)
grid on;
end
I called the MATLAB funciton from Python (plot_test.py):
import matlab.engine
eng = matlab.engine.start_matlab()
h = eng.plot_test()
input("Press Enter to quit…")
eng.quit()
The MATLAB figure window was opened. But it was empty.
Could you help me?
The system environments are as follows:
MATLAB: R2023b
Python: 3.11.8
OS: Fedora Linux 6.8.6-100.fc38.x86_64
Shell: bash 5.2.26
Resolution: 1680×1050
Gnome:44.1
I suspect that the resolution might have some impact on this result because when I run the same code in another Fedora machine with 1920×1080 monitor, it shows the graph. python, figure MATLAB Answers — New Questions
Entra ID protection – Integration into Defender XDR
Hi everyone,
is it possible to integrate this into Defender? Or is there a hunt or Cloud App Policy that will trigger an Alert in Defender Portal?
BR
Stephan
Hi everyone, is it possible to integrate this into Defender? Or is there a hunt or Cloud App Policy that will trigger an Alert in Defender Portal? BRStephan Read More
Coding suggestion with my personal GPT using Open AI
We have created our private GPT using our documents in Azure Open AI and Open AI Search. Now I would like it should search my documents (which it is doing) but I would also like to it should write down code in any language as per my prompt. Do you think it will be still Private to the company or for code it is going to the internet?
We have created our private GPT using our documents in Azure Open AI and Open AI Search. Now I would like it should search my documents (which it is doing) but I would also like to it should write down code in any language as per my prompt. Do you think it will be still Private to the company or for code it is going to the internet? Read More
How to prevent variable from changing to rtu during code generation
input variable = ABC
When code generation is performed, ABC is declared rtu.
If declared rtu, ABC is declared as external input, and ABC is not generated in the A2L file.
So, I would like to know how ABC is designated in Global format, not rtu.input variable = ABC
When code generation is performed, ABC is declared rtu.
If declared rtu, ABC is declared as external input, and ABC is not generated in the A2L file.
So, I would like to know how ABC is designated in Global format, not rtu. input variable = ABC
When code generation is performed, ABC is declared rtu.
If declared rtu, ABC is declared as external input, and ABC is not generated in the A2L file.
So, I would like to know how ABC is designated in Global format, not rtu. code generation, simulink, a2l, rtu MATLAB Answers — New Questions
MATLAB Workspace Variable Editor not loading
Hello,
My MATLAB r2024a for some reason is refusing to open my variable editor. It was working fine until recently and just gave up on opening my variable editor. Whenever i double click a variable in the workspace it takes me to this page (see photo) and nothing happens. I am unsure where to go as I have tried re-installing MATLAB to no avail. Have i reinstalled it properly? Is it something related to my account? Any help would be amazing.Hello,
My MATLAB r2024a for some reason is refusing to open my variable editor. It was working fine until recently and just gave up on opening my variable editor. Whenever i double click a variable in the workspace it takes me to this page (see photo) and nothing happens. I am unsure where to go as I have tried re-installing MATLAB to no avail. Have i reinstalled it properly? Is it something related to my account? Any help would be amazing. Hello,
My MATLAB r2024a for some reason is refusing to open my variable editor. It was working fine until recently and just gave up on opening my variable editor. Whenever i double click a variable in the workspace it takes me to this page (see photo) and nothing happens. I am unsure where to go as I have tried re-installing MATLAB to no avail. Have i reinstalled it properly? Is it something related to my account? Any help would be amazing. workspace, variable, variables MATLAB Answers — New Questions
Could anyone explain the example provided in thr help for understanding the use of fft?
I am trying to understand the using of fft in matlab, regarding the provided example in help I could not figure out what the f is and how it is defined as f = Fs*(0:(L/2))/L. Is there anybody who could explain why the f is defined as f = Fs*(0:(L/2))/L?
Fs = 1000; % Sampling frequency
T = 1/Fs; % Sampling period
L = 1500; % Length of signal
t = (0:L-1)*T; % Time vector
S = 0.7*sin(2*pi*50*t) + sin(2*pi*120*t);
X = S + 2*randn(size(t));
plot(1000*t(1:50),X(1:50))
title(‘Signal Corrupted with Zero-Mean Random Noise’)
xlabel(‘t (milliseconds)’)
ylabel(‘X(t)’)
Y = fft(X);
P2 = abs(Y/L);
P1 = P2(1:L/2+1);
P1(2:end-1) = 2*P1(2:end-1);
f = Fs*(0:(L/2))/L;
plot(f,P1)
title(‘Single-Sided Amplitude Spectrum of X(t)’)
xlabel(‘f (Hz)’)
ylabel(‘|P1(f)|’)I am trying to understand the using of fft in matlab, regarding the provided example in help I could not figure out what the f is and how it is defined as f = Fs*(0:(L/2))/L. Is there anybody who could explain why the f is defined as f = Fs*(0:(L/2))/L?
Fs = 1000; % Sampling frequency
T = 1/Fs; % Sampling period
L = 1500; % Length of signal
t = (0:L-1)*T; % Time vector
S = 0.7*sin(2*pi*50*t) + sin(2*pi*120*t);
X = S + 2*randn(size(t));
plot(1000*t(1:50),X(1:50))
title(‘Signal Corrupted with Zero-Mean Random Noise’)
xlabel(‘t (milliseconds)’)
ylabel(‘X(t)’)
Y = fft(X);
P2 = abs(Y/L);
P1 = P2(1:L/2+1);
P1(2:end-1) = 2*P1(2:end-1);
f = Fs*(0:(L/2))/L;
plot(f,P1)
title(‘Single-Sided Amplitude Spectrum of X(t)’)
xlabel(‘f (Hz)’)
ylabel(‘|P1(f)|’) I am trying to understand the using of fft in matlab, regarding the provided example in help I could not figure out what the f is and how it is defined as f = Fs*(0:(L/2))/L. Is there anybody who could explain why the f is defined as f = Fs*(0:(L/2))/L?
Fs = 1000; % Sampling frequency
T = 1/Fs; % Sampling period
L = 1500; % Length of signal
t = (0:L-1)*T; % Time vector
S = 0.7*sin(2*pi*50*t) + sin(2*pi*120*t);
X = S + 2*randn(size(t));
plot(1000*t(1:50),X(1:50))
title(‘Signal Corrupted with Zero-Mean Random Noise’)
xlabel(‘t (milliseconds)’)
ylabel(‘X(t)’)
Y = fft(X);
P2 = abs(Y/L);
P1 = P2(1:L/2+1);
P1(2:end-1) = 2*P1(2:end-1);
f = Fs*(0:(L/2))/L;
plot(f,P1)
title(‘Single-Sided Amplitude Spectrum of X(t)’)
xlabel(‘f (Hz)’)
ylabel(‘|P1(f)|’) fft MATLAB Answers — New Questions
Specifying individual port impedances in RF toolbox.
I’m trying to convert the S-parameters of a measurement to a different port impedance on port1, while keeping port2 at 50Ω. From everything I found so far the extract and s2s functions only take a scalar as port impedance and hence would convert port2 as well.
Short of writing code to implement the equations of renomalization myself, how do I do this in the RF toolboxI’m trying to convert the S-parameters of a measurement to a different port impedance on port1, while keeping port2 at 50Ω. From everything I found so far the extract and s2s functions only take a scalar as port impedance and hence would convert port2 as well.
Short of writing code to implement the equations of renomalization myself, how do I do this in the RF toolbox I’m trying to convert the S-parameters of a measurement to a different port impedance on port1, while keeping port2 at 50Ω. From everything I found so far the extract and s2s functions only take a scalar as port impedance and hence would convert port2 as well.
Short of writing code to implement the equations of renomalization myself, how do I do this in the RF toolbox impedance renormalization MATLAB Answers — New Questions
SUM Employees using condition formula
HI
I have an issue with one formula. I created a formula to know the number of projects i have within a FY
Definition of project:
IF SAME CUSTOMER, IF SAME COUNTRY and Same GO Live Date = 1, otherwise 0
I custom sorted my file with Customer, Country and Go lIve Date and used the formula below comparing previous row.
=IF(B2<>B3,1,IF(AND(B2=B3,BE2<>BE3),1,IF(AND(B2=B3,D2=D3,BE2=BE3),0,1)))
I have a column called Contract EE (Employees) and I have been asked to filter projects with max 50employees, 100 employees and + 100 employees but I am struggling to add this SUM in my formula. Any help? What I need is the image below showing number of employees for every count of “1” using the formula with the 3 conditions.
Client NameCIDCountryContract EEOps Forecast & ActualsNum of Projects EE SizeCustomer A010002United States209/1/202203 conditions = 1 Project300Customer A010002United States2809/1/20221Customer B010022Sweden405/1/20241 40Customer C010038Egypt604/1/20241 60Customer D010047Singapore337/1/20221 33Customer E010072Spain13/1/20241 1Customer F010109Austria758/1/20221 75Customer G010109Brazil2006/1/202303 conditions = 1 Project358Customer G010109Brazil1506/1/20230Customer G010109Brazil86/1/20231
HI I have an issue with one formula. I created a formula to know the number of projects i have within a FY Definition of project:IF SAME CUSTOMER, IF SAME COUNTRY and Same GO Live Date = 1, otherwise 0 I custom sorted my file with Customer, Country and Go lIve Date and used the formula below comparing previous row. =IF(B2<>B3,1,IF(AND(B2=B3,BE2<>BE3),1,IF(AND(B2=B3,D2=D3,BE2=BE3),0,1))) I have a column called Contract EE (Employees) and I have been asked to filter projects with max 50employees, 100 employees and + 100 employees but I am struggling to add this SUM in my formula. Any help? What I need is the image below showing number of employees for every count of “1” using the formula with the 3 conditions. Client NameCIDCountryContract EEOps Forecast & ActualsNum of Projects EE SizeCustomer A010002United States209/1/202203 conditions = 1 Project300Customer A010002United States2809/1/20221Customer B010022Sweden405/1/20241 40Customer C010038Egypt604/1/20241 60Customer D010047Singapore337/1/20221 33Customer E010072Spain13/1/20241 1Customer F010109Austria758/1/20221 75Customer G010109Brazil2006/1/202303 conditions = 1 Project358Customer G010109Brazil1506/1/20230Customer G010109Brazil86/1/20231 Read More
Microsoft Cloud Exceeds 50% of Microsoft Total Revenues
The Microsoft FY24 Q3 results didn’t contain any new user numbers for Office 365 or Teams. However, we did learn that Copilot and Azure are popular words in the Microsoft lexicon. As usual, statistics were introduced without context, but investors won’t really care too much as Microsoft continues to generate tons of revenue at a healthy margin, especially from its cloud business.
https://office365itpros.com/2024/04/26/microsoft-fy24-q3-results/
The Microsoft FY24 Q3 results didn’t contain any new user numbers for Office 365 or Teams. However, we did learn that Copilot and Azure are popular words in the Microsoft lexicon. As usual, statistics were introduced without context, but investors won’t really care too much as Microsoft continues to generate tons of revenue at a healthy margin, especially from its cloud business.
https://office365itpros.com/2024/04/26/microsoft-fy24-q3-results/ Read More
Sharing screens giving 2 flashing black bars at the top and bottom of the shared content?
When sharing the recipients screen will have 2 bars at the bottom and top of the shared content which are continuously flashing.
I have tried clearing the cache, and even going as far to remove and reinstall teams to no avail.
This is something affecting multiple issues in our organisation
When sharing the recipients screen will have 2 bars at the bottom and top of the shared content which are continuously flashing.I have tried clearing the cache, and even going as far to remove and reinstall teams to no avail.This is something affecting multiple issues in our organisation Read More
Viva Learning as an activity source
Hello,I’m exploring options to create a custom learning management system for my company. The first thing I would like to do is to pull data from Microsoft Viva Learning via the Microsoft Graph API, for example to see which courses the employees have completed. The next step will be to write that data on a SharePoint site. However, the use cases described in the docs seem to implicate that the data should only flow from the LMS to Viva, and not in the opposite direction. Since Viva Learning has a UI for searching for and completing courses, I would like to use that activity data into my custom LMS. Is this use case possible and does it make sense?Thank you in advance Read More
how can i convert 2d plot in to 3d surface ??
I have this small code that plots ogive shape nose in 2d.
I want to develop 3d surface from this code !!! please help and guide….
I am using surf command and tried to turn vector in to matrix….
L = 500;
R = 79;
n= 0.4;
x = 0:0.01:50;
y= R*(x/L).^n;
z= 1.*(x/L).^n;
plot(x,y,’r’,’linewidth’,2)
hold on
plot(x,-y,’r’,’linewidth’,2)
xlabel(‘Length’)
ylabel(‘Radius’)
title(‘Nose Profile’)
axis(‘equal’);I have this small code that plots ogive shape nose in 2d.
I want to develop 3d surface from this code !!! please help and guide….
I am using surf command and tried to turn vector in to matrix….
L = 500;
R = 79;
n= 0.4;
x = 0:0.01:50;
y= R*(x/L).^n;
z= 1.*(x/L).^n;
plot(x,y,’r’,’linewidth’,2)
hold on
plot(x,-y,’r’,’linewidth’,2)
xlabel(‘Length’)
ylabel(‘Radius’)
title(‘Nose Profile’)
axis(‘equal’); I have this small code that plots ogive shape nose in 2d.
I want to develop 3d surface from this code !!! please help and guide….
I am using surf command and tried to turn vector in to matrix….
L = 500;
R = 79;
n= 0.4;
x = 0:0.01:50;
y= R*(x/L).^n;
z= 1.*(x/L).^n;
plot(x,y,’r’,’linewidth’,2)
hold on
plot(x,-y,’r’,’linewidth’,2)
xlabel(‘Length’)
ylabel(‘Radius’)
title(‘Nose Profile’)
axis(‘equal’); surf, 2d, plotting, 3d plots MATLAB Answers — New Questions
What exactly is Episode Q0? What information is it giving?
Reading documentation I find that "For agents with a critic, Episode Q0 is the estimate of the discounted long-term reward at the start of each episode, given the initial observation of the environment. As training progresses, if the critic is well designed. Episode Q0 approaches the true discounted long-term reward"
But I cannot grasp exactly what is Q0 because, except in a few examples (like this one) where it "converges" to some value rather quickly, I have seen Q0 value do different things and I cannot understad or interpret them (like the two examples shown here). I also don’t understand what "true discounted reward" means exaclty. Is it for each episode, average or something cumulative?
In this answer it is suggested that Q0 should track the average episode reward, but I don’t see that in the examples.
For example, in the cartpole example, if one continues the training for more episodes (changing the stop training criteria to avoid stopping for average reward), Q0 value reaches very high values that have nothing to do with the average reward or the episodes. I simulated 1000 episodes for the cartpole example and Q0 values even mess up the scale because they go way too high. The agent seams too learn properly and it even manages to get out of some local minimums sucessfully but still, I cannot grasp what information Q0 yields
I have not found Q0 defined in Reinforcement Learning bibliography either. Could you please clarify a bit or give some bibliogtaphy where I can read further on this specific parameter?Reading documentation I find that "For agents with a critic, Episode Q0 is the estimate of the discounted long-term reward at the start of each episode, given the initial observation of the environment. As training progresses, if the critic is well designed. Episode Q0 approaches the true discounted long-term reward"
But I cannot grasp exactly what is Q0 because, except in a few examples (like this one) where it "converges" to some value rather quickly, I have seen Q0 value do different things and I cannot understad or interpret them (like the two examples shown here). I also don’t understand what "true discounted reward" means exaclty. Is it for each episode, average or something cumulative?
In this answer it is suggested that Q0 should track the average episode reward, but I don’t see that in the examples.
For example, in the cartpole example, if one continues the training for more episodes (changing the stop training criteria to avoid stopping for average reward), Q0 value reaches very high values that have nothing to do with the average reward or the episodes. I simulated 1000 episodes for the cartpole example and Q0 values even mess up the scale because they go way too high. The agent seams too learn properly and it even manages to get out of some local minimums sucessfully but still, I cannot grasp what information Q0 yields
I have not found Q0 defined in Reinforcement Learning bibliography either. Could you please clarify a bit or give some bibliogtaphy where I can read further on this specific parameter? Reading documentation I find that "For agents with a critic, Episode Q0 is the estimate of the discounted long-term reward at the start of each episode, given the initial observation of the environment. As training progresses, if the critic is well designed. Episode Q0 approaches the true discounted long-term reward"
But I cannot grasp exactly what is Q0 because, except in a few examples (like this one) where it "converges" to some value rather quickly, I have seen Q0 value do different things and I cannot understad or interpret them (like the two examples shown here). I also don’t understand what "true discounted reward" means exaclty. Is it for each episode, average or something cumulative?
In this answer it is suggested that Q0 should track the average episode reward, but I don’t see that in the examples.
For example, in the cartpole example, if one continues the training for more episodes (changing the stop training criteria to avoid stopping for average reward), Q0 value reaches very high values that have nothing to do with the average reward or the episodes. I simulated 1000 episodes for the cartpole example and Q0 values even mess up the scale because they go way too high. The agent seams too learn properly and it even manages to get out of some local minimums sucessfully but still, I cannot grasp what information Q0 yields
I have not found Q0 defined in Reinforcement Learning bibliography either. Could you please clarify a bit or give some bibliogtaphy where I can read further on this specific parameter? reinforcement learning, episode q0, episode manager MATLAB Answers — New Questions
Sorting a Cell Array
Hi,
Sorry if this has been asked / answered many times or very simple etc. etc!
If I have a cell array say Array = {B C A;1 3 2; D E F}
Is it possible to sort the first row in order, so its A B C, with the second and third rows changing corresponding to to this initial sort?
Final answer being {A B C;2 1 3;F D E}
Thanks in advance
MatthewHi,
Sorry if this has been asked / answered many times or very simple etc. etc!
If I have a cell array say Array = {B C A;1 3 2; D E F}
Is it possible to sort the first row in order, so its A B C, with the second and third rows changing corresponding to to this initial sort?
Final answer being {A B C;2 1 3;F D E}
Thanks in advance
Matthew Hi,
Sorry if this has been asked / answered many times or very simple etc. etc!
If I have a cell array say Array = {B C A;1 3 2; D E F}
Is it possible to sort the first row in order, so its A B C, with the second and third rows changing corresponding to to this initial sort?
Final answer being {A B C;2 1 3;F D E}
Thanks in advance
Matthew array, sort MATLAB Answers — New Questions
Index exceeds the number of array elements. Index must not exceed 3. HELP
model code:
clear all;
close all;
S = 99;
I = 1;
R = 0;
N = 100; %Total population
beta= 0.1; % birth rate
alpha= 0.1; % infection person to person rate
lambda= 0.3; % infection by water rate
vac= 0.05; % recovery by vaccination rate
d= 0.03; % death rate
gamma= 0.8; % recovery rate
c= 0.9; % rate of contamination
m= 0.4; % rate of decay of V. cholerae
B= 0.0; % initial concentration of V. cholerae
t_f = 500; %Ending time of simulation
Q = [beta alpha lambda vac d gamma c m B];
[t,y]=ode45(‘cholera_de’,[0:t_f/100:t_f],[S I R]’,[],Q);
figure(1)
plot(t,y(:,1),’k-‘,t,y(:,2),’r–‘,t,y(:,3),’b:’);
xlabel(‘bf Time (days)’);
ylabel(‘bf Number of People by Category’);
legend(‘S’,’I’,’R’);
z=y(end,:)’
SN=y(:,1)/N;
IN=y(:,2)/N;
figure(2)
plot(IN,SN);
xlabel(‘bf I/N’);
ylabel(‘bf S/N’);
r0=beta/beta
[maxIN,y_maxtime]=max(y(:,2)/N);
maxIN
maxtime=y(y_maxtime)
eqIN=y(100,2)/N;
eqIN
function code:
function dy=cholera_de(t,Y,flag,Q)
beta= Q(1);
alpha= Q(2);
lambda= Q(3);
vac= Q(4);
d= Q(5);
gamma= Q(6);
c= Q(7);
m= Q(8);
S= Y(1);
I= Y(2);
R= Y(3);
B=Y(4);
N= S+I+R;
dy(1,1)= beta – alpha*I – lambda*B – vac*S – d;
dy(2,1)= alpha*I + lambda*B – d – gamma*I;
dy(3,1)= gamma*I + vac*S – d;
dy(4,1)= c*I – m*B;
Gives me this error:
Index exceeds the number of array elements. Index must not exceed 3.
Error in cholera_de (line 15)
B=Y(4);
Error in odearguments (line 92)
f0 = ode(t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ode45 (line 104)
odearguments(odeIsFuncHandle,odeTreatAsMFile, solver_name, ode, tspan, y0, options, varargin);
Error in cholera_model (line 23)
[t,y]=ode45(‘cholera_de’,[0:t_f/100:t_f],[S I R]’,[],Q);model code:
clear all;
close all;
S = 99;
I = 1;
R = 0;
N = 100; %Total population
beta= 0.1; % birth rate
alpha= 0.1; % infection person to person rate
lambda= 0.3; % infection by water rate
vac= 0.05; % recovery by vaccination rate
d= 0.03; % death rate
gamma= 0.8; % recovery rate
c= 0.9; % rate of contamination
m= 0.4; % rate of decay of V. cholerae
B= 0.0; % initial concentration of V. cholerae
t_f = 500; %Ending time of simulation
Q = [beta alpha lambda vac d gamma c m B];
[t,y]=ode45(‘cholera_de’,[0:t_f/100:t_f],[S I R]’,[],Q);
figure(1)
plot(t,y(:,1),’k-‘,t,y(:,2),’r–‘,t,y(:,3),’b:’);
xlabel(‘bf Time (days)’);
ylabel(‘bf Number of People by Category’);
legend(‘S’,’I’,’R’);
z=y(end,:)’
SN=y(:,1)/N;
IN=y(:,2)/N;
figure(2)
plot(IN,SN);
xlabel(‘bf I/N’);
ylabel(‘bf S/N’);
r0=beta/beta
[maxIN,y_maxtime]=max(y(:,2)/N);
maxIN
maxtime=y(y_maxtime)
eqIN=y(100,2)/N;
eqIN
function code:
function dy=cholera_de(t,Y,flag,Q)
beta= Q(1);
alpha= Q(2);
lambda= Q(3);
vac= Q(4);
d= Q(5);
gamma= Q(6);
c= Q(7);
m= Q(8);
S= Y(1);
I= Y(2);
R= Y(3);
B=Y(4);
N= S+I+R;
dy(1,1)= beta – alpha*I – lambda*B – vac*S – d;
dy(2,1)= alpha*I + lambda*B – d – gamma*I;
dy(3,1)= gamma*I + vac*S – d;
dy(4,1)= c*I – m*B;
Gives me this error:
Index exceeds the number of array elements. Index must not exceed 3.
Error in cholera_de (line 15)
B=Y(4);
Error in odearguments (line 92)
f0 = ode(t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ode45 (line 104)
odearguments(odeIsFuncHandle,odeTreatAsMFile, solver_name, ode, tspan, y0, options, varargin);
Error in cholera_model (line 23)
[t,y]=ode45(‘cholera_de’,[0:t_f/100:t_f],[S I R]’,[],Q); model code:
clear all;
close all;
S = 99;
I = 1;
R = 0;
N = 100; %Total population
beta= 0.1; % birth rate
alpha= 0.1; % infection person to person rate
lambda= 0.3; % infection by water rate
vac= 0.05; % recovery by vaccination rate
d= 0.03; % death rate
gamma= 0.8; % recovery rate
c= 0.9; % rate of contamination
m= 0.4; % rate of decay of V. cholerae
B= 0.0; % initial concentration of V. cholerae
t_f = 500; %Ending time of simulation
Q = [beta alpha lambda vac d gamma c m B];
[t,y]=ode45(‘cholera_de’,[0:t_f/100:t_f],[S I R]’,[],Q);
figure(1)
plot(t,y(:,1),’k-‘,t,y(:,2),’r–‘,t,y(:,3),’b:’);
xlabel(‘bf Time (days)’);
ylabel(‘bf Number of People by Category’);
legend(‘S’,’I’,’R’);
z=y(end,:)’
SN=y(:,1)/N;
IN=y(:,2)/N;
figure(2)
plot(IN,SN);
xlabel(‘bf I/N’);
ylabel(‘bf S/N’);
r0=beta/beta
[maxIN,y_maxtime]=max(y(:,2)/N);
maxIN
maxtime=y(y_maxtime)
eqIN=y(100,2)/N;
eqIN
function code:
function dy=cholera_de(t,Y,flag,Q)
beta= Q(1);
alpha= Q(2);
lambda= Q(3);
vac= Q(4);
d= Q(5);
gamma= Q(6);
c= Q(7);
m= Q(8);
S= Y(1);
I= Y(2);
R= Y(3);
B=Y(4);
N= S+I+R;
dy(1,1)= beta – alpha*I – lambda*B – vac*S – d;
dy(2,1)= alpha*I + lambda*B – d – gamma*I;
dy(3,1)= gamma*I + vac*S – d;
dy(4,1)= c*I – m*B;
Gives me this error:
Index exceeds the number of array elements. Index must not exceed 3.
Error in cholera_de (line 15)
B=Y(4);
Error in odearguments (line 92)
f0 = ode(t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ode45 (line 104)
odearguments(odeIsFuncHandle,odeTreatAsMFile, solver_name, ode, tspan, y0, options, varargin);
Error in cholera_model (line 23)
[t,y]=ode45(‘cholera_de’,[0:t_f/100:t_f],[S I R]’,[],Q); ode45, index MATLAB Answers — New Questions
Only browser activities can be found in Activity Log for Conditional Access App control App
We have add Deskbird into Microsoft Defender for Cloud Apps via Entra ID CA policy, and it is listed in MDCA – Cloud apps – Activity log now. However, we found only the activities via web browser were logged, the activities trigged from mobile Apps are not. But those activities can be found in Sign-in Logs from Azure enterprise application portal.
How to make MDCA receive all activities include both browser and App? We want to setup access control policy, without the visibility to Mobile App activities, the policy can’t cover all scenarios.
We have add Deskbird into Microsoft Defender for Cloud Apps via Entra ID CA policy, and it is listed in MDCA – Cloud apps – Activity log now. However, we found only the activities via web browser were logged, the activities trigged from mobile Apps are not. But those activities can be found in Sign-in Logs from Azure enterprise application portal. How to make MDCA receive all activities include both browser and App? We want to setup access control policy, without the visibility to Mobile App activities, the policy can’t cover all scenarios. Read More
Need Help in Project Operations connection with Project for Web
Can anyone suggest which Environment they are using in Dynamics 365 to use Project operations, is it CDS or CRM?
or Does anyone knows how we can connect Project for Web and Dynamics 365 project Operations to see Projects and Tasks??
Can anyone suggest which Environment they are using in Dynamics 365 to use Project operations, is it CDS or CRM?or Does anyone knows how we can connect Project for Web and Dynamics 365 project Operations to see Projects and Tasks?? Read More
How to fix QuickBooks error 3371 status code 11118 windows 11?
Troubleshooting Solutions: QuickBooks error 3371 status code 11118
QuickBooks error 3371 with status code 11118 is a common issue that can occur due to various reasons, such as damaged or missing QuickBooks components, issues with the Windows operating system, or problems with the QuickBooks license. Here are some troubleshooting steps to resolve QuickBooks error 3371 status code 11118:
Update Windows Operating System: Ensure that your Windows operating system is up to date. Outdated Windows versions may lack necessary updates and patches, leading to compatibility issues with QuickBooks. Go to Settings > Update & Security > Windows Update to check for and install any available updates.Install QuickBooks Tool Hub: Download and install the QuickBooks Tool Hub, a collection of tools designed to diagnose and fix common QuickBooks errors. Open the Tool Hub and select the “Installation Issues” tab. Run the Quick Fix my Program tool to resolve issues related to QuickBooks installation, including error 3371 status code 11118.Recreate EntitlementDataStore.ecml File: The EntitlementDataStore.ecml file contains information about your QuickBooks license and registration details. Deleting and recreating this file can resolve error 3371 status code 11118. Close QuickBooks and navigate to C:ProgramDataIntuitEntitlement Clientv8. Delete the EntitlementDataStore.ecml file, then reopen QuickBooks to automatically recreate the file.Update QuickBooks: Ensure that you are using the latest version of QuickBooks. Outdated software versions may contain bugs or compatibility issues that trigger error 3371 status code 11118. Open QuickBooks and go to Help > Update QuickBooks to check for and install any available updates.Run QuickBooks Diagnostic Tool: Download and run the QuickBooks Install Diagnostic Tool to identify and fix issues related to QuickBooks installation. This tool automatically scans and repairs common installation problems, including error 3371 status code 11118. After running the diagnostic tool, restart your computer and try opening QuickBooks again.Manually Resolve Microsoft.NET Framework Issues: QuickBooks error 3371 status code 11118 may occur due to issues with Microsoft.NET Framework, a software framework required for QuickBooks to function properly. Repair or reinstall Microsoft.NET Framework by following the instructions provided by Microsoft on their official website.Contact QuickBooks Support: If none of the above troubleshooting steps resolve the issue, contact QuickBooks customer support for further assistance. QuickBooks experts can provide personalized support and guidance to help you troubleshoot and resolve error 3371 status code 11118, ensuring that you can resume using QuickBooks without interruptions.
By following these troubleshooting solutions, you can effectively resolve QuickBooks error 3371 status code 11118 and get back to using QuickBooks smoothly for your accounting and financial management tasks. Regularly updating QuickBooks and maintaining your system’s software can help prevent such errors in the future, ensuring seamless operation of the software for your business needs.
Troubleshooting Solutions: QuickBooks error 3371 status code 11118 QuickBooks error 3371 with status code 11118 is a common issue that can occur due to various reasons, such as damaged or missing QuickBooks components, issues with the Windows operating system, or problems with the QuickBooks license. Here are some troubleshooting steps to resolve QuickBooks error 3371 status code 11118: Update Windows Operating System: Ensure that your Windows operating system is up to date. Outdated Windows versions may lack necessary updates and patches, leading to compatibility issues with QuickBooks. Go to Settings > Update & Security > Windows Update to check for and install any available updates.Install QuickBooks Tool Hub: Download and install the QuickBooks Tool Hub, a collection of tools designed to diagnose and fix common QuickBooks errors. Open the Tool Hub and select the “Installation Issues” tab. Run the Quick Fix my Program tool to resolve issues related to QuickBooks installation, including error 3371 status code 11118.Recreate EntitlementDataStore.ecml File: The EntitlementDataStore.ecml file contains information about your QuickBooks license and registration details. Deleting and recreating this file can resolve error 3371 status code 11118. Close QuickBooks and navigate to C:ProgramDataIntuitEntitlement Clientv8. Delete the EntitlementDataStore.ecml file, then reopen QuickBooks to automatically recreate the file.Update QuickBooks: Ensure that you are using the latest version of QuickBooks. Outdated software versions may contain bugs or compatibility issues that trigger error 3371 status code 11118. Open QuickBooks and go to Help > Update QuickBooks to check for and install any available updates.Run QuickBooks Diagnostic Tool: Download and run the QuickBooks Install Diagnostic Tool to identify and fix issues related to QuickBooks installation. This tool automatically scans and repairs common installation problems, including error 3371 status code 11118. After running the diagnostic tool, restart your computer and try opening QuickBooks again.Manually Resolve Microsoft.NET Framework Issues: QuickBooks error 3371 status code 11118 may occur due to issues with Microsoft.NET Framework, a software framework required for QuickBooks to function properly. Repair or reinstall Microsoft.NET Framework by following the instructions provided by Microsoft on their official website.Contact QuickBooks Support: If none of the above troubleshooting steps resolve the issue, contact QuickBooks customer support for further assistance. QuickBooks experts can provide personalized support and guidance to help you troubleshoot and resolve error 3371 status code 11118, ensuring that you can resume using QuickBooks without interruptions.By following these troubleshooting solutions, you can effectively resolve QuickBooks error 3371 status code 11118 and get back to using QuickBooks smoothly for your accounting and financial management tasks. Regularly updating QuickBooks and maintaining your system’s software can help prevent such errors in the future, ensuring seamless operation of the software for your business needs. Read More
Dynamic Approval Workflow based on Serial Number
Generated a form for disposing of scrap in Power Apps, indicating that I wish to develop a dynamic approval flow in power automate.
Integrated with SharePoint .
Approval Levels are dependent on departments; for example, RS D4 two level set, for RS D1 one level permission set, and similarly levels are set to departments in department table.
In that form, the serial number is generated by Power Apps . For a single serial number, multiple items can be added, and the department should remain constant since only one department can be selected.
for example if i made entry generated serial number is 1 then for 1 multiple items can added like for 1 we cab add 4 items for RS D1 department .
Department should not fluctuate after a department is chosen; we cant add multiple department for a single serial number . new department entry should be created with new serial number .
Based on each serial number, the approval request should be sent to the appropriate approver. Instead of triggering for every item or record, the approval request should only be sent to the approver once for each item created for that serial number.
Thus, what can we do in this scenario and what kind of condition and action can we apply?
please suggest flow……!!!!
Details:-
Sharing snap of Disposal Form
Disposal_table is main table
Department table is set to Level department wise
Generated a form for disposing of scrap in Power Apps, indicating that I wish to develop a dynamic approval flow in power automate.Integrated with SharePoint .Approval Levels are dependent on departments; for example, RS D4 two level set, for RS D1 one level permission set, and similarly levels are set to departments in department table.In that form, the serial number is generated by Power Apps . For a single serial number, multiple items can be added, and the department should remain constant since only one department can be selected.for example if i made entry generated serial number is 1 then for 1 multiple items can added like for 1 we cab add 4 items for RS D1 department .Department should not fluctuate after a department is chosen; we cant add multiple department for a single serial number . new department entry should be created with new serial number .Based on each serial number, the approval request should be sent to the appropriate approver. Instead of triggering for every item or record, the approval request should only be sent to the approver once for each item created for that serial number.Thus, what can we do in this scenario and what kind of condition and action can we apply?please suggest flow……!!!! Details:-Sharing snap of Disposal Form Disposal_table is main table Department table is set to Level department wise Read More
Unable to import files to smss
===================================
This wizard will close because it encountered the following error: (Microsoft SQL Server)
——————————
For help, click: https://go.microsoft.com:80/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=16.0.5491.4&Evtsrc=Microsoft.SqlServer.Management.UI.WizardFrameworkErrorSR&EvtID=UncaughtException&LinkId=20476
===================================
The ConnectionString property has not been initialized. (System.Data)
——————————
Program Location:
at System.Data.Odbc.OdbcConnection.PermissionDemand()
at System.Data.Odbc.OdbcConnectionFactory.PermissionDemand(DbConnection outerConnection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.Odbc.OdbcConnection.Open()
at Microsoft.SqlServer.Dts.DtsWizard.DTSWizard.GetOpenedConnection(WizardInputs wizardInputs, String connEntryName)
at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateMetadata(WizardInputs wizardInputs)
at Microsoft.SqlServer.Dts.DtsWizard.StepFlatFileTables.OnLeavePage(LeavePageEventArgs e)
at Microsoft.SqlServer.Management.UI.WizardPage.RaiseLeavePage(WizardButton button)
at Microsoft.SqlServer.Management.UI.WizardForm.NextPage(WizardPage nextPage)
at Microsoft.SqlServer.Management.UI.WizardForm.Next_Click(Object sender, EventArgs e)
===================================This wizard will close because it encountered the following error: (Microsoft SQL Server)——————————For help, click: https://go.microsoft.com:80/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=16.0.5491.4&Evtsrc=Microsoft.SqlServer.Management.UI.WizardFrameworkErrorSR&EvtID=UncaughtException&LinkId=20476===================================The ConnectionString property has not been initialized. (System.Data)——————————Program Location:at System.Data.Odbc.OdbcConnection.PermissionDemand()at System.Data.Odbc.OdbcConnectionFactory.PermissionDemand(DbConnection outerConnection)at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)at System.Data.Odbc.OdbcConnection.Open()at Microsoft.SqlServer.Dts.DtsWizard.DTSWizard.GetOpenedConnection(WizardInputs wizardInputs, String connEntryName)at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateMetadata(WizardInputs wizardInputs)at Microsoft.SqlServer.Dts.DtsWizard.StepFlatFileTables.OnLeavePage(LeavePageEventArgs e)at Microsoft.SqlServer.Management.UI.WizardPage.RaiseLeavePage(WizardButton button)at Microsoft.SqlServer.Management.UI.WizardForm.NextPage(WizardPage nextPage)at Microsoft.SqlServer.Management.UI.WizardForm.Next_Click(Object sender, EventArgs e) Read More