Month: June 2024
Excel Formulas HELP!!!
I am reaching out for last minute help, please please.
I have an assignment due by midnight and need help with formulas. Honestly I just don’t know how to use them properly. I’ve tried several times and get the Value error or something weird but no numbers are coming thru. I thought i was entering these formulas correctly.
Formula for: Converting my budget into the currency for said country and convert the amount of units of the local currency into dollars.
Formula for: I need to use excel functions to find the slope and y-intercept of the best-fit line for the given coordinates. Also need to calculate the avrg weekly income for all the years of edu using the slope and y-intercept to calculate. What is BLS DATA as a scatterplot?
Formula for: convert miligrams per milliliter to micrograms per teaspoon (this is just one out of 4 formulas that I need.
I am reaching out for last minute help, please please. I have an assignment due by midnight and need help with formulas. Honestly I just don’t know how to use them properly. I’ve tried several times and get the Value error or something weird but no numbers are coming thru. I thought i was entering these formulas correctly. Formula for: Converting my budget into the currency for said country and convert the amount of units of the local currency into dollars. Formula for: I need to use excel functions to find the slope and y-intercept of the best-fit line for the given coordinates. Also need to calculate the avrg weekly income for all the years of edu using the slope and y-intercept to calculate. What is BLS DATA as a scatterplot? Formula for: convert miligrams per milliliter to micrograms per teaspoon (this is just one out of 4 formulas that I need. Read More
Private SharePoint sites with Everyone except external users
I’m trying to find the Graph API endpoints that will allow me to get a list of all SharePoint sites that are private (not public). And then check to see if those sites have the group Everyone except external users added. Any help would be much appreciated.
I’m trying to find the Graph API endpoints that will allow me to get a list of all SharePoint sites that are private (not public). And then check to see if those sites have the group Everyone except external users added. Any help would be much appreciated. Read More
How to set parameters in an FMU from Matlab Simulink ?
We have an FMU developed using MSVC 2022 for Windows x64. The FMU imports in Simulink nicely and I am able to see the I/O ports as intended. I am also able to access the inputs set from the environment using assigning a constant / signal generator to the input ports.
I would now like to also set the parameters from the workspace. I have tried using several of the callback functions at the model (Simulink) level as well as the block level. However, I am still not able to see the supplied values affect the parameter values inside the FMU. I am testing this by logging the output in various functions. I only want to set the parameters once at the start of simulation and they are defined like so in the modelDescription.xml file:
<Float64 name="LP" valueReference="1" causality="parameter" variability="fixed" initial="exact" description="POS_THICKNESS" declaredType="Length" start=".1320e-3" />
While the default value is already set, we would like the end user to be able to configure it once for every run.
Any guidance with how to debug this would be appreciated.We have an FMU developed using MSVC 2022 for Windows x64. The FMU imports in Simulink nicely and I am able to see the I/O ports as intended. I am also able to access the inputs set from the environment using assigning a constant / signal generator to the input ports.
I would now like to also set the parameters from the workspace. I have tried using several of the callback functions at the model (Simulink) level as well as the block level. However, I am still not able to see the supplied values affect the parameter values inside the FMU. I am testing this by logging the output in various functions. I only want to set the parameters once at the start of simulation and they are defined like so in the modelDescription.xml file:
<Float64 name="LP" valueReference="1" causality="parameter" variability="fixed" initial="exact" description="POS_THICKNESS" declaredType="Length" start=".1320e-3" />
While the default value is already set, we would like the end user to be able to configure it once for every run.
Any guidance with how to debug this would be appreciated. We have an FMU developed using MSVC 2022 for Windows x64. The FMU imports in Simulink nicely and I am able to see the I/O ports as intended. I am also able to access the inputs set from the environment using assigning a constant / signal generator to the input ports.
I would now like to also set the parameters from the workspace. I have tried using several of the callback functions at the model (Simulink) level as well as the block level. However, I am still not able to see the supplied values affect the parameter values inside the FMU. I am testing this by logging the output in various functions. I only want to set the parameters once at the start of simulation and they are defined like so in the modelDescription.xml file:
<Float64 name="LP" valueReference="1" causality="parameter" variability="fixed" initial="exact" description="POS_THICKNESS" declaredType="Length" start=".1320e-3" />
While the default value is already set, we would like the end user to be able to configure it once for every run.
Any guidance with how to debug this would be appreciated. fmu, co-simulation, simulink MATLAB Answers — New Questions
how to calculate a derivative
can some one guide me how to calculate a derivative and integration in matlab . can you please give a little example.can some one guide me how to calculate a derivative and integration in matlab . can you please give a little example. can some one guide me how to calculate a derivative and integration in matlab . can you please give a little example. derivative and integration MATLAB Answers — New Questions
how to create a matrix with variables in it?
for eg., to create following matrix and work on it,
A=[x1 x1*x2 ; x1^2 x2^2]for eg., to create following matrix and work on it,
A=[x1 x1*x2 ; x1^2 x2^2] for eg., to create following matrix and work on it,
A=[x1 x1*x2 ; x1^2 x2^2] variable matrix MATLAB Answers — New Questions
Can I use a Copilot with Microsoft 365 even if they are licensed in different regions?
Hi, I work in a company that has offices in Australia, New Zealand and Singapore. My Singapore-based office has decided to adopt Copilot for our work tasks and we wish to engage a Singapore vendor to get the necessary licenses. However, our Microsoft 365 licenses are from New Zealand. Will this pose a problem?
We really want to engage the Singapore vendor because of how we’d be able to correspond more closely regarding the Copilot functionality. I did a preliminary search online and the information I found shows that this arrangement should be fine since Microsoft 365 and Copilot are separate products and it doesn’t matter if they are bought from different regions (save that it’ll affect where you get customer support from, etc). Can I confirm my understanding with the community?
Hi, I work in a company that has offices in Australia, New Zealand and Singapore. My Singapore-based office has decided to adopt Copilot for our work tasks and we wish to engage a Singapore vendor to get the necessary licenses. However, our Microsoft 365 licenses are from New Zealand. Will this pose a problem? We really want to engage the Singapore vendor because of how we’d be able to correspond more closely regarding the Copilot functionality. I did a preliminary search online and the information I found shows that this arrangement should be fine since Microsoft 365 and Copilot are separate products and it doesn’t matter if they are bought from different regions (save that it’ll affect where you get customer support from, etc). Can I confirm my understanding with the community? Read More
How to draw free-hand sketches using imfreehand ?
I have to take as input hand drawn sketches … I have tried using imfreehand() but it completes the figures itself.
I also tried the solution provided by Doug Schwarz in
<http://www.mathworks.in/matlabcentral/newsreader/view_thread/30168#75552>
where he coded the following :
function sketch(cmd)
if nargin == 0
cmd = ‘init’;
end
switch cmd
case ‘init’
fig = figure(‘DoubleBuffer’,’on’,’back’,’off’);
info.ax = axes(‘XLim’,[0 1],’YLim’,[0 1]);
info.drawing = [];
info.x = [];
info.y = [];
set(fig,’UserData’,info,…
‘WindowButtonDownFcn’,[mfilename,’ down’])
case ‘down’
myname = mfilename;
fig = gcbf;
info = get(fig,’UserData’);
curpos = get(info.ax,’CurrentPoint’);
info.x = curpos(1,1);
info.y = curpos(1,2);
info.drawing = line(info.x,info.y,’Color’,’k’);
set(fig,’UserData’,info,…
‘WindowButtonMotionFcn’,[myname,’ move’],…
‘WindowButtonUpFcn’,[myname,’ up’])
case ‘move’
fig = gcbf;
info = get(fig,’UserData’);
curpos = get(info.ax,’CurrentPoint’);
info.x = [info.x;curpos(1,1)];
info.y = [info.y;curpos(1,2)];
set(info.drawing,’XData’,info.x,’YData’,info.y)
set(fig,’UserData’,info)
case ‘up’
fig = gcbf;
set(fig,’WindowButtonMotionFcn’,”,…
‘WindowButtonUpFcn’,”)
end
But I am not able to save the sketch being drawn or access it ..
Please help …I have to take as input hand drawn sketches … I have tried using imfreehand() but it completes the figures itself.
I also tried the solution provided by Doug Schwarz in
<http://www.mathworks.in/matlabcentral/newsreader/view_thread/30168#75552>
where he coded the following :
function sketch(cmd)
if nargin == 0
cmd = ‘init’;
end
switch cmd
case ‘init’
fig = figure(‘DoubleBuffer’,’on’,’back’,’off’);
info.ax = axes(‘XLim’,[0 1],’YLim’,[0 1]);
info.drawing = [];
info.x = [];
info.y = [];
set(fig,’UserData’,info,…
‘WindowButtonDownFcn’,[mfilename,’ down’])
case ‘down’
myname = mfilename;
fig = gcbf;
info = get(fig,’UserData’);
curpos = get(info.ax,’CurrentPoint’);
info.x = curpos(1,1);
info.y = curpos(1,2);
info.drawing = line(info.x,info.y,’Color’,’k’);
set(fig,’UserData’,info,…
‘WindowButtonMotionFcn’,[myname,’ move’],…
‘WindowButtonUpFcn’,[myname,’ up’])
case ‘move’
fig = gcbf;
info = get(fig,’UserData’);
curpos = get(info.ax,’CurrentPoint’);
info.x = [info.x;curpos(1,1)];
info.y = [info.y;curpos(1,2)];
set(info.drawing,’XData’,info.x,’YData’,info.y)
set(fig,’UserData’,info)
case ‘up’
fig = gcbf;
set(fig,’WindowButtonMotionFcn’,”,…
‘WindowButtonUpFcn’,”)
end
But I am not able to save the sketch being drawn or access it ..
Please help … I have to take as input hand drawn sketches … I have tried using imfreehand() but it completes the figures itself.
I also tried the solution provided by Doug Schwarz in
<http://www.mathworks.in/matlabcentral/newsreader/view_thread/30168#75552>
where he coded the following :
function sketch(cmd)
if nargin == 0
cmd = ‘init’;
end
switch cmd
case ‘init’
fig = figure(‘DoubleBuffer’,’on’,’back’,’off’);
info.ax = axes(‘XLim’,[0 1],’YLim’,[0 1]);
info.drawing = [];
info.x = [];
info.y = [];
set(fig,’UserData’,info,…
‘WindowButtonDownFcn’,[mfilename,’ down’])
case ‘down’
myname = mfilename;
fig = gcbf;
info = get(fig,’UserData’);
curpos = get(info.ax,’CurrentPoint’);
info.x = curpos(1,1);
info.y = curpos(1,2);
info.drawing = line(info.x,info.y,’Color’,’k’);
set(fig,’UserData’,info,…
‘WindowButtonMotionFcn’,[myname,’ move’],…
‘WindowButtonUpFcn’,[myname,’ up’])
case ‘move’
fig = gcbf;
info = get(fig,’UserData’);
curpos = get(info.ax,’CurrentPoint’);
info.x = [info.x;curpos(1,1)];
info.y = [info.y;curpos(1,2)];
set(info.drawing,’XData’,info.x,’YData’,info.y)
set(fig,’UserData’,info)
case ‘up’
fig = gcbf;
set(fig,’WindowButtonMotionFcn’,”,…
‘WindowButtonUpFcn’,”)
end
But I am not able to save the sketch being drawn or access it ..
Please help … freehand sketch MATLAB Answers — New Questions
Automated bad SEGMENT detection in EEGLAB
Hello everyone,
I am new to EEG pre-processing. I wanted to know if there is any way to detect bad segments in the EEG data automatically in EEGLAB? I found resources for automated detection of bad channels and arifact detection and rejection using ICLabel. However, i do not find any for bad segment detection and rejection. I have a lot of data and manually detecting it will be very time consuming. I heard about AMICA. But it seems to do ICA decomposition and I am satified with runica. If I am not wrong, AMICA doesnt detect bad segments.
Looking forward to your insights.Hello everyone,
I am new to EEG pre-processing. I wanted to know if there is any way to detect bad segments in the EEG data automatically in EEGLAB? I found resources for automated detection of bad channels and arifact detection and rejection using ICLabel. However, i do not find any for bad segment detection and rejection. I have a lot of data and manually detecting it will be very time consuming. I heard about AMICA. But it seems to do ICA decomposition and I am satified with runica. If I am not wrong, AMICA doesnt detect bad segments.
Looking forward to your insights. Hello everyone,
I am new to EEG pre-processing. I wanted to know if there is any way to detect bad segments in the EEG data automatically in EEGLAB? I found resources for automated detection of bad channels and arifact detection and rejection using ICLabel. However, i do not find any for bad segment detection and rejection. I have a lot of data and manually detecting it will be very time consuming. I heard about AMICA. But it seems to do ICA decomposition and I am satified with runica. If I am not wrong, AMICA doesnt detect bad segments.
Looking forward to your insights. amica, preprocessing, bad segment, eeglab MATLAB Answers — New Questions
To take the partial derivative of a function using matlab
Here is a particular code. Can anyone please help me in taking the analytical (partial) derivative of the function ‘F’ along X (i.e., w.r.t. X) along Y (i.e., w.r.t. Y) and along the diagonal (i.e., w.r.t. X plus w.r.t. Y) using matlab command.
[X, Y]=meshgrid(-1:2/511:+1, -1:2/511:+1);
F=sqrt(3).*(2.*(X.^2+Y.^2)-1);
Thanking You!Here is a particular code. Can anyone please help me in taking the analytical (partial) derivative of the function ‘F’ along X (i.e., w.r.t. X) along Y (i.e., w.r.t. Y) and along the diagonal (i.e., w.r.t. X plus w.r.t. Y) using matlab command.
[X, Y]=meshgrid(-1:2/511:+1, -1:2/511:+1);
F=sqrt(3).*(2.*(X.^2+Y.^2)-1);
Thanking You! Here is a particular code. Can anyone please help me in taking the analytical (partial) derivative of the function ‘F’ along X (i.e., w.r.t. X) along Y (i.e., w.r.t. Y) and along the diagonal (i.e., w.r.t. X plus w.r.t. Y) using matlab command.
[X, Y]=meshgrid(-1:2/511:+1, -1:2/511:+1);
F=sqrt(3).*(2.*(X.^2+Y.^2)-1);
Thanking You! differential equations MATLAB Answers — New Questions
Different dilution effect on the kinetics of a time course
Hi to everyone!
To simplify the explanation and the problem, I simulated the kinetics of an irreversible first-order reaction, A -> B. I implemented it in two independent compartments, R and P. I simulated the effect of a dilution in R by doubling at t= 0,1 the R volume. I programmed in P that, at t = 0.1, the instantaneous concentration of A and B would be reduced by half. I am sending an attach with the implementation of these simulations in the Simbiology interface.
When the simulations of the two compartments are plotted, it can be seen that the responses are not equal. That is, from t = 0.1 s, the reaction follow an exponential function in R with half of the initial amplitude and half of the initial value of k1. That is, the relaxation time is doubled. Meanwhile, in P, from t = 0.1, the reaction follows exponential kinetics with half the amplitude value but maintaining the initial value of k = 10. Without a doubt, the correct simulation is the latter (compartment P) where only the effect is observed in the amplitude and not in the relaxation time. Could you tell me what the error is that makes these kinetics that should be equal not be?
Thank you in advance!
Luis B.Hi to everyone!
To simplify the explanation and the problem, I simulated the kinetics of an irreversible first-order reaction, A -> B. I implemented it in two independent compartments, R and P. I simulated the effect of a dilution in R by doubling at t= 0,1 the R volume. I programmed in P that, at t = 0.1, the instantaneous concentration of A and B would be reduced by half. I am sending an attach with the implementation of these simulations in the Simbiology interface.
When the simulations of the two compartments are plotted, it can be seen that the responses are not equal. That is, from t = 0.1 s, the reaction follow an exponential function in R with half of the initial amplitude and half of the initial value of k1. That is, the relaxation time is doubled. Meanwhile, in P, from t = 0.1, the reaction follows exponential kinetics with half the amplitude value but maintaining the initial value of k = 10. Without a doubt, the correct simulation is the latter (compartment P) where only the effect is observed in the amplitude and not in the relaxation time. Could you tell me what the error is that makes these kinetics that should be equal not be?
Thank you in advance!
Luis B. Hi to everyone!
To simplify the explanation and the problem, I simulated the kinetics of an irreversible first-order reaction, A -> B. I implemented it in two independent compartments, R and P. I simulated the effect of a dilution in R by doubling at t= 0,1 the R volume. I programmed in P that, at t = 0.1, the instantaneous concentration of A and B would be reduced by half. I am sending an attach with the implementation of these simulations in the Simbiology interface.
When the simulations of the two compartments are plotted, it can be seen that the responses are not equal. That is, from t = 0.1 s, the reaction follow an exponential function in R with half of the initial amplitude and half of the initial value of k1. That is, the relaxation time is doubled. Meanwhile, in P, from t = 0.1, the reaction follows exponential kinetics with half the amplitude value but maintaining the initial value of k = 10. Without a doubt, the correct simulation is the latter (compartment P) where only the effect is observed in the amplitude and not in the relaxation time. Could you tell me what the error is that makes these kinetics that should be equal not be?
Thank you in advance!
Luis B. simbiolog MATLAB Answers — New Questions
General Availability of SQL FCI and AG Features SQL Server Enabled by Azure Arc
We have good news. Two business continuity features for SQL Server enabled by Azure Arc are now generally available:
View Failover Cluster Instance
Manage Availability Group
With Azure Arc, these features help you manage high availability and disaster recovery for SQL Server workloads across on-premises, hybrid and multi- cloud environment. You can now manage them all from the comfort and convenience of the Azure portal.
View Failover Cluster Instance lets you see your failover cluster instances. You can find out things like:
Which nodes are active or passive
What is the network name
What databases they have
This capability mirrors the convenience of managing standalone instances of SQL Server enabled by Azure Arc.
To learn more, read Viewing Always On Failover Cluster Instances in Azure Arc.
Manage Availability Group lets you check and control your availability groups. You can do things like:
See what availability groups you have
See their status and health
Failover to another node, if needed
To learn more, read Inventory and Status of Always On Availability Groups.
We want to hear your feedback about these features. Thank you for choosing Azure Arc-enabled SQL Server for your on-premises, hybrid and multi-cloud solutions.
Microsoft Tech Community – Latest Blogs –Read More
Drop Down Menu to display text from specific cells.
Hi.
I’m a teacher, and I’m trying to create a marking assessment sheet, in which if I select a Level from a drop down menu, it will display the relevant information.
I’ve looked at lots of functions, but have really struggled to find anything that works.
Basically, my mark scheme has 3 columns (grids) and within each column, there are 5 levels, which each have different information. What I want to happen is that as soon as a user selects the level from a grid, it displays the information from the mark scheme in the cell underneath (see picture underneath, I couldn’t fit all of the data in the print screen). I can’t use IF, as there are more than two levels and I’ve tried using VLOOKUP to no avail. Can anyone help? The file is attached.
Hi. I’m a teacher, and I’m trying to create a marking assessment sheet, in which if I select a Level from a drop down menu, it will display the relevant information.I’ve looked at lots of functions, but have really struggled to find anything that works. Basically, my mark scheme has 3 columns (grids) and within each column, there are 5 levels, which each have different information. What I want to happen is that as soon as a user selects the level from a grid, it displays the information from the mark scheme in the cell underneath (see picture underneath, I couldn’t fit all of the data in the print screen). I can’t use IF, as there are more than two levels and I’ve tried using VLOOKUP to no avail. Can anyone help? The file is attached. Read More
Visualstudio / MCT Benefits for Azure and PowerBI not working
Hi – I am an active MCT since 2021 and recently I saw that my Azure Account and PowerBI Account that I got as virtue of MCT benefits are not working.
However, my MCT is active, my certifications are active and my VisualStudio Subscriptions are also active.
What is not active is association of the same in Azure and also PowerBI.
Please help and advice on what could be done.
Thanks
Hi – I am an active MCT since 2021 and recently I saw that my Azure Account and PowerBI Account that I got as virtue of MCT benefits are not working.However, my MCT is active, my certifications are active and my VisualStudio Subscriptions are also active.What is not active is association of the same in Azure and also PowerBI. Please help and advice on what could be done. Thanks Read More
Computation time significantly differs for 2D, 3D array indexing when solving the same problem. Best approach to address performance?
I wrote a simple code that calculates the covariance of images along different directions and lag spacings and returns a 2D map of covariance values varying by lags(h1,h2). The original program I wrote accepts only 2D inputs:
function [Correlogram] = ExhaustiveCovarianceFunction(X,lags)
[ny,nx,~]=size(X);
Covariance=NaN([2*lags+1 2*lags+1]);
Correlogram=NaN([2*lags+1 2*lags+1]);
for hy=-lags:lags
for hx=-lags:lags
sumprod=0;
sum1=0;
sum2=0;
countpairs=0;
for j=1:ny
for i=1:nx
if hy+j<=0 || hy+j>ny || hx+i<=0 || hx+i>nx
countpairs=countpairs;
continue
else
sumprod=X(j,i)*X(j+hy,i+hx) + sumprod;
sum1=X(j,i) + sum1;
sum2=X(j+hy,i+hx) + sum2;
countpairs=countpairs+1;
end
end
end
sumprod=sumprod/(countpairs);
sum1=sum1/(countpairs);
sum2=sum2/(countpairs);
Covariance(hy+lags+1,hx+lags+1)=sumprod – sum1*sum2;
%Standardize covariance values to correlogram
mean1=sum1;
mean2=sum2;
countpairs=0;
sumvar1=0;
sumvar2=0;
for j=1:ny
for i=1:nx
if hy+j<=0 || hy+j>ny || hx+i<=0 || hx+i>nx
continue
else
sumvar1=(X(j,i)-mean1)^2 + sumvar1;
sumvar2=(X(j+hy,i+hx)-mean2)^2 + sumvar2;
countpairs=countpairs+1;
end
end
end
sumvar1=sumvar1/countpairs;
sumvar2=sumvar2/countpairs;
Correlogram(hy+lags+1,hx+lags+1)=Covariance(hy+lags+1,hx+lags+1)/sqrt(sumvar1*sumvar2);
end
end
end
I wanted to extend this code to allow for up to 3D image inputs, but also allow 2D or 1D inputs. Some other changes for optimization were made (dynamically updating bounds, removing if/else statement):
function [Correlogram] = ExhaustiveCovarianceFunction3D(X,lags)
[ny,nx,nz]=size(X);
%lags is now a vector
Covariance=NaN([2*lags(1)+1, 2*lags(2)+1, 2*lags(3)+1]);
Correlogram=NaN([2*lags(1)+1, 2*lags(2)+1, 2*lags(3)+1]);
for hz=-lags(3):lags(3)
for hy=-lags(1):lags(1)
for hx=-lags(2):lags(2)
hvector = [hy hx hz];
if hvector(1)<0
ymin=abs(hvector(1))+1;
ymax=ny;
else
ymin=1;
ymax=ny-hvector(1);
end
if hvector(2)<0
xmin=abs(hvector(2))+1;
xmax=nx;
else
xmin=1;
xmax=nx-hvector(2);
end
if hvector(3)<0
zmin=abs(hvector(3))+1;
zmax=nz;
else
zmin=1;
zmax=nz-hvector(3);
end
sumprod=0;
sum1=0;
sum2=0;
for k=zmin:zmax
for j=ymin:ymax
for i=xmin:xmax
sumprod=X(j,i,k)*X(j+hy,i+hx,k+hz) + sumprod;
sum1=X(j,i,k) + sum1;
sum2=X(j+hy,i+hx,k+hz) + sum2;
end
end
end
countpairs = numel(ymin:ymax)*numel(xmin:xmax)*numel(zmin:zmax);
sumprod=sumprod/(countpairs);
sum1=sum1/(countpairs);
sum2=sum2/(countpairs);
Covariance(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)=sumprod – sum1*sum2;
%Standardize covariance values to correlogram
mean1=sum1;
mean2=sum2;
sumvar1=0;
sumvar2=0;
for k=zmin:zmax
for j=ymin:ymax
for i=xmin:xmax
sumvar1=(X(j,i,k)-mean1)^2 + sumvar1;
sumvar2=(X(j+hy,i+hx,k+hz)-mean2)^2 + sumvar2;
end
end
end
sumvar1=sumvar1/countpairs;
sumvar2=sumvar2/countpairs;
Correlogram(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)=Covariance(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)/sqrt(sumvar1*sumvar2);
end
end
end
end
I first compared these codes for a 2D input image (nz=1) and noticed that my new function runs much slower than the original function:
ExhaustiveCovarianceFunction(testslice,25): Elapsed time is 0.057659 seconds.
ExhaustiveCovarianceFunction3D(testslice,[25,25,0]): Elapsed time is 19.251866 seconds.
After some testing, this led me to realize that indexing a 3D array is much slower than a 2D array in MATLAB, and that this has something to do with how memory is accessed for higher-dimensional arrays. I found out that, if I added a third dimension to the original ExhaustiveCovarianceFunction with index 1 that never changed (eg, X(j,i,1), with no other changes, the code slowed down significantly:
2D array index X(j,i): Elapsed time is 0.059815 seconds.
3D array index X(j,i,1): Elapsed time is 18.849217 seconds.
The idea that we cannot work with higher-dimensional arrays in MATLAB if we want to have optimal performance led me to an approach where, in my new function, I convert the 2D and 3D arrays to a 1D array and map the nD array indices to 1D:
function index1D = convert3Dto1D_index(j, i, k, ny, nx)
index1D = j + (i – 1) * ny + (k – 1) * ny * nx;
end
function [Correlogram] = ExhaustiveCovarianceFunction3D(Xinput,lags)
X = flatten3D(Xinput);
[ny,nx,nz]=size(Xinput);
%lags is now a vector
Covariance=NaN([2*lags(1)+1, 2*lags(2)+1, 2*lags(3)+1]);
Correlogram=NaN([2*lags(1)+1, 2*lags(2)+1, 2*lags(3)+1]);
for hz=-lags(3):lags(3)
for hy=-lags(1):lags(1)
for hx=-lags(2):lags(2)
hvector = [hy hx hz];
if hvector(1)<0
ymin=abs(hvector(1))+1;
ymax=ny;
else
ymin=1;
ymax=ny-hvector(1);
end
if hvector(2)<0
xmin=abs(hvector(2))+1;
xmax=nx;
else
xmin=1;
xmax=nx-hvector(2);
end
if hvector(3)<0
zmin=abs(hvector(3))+1;
zmax=nz;
else
zmin=1;
zmax=nz-hvector(3);
end
sumprod=0;
sum1=0;
sum2=0;
countpairs=0;
for k=zmin:zmax
for j=ymin:ymax
for i=xmin:xmax
sumprod=X(convert3Dto1D_index(j, i, k, ny, nx))*X(convert3Dto1D_index(j+hy, i+hx, k+hz, ny, nx)) + sumprod;
sum1=X(convert3Dto1D_index(j, i, k, ny, nx)) + sum1;
sum2=X(convert3Dto1D_index(j+hy, i+hx, k+hz, ny, nx)) + sum2;
countpairs=countpairs+1;
end
end
end
countpairs = numel(ymin:ymax)*numel(xmin:xmax)*numel(zmin:zmax);
sumprod=sumprod/(countpairs);
sum1=sum1/(countpairs);
sum2=sum2/(countpairs);
Covariance(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)=sumprod – sum1*sum2;
%Standardize covariance values to correlogram
mean1=sum1;
mean2=sum2;
sumvar1=0;
sumvar2=0;
for k=zmin:zmax
for j=ymin:ymax
for i=xmin:xmax
sumvar1=(X(convert3Dto1D_index(j, i, k, ny, nx))-mean1)^2 + sumvar1;
sumvar2=(X(convert3Dto1D_index(j+hy, i+hx, k+hz, ny, nx))-mean2)^2 + sumvar2;
end
end
end
sumvar1=sumvar1/countpairs;
sumvar2=sumvar2/countpairs;
Correlogram(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)=Covariance(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)/sqrt(sumvar1*sumvar2);
end
end
end
end
This approach has better performance, but is still slower than the original 2D code:
2D: Elapsed time is 0.163243 seconds.
3D, 3D index: Elapsed time is 18.336108 seconds.
3D, 1D index: Elapsed time is 0.431890 seconds.
The optimized code with 1D array indexing is still about 3x slower. Perhaps calling convert3Dto1D_index(j, i, k, ny, nx) every time the image index is called is leading to this expense.These computational concerns are important for larger images (eg, 256x256x128) and for higher-order statistics that will be developed.
Is there a smarter approach to addressing this problem? I cannot figure out how to speed up this 3D code any more. Ideally, I seek to make the 3D/general code to have comparable speeds to the 2D "hard-coded" problem when a 2D image is input. If this is not possible, separate subroutines for 2D and 3D images is likely my best bet.I wrote a simple code that calculates the covariance of images along different directions and lag spacings and returns a 2D map of covariance values varying by lags(h1,h2). The original program I wrote accepts only 2D inputs:
function [Correlogram] = ExhaustiveCovarianceFunction(X,lags)
[ny,nx,~]=size(X);
Covariance=NaN([2*lags+1 2*lags+1]);
Correlogram=NaN([2*lags+1 2*lags+1]);
for hy=-lags:lags
for hx=-lags:lags
sumprod=0;
sum1=0;
sum2=0;
countpairs=0;
for j=1:ny
for i=1:nx
if hy+j<=0 || hy+j>ny || hx+i<=0 || hx+i>nx
countpairs=countpairs;
continue
else
sumprod=X(j,i)*X(j+hy,i+hx) + sumprod;
sum1=X(j,i) + sum1;
sum2=X(j+hy,i+hx) + sum2;
countpairs=countpairs+1;
end
end
end
sumprod=sumprod/(countpairs);
sum1=sum1/(countpairs);
sum2=sum2/(countpairs);
Covariance(hy+lags+1,hx+lags+1)=sumprod – sum1*sum2;
%Standardize covariance values to correlogram
mean1=sum1;
mean2=sum2;
countpairs=0;
sumvar1=0;
sumvar2=0;
for j=1:ny
for i=1:nx
if hy+j<=0 || hy+j>ny || hx+i<=0 || hx+i>nx
continue
else
sumvar1=(X(j,i)-mean1)^2 + sumvar1;
sumvar2=(X(j+hy,i+hx)-mean2)^2 + sumvar2;
countpairs=countpairs+1;
end
end
end
sumvar1=sumvar1/countpairs;
sumvar2=sumvar2/countpairs;
Correlogram(hy+lags+1,hx+lags+1)=Covariance(hy+lags+1,hx+lags+1)/sqrt(sumvar1*sumvar2);
end
end
end
I wanted to extend this code to allow for up to 3D image inputs, but also allow 2D or 1D inputs. Some other changes for optimization were made (dynamically updating bounds, removing if/else statement):
function [Correlogram] = ExhaustiveCovarianceFunction3D(X,lags)
[ny,nx,nz]=size(X);
%lags is now a vector
Covariance=NaN([2*lags(1)+1, 2*lags(2)+1, 2*lags(3)+1]);
Correlogram=NaN([2*lags(1)+1, 2*lags(2)+1, 2*lags(3)+1]);
for hz=-lags(3):lags(3)
for hy=-lags(1):lags(1)
for hx=-lags(2):lags(2)
hvector = [hy hx hz];
if hvector(1)<0
ymin=abs(hvector(1))+1;
ymax=ny;
else
ymin=1;
ymax=ny-hvector(1);
end
if hvector(2)<0
xmin=abs(hvector(2))+1;
xmax=nx;
else
xmin=1;
xmax=nx-hvector(2);
end
if hvector(3)<0
zmin=abs(hvector(3))+1;
zmax=nz;
else
zmin=1;
zmax=nz-hvector(3);
end
sumprod=0;
sum1=0;
sum2=0;
for k=zmin:zmax
for j=ymin:ymax
for i=xmin:xmax
sumprod=X(j,i,k)*X(j+hy,i+hx,k+hz) + sumprod;
sum1=X(j,i,k) + sum1;
sum2=X(j+hy,i+hx,k+hz) + sum2;
end
end
end
countpairs = numel(ymin:ymax)*numel(xmin:xmax)*numel(zmin:zmax);
sumprod=sumprod/(countpairs);
sum1=sum1/(countpairs);
sum2=sum2/(countpairs);
Covariance(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)=sumprod – sum1*sum2;
%Standardize covariance values to correlogram
mean1=sum1;
mean2=sum2;
sumvar1=0;
sumvar2=0;
for k=zmin:zmax
for j=ymin:ymax
for i=xmin:xmax
sumvar1=(X(j,i,k)-mean1)^2 + sumvar1;
sumvar2=(X(j+hy,i+hx,k+hz)-mean2)^2 + sumvar2;
end
end
end
sumvar1=sumvar1/countpairs;
sumvar2=sumvar2/countpairs;
Correlogram(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)=Covariance(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)/sqrt(sumvar1*sumvar2);
end
end
end
end
I first compared these codes for a 2D input image (nz=1) and noticed that my new function runs much slower than the original function:
ExhaustiveCovarianceFunction(testslice,25): Elapsed time is 0.057659 seconds.
ExhaustiveCovarianceFunction3D(testslice,[25,25,0]): Elapsed time is 19.251866 seconds.
After some testing, this led me to realize that indexing a 3D array is much slower than a 2D array in MATLAB, and that this has something to do with how memory is accessed for higher-dimensional arrays. I found out that, if I added a third dimension to the original ExhaustiveCovarianceFunction with index 1 that never changed (eg, X(j,i,1), with no other changes, the code slowed down significantly:
2D array index X(j,i): Elapsed time is 0.059815 seconds.
3D array index X(j,i,1): Elapsed time is 18.849217 seconds.
The idea that we cannot work with higher-dimensional arrays in MATLAB if we want to have optimal performance led me to an approach where, in my new function, I convert the 2D and 3D arrays to a 1D array and map the nD array indices to 1D:
function index1D = convert3Dto1D_index(j, i, k, ny, nx)
index1D = j + (i – 1) * ny + (k – 1) * ny * nx;
end
function [Correlogram] = ExhaustiveCovarianceFunction3D(Xinput,lags)
X = flatten3D(Xinput);
[ny,nx,nz]=size(Xinput);
%lags is now a vector
Covariance=NaN([2*lags(1)+1, 2*lags(2)+1, 2*lags(3)+1]);
Correlogram=NaN([2*lags(1)+1, 2*lags(2)+1, 2*lags(3)+1]);
for hz=-lags(3):lags(3)
for hy=-lags(1):lags(1)
for hx=-lags(2):lags(2)
hvector = [hy hx hz];
if hvector(1)<0
ymin=abs(hvector(1))+1;
ymax=ny;
else
ymin=1;
ymax=ny-hvector(1);
end
if hvector(2)<0
xmin=abs(hvector(2))+1;
xmax=nx;
else
xmin=1;
xmax=nx-hvector(2);
end
if hvector(3)<0
zmin=abs(hvector(3))+1;
zmax=nz;
else
zmin=1;
zmax=nz-hvector(3);
end
sumprod=0;
sum1=0;
sum2=0;
countpairs=0;
for k=zmin:zmax
for j=ymin:ymax
for i=xmin:xmax
sumprod=X(convert3Dto1D_index(j, i, k, ny, nx))*X(convert3Dto1D_index(j+hy, i+hx, k+hz, ny, nx)) + sumprod;
sum1=X(convert3Dto1D_index(j, i, k, ny, nx)) + sum1;
sum2=X(convert3Dto1D_index(j+hy, i+hx, k+hz, ny, nx)) + sum2;
countpairs=countpairs+1;
end
end
end
countpairs = numel(ymin:ymax)*numel(xmin:xmax)*numel(zmin:zmax);
sumprod=sumprod/(countpairs);
sum1=sum1/(countpairs);
sum2=sum2/(countpairs);
Covariance(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)=sumprod – sum1*sum2;
%Standardize covariance values to correlogram
mean1=sum1;
mean2=sum2;
sumvar1=0;
sumvar2=0;
for k=zmin:zmax
for j=ymin:ymax
for i=xmin:xmax
sumvar1=(X(convert3Dto1D_index(j, i, k, ny, nx))-mean1)^2 + sumvar1;
sumvar2=(X(convert3Dto1D_index(j+hy, i+hx, k+hz, ny, nx))-mean2)^2 + sumvar2;
end
end
end
sumvar1=sumvar1/countpairs;
sumvar2=sumvar2/countpairs;
Correlogram(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)=Covariance(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)/sqrt(sumvar1*sumvar2);
end
end
end
end
This approach has better performance, but is still slower than the original 2D code:
2D: Elapsed time is 0.163243 seconds.
3D, 3D index: Elapsed time is 18.336108 seconds.
3D, 1D index: Elapsed time is 0.431890 seconds.
The optimized code with 1D array indexing is still about 3x slower. Perhaps calling convert3Dto1D_index(j, i, k, ny, nx) every time the image index is called is leading to this expense.These computational concerns are important for larger images (eg, 256x256x128) and for higher-order statistics that will be developed.
Is there a smarter approach to addressing this problem? I cannot figure out how to speed up this 3D code any more. Ideally, I seek to make the 3D/general code to have comparable speeds to the 2D "hard-coded" problem when a 2D image is input. If this is not possible, separate subroutines for 2D and 3D images is likely my best bet. I wrote a simple code that calculates the covariance of images along different directions and lag spacings and returns a 2D map of covariance values varying by lags(h1,h2). The original program I wrote accepts only 2D inputs:
function [Correlogram] = ExhaustiveCovarianceFunction(X,lags)
[ny,nx,~]=size(X);
Covariance=NaN([2*lags+1 2*lags+1]);
Correlogram=NaN([2*lags+1 2*lags+1]);
for hy=-lags:lags
for hx=-lags:lags
sumprod=0;
sum1=0;
sum2=0;
countpairs=0;
for j=1:ny
for i=1:nx
if hy+j<=0 || hy+j>ny || hx+i<=0 || hx+i>nx
countpairs=countpairs;
continue
else
sumprod=X(j,i)*X(j+hy,i+hx) + sumprod;
sum1=X(j,i) + sum1;
sum2=X(j+hy,i+hx) + sum2;
countpairs=countpairs+1;
end
end
end
sumprod=sumprod/(countpairs);
sum1=sum1/(countpairs);
sum2=sum2/(countpairs);
Covariance(hy+lags+1,hx+lags+1)=sumprod – sum1*sum2;
%Standardize covariance values to correlogram
mean1=sum1;
mean2=sum2;
countpairs=0;
sumvar1=0;
sumvar2=0;
for j=1:ny
for i=1:nx
if hy+j<=0 || hy+j>ny || hx+i<=0 || hx+i>nx
continue
else
sumvar1=(X(j,i)-mean1)^2 + sumvar1;
sumvar2=(X(j+hy,i+hx)-mean2)^2 + sumvar2;
countpairs=countpairs+1;
end
end
end
sumvar1=sumvar1/countpairs;
sumvar2=sumvar2/countpairs;
Correlogram(hy+lags+1,hx+lags+1)=Covariance(hy+lags+1,hx+lags+1)/sqrt(sumvar1*sumvar2);
end
end
end
I wanted to extend this code to allow for up to 3D image inputs, but also allow 2D or 1D inputs. Some other changes for optimization were made (dynamically updating bounds, removing if/else statement):
function [Correlogram] = ExhaustiveCovarianceFunction3D(X,lags)
[ny,nx,nz]=size(X);
%lags is now a vector
Covariance=NaN([2*lags(1)+1, 2*lags(2)+1, 2*lags(3)+1]);
Correlogram=NaN([2*lags(1)+1, 2*lags(2)+1, 2*lags(3)+1]);
for hz=-lags(3):lags(3)
for hy=-lags(1):lags(1)
for hx=-lags(2):lags(2)
hvector = [hy hx hz];
if hvector(1)<0
ymin=abs(hvector(1))+1;
ymax=ny;
else
ymin=1;
ymax=ny-hvector(1);
end
if hvector(2)<0
xmin=abs(hvector(2))+1;
xmax=nx;
else
xmin=1;
xmax=nx-hvector(2);
end
if hvector(3)<0
zmin=abs(hvector(3))+1;
zmax=nz;
else
zmin=1;
zmax=nz-hvector(3);
end
sumprod=0;
sum1=0;
sum2=0;
for k=zmin:zmax
for j=ymin:ymax
for i=xmin:xmax
sumprod=X(j,i,k)*X(j+hy,i+hx,k+hz) + sumprod;
sum1=X(j,i,k) + sum1;
sum2=X(j+hy,i+hx,k+hz) + sum2;
end
end
end
countpairs = numel(ymin:ymax)*numel(xmin:xmax)*numel(zmin:zmax);
sumprod=sumprod/(countpairs);
sum1=sum1/(countpairs);
sum2=sum2/(countpairs);
Covariance(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)=sumprod – sum1*sum2;
%Standardize covariance values to correlogram
mean1=sum1;
mean2=sum2;
sumvar1=0;
sumvar2=0;
for k=zmin:zmax
for j=ymin:ymax
for i=xmin:xmax
sumvar1=(X(j,i,k)-mean1)^2 + sumvar1;
sumvar2=(X(j+hy,i+hx,k+hz)-mean2)^2 + sumvar2;
end
end
end
sumvar1=sumvar1/countpairs;
sumvar2=sumvar2/countpairs;
Correlogram(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)=Covariance(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)/sqrt(sumvar1*sumvar2);
end
end
end
end
I first compared these codes for a 2D input image (nz=1) and noticed that my new function runs much slower than the original function:
ExhaustiveCovarianceFunction(testslice,25): Elapsed time is 0.057659 seconds.
ExhaustiveCovarianceFunction3D(testslice,[25,25,0]): Elapsed time is 19.251866 seconds.
After some testing, this led me to realize that indexing a 3D array is much slower than a 2D array in MATLAB, and that this has something to do with how memory is accessed for higher-dimensional arrays. I found out that, if I added a third dimension to the original ExhaustiveCovarianceFunction with index 1 that never changed (eg, X(j,i,1), with no other changes, the code slowed down significantly:
2D array index X(j,i): Elapsed time is 0.059815 seconds.
3D array index X(j,i,1): Elapsed time is 18.849217 seconds.
The idea that we cannot work with higher-dimensional arrays in MATLAB if we want to have optimal performance led me to an approach where, in my new function, I convert the 2D and 3D arrays to a 1D array and map the nD array indices to 1D:
function index1D = convert3Dto1D_index(j, i, k, ny, nx)
index1D = j + (i – 1) * ny + (k – 1) * ny * nx;
end
function [Correlogram] = ExhaustiveCovarianceFunction3D(Xinput,lags)
X = flatten3D(Xinput);
[ny,nx,nz]=size(Xinput);
%lags is now a vector
Covariance=NaN([2*lags(1)+1, 2*lags(2)+1, 2*lags(3)+1]);
Correlogram=NaN([2*lags(1)+1, 2*lags(2)+1, 2*lags(3)+1]);
for hz=-lags(3):lags(3)
for hy=-lags(1):lags(1)
for hx=-lags(2):lags(2)
hvector = [hy hx hz];
if hvector(1)<0
ymin=abs(hvector(1))+1;
ymax=ny;
else
ymin=1;
ymax=ny-hvector(1);
end
if hvector(2)<0
xmin=abs(hvector(2))+1;
xmax=nx;
else
xmin=1;
xmax=nx-hvector(2);
end
if hvector(3)<0
zmin=abs(hvector(3))+1;
zmax=nz;
else
zmin=1;
zmax=nz-hvector(3);
end
sumprod=0;
sum1=0;
sum2=0;
countpairs=0;
for k=zmin:zmax
for j=ymin:ymax
for i=xmin:xmax
sumprod=X(convert3Dto1D_index(j, i, k, ny, nx))*X(convert3Dto1D_index(j+hy, i+hx, k+hz, ny, nx)) + sumprod;
sum1=X(convert3Dto1D_index(j, i, k, ny, nx)) + sum1;
sum2=X(convert3Dto1D_index(j+hy, i+hx, k+hz, ny, nx)) + sum2;
countpairs=countpairs+1;
end
end
end
countpairs = numel(ymin:ymax)*numel(xmin:xmax)*numel(zmin:zmax);
sumprod=sumprod/(countpairs);
sum1=sum1/(countpairs);
sum2=sum2/(countpairs);
Covariance(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)=sumprod – sum1*sum2;
%Standardize covariance values to correlogram
mean1=sum1;
mean2=sum2;
sumvar1=0;
sumvar2=0;
for k=zmin:zmax
for j=ymin:ymax
for i=xmin:xmax
sumvar1=(X(convert3Dto1D_index(j, i, k, ny, nx))-mean1)^2 + sumvar1;
sumvar2=(X(convert3Dto1D_index(j+hy, i+hx, k+hz, ny, nx))-mean2)^2 + sumvar2;
end
end
end
sumvar1=sumvar1/countpairs;
sumvar2=sumvar2/countpairs;
Correlogram(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)=Covariance(hy+lags(1)+1,hx+lags(2)+1, hz+lags(3)+1)/sqrt(sumvar1*sumvar2);
end
end
end
end
This approach has better performance, but is still slower than the original 2D code:
2D: Elapsed time is 0.163243 seconds.
3D, 3D index: Elapsed time is 18.336108 seconds.
3D, 1D index: Elapsed time is 0.431890 seconds.
The optimized code with 1D array indexing is still about 3x slower. Perhaps calling convert3Dto1D_index(j, i, k, ny, nx) every time the image index is called is leading to this expense.These computational concerns are important for larger images (eg, 256x256x128) and for higher-order statistics that will be developed.
Is there a smarter approach to addressing this problem? I cannot figure out how to speed up this 3D code any more. Ideally, I seek to make the 3D/general code to have comparable speeds to the 2D "hard-coded" problem when a 2D image is input. If this is not possible, separate subroutines for 2D and 3D images is likely my best bet. computation time, performance, time complexity, bigo, arrays, 2d, 3d, algorithm optimization MATLAB Answers — New Questions
SD from k-fold validation classification learner
I am dealing with a reviewer that ask for the standard deviation obtained in the k-fold validation LDA algorithm obtained from the classification learner app.
How can I do it?I am dealing with a reviewer that ask for the standard deviation obtained in the k-fold validation LDA algorithm obtained from the classification learner app.
How can I do it? I am dealing with a reviewer that ask for the standard deviation obtained in the k-fold validation LDA algorithm obtained from the classification learner app.
How can I do it? machine learning, app classification, k-fold, classification MATLAB Answers — New Questions
How do I reset MATLAB to its launched state?
Is it possible to "reset" MATLAB? Sometimes I want to "restore" MATLAB to the way it is when it is launched (not the way it was when it is installed). Closing all the figures, resetting the path and clearing variables is relatively easy, but not as easy as:
close all; clear all; path(pathdef); clc;
You need extra flags since the "all" flag is not really all (e.g., a figure might be hidden or mfiles files might be locked).
Resetting non-persistent "default" values is harder. For example, if at some point the "DefaultFigurePosition" is modified:
set(0, ‘DefaultFigurePosition’, [100, 100, 100, 100])
that change needs to be identified and reversed.
The list of things to get a full reset seems long to me. There are also issues about do I want to restore MATLAB to the way it was when it started or the way it will be the next time it starts. At this point I would be happy with either (or a mix).Is it possible to "reset" MATLAB? Sometimes I want to "restore" MATLAB to the way it is when it is launched (not the way it was when it is installed). Closing all the figures, resetting the path and clearing variables is relatively easy, but not as easy as:
close all; clear all; path(pathdef); clc;
You need extra flags since the "all" flag is not really all (e.g., a figure might be hidden or mfiles files might be locked).
Resetting non-persistent "default" values is harder. For example, if at some point the "DefaultFigurePosition" is modified:
set(0, ‘DefaultFigurePosition’, [100, 100, 100, 100])
that change needs to be identified and reversed.
The list of things to get a full reset seems long to me. There are also issues about do I want to restore MATLAB to the way it was when it started or the way it will be the next time it starts. At this point I would be happy with either (or a mix). Is it possible to "reset" MATLAB? Sometimes I want to "restore" MATLAB to the way it is when it is launched (not the way it was when it is installed). Closing all the figures, resetting the path and clearing variables is relatively easy, but not as easy as:
close all; clear all; path(pathdef); clc;
You need extra flags since the "all" flag is not really all (e.g., a figure might be hidden or mfiles files might be locked).
Resetting non-persistent "default" values is harder. For example, if at some point the "DefaultFigurePosition" is modified:
set(0, ‘DefaultFigurePosition’, [100, 100, 100, 100])
that change needs to be identified and reversed.
The list of things to get a full reset seems long to me. There are also issues about do I want to restore MATLAB to the way it was when it started or the way it will be the next time it starts. At this point I would be happy with either (or a mix). startup, function MATLAB Answers — New Questions
Excel formula IF AND OR
Hello,
I am trying to use IF AND OR to have some value from column A copied in the columns H / I / J / K / L / M with different conditions of data in columns B/C/D/E/F/G
in the image some example of data and result with the formula I have tried, in red strikethrough value that should not be returned and in orange value that are not copied from column A
thank for the help
D
Hello, I am trying to use IF AND OR to have some value from column A copied in the columns H / I / J / K / L / M with different conditions of data in columns B/C/D/E/F/Gin the image some example of data and result with the formula I have tried, in red strikethrough value that should not be returned and in orange value that are not copied from column A thank for the helpD Read More
Dev Channel update to 127.0.2638.2 is live.
Hello Insiders! We released 127.0.2638.2 to the Dev channel! This includes numerous fixes. For more details on the changes, check out the highlights below.
Added Features:
Introduced an icon for shared links.
Improved Reliability:
Resolved an issue causing workspaces to crash when exiting the hover menu.
Fixed a browser crash on android.
Resolved an issue where the links were unresponsive after selecting ‘submit’ in Copilot on android.
Changed Behavior:
Resolved an issue where the toolbar would vanish upon using the back button.
Fixed an issue where the close button was absent on the ‘Find on Page’ bar.
Fixed an issue where the ‘Profile Preferences’ page had incorrectly defined heading levels.
Fixed an issue where the history search results on the edge://history page were displaying incorrectly.
Fixed an issue where the ‘+’ icon was not displayed following the installation of a theme.
Mac: Fixed an issue where the UI dropdown was malfunctioning, displaying a black background instead of grey.
iOS: Resolved a functionality issue with the Copilot toolbar that prevented it from operating correctly on iOS.
Android:
Fixed an issue where the ‘Open downloaded page’ displayed a blank page on Android devices.
Resolved a problem that prevented switching to AAD after opening a URL from Outlook on Android.
Fixed an issue where the number of comments in the extension hub was displaying ellipses (‘…’) on Android.
See an issue that you think might be a bug? Remember to send that directly through the in-app feedback by heading to the … menu > Help and feedback > Send feedback and include diagnostics so the team can investigate.
Thanks again for sending us feedback and helping us improve our Insider builds.
~Gouri
Hello Insiders! We released 127.0.2638.2 to the Dev channel! This includes numerous fixes. For more details on the changes, check out the highlights below.
Announcing Dynamics 365 Contact Center – a Copilot-first cloud contact center to transform service experiences – The Official Microsoft Blog
Added Features:
Introduced an icon for shared links.
Improved Reliability:
Resolved an issue causing workspaces to crash when exiting the hover menu.
Fixed a browser crash on android.
Resolved an issue where the links were unresponsive after selecting ‘submit’ in Copilot on android.
Changed Behavior:
Resolved an issue where the toolbar would vanish upon using the back button.
Fixed an issue where the close button was absent on the ‘Find on Page’ bar.
Fixed an issue where the ‘Profile Preferences’ page had incorrectly defined heading levels.
Fixed an issue where the history search results on the edge://history page were displaying incorrectly.
Fixed an issue where the ‘+’ icon was not displayed following the installation of a theme.
Mac: Fixed an issue where the UI dropdown was malfunctioning, displaying a black background instead of grey.
iOS: Resolved a functionality issue with the Copilot toolbar that prevented it from operating correctly on iOS.
Android:
Fixed an issue where the ‘Open downloaded page’ displayed a blank page on Android devices.
Resolved a problem that prevented switching to AAD after opening a URL from Outlook on Android.
Fixed an issue where the number of comments in the extension hub was displaying ellipses (‘…’) on Android.
See an issue that you think might be a bug? Remember to send that directly through the in-app feedback by heading to the … menu > Help and feedback > Send feedback and include diagnostics so the team can investigate.
Thanks again for sending us feedback and helping us improve our Insider builds.
~Gouri Read More
Nvidia update isn’t showing up and everything I’ve tried hasn’t worked. Please help
over the last while I realized i needed to update my Nvidia graphics drivers but i have not had the option to update them through every method i have tried and I don’t know why this is. I’ve been able to update the drivers just fine through windows update for previous versions but now I’m stuck on version 536.19 which was released two weeks shy of a year ago. if you are wondering my
over the last while I realized i needed to update my Nvidia graphics drivers but i have not had the option to update them through every method i have tried and I don’t know why this is. I’ve been able to update the drivers just fine through windows update for previous versions but now I’m stuck on version 536.19 which was released two weeks shy of a year ago. if you are wondering my Read More
Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.
I really don’t know what is the reason for this error. PLease help!
theta_dd(i)= (kP*r(i) +kD*r_dot(i) -(m*g*l+kP)*sin(theta(i)) -kD*theta_dot(i))/M;I really don’t know what is the reason for this error. PLease help!
theta_dd(i)= (kP*r(i) +kD*r_dot(i) -(m*g*l+kP)*sin(theta(i)) -kD*theta_dot(i))/M; I really don’t know what is the reason for this error. PLease help!
theta_dd(i)= (kP*r(i) +kD*r_dot(i) -(m*g*l+kP)*sin(theta(i)) -kD*theta_dot(i))/M; invalid text character. check for unsupported symbol, invisible character, or pasting of non-ascii characters. MATLAB Answers — New Questions