Category: News
Even & Odd Discrete time Signals
I am writing a program to seperate, plot even and odd parts of a discrete time signal. Following is my code:
I am getting error at line 3 & 4. "Array indices must be positive integers or logical values."
Since I am trying to flip and invert the signal x[n] , so ‘x(-n)’ is obvious to use but I am getting error. Kindly help.
n= -3:4;
x=[0 0 0 2 3 -1 2 -3];
xe= ( x(n)+x(-n) )/2;
xo= ( x(n)-x(-n) )/2;
subplot(311);stem(n,x);grid on; xlabel(‘n’);ylabel(‘Amplitude’);title(‘Original Signal’);
subplot(312);stem(n,xe);grid on; xlabel(‘n’);ylabel(‘Amplitude’);title(‘Even Signal’);
subplot(313);stem(n,xo);grid on; xlabel(‘n’);ylabel(‘Amplitude’);title(‘Odd Signal’);I am writing a program to seperate, plot even and odd parts of a discrete time signal. Following is my code:
I am getting error at line 3 & 4. "Array indices must be positive integers or logical values."
Since I am trying to flip and invert the signal x[n] , so ‘x(-n)’ is obvious to use but I am getting error. Kindly help.
n= -3:4;
x=[0 0 0 2 3 -1 2 -3];
xe= ( x(n)+x(-n) )/2;
xo= ( x(n)-x(-n) )/2;
subplot(311);stem(n,x);grid on; xlabel(‘n’);ylabel(‘Amplitude’);title(‘Original Signal’);
subplot(312);stem(n,xe);grid on; xlabel(‘n’);ylabel(‘Amplitude’);title(‘Even Signal’);
subplot(313);stem(n,xo);grid on; xlabel(‘n’);ylabel(‘Amplitude’);title(‘Odd Signal’); I am writing a program to seperate, plot even and odd parts of a discrete time signal. Following is my code:
I am getting error at line 3 & 4. "Array indices must be positive integers or logical values."
Since I am trying to flip and invert the signal x[n] , so ‘x(-n)’ is obvious to use but I am getting error. Kindly help.
n= -3:4;
x=[0 0 0 2 3 -1 2 -3];
xe= ( x(n)+x(-n) )/2;
xo= ( x(n)-x(-n) )/2;
subplot(311);stem(n,x);grid on; xlabel(‘n’);ylabel(‘Amplitude’);title(‘Original Signal’);
subplot(312);stem(n,xe);grid on; xlabel(‘n’);ylabel(‘Amplitude’);title(‘Even Signal’);
subplot(313);stem(n,xo);grid on; xlabel(‘n’);ylabel(‘Amplitude’);title(‘Odd Signal’); dicrete_time_signal MATLAB Answers — New Questions
Proving one function is greater than other?
I want to see where is this inequality true
[
frac{log(log(x))}{21.233 log(x)} > frac{1}{53.989 (log(x)^{2/3})(log(log(x))^{1/3})}
]
where x in (e^e,∞).I want to see where is this inequality true
[
frac{log(log(x))}{21.233 log(x)} > frac{1}{53.989 (log(x)^{2/3})(log(log(x))^{1/3})}
]
where x in (e^e,∞). I want to see where is this inequality true
[
frac{log(log(x))}{21.233 log(x)} > frac{1}{53.989 (log(x)^{2/3})(log(log(x))^{1/3})}
]
where x in (e^e,∞). staff MATLAB Answers — New Questions
Network Printer Issue
# Shared printer disconnects every time the user restarts the computer. I have Several Work-group computers installed windows 10 pro. i fed up with this issue, so how could i solve this please.!?
# Shared printer disconnects every time the user restarts the computer. I have Several Work-group computers installed windows 10 pro. i fed up with this issue, so how could i solve this please.!? Read More
Windows One Drive shared folder suddenly become shortcut instead of folders
Hi,
I am having an issue that I need help with. I have my One Drive account for several years. I have my main account signed in on my laptop. I have 4 other users sharing their folder with edit access to my main account. I add them as short cut to my main account. In the past, on my laptop, they function as folders. Meaning, I can move, delete, add files and they essentially function as a folder. Now, all my shared folder from my other users suddenly becomes short cut. When I open the folder, it brings me to the browser for me to sign in and view them. This never happened before and I am not sure what caused it. Please help.
Hi, I am having an issue that I need help with. I have my One Drive account for several years. I have my main account signed in on my laptop. I have 4 other users sharing their folder with edit access to my main account. I add them as short cut to my main account. In the past, on my laptop, they function as folders. Meaning, I can move, delete, add files and they essentially function as a folder. Now, all my shared folder from my other users suddenly becomes short cut. When I open the folder, it brings me to the browser for me to sign in and view them. This never happened before and I am not sure what caused it. Please help. Read More
How to remove fluctuations caused by transfer function?
As most of the sensor have some or other kind of time delay, in my model I have used a temperature sensor the signal provided by the sensor is going through a transfer function just to replicate its true nature (i.e thermal inertia). As the sensor data is being used in a feed back loop. The senor with a transfer function is causing eratic behaviour of my whole model. Because when the setpoint is high enough the sensor reading are all over the place. What should I do?As most of the sensor have some or other kind of time delay, in my model I have used a temperature sensor the signal provided by the sensor is going through a transfer function just to replicate its true nature (i.e thermal inertia). As the sensor data is being used in a feed back loop. The senor with a transfer function is causing eratic behaviour of my whole model. Because when the setpoint is high enough the sensor reading are all over the place. What should I do? As most of the sensor have some or other kind of time delay, in my model I have used a temperature sensor the signal provided by the sensor is going through a transfer function just to replicate its true nature (i.e thermal inertia). As the sensor data is being used in a feed back loop. The senor with a transfer function is causing eratic behaviour of my whole model. Because when the setpoint is high enough the sensor reading are all over the place. What should I do? transfer function, steady state error MATLAB Answers — New Questions
GARCH(1,1): Matrix from standardized residuals do not have exact 1’s on the diagonal
Hello,
I am trying to estimate a GARCH(1,1), get the standardized residuals and form a matrix from them. My R_bar does not have exact 1’s on the diagonal even though they are very close to 1 (for example, 0.9983, 0.9997, 1.023…). Specifically I trying to do this:
data = parquetread(‘/datacommons/dfe/cov/close_to_close_2010-2014.parquet’);
returns = data{:, 2:end};
numAssets = size(returns, 2);
%returns look like this:
%header stock_1 stock_2 …
%date1 return_1 of stock 1 return_1 of stock 2
%date2 return_2 of stock 1 return_2 of stock 2
%…
%returns are not demeaned
mdl = cell(numAssets, 1);
estMdl = cell(numAssets, 1);
condVar = cell(numAssets, 1);
standardizedResiduals = cell(numAssets, 1);
residuals = cell(numAssets, 1);
for i = 1:numAssets
mdl{i} = garch(‘Offset’, NaN, ‘GARCHLags’, 1, ‘ARCHLags’, 1); %I did not demean the returns so I let the model estimate the "offset" parameter
estMdl{i} = estimate(mdl{i}, returns(:, i), ‘Display’, ‘off’);
condVar{i} = infer(estMdl{i}, returns(:, i));
residuals{i} = (returns(:, i) – estMdl{i}.Offset) ;
standardizedResiduals{i} = (returns(:, i) – estMdl{i}.Offset) ./ sqrt(condVar{i}); %Step4 from: https://www.mathworks.com/help/econ/infer-conditional-variances.html
end
% concat into a matrix of TxN where T is the number of time periods and N
% is the number of stocks
standardizedResidualsMat = zeros(T, numAssets);
for i = 1:numAssets
standardizedResidualsMat(:, i) = standardizedResiduals{i};
end
R_bar = zeros(numAssets, numAssets);
for t = 1:T
R_bar = R_bar + (standardizedResidualsMat(t, :)’ * standardizedResidualsMat(t, :));
end
R_bar = R_bar / T;Hello,
I am trying to estimate a GARCH(1,1), get the standardized residuals and form a matrix from them. My R_bar does not have exact 1’s on the diagonal even though they are very close to 1 (for example, 0.9983, 0.9997, 1.023…). Specifically I trying to do this:
data = parquetread(‘/datacommons/dfe/cov/close_to_close_2010-2014.parquet’);
returns = data{:, 2:end};
numAssets = size(returns, 2);
%returns look like this:
%header stock_1 stock_2 …
%date1 return_1 of stock 1 return_1 of stock 2
%date2 return_2 of stock 1 return_2 of stock 2
%…
%returns are not demeaned
mdl = cell(numAssets, 1);
estMdl = cell(numAssets, 1);
condVar = cell(numAssets, 1);
standardizedResiduals = cell(numAssets, 1);
residuals = cell(numAssets, 1);
for i = 1:numAssets
mdl{i} = garch(‘Offset’, NaN, ‘GARCHLags’, 1, ‘ARCHLags’, 1); %I did not demean the returns so I let the model estimate the "offset" parameter
estMdl{i} = estimate(mdl{i}, returns(:, i), ‘Display’, ‘off’);
condVar{i} = infer(estMdl{i}, returns(:, i));
residuals{i} = (returns(:, i) – estMdl{i}.Offset) ;
standardizedResiduals{i} = (returns(:, i) – estMdl{i}.Offset) ./ sqrt(condVar{i}); %Step4 from: https://www.mathworks.com/help/econ/infer-conditional-variances.html
end
% concat into a matrix of TxN where T is the number of time periods and N
% is the number of stocks
standardizedResidualsMat = zeros(T, numAssets);
for i = 1:numAssets
standardizedResidualsMat(:, i) = standardizedResiduals{i};
end
R_bar = zeros(numAssets, numAssets);
for t = 1:T
R_bar = R_bar + (standardizedResidualsMat(t, :)’ * standardizedResidualsMat(t, :));
end
R_bar = R_bar / T; Hello,
I am trying to estimate a GARCH(1,1), get the standardized residuals and form a matrix from them. My R_bar does not have exact 1’s on the diagonal even though they are very close to 1 (for example, 0.9983, 0.9997, 1.023…). Specifically I trying to do this:
data = parquetread(‘/datacommons/dfe/cov/close_to_close_2010-2014.parquet’);
returns = data{:, 2:end};
numAssets = size(returns, 2);
%returns look like this:
%header stock_1 stock_2 …
%date1 return_1 of stock 1 return_1 of stock 2
%date2 return_2 of stock 1 return_2 of stock 2
%…
%returns are not demeaned
mdl = cell(numAssets, 1);
estMdl = cell(numAssets, 1);
condVar = cell(numAssets, 1);
standardizedResiduals = cell(numAssets, 1);
residuals = cell(numAssets, 1);
for i = 1:numAssets
mdl{i} = garch(‘Offset’, NaN, ‘GARCHLags’, 1, ‘ARCHLags’, 1); %I did not demean the returns so I let the model estimate the "offset" parameter
estMdl{i} = estimate(mdl{i}, returns(:, i), ‘Display’, ‘off’);
condVar{i} = infer(estMdl{i}, returns(:, i));
residuals{i} = (returns(:, i) – estMdl{i}.Offset) ;
standardizedResiduals{i} = (returns(:, i) – estMdl{i}.Offset) ./ sqrt(condVar{i}); %Step4 from: https://www.mathworks.com/help/econ/infer-conditional-variances.html
end
% concat into a matrix of TxN where T is the number of time periods and N
% is the number of stocks
standardizedResidualsMat = zeros(T, numAssets);
for i = 1:numAssets
standardizedResidualsMat(:, i) = standardizedResiduals{i};
end
R_bar = zeros(numAssets, numAssets);
for t = 1:T
R_bar = R_bar + (standardizedResidualsMat(t, :)’ * standardizedResidualsMat(t, :));
end
R_bar = R_bar / T; garch, econometrics toolbox MATLAB Answers — New Questions
SENSITIVITY ANALYSIS OF A SYSTEM OF AN ODE USING NORMALIZED SENSITIVITY FUNCTION
I want to perform the sensitivity analysis on the parameters of an ODE SIR model using normalized sensitivity function. I used the following code below. When it was run, I got this error: "undefined functionnor variable ‘p’, error in epidemic1 line8, F=ode45(@epidemic,ic,p)". How can I resolve it to get the plots?
My interest is to get the figure (3) i.e. The plot of nomalized sensitivity functions against time
function epidemic1()
clc
beta=0.4; gamma=0.04;
p1 = [beta gamma];
ic = [995;5;0];
F = ode45(@epidemic,ic,p);
sol1 = solve(F,0,80)
figure(1)
plot(sol1.Time,sol1.Solution,’-o’)
legend(‘S’,’I’,’R’)
title([‘SIR Populations over Time’,’$beta=0.4$, $gamma=0.04$’],’Interpreter’,’latex’)
xlabel(‘Time’,’Interpreter’,’latex’)
ylabel(‘Population’,’Interpreter’,’latex’)
Figure(2)
p2 = [0.2 0.1];
F.Parameters = p2;
F.Sensitivity = odeSensitivity;
sol2 = solve(F,0,80)
plot(sol2.Time,sol2.Solution,’-o’)
legend(‘S’,’I’,’R’)
title([‘SIR Populations over Time’,’beta=0.2$, $gamma=0.1$’],’Interpreter’,’latex’)
xlabel(‘Time’,’Interpreter’,’latex’)
ylabel(‘Population’,’Interpreter’,’latex’)
U11 = squeeze(sol2.Sensitivity(1,1,:))’.*(p2(1)./sol2.Solution(1,:));
U12 = squeeze(sol2.Sensitivity(1,2,:))’.*(p2(2)./sol2.Solution(1,:));
U21 = squeeze(sol2.Sensitivity(2,1,:))’.*(p2(1)./sol2.Solution(2,:));
U22 = squeeze(sol2.Sensitivity(2,2,:))’.*(p2(2)./sol2.Solution(2,:));
U31 = squeeze(sol2.Sensitivity(3,1,:))’.*(p2(1)./sol2.Solution(3,:));
U32 = squeeze(sol2.Sensitivity(3,2,:))’.*(p2(2)./sol2.Solution(3,:));
Figure(3)
t = tiledlayout(3,2);
title(t,[‘Parameter Sensitivity by Equation’,’$beta=0.2$, $gamma=0.1$’],’Interpreter’,’latex’)
xlabel(t,’Time’,’Interpreter’,’latex’)
ylabel(t,’% Change in Eqn’,’Interpreter’,’latex’)
nexttile
plot(sol2.Time,U11)
title(‘$beta$, Eqn. 1′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U12)
title(‘$gamma$, Eqn. 1′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U21)
title(‘$beta$, Eqn. 2′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U22)
title(‘$gamma$, Eqn. 2′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U31)
title(‘$beta$, Eqn. 3′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U32)
title(‘$gamma$, Eqn. 3′,’Interpreter’,’latex’)
ylim([-5 5])
function dydt = epidemic(t,y,p)
dydt = [0;0;0];
S = y(1);
I = y(2);
R = y(3);
N = S + I + R;
dSdt = -beta*(I*S)/N;
dIdt = beta*(I*S)/N – gamma*I;
dRdt = gamma*I;
end
endI want to perform the sensitivity analysis on the parameters of an ODE SIR model using normalized sensitivity function. I used the following code below. When it was run, I got this error: "undefined functionnor variable ‘p’, error in epidemic1 line8, F=ode45(@epidemic,ic,p)". How can I resolve it to get the plots?
My interest is to get the figure (3) i.e. The plot of nomalized sensitivity functions against time
function epidemic1()
clc
beta=0.4; gamma=0.04;
p1 = [beta gamma];
ic = [995;5;0];
F = ode45(@epidemic,ic,p);
sol1 = solve(F,0,80)
figure(1)
plot(sol1.Time,sol1.Solution,’-o’)
legend(‘S’,’I’,’R’)
title([‘SIR Populations over Time’,’$beta=0.4$, $gamma=0.04$’],’Interpreter’,’latex’)
xlabel(‘Time’,’Interpreter’,’latex’)
ylabel(‘Population’,’Interpreter’,’latex’)
Figure(2)
p2 = [0.2 0.1];
F.Parameters = p2;
F.Sensitivity = odeSensitivity;
sol2 = solve(F,0,80)
plot(sol2.Time,sol2.Solution,’-o’)
legend(‘S’,’I’,’R’)
title([‘SIR Populations over Time’,’beta=0.2$, $gamma=0.1$’],’Interpreter’,’latex’)
xlabel(‘Time’,’Interpreter’,’latex’)
ylabel(‘Population’,’Interpreter’,’latex’)
U11 = squeeze(sol2.Sensitivity(1,1,:))’.*(p2(1)./sol2.Solution(1,:));
U12 = squeeze(sol2.Sensitivity(1,2,:))’.*(p2(2)./sol2.Solution(1,:));
U21 = squeeze(sol2.Sensitivity(2,1,:))’.*(p2(1)./sol2.Solution(2,:));
U22 = squeeze(sol2.Sensitivity(2,2,:))’.*(p2(2)./sol2.Solution(2,:));
U31 = squeeze(sol2.Sensitivity(3,1,:))’.*(p2(1)./sol2.Solution(3,:));
U32 = squeeze(sol2.Sensitivity(3,2,:))’.*(p2(2)./sol2.Solution(3,:));
Figure(3)
t = tiledlayout(3,2);
title(t,[‘Parameter Sensitivity by Equation’,’$beta=0.2$, $gamma=0.1$’],’Interpreter’,’latex’)
xlabel(t,’Time’,’Interpreter’,’latex’)
ylabel(t,’% Change in Eqn’,’Interpreter’,’latex’)
nexttile
plot(sol2.Time,U11)
title(‘$beta$, Eqn. 1′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U12)
title(‘$gamma$, Eqn. 1′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U21)
title(‘$beta$, Eqn. 2′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U22)
title(‘$gamma$, Eqn. 2′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U31)
title(‘$beta$, Eqn. 3′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U32)
title(‘$gamma$, Eqn. 3′,’Interpreter’,’latex’)
ylim([-5 5])
function dydt = epidemic(t,y,p)
dydt = [0;0;0];
S = y(1);
I = y(2);
R = y(3);
N = S + I + R;
dSdt = -beta*(I*S)/N;
dIdt = beta*(I*S)/N – gamma*I;
dRdt = gamma*I;
end
end I want to perform the sensitivity analysis on the parameters of an ODE SIR model using normalized sensitivity function. I used the following code below. When it was run, I got this error: "undefined functionnor variable ‘p’, error in epidemic1 line8, F=ode45(@epidemic,ic,p)". How can I resolve it to get the plots?
My interest is to get the figure (3) i.e. The plot of nomalized sensitivity functions against time
function epidemic1()
clc
beta=0.4; gamma=0.04;
p1 = [beta gamma];
ic = [995;5;0];
F = ode45(@epidemic,ic,p);
sol1 = solve(F,0,80)
figure(1)
plot(sol1.Time,sol1.Solution,’-o’)
legend(‘S’,’I’,’R’)
title([‘SIR Populations over Time’,’$beta=0.4$, $gamma=0.04$’],’Interpreter’,’latex’)
xlabel(‘Time’,’Interpreter’,’latex’)
ylabel(‘Population’,’Interpreter’,’latex’)
Figure(2)
p2 = [0.2 0.1];
F.Parameters = p2;
F.Sensitivity = odeSensitivity;
sol2 = solve(F,0,80)
plot(sol2.Time,sol2.Solution,’-o’)
legend(‘S’,’I’,’R’)
title([‘SIR Populations over Time’,’beta=0.2$, $gamma=0.1$’],’Interpreter’,’latex’)
xlabel(‘Time’,’Interpreter’,’latex’)
ylabel(‘Population’,’Interpreter’,’latex’)
U11 = squeeze(sol2.Sensitivity(1,1,:))’.*(p2(1)./sol2.Solution(1,:));
U12 = squeeze(sol2.Sensitivity(1,2,:))’.*(p2(2)./sol2.Solution(1,:));
U21 = squeeze(sol2.Sensitivity(2,1,:))’.*(p2(1)./sol2.Solution(2,:));
U22 = squeeze(sol2.Sensitivity(2,2,:))’.*(p2(2)./sol2.Solution(2,:));
U31 = squeeze(sol2.Sensitivity(3,1,:))’.*(p2(1)./sol2.Solution(3,:));
U32 = squeeze(sol2.Sensitivity(3,2,:))’.*(p2(2)./sol2.Solution(3,:));
Figure(3)
t = tiledlayout(3,2);
title(t,[‘Parameter Sensitivity by Equation’,’$beta=0.2$, $gamma=0.1$’],’Interpreter’,’latex’)
xlabel(t,’Time’,’Interpreter’,’latex’)
ylabel(t,’% Change in Eqn’,’Interpreter’,’latex’)
nexttile
plot(sol2.Time,U11)
title(‘$beta$, Eqn. 1′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U12)
title(‘$gamma$, Eqn. 1′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U21)
title(‘$beta$, Eqn. 2′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U22)
title(‘$gamma$, Eqn. 2′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U31)
title(‘$beta$, Eqn. 3′,’Interpreter’,’latex’)
ylim([-5 5])
nexttile
plot(sol2.Time,U32)
title(‘$gamma$, Eqn. 3′,’Interpreter’,’latex’)
ylim([-5 5])
function dydt = epidemic(t,y,p)
dydt = [0;0;0];
S = y(1);
I = y(2);
R = y(3);
N = S + I + R;
dSdt = -beta*(I*S)/N;
dIdt = beta*(I*S)/N – gamma*I;
dRdt = gamma*I;
end
end sensisitivity analysis, ode, normalized sensitivity MATLAB Answers — New Questions
Help: MS Word 365 document does not respond to footnote formatting procedure.
I have followed the steps as outlined in this MS video exactly, yet it has no effect on my document’s footnote numbers. MSWordVideo The document has nearly 200 pages with many footnotes. The footnote number font size was fine… and then for some reason they all changed when I was trying to format a bulleted list (had nothing to do with footnotes) and I am unable to get them back to the previous size or to change them at all.
I have followed the steps as outlined in this MS video exactly, yet it has no effect on my document’s footnote numbers. MSWordVideo The document has nearly 200 pages with many footnotes. The footnote number font size was fine… and then for some reason they all changed when I was trying to format a bulleted list (had nothing to do with footnotes) and I am unable to get them back to the previous size or to change them at all. Read More
When will the People Vertical (Organization level) become configurable?
All Out of the Box search verticals can be customized in the Search & Intelligence admin center, but not People.
We really need to be able to add refiners AND taylor the query in order to exclude some of the results
All Out of the Box search verticals can be customized in the Search & Intelligence admin center, but not People. We really need to be able to add refiners AND taylor the query in order to exclude some of the results Read More
Data is not getting stored as a web part properties, in single part app page in spfx.
I have created the spfx solution, which is organization chart, in that i am storing the data, in the manifest.json file as a webPart properties, but when i deploy that solution to the sharepoint online, and when i add that web part in the site page, it will add, when do the changes in the web part, it will save the changes, in the manifest.json file, but when i add the same web part, as a single part app page, it will work fine, but when i reload the page, it will not saving the data in manifest.json file, site will start from starting again.
The above one is the manifest.json file of the solution, where data is being stored
It is showing this popup message.
Please provide the solution for this???
I have created the spfx solution, which is organization chart, in that i am storing the data, in the manifest.json file as a webPart properties, but when i deploy that solution to the sharepoint online, and when i add that web part in the site page, it will add, when do the changes in the web part, it will save the changes, in the manifest.json file, but when i add the same web part, as a single part app page, it will work fine, but when i reload the page, it will not saving the data in manifest.json file, site will start from starting again. The above one is the manifest.json file of the solution, where data is being stored It is showing this popup message.Please provide the solution for this??? Read More
design and model hybrid renewable energy sources of wind,solar & battery using fuzzy lojic
to do hybrid power sytem based on renewable ernergy sources for rural areas/offgrid communityto do hybrid power sytem based on renewable ernergy sources for rural areas/offgrid community to do hybrid power sytem based on renewable ernergy sources for rural areas/offgrid community fuzzy lojic MATLAB Answers — New Questions
How do I find the index of a datapointon a MATLAB plot?
With a very large dataset – assume 1 million [x,y] pairs or more – how do I find the *index of an individual datapoint* on a MATLAB plot?
Example: I use plot(x,y) and the plot appears. The plot is complicated but there are artifacts I can locate by eye much easier than writing a detection script. I zoom into the plot and locate the desired data artifact. I need to know the exact location (index) of the artifact. I zoom that individual datapoints are apparent, place a cursor on the datapoint of interest, but the cursor does not report the exact x(index) of the datapoint. Other than manually scrubbing through the data to find the index, how do I find the index by using the plot?With a very large dataset – assume 1 million [x,y] pairs or more – how do I find the *index of an individual datapoint* on a MATLAB plot?
Example: I use plot(x,y) and the plot appears. The plot is complicated but there are artifacts I can locate by eye much easier than writing a detection script. I zoom into the plot and locate the desired data artifact. I need to know the exact location (index) of the artifact. I zoom that individual datapoints are apparent, place a cursor on the datapoint of interest, but the cursor does not report the exact x(index) of the datapoint. Other than manually scrubbing through the data to find the index, how do I find the index by using the plot? With a very large dataset – assume 1 million [x,y] pairs or more – how do I find the *index of an individual datapoint* on a MATLAB plot?
Example: I use plot(x,y) and the plot appears. The plot is complicated but there are artifacts I can locate by eye much easier than writing a detection script. I zoom into the plot and locate the desired data artifact. I need to know the exact location (index) of the artifact. I zoom that individual datapoints are apparent, place a cursor on the datapoint of interest, but the cursor does not report the exact x(index) of the datapoint. Other than manually scrubbing through the data to find the index, how do I find the index by using the plot? plot MATLAB Answers — New Questions
How does ANSYS convert the strain of nodes at the element level to the strains of nodes for the entire model (especially for the middle points)?
Dear forum members,
I am currently working on developing finite element analysis (FEA) code in MATLAB, where I’m utilizing quadratic tetrahedral elements. For this purpose, I have exported the necessary values and matrices from ANSYS. After calculating the strain for each element, I proceeded to average the values for overlapping nodes at the element level. This approach seems to work well for the corner nodes of each element; however, I encounter inconsistencies when it comes to middle points. In some cases, even when the nodes are not duplicated, the values vary.
Could anyone provide insight into why such discrepancies may occur? Your expertise and advice would be greatly appreciated as I navigate through this issue.
Thank you for your time and assistance.Dear forum members,
I am currently working on developing finite element analysis (FEA) code in MATLAB, where I’m utilizing quadratic tetrahedral elements. For this purpose, I have exported the necessary values and matrices from ANSYS. After calculating the strain for each element, I proceeded to average the values for overlapping nodes at the element level. This approach seems to work well for the corner nodes of each element; however, I encounter inconsistencies when it comes to middle points. In some cases, even when the nodes are not duplicated, the values vary.
Could anyone provide insight into why such discrepancies may occur? Your expertise and advice would be greatly appreciated as I navigate through this issue.
Thank you for your time and assistance. Dear forum members,
I am currently working on developing finite element analysis (FEA) code in MATLAB, where I’m utilizing quadratic tetrahedral elements. For this purpose, I have exported the necessary values and matrices from ANSYS. After calculating the strain for each element, I proceeded to average the values for overlapping nodes at the element level. This approach seems to work well for the corner nodes of each element; however, I encounter inconsistencies when it comes to middle points. In some cases, even when the nodes are not duplicated, the values vary.
Could anyone provide insight into why such discrepancies may occur? Your expertise and advice would be greatly appreciated as I navigate through this issue.
Thank you for your time and assistance. fea, finiteelementmethod, strain, element MATLAB Answers — New Questions
Mastering Microsoft Copilot Prompts
Microsoft Copilot is your AI sidekick within the Microsoft 365 suite. But did you know its true potential lies in the power of prompts? Crafting the right prompt unlocks a world of possibilities, saving you time and boosting your productivity.
This post dives into the art and science of effective Copilot prompts, helping you take your workflow to the next level.
What are Copilot prompts?
Think of Copilot prompts as instructions for your AI assistant. By providing clear and concise prompts, you guide Copilot to perform specific tasks within your Microsoft 365 apps. These tasks can range from creating documents and presentations to summarizing information and generating creative content.
The Art of Prompting:
Start Broad, Refine Later: Begin with a general idea of what you want to achieve. For example, “Create a social media post summarizing this blog post.” Copilot will generate a draft, and you can then refine the prompt with specifics like tone or target audience.
Context is King: Provide relevant details to steer Copilot in the right direction. For instance, “Write an email to John requesting a status update on the marketing campaign, mentioning the upcoming deadline.”
Embrace the Conversation: Don’t be afraid to have a back and forth with Copilot. Ask clarifying questions, provide additional information, and refine the generated content until it meets your needs.
Prompt Examples to Spark Your Creativity:
Content Creation:
“Craft a compelling product description for our new fitness tracker.”
“Develop a catchy email subject line to promote our latest webinar.”
Document Assistance:
“Transform this bulleted list into a well structured presentation.”
“Summarize the key takeaways from this meeting recording.”
Research and Learning:
“Compile information on the benefits of mindfulness for a report I’m writing.”
“Generate a quiz for my students to test their knowledge of basic coding concepts.”
Beyond the Basics:
Leverage Internal Data: The magic of Copilot lies in its ability to access your Microsoft 365 data. This allows you to create prompts that reference emails, presentations, and other documents, making your workflow seamless.
Explore Copilot Labs: Microsoft offers Copilot Labs, a platform brimming with prebuilt prompts for various tasks. Use these as a springboard for crafting your own or discovering new functionalities.
By mastering the art of Copilot prompts, you can unlock a new level of efficiency and creativity within your Microsoft 365 environment. So, unleash the power of prompts and watch your productivity soar!
Mastering Microsoft Copilot PromptsMicrosoft Copilot is your AI sidekick within the Microsoft 365 suite. But did you know its true potential lies in the power of prompts? Crafting the right prompt unlocks a world of possibilities, saving you time and boosting your productivity.This post dives into the art and science of effective Copilot prompts, helping you take your workflow to the next level.What are Copilot prompts?Think of Copilot prompts as instructions for your AI assistant. By providing clear and concise prompts, you guide Copilot to perform specific tasks within your Microsoft 365 apps. These tasks can range from creating documents and presentations to summarizing information and generating creative content.The Art of Prompting:Start Broad, Refine Later: Begin with a general idea of what you want to achieve. For example, “Create a social media post summarizing this blog post.” Copilot will generate a draft, and you can then refine the prompt with specifics like tone or target audience.Context is King: Provide relevant details to steer Copilot in the right direction. For instance, “Write an email to John requesting a status update on the marketing campaign, mentioning the upcoming deadline.”Embrace the Conversation: Don’t be afraid to have a back and forth with Copilot. Ask clarifying questions, provide additional information, and refine the generated content until it meets your needs.Prompt Examples to Spark Your Creativity:Content Creation:”Craft a compelling product description for our new fitness tracker.””Develop a catchy email subject line to promote our latest webinar.”Document Assistance:”Transform this bulleted list into a well structured presentation.””Summarize the key takeaways from this meeting recording.”Research and Learning:”Compile information on the benefits of mindfulness for a report I’m writing.””Generate a quiz for my students to test their knowledge of basic coding concepts.”Beyond the Basics:Leverage Internal Data: The magic of Copilot lies in its ability to access your Microsoft 365 data. This allows you to create prompts that reference emails, presentations, and other documents, making your workflow seamless.Explore Copilot Labs: Microsoft offers Copilot Labs, a platform brimming with prebuilt prompts for various tasks. Use these as a springboard for crafting your own or discovering new functionalities.By mastering the art of Copilot prompts, you can unlock a new level of efficiency and creativity within your Microsoft 365 environment. So, unleash the power of prompts and watch your productivity soar! Read More
Sum of a signal in simulink
In my Simulink model, current value of a signal should be added to all previous value of the same signal. I’ve used integrator with initial value of zero to find it; however the result is different from what I find in Matlab through "sum" or "trapz" function.
The solver is continuous with fixed step size.
Any thought to resolve this issue. or any other block to use for this purpose instead of integrator?In my Simulink model, current value of a signal should be added to all previous value of the same signal. I’ve used integrator with initial value of zero to find it; however the result is different from what I find in Matlab through "sum" or "trapz" function.
The solver is continuous with fixed step size.
Any thought to resolve this issue. or any other block to use for this purpose instead of integrator? In my Simulink model, current value of a signal should be added to all previous value of the same signal. I’ve used integrator with initial value of zero to find it; however the result is different from what I find in Matlab through "sum" or "trapz" function.
The solver is continuous with fixed step size.
Any thought to resolve this issue. or any other block to use for this purpose instead of integrator? sum simulink MATLAB Answers — New Questions
Wait until object is rendered in App Designer
Hello together,
I’m using the loading screen as desribed here, while my data is loaded.
The loading screen is closed, when the last function has finished. But no objects are rendered at this moment.
I’m creating a lot of buttons and edit fields programatically. But they are rendered very late, after the functions are already finished.
How to wait with closing the loading screen, until everything is rendered (or nearly at least)?
Thanks in advance!
ChristofHello together,
I’m using the loading screen as desribed here, while my data is loaded.
The loading screen is closed, when the last function has finished. But no objects are rendered at this moment.
I’m creating a lot of buttons and edit fields programatically. But they are rendered very late, after the functions are already finished.
How to wait with closing the loading screen, until everything is rendered (or nearly at least)?
Thanks in advance!
Christof Hello together,
I’m using the loading screen as desribed here, while my data is loaded.
The loading screen is closed, when the last function has finished. But no objects are rendered at this moment.
I’m creating a lot of buttons and edit fields programatically. But they are rendered very late, after the functions are already finished.
How to wait with closing the loading screen, until everything is rendered (or nearly at least)?
Thanks in advance!
Christof rendering, app designer, wait for MATLAB Answers — New Questions
How to obtain additional test result in neural network fitting app by using code?
Hi,
I am using the neural network fitting app in MATLAB 2024a version.
I used the code to develop the neural network by adding a hidden layer.
When I use this code, it shows the results for training, but I can’t get the results for the additional test set as shown in the neural network fitting app.
How can I get it? (e.g. the name of additional test input is "inputtest" and that of additional test output(target) is "outputtes")
I wrote my code below.
% Solve an Input-Output Fitting problem with a Neural Network
% Script generated by Neural Fitting app
% Created 09-Jun-2024 21:04:21
%
% This script assumes these variables are defined:
%
% bodyfatInputs – input data.
% bodyfatTargets – target data.
x = bodyfatInputs;
t = bodyfatTargets;
% Choose a Training Function
% For a list of all training functions type: help nntrain
% ‘trainlm’ is usually fastest.
% ‘trainbr’ takes longer but may be better for challenging problems.
% ‘trainscg’ uses less memory. Suitable in low memory situations.
trainFcn = ‘trainlm’; % Levenberg-Marquardt backpropagation.
% Create a Fitting Network
hiddenLayer1Size = 10;
hiddenLayer2Size = 10;
net = fitnet([hiddenLayer1Size, hiddenLayer2Size],trainFcn);
% Setup Division of Data for Training, Validation, Testing
net.divideParam.trainRatio = 70/100;
net.divideParam.valRatio = 15/100;
net.divideParam.testRatio = 15/100;
% Train the Network
[net,tr] = train(net,x,t);
% Test the Network
y = net(x);
e = gsubtract(t,y);
performance = perform(net,t,y)
% View the Network
view(net)
% Plots
% Uncomment these lines to enable various plots.
%figure, plotperform(tr)
%figure, plottrainstate(tr)
%figure, ploterrhist(e)
%figure, plotregression(t,y)
%figure, plotfit(net,x,t)Hi,
I am using the neural network fitting app in MATLAB 2024a version.
I used the code to develop the neural network by adding a hidden layer.
When I use this code, it shows the results for training, but I can’t get the results for the additional test set as shown in the neural network fitting app.
How can I get it? (e.g. the name of additional test input is "inputtest" and that of additional test output(target) is "outputtes")
I wrote my code below.
% Solve an Input-Output Fitting problem with a Neural Network
% Script generated by Neural Fitting app
% Created 09-Jun-2024 21:04:21
%
% This script assumes these variables are defined:
%
% bodyfatInputs – input data.
% bodyfatTargets – target data.
x = bodyfatInputs;
t = bodyfatTargets;
% Choose a Training Function
% For a list of all training functions type: help nntrain
% ‘trainlm’ is usually fastest.
% ‘trainbr’ takes longer but may be better for challenging problems.
% ‘trainscg’ uses less memory. Suitable in low memory situations.
trainFcn = ‘trainlm’; % Levenberg-Marquardt backpropagation.
% Create a Fitting Network
hiddenLayer1Size = 10;
hiddenLayer2Size = 10;
net = fitnet([hiddenLayer1Size, hiddenLayer2Size],trainFcn);
% Setup Division of Data for Training, Validation, Testing
net.divideParam.trainRatio = 70/100;
net.divideParam.valRatio = 15/100;
net.divideParam.testRatio = 15/100;
% Train the Network
[net,tr] = train(net,x,t);
% Test the Network
y = net(x);
e = gsubtract(t,y);
performance = perform(net,t,y)
% View the Network
view(net)
% Plots
% Uncomment these lines to enable various plots.
%figure, plotperform(tr)
%figure, plottrainstate(tr)
%figure, ploterrhist(e)
%figure, plotregression(t,y)
%figure, plotfit(net,x,t) Hi,
I am using the neural network fitting app in MATLAB 2024a version.
I used the code to develop the neural network by adding a hidden layer.
When I use this code, it shows the results for training, but I can’t get the results for the additional test set as shown in the neural network fitting app.
How can I get it? (e.g. the name of additional test input is "inputtest" and that of additional test output(target) is "outputtes")
I wrote my code below.
% Solve an Input-Output Fitting problem with a Neural Network
% Script generated by Neural Fitting app
% Created 09-Jun-2024 21:04:21
%
% This script assumes these variables are defined:
%
% bodyfatInputs – input data.
% bodyfatTargets – target data.
x = bodyfatInputs;
t = bodyfatTargets;
% Choose a Training Function
% For a list of all training functions type: help nntrain
% ‘trainlm’ is usually fastest.
% ‘trainbr’ takes longer but may be better for challenging problems.
% ‘trainscg’ uses less memory. Suitable in low memory situations.
trainFcn = ‘trainlm’; % Levenberg-Marquardt backpropagation.
% Create a Fitting Network
hiddenLayer1Size = 10;
hiddenLayer2Size = 10;
net = fitnet([hiddenLayer1Size, hiddenLayer2Size],trainFcn);
% Setup Division of Data for Training, Validation, Testing
net.divideParam.trainRatio = 70/100;
net.divideParam.valRatio = 15/100;
net.divideParam.testRatio = 15/100;
% Train the Network
[net,tr] = train(net,x,t);
% Test the Network
y = net(x);
e = gsubtract(t,y);
performance = perform(net,t,y)
% View the Network
view(net)
% Plots
% Uncomment these lines to enable various plots.
%figure, plotperform(tr)
%figure, plottrainstate(tr)
%figure, ploterrhist(e)
%figure, plotregression(t,y)
%figure, plotfit(net,x,t) neural network, neural networks fitting MATLAB Answers — New Questions
inventory tracking system
Hello,
how to establish an inventory tracking system in Excel utilizing Logbook codes when a form No. is entered in the first Excel sheet, the corresponding quantity is automatically deducted from the second sheet.
Hello,how to establish an inventory tracking system in Excel utilizing Logbook codes when a form No. is entered in the first Excel sheet, the corresponding quantity is automatically deducted from the second sheet. First sheetSecond Sheet Read More
How do I print an Excel spreadsheet combining the headings and a highlighted selection on one page?
How do I combine a selection and a heading when printing?
Many thanks.
How do I combine a selection and a heading when printing?Many thanks. Read More
MATLAB editor configuration text extremely small
The font size of my editor is extremely small so I increased it to 48, but then the find bar remains at 13,
I have also tried to keep the font at its regular 13 and scroll to zoom in but since the right-hand limit is half the page, every time I use the find bar the page jumps to the extreme right where there is no text.
This is 2023 b. I have used MATLAB for more than ten years and this has never happened before.The font size of my editor is extremely small so I increased it to 48, but then the find bar remains at 13,
I have also tried to keep the font at its regular 13 and scroll to zoom in but since the right-hand limit is half the page, every time I use the find bar the page jumps to the extreme right where there is no text.
This is 2023 b. I have used MATLAB for more than ten years and this has never happened before. The font size of my editor is extremely small so I increased it to 48, but then the find bar remains at 13,
I have also tried to keep the font at its regular 13 and scroll to zoom in but since the right-hand limit is half the page, every time I use the find bar the page jumps to the extreme right where there is no text.
This is 2023 b. I have used MATLAB for more than ten years and this has never happened before. display MATLAB Answers — New Questions