Month: August 2024
Copilot Pro just not working for outlook
Hi,
I got free trail for copilot pro sub, It seems I can see copilot on all the other apps (Word, PowerPoint, Excel) but can’t find it on Outlook, I am looking to purchase the full license but not able to test it.
Thanks,
Hi, I got free trail for copilot pro sub, It seems I can see copilot on all the other apps (Word, PowerPoint, Excel) but can’t find it on Outlook, I am looking to purchase the full license but not able to test it. Thanks, Read More
UDP Communication slowing Simulink Model
Gday all,
For context, I am building a simulink model that will communicate with the simulator X-plane through UDP to control an aircraft. The Simulink model inputs a UDP connection and a live video feed. Using an object detection system to identify key features, a command direction will begiven, and outputted to X-plane through UDP communication.
My issue is that the UDP communication input significantly decreases the performance of the model. I have tried every UDP commenction block avaialble in Simulink. I have tested the simulation with other blocks, and I’m confident that the UDP communication input block (either of them) are the root of the issue. I havent had this issue with other models (such as image segmentation model). Nor does the UDP output show performance issues.
Is there a way to fix the performance issues seen in the model? Is there some UDP secret I dont know about? Workarounds? Would the UDP comminication block be interfereing with any other block (deep learning, PID…)?
Any quidence or tips would be appreciatedGday all,
For context, I am building a simulink model that will communicate with the simulator X-plane through UDP to control an aircraft. The Simulink model inputs a UDP connection and a live video feed. Using an object detection system to identify key features, a command direction will begiven, and outputted to X-plane through UDP communication.
My issue is that the UDP communication input significantly decreases the performance of the model. I have tried every UDP commenction block avaialble in Simulink. I have tested the simulation with other blocks, and I’m confident that the UDP communication input block (either of them) are the root of the issue. I havent had this issue with other models (such as image segmentation model). Nor does the UDP output show performance issues.
Is there a way to fix the performance issues seen in the model? Is there some UDP secret I dont know about? Workarounds? Would the UDP comminication block be interfereing with any other block (deep learning, PID…)?
Any quidence or tips would be appreciated Gday all,
For context, I am building a simulink model that will communicate with the simulator X-plane through UDP to control an aircraft. The Simulink model inputs a UDP connection and a live video feed. Using an object detection system to identify key features, a command direction will begiven, and outputted to X-plane through UDP communication.
My issue is that the UDP communication input significantly decreases the performance of the model. I have tried every UDP commenction block avaialble in Simulink. I have tested the simulation with other blocks, and I’m confident that the UDP communication input block (either of them) are the root of the issue. I havent had this issue with other models (such as image segmentation model). Nor does the UDP output show performance issues.
Is there a way to fix the performance issues seen in the model? Is there some UDP secret I dont know about? Workarounds? Would the UDP comminication block be interfereing with any other block (deep learning, PID…)?
Any quidence or tips would be appreciated simulink, deep learning MATLAB Answers — New Questions
Having Matlab import data from SharePoint
I have a line in my code where data is imported, and I wantto add a directory that can import the data from SharePoint so that anyone who is in the sharepoint can use the same code without having to change the directory. I can’t seem to figur eout how to do this without adding a shortcut, becaus enot everyone would have the same shortcut. If anyone could help with how I can set up the import so that anyone can use the code that would be great! Thanks!I have a line in my code where data is imported, and I wantto add a directory that can import the data from SharePoint so that anyone who is in the sharepoint can use the same code without having to change the directory. I can’t seem to figur eout how to do this without adding a shortcut, becaus enot everyone would have the same shortcut. If anyone could help with how I can set up the import so that anyone can use the code that would be great! Thanks! I have a line in my code where data is imported, and I wantto add a directory that can import the data from SharePoint so that anyone who is in the sharepoint can use the same code without having to change the directory. I can’t seem to figur eout how to do this without adding a shortcut, becaus enot everyone would have the same shortcut. If anyone could help with how I can set up the import so that anyone can use the code that would be great! Thanks! data import, sharepoint, import MATLAB Answers — New Questions
How to return matrix in Matlab using codegen with no c++ memory allocation?
I do not want any dynamic memory allocation to be done in the C++ codegen. Here is the relevant Matlab code:
% Calculate cross-correlation matrix from a set of vectors (whose length
% can vary from one call to another). All 4 channels will have the length.
function [R] = xcorr_matrix(ch0,ch1,ch2,ch3,channelCount)
% channelCount is 2 or 4
% R is either 2×2 or 4×4 complex double matrix.
% ch0 … ch3 are complex single vectors.
N = int32(size(ch0,1));
% Convert ch0, …, ch3 to complex double
x_in = coder.nullcopy(complex(zeros(N,channelCount,’double’)));
switch channelCount
case 2
x_in(1:N,1) = ch0(1:N);
x_in(1:N,2) = ch1(1:N);
case 4
x_in(1:N,1) = ch0(1:N);
x_in(1:N,2) = ch1(1:N);
x_in(1:N,3) = ch2(1:N);
x_in(1:N,4) = ch3(1:N);
end
R = (x_in’ * x_in); % Compute cross-correlation matrix
Here is the C++ codegen result:
void xcorr_matrix(const creal32_T ch0_data[], const int ch0_size[1], % all the 4 ch_size will be the same value
const creal32_T ch1_data[], const int ch1_size[1],
const creal32_T ch2_data[], const int ch2_size[1],
const creal32_T ch3_data[], const int ch3_size[1],
int channelCount,
::coder::array<creal_T, 2U> &R)
{
::coder::array<creal_T, 2U> x_in;
R.set_size(channelCount, channelCount);
x_in.set_size(N, channelCount);
…
}
I think I can eliminate the x_in.set_size by not using x_in, and replace the matrix multiply with nested for-loops and using double casting; but am unsure how to define R (either 2×2 or 4×4) so as to remove the R.set_size allocations.
One idea I had was to try making R a fixed length 16 element vector, and just use 4 elements for the 2×2 R, and all 16 for the 4×4 R. Would be nicer to be able to use two indices for rows and columns.
Thanks in advance for your help.
PaulI do not want any dynamic memory allocation to be done in the C++ codegen. Here is the relevant Matlab code:
% Calculate cross-correlation matrix from a set of vectors (whose length
% can vary from one call to another). All 4 channels will have the length.
function [R] = xcorr_matrix(ch0,ch1,ch2,ch3,channelCount)
% channelCount is 2 or 4
% R is either 2×2 or 4×4 complex double matrix.
% ch0 … ch3 are complex single vectors.
N = int32(size(ch0,1));
% Convert ch0, …, ch3 to complex double
x_in = coder.nullcopy(complex(zeros(N,channelCount,’double’)));
switch channelCount
case 2
x_in(1:N,1) = ch0(1:N);
x_in(1:N,2) = ch1(1:N);
case 4
x_in(1:N,1) = ch0(1:N);
x_in(1:N,2) = ch1(1:N);
x_in(1:N,3) = ch2(1:N);
x_in(1:N,4) = ch3(1:N);
end
R = (x_in’ * x_in); % Compute cross-correlation matrix
Here is the C++ codegen result:
void xcorr_matrix(const creal32_T ch0_data[], const int ch0_size[1], % all the 4 ch_size will be the same value
const creal32_T ch1_data[], const int ch1_size[1],
const creal32_T ch2_data[], const int ch2_size[1],
const creal32_T ch3_data[], const int ch3_size[1],
int channelCount,
::coder::array<creal_T, 2U> &R)
{
::coder::array<creal_T, 2U> x_in;
R.set_size(channelCount, channelCount);
x_in.set_size(N, channelCount);
…
}
I think I can eliminate the x_in.set_size by not using x_in, and replace the matrix multiply with nested for-loops and using double casting; but am unsure how to define R (either 2×2 or 4×4) so as to remove the R.set_size allocations.
One idea I had was to try making R a fixed length 16 element vector, and just use 4 elements for the 2×2 R, and all 16 for the 4×4 R. Would be nicer to be able to use two indices for rows and columns.
Thanks in advance for your help.
Paul I do not want any dynamic memory allocation to be done in the C++ codegen. Here is the relevant Matlab code:
% Calculate cross-correlation matrix from a set of vectors (whose length
% can vary from one call to another). All 4 channels will have the length.
function [R] = xcorr_matrix(ch0,ch1,ch2,ch3,channelCount)
% channelCount is 2 or 4
% R is either 2×2 or 4×4 complex double matrix.
% ch0 … ch3 are complex single vectors.
N = int32(size(ch0,1));
% Convert ch0, …, ch3 to complex double
x_in = coder.nullcopy(complex(zeros(N,channelCount,’double’)));
switch channelCount
case 2
x_in(1:N,1) = ch0(1:N);
x_in(1:N,2) = ch1(1:N);
case 4
x_in(1:N,1) = ch0(1:N);
x_in(1:N,2) = ch1(1:N);
x_in(1:N,3) = ch2(1:N);
x_in(1:N,4) = ch3(1:N);
end
R = (x_in’ * x_in); % Compute cross-correlation matrix
Here is the C++ codegen result:
void xcorr_matrix(const creal32_T ch0_data[], const int ch0_size[1], % all the 4 ch_size will be the same value
const creal32_T ch1_data[], const int ch1_size[1],
const creal32_T ch2_data[], const int ch2_size[1],
const creal32_T ch3_data[], const int ch3_size[1],
int channelCount,
::coder::array<creal_T, 2U> &R)
{
::coder::array<creal_T, 2U> x_in;
R.set_size(channelCount, channelCount);
x_in.set_size(N, channelCount);
…
}
I think I can eliminate the x_in.set_size by not using x_in, and replace the matrix multiply with nested for-loops and using double casting; but am unsure how to define R (either 2×2 or 4×4) so as to remove the R.set_size allocations.
One idea I had was to try making R a fixed length 16 element vector, and just use 4 elements for the 2×2 R, and all 16 for the 4×4 R. Would be nicer to be able to use two indices for rows and columns.
Thanks in advance for your help.
Paul matlab, codegen, embedded coder, c++, dynamic memory allocation MATLAB Answers — New Questions
Speed up nested loops with parfor
I’m trying to speed up this part of code. I have a constraint: the inputs of ReturnFn must all be scalars. If it was not for this restriction, I could easily vectorize the code. So I would like to know if there is a way to make the code below faster, while still satisfying this restriction of the inputs of ReturnFn.
Any help is really appreciated!
N_d = 50;
N_a = 300;
N_z = 10;
% ParamCell contains: K_to_L,alpha,delta,pen,gamma,crra
% I need the cell array to handle variable number of inputs in ReturnFn
Fmatrix=zeros(N_d*N_a,N_a,N_z);
parfor i4i5=1:N_z
Fmatrix_z=zeros(N_d*N_a,N_a);
for i3=1:N_a % a today
for i2=1:N_a % a’ tomorrow
for i1=1:N_d % d choice
Fmatrix_z(i1+(i2-1)*N_d,i3)=ReturnFn(d_gridvals(i1),a_gridvals(i2),a_gridvals(i3),z_gridvals(i4i5,1),z_gridvals(i4i5,2),ParamCell{:});
end
end
end
Fmatrix(:,:,i4i5)=Fmatrix_z;
end
function F = f_ReturnFn(d,aprime,a,e,age,K_to_L,alpha,delta,pen,gamma,crra)
% INPUTS (always 5 inputs, plus some extra parameter inputs)
% d: Hours worked
% aprime: Next-period’s assets
% a: Current period assets
% e: Labor efficiency shock
% age: Age of individual: young or old
% TOOLKIT NOTATION
% (d,aprime,a,z), where z = [e;age]
F = -inf;
r = alpha*K_to_L^(alpha-1)-delta;
w = (1-alpha)*K_to_L^alpha;
income = (w*e*d)*(age==1)+pen*(age==2)+r*a;
c = income+a-aprime; % Budget Constraint
if c>0
% NOTE: 0<d<1 is already built into the grid
% WARNING: this will not work if crra=1
inside = (c^gamma)*((1-d)^(1-gamma));
F = inside^(1-crra)/(1-crra);
end
endI’m trying to speed up this part of code. I have a constraint: the inputs of ReturnFn must all be scalars. If it was not for this restriction, I could easily vectorize the code. So I would like to know if there is a way to make the code below faster, while still satisfying this restriction of the inputs of ReturnFn.
Any help is really appreciated!
N_d = 50;
N_a = 300;
N_z = 10;
% ParamCell contains: K_to_L,alpha,delta,pen,gamma,crra
% I need the cell array to handle variable number of inputs in ReturnFn
Fmatrix=zeros(N_d*N_a,N_a,N_z);
parfor i4i5=1:N_z
Fmatrix_z=zeros(N_d*N_a,N_a);
for i3=1:N_a % a today
for i2=1:N_a % a’ tomorrow
for i1=1:N_d % d choice
Fmatrix_z(i1+(i2-1)*N_d,i3)=ReturnFn(d_gridvals(i1),a_gridvals(i2),a_gridvals(i3),z_gridvals(i4i5,1),z_gridvals(i4i5,2),ParamCell{:});
end
end
end
Fmatrix(:,:,i4i5)=Fmatrix_z;
end
function F = f_ReturnFn(d,aprime,a,e,age,K_to_L,alpha,delta,pen,gamma,crra)
% INPUTS (always 5 inputs, plus some extra parameter inputs)
% d: Hours worked
% aprime: Next-period’s assets
% a: Current period assets
% e: Labor efficiency shock
% age: Age of individual: young or old
% TOOLKIT NOTATION
% (d,aprime,a,z), where z = [e;age]
F = -inf;
r = alpha*K_to_L^(alpha-1)-delta;
w = (1-alpha)*K_to_L^alpha;
income = (w*e*d)*(age==1)+pen*(age==2)+r*a;
c = income+a-aprime; % Budget Constraint
if c>0
% NOTE: 0<d<1 is already built into the grid
% WARNING: this will not work if crra=1
inside = (c^gamma)*((1-d)^(1-gamma));
F = inside^(1-crra)/(1-crra);
end
end I’m trying to speed up this part of code. I have a constraint: the inputs of ReturnFn must all be scalars. If it was not for this restriction, I could easily vectorize the code. So I would like to know if there is a way to make the code below faster, while still satisfying this restriction of the inputs of ReturnFn.
Any help is really appreciated!
N_d = 50;
N_a = 300;
N_z = 10;
% ParamCell contains: K_to_L,alpha,delta,pen,gamma,crra
% I need the cell array to handle variable number of inputs in ReturnFn
Fmatrix=zeros(N_d*N_a,N_a,N_z);
parfor i4i5=1:N_z
Fmatrix_z=zeros(N_d*N_a,N_a);
for i3=1:N_a % a today
for i2=1:N_a % a’ tomorrow
for i1=1:N_d % d choice
Fmatrix_z(i1+(i2-1)*N_d,i3)=ReturnFn(d_gridvals(i1),a_gridvals(i2),a_gridvals(i3),z_gridvals(i4i5,1),z_gridvals(i4i5,2),ParamCell{:});
end
end
end
Fmatrix(:,:,i4i5)=Fmatrix_z;
end
function F = f_ReturnFn(d,aprime,a,e,age,K_to_L,alpha,delta,pen,gamma,crra)
% INPUTS (always 5 inputs, plus some extra parameter inputs)
% d: Hours worked
% aprime: Next-period’s assets
% a: Current period assets
% e: Labor efficiency shock
% age: Age of individual: young or old
% TOOLKIT NOTATION
% (d,aprime,a,z), where z = [e;age]
F = -inf;
r = alpha*K_to_L^(alpha-1)-delta;
w = (1-alpha)*K_to_L^alpha;
income = (w*e*d)*(age==1)+pen*(age==2)+r*a;
c = income+a-aprime; % Budget Constraint
if c>0
% NOTE: 0<d<1 is already built into the grid
% WARNING: this will not work if crra=1
inside = (c^gamma)*((1-d)^(1-gamma));
F = inside^(1-crra)/(1-crra);
end
end nested loops, parfor MATLAB Answers — New Questions
Insert COUNTA as a calculated field (pivot report)
Hello, I need help to insert a calculated field in a pivot report where the field counts notblank cells (see Number of yrs not blank). The point is to know for each donor how many years they have given. I am new to calculated field and I tried inserting COUNTA(b2:d2) in the formula field and it won’t accept it. Thanks!
Hello, I need help to insert a calculated field in a pivot report where the field counts notblank cells (see Number of yrs not blank). The point is to know for each donor how many years they have given. I am new to calculated field and I tried inserting COUNTA(b2:d2) in the formula field and it won’t accept it. Thanks! Read More
Prevent autoforwarding
I’ve been lookin at ways to reduce the risk of people setting up email auto-forwarding to external domains in exchange online. Appears to be a few ways and this site offers a few good options Block Email Auto-Forwarding to External Domain (admindroid.com)
However they all seem to offer a solution after the forwarder is setup.
Is there a way to prevent someone from even creating one in outlook to start with? For example I create a rule that forward everything to my gmail but before I can save it I get error saying against company policy and it blocks the creation of the rule in my outlook client in the first place.
I’ve been lookin at ways to reduce the risk of people setting up email auto-forwarding to external domains in exchange online. Appears to be a few ways and this site offers a few good options Block Email Auto-Forwarding to External Domain (admindroid.com)However they all seem to offer a solution after the forwarder is setup. Is there a way to prevent someone from even creating one in outlook to start with? For example I create a rule that forward everything to my gmail but before I can save it I get error saying against company policy and it blocks the creation of the rule in my outlook client in the first place. Read More
New Outlook for Windows: a guide for Executive Assistants and Delegates – part 3
This blog captures some mail tips to help executive assistants and delegates better navigate mailbox management in the new Outlook.
1. Mail filters and rules for executive admins
In the new Outlook, you can use the ‘has calendar invites’ email filter to easily find meeting invites.
You can also set up an ‘Email received for others’ rule for your executive’s account and automatically move it to a separate folder and categorize it as you like.
2. Drag and drop emails to create tasks
Effortlessly stay on top of things by dragging emails to My Day to turn them into tasks.
3. Pin emails for quick access
You can now pin an email to appear at the top of your inbox, saving you time from having to go back and search for it. Hover or right-click on the email and select ‘Pin’ to pin it.
4. Schedule when to send email
In today’s hybrid work world, your day might be someone else’s night, so you don’t want to send an email to someone in the middle of the night. With the new Outlook, it’s simple to send an email when you want to. Just select the dropdown arrow next to Send and choose Schedule send.
5. Snooze email
Sometimes an email is very important, but not yet. With the Snooze feature, you can schedule a time for the email to be re-delivered to your inbox, appearing at the time you want it to, so you can handle it when it’s the right time for you. Right-click any message and choose Snooze or select Snooze from the ribbon. Then choose the time you want it to be delivered.
Share feedback
We encourage you to try new Outlook and share your feedback. You can submit feedback on the new Outlook experience from Help > Feedback. Please mention – “I am an EA” Or “I am a delegate” when adding comments.
To stay updated with the latest features in new Outlook, follow the roadmap.
This guide will also be published as a support article that will be linked here once available.
Microsoft Tech Community – Latest Blogs –Read More
How to change the axes position in matlab
Hi Everybody!
I want to be able to relocate my axes/the origin (0, 0) of my plot to the middle of the graphics window. I don’t know how to manipulate the set command to do this. There must be a way. Regards
% Code explores advanced graphics properties
clf
x= 0:pi/10:pi;
angle = x.*180/pi;
y = -sind(angle);
h =plot(angle, y)
set(h, ‘color’, ‘red’)
set(h, ‘marker’,’s’)
set(h, ‘LineWidth’, 2)
h_axis =gca; % Manipulate theaxis next
set(h_axis, ‘LineWidth’, 2)Hi Everybody!
I want to be able to relocate my axes/the origin (0, 0) of my plot to the middle of the graphics window. I don’t know how to manipulate the set command to do this. There must be a way. Regards
% Code explores advanced graphics properties
clf
x= 0:pi/10:pi;
angle = x.*180/pi;
y = -sind(angle);
h =plot(angle, y)
set(h, ‘color’, ‘red’)
set(h, ‘marker’,’s’)
set(h, ‘LineWidth’, 2)
h_axis =gca; % Manipulate theaxis next
set(h_axis, ‘LineWidth’, 2) Hi Everybody!
I want to be able to relocate my axes/the origin (0, 0) of my plot to the middle of the graphics window. I don’t know how to manipulate the set command to do this. There must be a way. Regards
% Code explores advanced graphics properties
clf
x= 0:pi/10:pi;
angle = x.*180/pi;
y = -sind(angle);
h =plot(angle, y)
set(h, ‘color’, ‘red’)
set(h, ‘marker’,’s’)
set(h, ‘LineWidth’, 2)
h_axis =gca; % Manipulate theaxis next
set(h_axis, ‘LineWidth’, 2) programming MATLAB Answers — New Questions
Alerts in Data Loss Prevention
Hi Guys.
I have 3 DLP policies created and active. The rules within the policies are configured to generate an alert for each match. In the Activity Explorer, I can see the generated matches, but when I go to the Alerts menu, no information is displayed. Similarly, when I try to view these alerts from the Security portal, they do not appear. My account is a Global Admin. Is there any additional configuration that needs to be done?”
Hi Guys. I have 3 DLP policies created and active. The rules within the policies are configured to generate an alert for each match. In the Activity Explorer, I can see the generated matches, but when I go to the Alerts menu, no information is displayed. Similarly, when I try to view these alerts from the Security portal, they do not appear. My account is a Global Admin. Is there any additional configuration that needs to be done?” Read More
How can function argument declaration be introspected?
Is there a way to programmatically access the function argument validation declared in the argument block? meta.method introspection only allows to determine argument names, but I am interested in all of the validation features (dimensions, class, validation functions).
My need especially focuses on functions (not only class methods) and also on output arguments.Is there a way to programmatically access the function argument validation declared in the argument block? meta.method introspection only allows to determine argument names, but I am interested in all of the validation features (dimensions, class, validation functions).
My need especially focuses on functions (not only class methods) and also on output arguments. Is there a way to programmatically access the function argument validation declared in the argument block? meta.method introspection only allows to determine argument names, but I am interested in all of the validation features (dimensions, class, validation functions).
My need especially focuses on functions (not only class methods) and also on output arguments. introspection, argument validation, function MATLAB Answers — New Questions
Disable Windows Hello PIN for few devices
Hi Floks,
We want few devices to disable for Windows Hello PIN for customer needs,
we have tried below steps few
Method 1: Using Group policy settings.
Go to Computer Configuration -> Administrative Templates -> Windows Components -> BiometricsOn the right side, double-click on Allow the use of Biometrics and select Disabled.
Method 2: Disabling Windows Hello in Registry
As per few blogs we couldn’t find the below registry on those device
KEY_LOCAL_MACHINESOFTWAREMicrosoftPolicyManagerdefaultSettingsAllowSignInOptions
Even we have tried to apply and see via Intune to disable below settings. Any help how we can make disable via Intune. Thanks
Use Passport For Work (User)
TRUE
Use Passport For Work
TRUE
Hi Floks, We want few devices to disable for Windows Hello PIN for customer needs, we have tried below steps few Method 1: Using Group policy settings.Go to Computer Configuration -> Administrative Templates -> Windows Components -> BiometricsOn the right side, double-click on Allow the use of Biometrics and select Disabled.Method 2: Disabling Windows Hello in RegistryAs per few blogs we couldn’t find the below registry on those deviceKEY_LOCAL_MACHINESOFTWAREMicrosoftPolicyManagerdefaultSettingsAllowSignInOptionsEven we have tried to apply and see via Intune to disable below settings. Any help how we can make disable via Intune. Thanks Use Passport For Work (User)TRUEUse Passport For WorkTRUE Read More
Dynamic Calendar in Excel 365
Hi,
I create a dynamic array formula for projects at work. It takes project start & end dates and returns a calendar where its duration is based off of those two inputs. Please let me know if there’s any errors I missed or it can be improved in any ways.
Format Cells: ‘d;d;;@’ to show date and text and hide 0Conditional Formatting:draw calendar bordersgrey out Sat and Sun dateshighlight holidays in redhighlight milestone dates in corresponding colorsCA/US Holidays: drop-down list to switch holidaysHolidays tab: refer to the attached excel file
=LET(
start_date,$B$6,
end_date,$B$14,
mth_num,DATEDIF(start_date,end_date,”m”),
mth_num_mult_3,CEILING.MATH(mth_num,3),
mth_num_div_3,mth_num_mult_3/3,
cal_col_num,7*3,
cal_horiz,DROP(
REDUCE(0,SEQUENCE(mth_num_mult_3,,0),
LAMBDA(a,v,HSTACK(a,
LET(
mth_start,EOMONTH(start_date,v-1)+1,
mth_arr,EOMONTH(start_date,v-1)+1,
cal_head,HSTACK(EXPAND(“”,,3,””),TEXT(mth_start,”mmm-yyyy”),EXPAND(“”,,3,””)),
cal_week,TEXT(SEQUENCE(,7),”ddd”),
cal_body,SEQUENCE(5,7,mth_start-WEEKDAY(mth_start)+1),
cal_body_filt,(MONTH(cal_body)=MONTH(mth_start))*cal_body,
VSTACK(cal_head,cal_week,cal_body_filt))))),
,1),
DROP(
REDUCE(0,SEQUENCE(mth_num_div_3,,0),
LAMBDA(a,v,VSTACK(a,
CHOOSECOLS(cal_horiz,SEQUENCE(cal_col_num,,1+cal_col_num*v))))),
1)
)
Hi, I create a dynamic array formula for projects at work. It takes project start & end dates and returns a calendar where its duration is based off of those two inputs. Please let me know if there’s any errors I missed or it can be improved in any ways. Format Cells: ‘d;d;;@’ to show date and text and hide 0Conditional Formatting:draw calendar bordersgrey out Sat and Sun dateshighlight holidays in redhighlight milestone dates in corresponding colorsCA/US Holidays: drop-down list to switch holidaysHolidays tab: refer to the attached excel file =LET(
start_date,$B$6,
end_date,$B$14,
mth_num,DATEDIF(start_date,end_date,”m”),
mth_num_mult_3,CEILING.MATH(mth_num,3),
mth_num_div_3,mth_num_mult_3/3,
cal_col_num,7*3,
cal_horiz,DROP(
REDUCE(0,SEQUENCE(mth_num_mult_3,,0),
LAMBDA(a,v,HSTACK(a,
LET(
mth_start,EOMONTH(start_date,v-1)+1,
mth_arr,EOMONTH(start_date,v-1)+1,
cal_head,HSTACK(EXPAND(“”,,3,””),TEXT(mth_start,”mmm-yyyy”),EXPAND(“”,,3,””)),
cal_week,TEXT(SEQUENCE(,7),”ddd”),
cal_body,SEQUENCE(5,7,mth_start-WEEKDAY(mth_start)+1),
cal_body_filt,(MONTH(cal_body)=MONTH(mth_start))*cal_body,
VSTACK(cal_head,cal_week,cal_body_filt))))),
,1),
DROP(
REDUCE(0,SEQUENCE(mth_num_div_3,,0),
LAMBDA(a,v,VSTACK(a,
CHOOSECOLS(cal_horiz,SEQUENCE(cal_col_num,,1+cal_col_num*v))))),
1)
) Read More
Loading workspace variable contents into an array or for loop
I am new to Matlab but am well aware of the bad practice notion associated with dynamically creating workspace variables. Unfortunately, Matlab’s volumeSegmenter only allows saving of segmentations as either MAT-files or workspace variables, and the former creates far too many individual files for the amount I require.
In the next step after creating them, I need to run all the segmentations (workspace vars seg1, seg2, seg3 …) through a for loop. I am currently using who() to try and find all the needed workspace variables, but this doesn’t work as only the names are stored in cells seg_options and cannot be called as variables:
vars = who();
find = contains(vars, ‘seg’);
seg_options = vars(find);
This is part of the for loop I need to call the segmentation variables for:
for i = 1:length(seg_options);
A = double(seg_options(i));
end
which obviously doesn’t work properly as I need to be calling the actual variable and not just its name.
The code also needs to work for a flexible number of segmentations (ie I cannot initialize an array as a specific size). Is there a way to:
1) load the workspace variable into array, overwrite it, load the next one into the next array cell, etc. (ie saves the first segmentation as seg, loads into seg_array cell 1, saves the next segmentation as seg, load that into seg_array cell 2, and so on)
2) load all the created variables (seg1, seg2…) into an array seg_array
or
3) call and loop through all the workspace variables in the for loop itself – I know this is not ideal
Thanks in advance!I am new to Matlab but am well aware of the bad practice notion associated with dynamically creating workspace variables. Unfortunately, Matlab’s volumeSegmenter only allows saving of segmentations as either MAT-files or workspace variables, and the former creates far too many individual files for the amount I require.
In the next step after creating them, I need to run all the segmentations (workspace vars seg1, seg2, seg3 …) through a for loop. I am currently using who() to try and find all the needed workspace variables, but this doesn’t work as only the names are stored in cells seg_options and cannot be called as variables:
vars = who();
find = contains(vars, ‘seg’);
seg_options = vars(find);
This is part of the for loop I need to call the segmentation variables for:
for i = 1:length(seg_options);
A = double(seg_options(i));
end
which obviously doesn’t work properly as I need to be calling the actual variable and not just its name.
The code also needs to work for a flexible number of segmentations (ie I cannot initialize an array as a specific size). Is there a way to:
1) load the workspace variable into array, overwrite it, load the next one into the next array cell, etc. (ie saves the first segmentation as seg, loads into seg_array cell 1, saves the next segmentation as seg, load that into seg_array cell 2, and so on)
2) load all the created variables (seg1, seg2…) into an array seg_array
or
3) call and loop through all the workspace variables in the for loop itself – I know this is not ideal
Thanks in advance! I am new to Matlab but am well aware of the bad practice notion associated with dynamically creating workspace variables. Unfortunately, Matlab’s volumeSegmenter only allows saving of segmentations as either MAT-files or workspace variables, and the former creates far too many individual files for the amount I require.
In the next step after creating them, I need to run all the segmentations (workspace vars seg1, seg2, seg3 …) through a for loop. I am currently using who() to try and find all the needed workspace variables, but this doesn’t work as only the names are stored in cells seg_options and cannot be called as variables:
vars = who();
find = contains(vars, ‘seg’);
seg_options = vars(find);
This is part of the for loop I need to call the segmentation variables for:
for i = 1:length(seg_options);
A = double(seg_options(i));
end
which obviously doesn’t work properly as I need to be calling the actual variable and not just its name.
The code also needs to work for a flexible number of segmentations (ie I cannot initialize an array as a specific size). Is there a way to:
1) load the workspace variable into array, overwrite it, load the next one into the next array cell, etc. (ie saves the first segmentation as seg, loads into seg_array cell 1, saves the next segmentation as seg, load that into seg_array cell 2, and so on)
2) load all the created variables (seg1, seg2…) into an array seg_array
or
3) call and loop through all the workspace variables in the for loop itself – I know this is not ideal
Thanks in advance! array, cell array, variable, variables, arrays, cell arrays, image segmentation, for loop MATLAB Answers — New Questions
¿Cómo puedo hacer para obetener el valor logico si es que estou utilizando el siguiente diagrama de bloques?
Estoy realizado un este PID y quiero obtener el error maximo del PID y utilice los siguientes bloques. Pero al momento que yo lo compara el error anterior y el error actual para despues obtener un 1 logico. Sin embargo se pueden observar que las graficas se cruzan ya que le reste la tolerancia pero aun que se crucen digue saliendo 0 logico. Alguien sabe como solucionar esto por favor. Gracias de antemanoEstoy realizado un este PID y quiero obtener el error maximo del PID y utilice los siguientes bloques. Pero al momento que yo lo compara el error anterior y el error actual para despues obtener un 1 logico. Sin embargo se pueden observar que las graficas se cruzan ya que le reste la tolerancia pero aun que se crucen digue saliendo 0 logico. Alguien sabe como solucionar esto por favor. Gracias de antemano Estoy realizado un este PID y quiero obtener el error maximo del PID y utilice los siguientes bloques. Pero al momento que yo lo compara el error anterior y el error actual para despues obtener un 1 logico. Sin embargo se pueden observar que las graficas se cruzan ya que le reste la tolerancia pero aun que se crucen digue saliendo 0 logico. Alguien sabe como solucionar esto por favor. Gracias de antemano pid, simulink MATLAB Answers — New Questions
Word becomes sluggish with increasing numbers of internal hyperlinks. Suggestions? Solutions?
My Word documents become increasingly unresponsive as I add internal hyperlinks to them. This seems odd as I using a T7910 Dell Workstation with 64GB of memory.
Now I plan to create a large Word document with 300 internal hyperlinks. On past experience Word will choke on this. My document will have no images, but it will have footnotes referencing books and articles. Some of these will have external hyperlinks.
What can I do to improve Word handling of documents with large numbers of internat hyperlinks? Should I increase my Word memory allocation (how would I do that)?
I’ve looked at various webpages dealing with Word being sluggish, but I cannot find anything definitive. It seems odd that Word has trouble handling such basic tools as internal hyperlinks.
I do have a number of active add-ins: Zotero, Perfect PDF 10 Premium, Perfect PDF 12 Premium, Power User, Date, Metric Convertor and NatSpeak. Is it possible to turn these off for a single document or can you only deactivate add-ins globally?
Again it seems very odd that such a popular program with very many features like Word, seems to have such extreme limitations on document size and feature use.
My thanks in advance for your help and suggestions.
My Word documents become increasingly unresponsive as I add internal hyperlinks to them. This seems odd as I using a T7910 Dell Workstation with 64GB of memory.Now I plan to create a large Word document with 300 internal hyperlinks. On past experience Word will choke on this. My document will have no images, but it will have footnotes referencing books and articles. Some of these will have external hyperlinks.What can I do to improve Word handling of documents with large numbers of internat hyperlinks? Should I increase my Word memory allocation (how would I do that)? I’ve looked at various webpages dealing with Word being sluggish, but I cannot find anything definitive. It seems odd that Word has trouble handling such basic tools as internal hyperlinks.I do have a number of active add-ins: Zotero, Perfect PDF 10 Premium, Perfect PDF 12 Premium, Power User, Date, Metric Convertor and NatSpeak. Is it possible to turn these off for a single document or can you only deactivate add-ins globally?Again it seems very odd that such a popular program with very many features like Word, seems to have such extreme limitations on document size and feature use.My thanks in advance for your help and suggestions. Read More
Amplify stopped letting my the “from” field for the Outlook channel
Hello,
Has anyone come across an issue with the Outlook distribution where you can not change the “From” account? As of today, it won’t let me change that.
When I click “Other email address…” nothing happens. I have created a new communication, logged out, restarted my laptop, tried a different browser and it has not resolved. When someone else tries to edit, it says I am still editing even though my laptop wasn’t even on. Others in my organization have tried as well and it’s doing the same thing for them.
Hello, Has anyone come across an issue with the Outlook distribution where you can not change the “From” account? As of today, it won’t let me change that.When I click “Other email address…” nothing happens. I have created a new communication, logged out, restarted my laptop, tried a different browser and it has not resolved. When someone else tries to edit, it says I am still editing even though my laptop wasn’t even on. Others in my organization have tried as well and it’s doing the same thing for them. Read More
Expanding drive in Failover Clustering
I’ve got a Storage Spaces direct cluster setup and I’ve got a volume I need to expand. It’s a volume under the file server role in the cluster. It’s an ReFS volume and I’ve tried using Windows Admin Center to expand it and it errors out, but I can expand a volume under the SoFS role with no issue. I also tried using Server manager, disk manager and diskpart with no luck.
Any suggestions?
I’ve got a Storage Spaces direct cluster setup and I’ve got a volume I need to expand. It’s a volume under the file server role in the cluster. It’s an ReFS volume and I’ve tried using Windows Admin Center to expand it and it errors out, but I can expand a volume under the SoFS role with no issue. I also tried using Server manager, disk manager and diskpart with no luck. Any suggestions? Read More
Refresh pivot table
Hi Community,
Is it possible to make it so that if I filter a database, a pivot table (originating from this database) takes the filtered data, that is, that it updates automatically taking only the visible data from the database?.
Regards,
Francisco
Hi Community, Is it possible to make it so that if I filter a database, a pivot table (originating from this database) takes the filtered data, that is, that it updates automatically taking only the visible data from the database?. Regards, Francisco Read More
Co sell eligibility question
Here’s a situation for a customer:
Earlier this year they set up a marketplace listing to process a transaction for a specific customer. They created this as a standard listing, with just one private plan, so it stayed private entirely – and because of this, we named it & entered content in a way specific for that customer. It was approved as IP co-sell incentivized and enrolled as qualifying toward Azure consumption commitment before they customer transacted.
We’d now like to create a generic transactable listing, which would be public (with placeholder pricing – we’d still transact all deals as private). I’ve been working with the ISV Success team – have cc’d Sofia, my main contact – on how best to do this. I’m happy to create a new listing or rename & update the existing one. However:
ISV Success team tells them for an offer to become co-sell eligible, we need to first transact 100k on that specific offer. They suspect an exception was put through for the prior transaction.
ISV Success team told them if they were to rename the existing co-sell eligible offer, the co-sell eligibility process would be restarted, and the prior transaction would then not count toward that 100k
I’m hoping you can shed some light on this, and advise on how to handle? We aren’t (at this point in time) looking to use the marketplace to drum up new business; our existing Azure customers want to use it to pay us because they have MACC. But if they can’t, they’ll pay us directly. We wouldn’t have a scenario to process a 100k transation that doesn’t qualify for MACC drawdown.
Here’s a situation for a customer:
Earlier this year they set up a marketplace listing to process a transaction for a specific customer. They created this as a standard listing, with just one private plan, so it stayed private entirely – and because of this, we named it & entered content in a way specific for that customer. It was approved as IP co-sell incentivized and enrolled as qualifying toward Azure consumption commitment before they customer transacted.
We’d now like to create a generic transactable listing, which would be public (with placeholder pricing – we’d still transact all deals as private). I’ve been working with the ISV Success team – have cc’d Sofia, my main contact – on how best to do this. I’m happy to create a new listing or rename & update the existing one. However:
ISV Success team tells them for an offer to become co-sell eligible, we need to first transact 100k on that specific offer. They suspect an exception was put through for the prior transaction.
ISV Success team told them if they were to rename the existing co-sell eligible offer, the co-sell eligibility process would be restarted, and the prior transaction would then not count toward that 100k
I’m hoping you can shed some light on this, and advise on how to handle? We aren’t (at this point in time) looking to use the marketplace to drum up new business; our existing Azure customers want to use it to pay us because they have MACC. But if they can’t, they’ll pay us directly. We wouldn’t have a scenario to process a 100k transation that doesn’t qualify for MACC drawdown. Read More