Category: News
Apple Mail
Hello – I thought I had clicked on Tech support, but here I am in a discussion space?
Hopefully someone can help – the last few weeks has been a nightmare with my hotmail on Apple mail.
Am I going to need to change all the emails to outlook officially, and let everyone know (hundreds and hundreds???)?? Or does hotmail stay while the magic works in the background as outlook?
I’ve tried resolving this at least 6 times with Apple Support (which actually exists, unlike MS…….), but I wonder if I need to fully change my email handle before it will quit giving me grief and work with the Apple Mail??
Thanks
Hello – I thought I had clicked on Tech support, but here I am in a discussion space?Hopefully someone can help – the last few weeks has been a nightmare with my hotmail on Apple mail. Am I going to need to change all the emails to outlook officially, and let everyone know (hundreds and hundreds???)?? Or does hotmail stay while the magic works in the background as outlook? I’ve tried resolving this at least 6 times with Apple Support (which actually exists, unlike MS…….), but I wonder if I need to fully change my email handle before it will quit giving me grief and work with the Apple Mail?? Thanks Read More
iOS OneDrive does not show all files and folders visibile in web application
I have some folders in our sharepoint site that are visible in the web application (e.g. web browser at https://ourcompany.sharepoint.com/sites/OurSite
But they are not visible in the iOS OneDrive application.
I’m logged in using my work credentials.
Most of the folders/files visible on the web application are visible in the iOS application but some are not.
I have some folders in our sharepoint site that are visible in the web application (e.g. web browser at https://ourcompany.sharepoint.com/sites/OurSite But they are not visible in the iOS OneDrive application.I’m logged in using my work credentials.Most of the folders/files visible on the web application are visible in the iOS application but some are not. Read More
OneDrive corrupts computer storage
OneDrive has proven to be a frustrating and aggravating unreliable piece of junk..
Example 1:
Edited an Excel file.Saved file to Documents/(subfolder chain)/<filename>Closed Excel.Use Edge to access Gmail account.Created a new messageSelected to attach a fileBrowsed to Documents/(subfolder chain)/<filename>Selected InsertSent EmailChecked sent messages folder.Opened the sent EmailOpened the attached Excel fileThe file it attached was an old version!!!!!!!!!!!!!!!Using File browser, Opened <filename> following Documents/(subfolder chain)/<filename>It is the updated version of the file.Using File browser, Opened <filename> following the path OneDrive/Documents/(subfolder chain)/<filename> It is the updated version of the file.Went back to Gmail and created a new EmailSelected to attach a fileBrowsed to Documents/(subfolder chain)/<filename>Attached <filename>Double clicked the attachment to open fileThe file it attached was an old version!!!!!!!!!!!!!!
Why didn’t OneDrive allow the local copy of the file to be physically updated when I saved it – at the time I saved it.????
Example 2:
With the computer off-line: open <filename>Edit Filename.Save filenameGet warning message that computer is offlineSelect to save the file, anyway.do other things off line.go online and handle other tasksnavigate to and open <filename> It is the unedited version of the file!!!!!!!!!!!!!!!!!!!Sidebar comes up saying excel has a temporary backupWhy didn’t OneDrive allow the local copy of the edited <filename> to be saved as commanded in the first place?Open the temporary backupIt is the edited version of the fileSystem REFUSES to save the backup file to <filename>
Again: OneDrive is a pain to use. Working with documents is unreliable, you never know which version you are going to get. When you use File Explorer to navigate to and open the file, it will show the correct version, when you select the file from other applications for it to be inserted, it pulls a previous version of the file.
What is physically written in the Local Copy is unreliable.
PO’ed
OneDrive has proven to be a frustrating and aggravating unreliable piece of junk.. Example 1:Edited an Excel file.Saved file to Documents/(subfolder chain)/<filename>Closed Excel.Use Edge to access Gmail account.Created a new messageSelected to attach a fileBrowsed to Documents/(subfolder chain)/<filename>Selected InsertSent EmailChecked sent messages folder.Opened the sent EmailOpened the attached Excel fileThe file it attached was an old version!!!!!!!!!!!!!!!Using File browser, Opened <filename> following Documents/(subfolder chain)/<filename>It is the updated version of the file.Using File browser, Opened <filename> following the path OneDrive/Documents/(subfolder chain)/<filename> It is the updated version of the file.Went back to Gmail and created a new EmailSelected to attach a fileBrowsed to Documents/(subfolder chain)/<filename>Attached <filename>Double clicked the attachment to open fileThe file it attached was an old version!!!!!!!!!!!!!!Why didn’t OneDrive allow the local copy of the file to be physically updated when I saved it – at the time I saved it.???? Example 2:With the computer off-line: open <filename>Edit Filename.Save filenameGet warning message that computer is offlineSelect to save the file, anyway.do other things off line.go online and handle other tasksnavigate to and open <filename> It is the unedited version of the file!!!!!!!!!!!!!!!!!!!Sidebar comes up saying excel has a temporary backupWhy didn’t OneDrive allow the local copy of the edited <filename> to be saved as commanded in the first place?Open the temporary backupIt is the edited version of the fileSystem REFUSES to save the backup file to <filename>Again: OneDrive is a pain to use. Working with documents is unreliable, you never know which version you are going to get. When you use File Explorer to navigate to and open the file, it will show the correct version, when you select the file from other applications for it to be inserted, it pulls a previous version of the file.What is physically written in the Local Copy is unreliable. PO’ed Read More
Conversation Styles Missing
Hello, I have a Copilot 365 license along with a small group of other test users. We all noticed on Friday that suddenly the conversation styles (Precise, Balanced, Creative) are no longer there. The rest of our people are using Copilot with Commercial Data Protection only, and they still have them. Our region is set to United States and always has been. I’m wondering if this is an intentional update to remove those conversational styles for 365 users and/or if this will soon disappear for our non 365 users? We have done a lot of training and included using these styles, so we’ll need to inform our users if this is going away. Thanks for any insight!
Hello, I have a Copilot 365 license along with a small group of other test users. We all noticed on Friday that suddenly the conversation styles (Precise, Balanced, Creative) are no longer there. The rest of our people are using Copilot with Commercial Data Protection only, and they still have them. Our region is set to United States and always has been. I’m wondering if this is an intentional update to remove those conversational styles for 365 users and/or if this will soon disappear for our non 365 users? We have done a lot of training and included using these styles, so we’ll need to inform our users if this is going away. Thanks for any insight! Read More
CHANGE OWNERSHIP OF A SPREADSHEET
Hi
I’m about to handover a membership list which is held on a spreadsheet in Dropbox. I’ve shared the File with the new admin, and her name is appearing as ‘Able to Edit’ but she can’t Edit the file. Do I need to change her to Owner? If so, how do I do that?
Thanks for any help.
Hi I’m about to handover a membership list which is held on a spreadsheet in Dropbox. I’ve shared the File with the new admin, and her name is appearing as ‘Able to Edit’ but she can’t Edit the file. Do I need to change her to Owner? If so, how do I do that? Thanks for any help. Read More
Optimize your cloud journey with Azure pricing
Optimize your cloud investments by choosing the pricing offers that best meet your needs, paying only for what you use, and managing your cloud spend as your business evolves, whether you’re migrating your first workload or fine-tuning complex deployments.
Manage and optimize your Azure investments
Microsoft Tech Community – Latest Blogs –Read More
sltest.harness.create function input ‘source’ can’t be set ‘Signal Builder’ in parameter pairs in matlab 2022b
sltest.harness.create(‘Harness_Test’,’Source’,’Signal editor’,’Sink’,’Outport’);
error:
Expected input to match one of these values:
‘Inport’, ‘Signal Editor’, ‘From Workspace’, ‘From File’, ‘Test Sequence’, ‘Chart’, ‘Constant’, ‘Ground’, ‘None’, ‘Custom’
The input, ‘Signal Builder’, did not match any of the valid values.
This means I can’t assign ‘Signal Builder’ to ‘Source’, matlab version is 2022b, but there is no error in 2022a(Tested many times).
Is this issue related to matlab version and how to solve it? Still need to use ‘Signal Builder’.sltest.harness.create(‘Harness_Test’,’Source’,’Signal editor’,’Sink’,’Outport’);
error:
Expected input to match one of these values:
‘Inport’, ‘Signal Editor’, ‘From Workspace’, ‘From File’, ‘Test Sequence’, ‘Chart’, ‘Constant’, ‘Ground’, ‘None’, ‘Custom’
The input, ‘Signal Builder’, did not match any of the valid values.
This means I can’t assign ‘Signal Builder’ to ‘Source’, matlab version is 2022b, but there is no error in 2022a(Tested many times).
Is this issue related to matlab version and how to solve it? Still need to use ‘Signal Builder’. sltest.harness.create(‘Harness_Test’,’Source’,’Signal editor’,’Sink’,’Outport’);
error:
Expected input to match one of these values:
‘Inport’, ‘Signal Editor’, ‘From Workspace’, ‘From File’, ‘Test Sequence’, ‘Chart’, ‘Constant’, ‘Ground’, ‘None’, ‘Custom’
The input, ‘Signal Builder’, did not match any of the valid values.
This means I can’t assign ‘Signal Builder’ to ‘Source’, matlab version is 2022b, but there is no error in 2022a(Tested many times).
Is this issue related to matlab version and how to solve it? Still need to use ‘Signal Builder’. sltest.harness.create MATLAB Answers — New Questions
How do I solve this error in Parameter Setting for 2-D Lookup Table Block in Simulink?
I’m trying to create a surrogate model for vehicle dynamics in Simulink, but I’m encountering an error when setting parameters for the 2-D Lookup Table block. I would greatly appreciate any advice.
When executing the following code, this error occurs.
set_param([modelName ‘/SurrogateModel’], …
‘RowIndex’, mat2str(throttleBreakpoints), …
‘ColumnIndex’, mat2str(brakeBreakpoints), …
‘Table’, mat2str(speedData));
Error message:
There is no parameter named ‘RowIndex’ in the Lookup_n-D block
I can’t figure out how I can solve this kind of error.
I was wondering if you could give me a solution.
How should I modify the code?
Here is my matlab script to create the surrogate model.
Full Script
% Create a surrogate model for vehicle longitudinal dynamics
% Set model name
modelName = ‘VehicleLongitudinalSurrogate’;
% Create new Simulink model
new_system(modelName);
open_system(modelName);
% Input: Throttle position (0-100%)
add_block(‘simulink/Sources/In1’, [modelName ‘/Throttle’]);
set_param([modelName ‘/Throttle’], ‘Position’, [100, 100, 130, 130]);
% Input: Brake pressure (0-100%)
add_block(‘simulink/Sources/In1’, [modelName ‘/Brake’]);
set_param([modelName ‘/Brake’], ‘Position’, [100, 200, 130, 230]);
% Surrogate model (Lookup table)
add_block(‘simulink/Lookup Tables/2-D Lookup Table’, [modelName ‘/SurrogateModel’]);
set_param([modelName ‘/SurrogateModel’], ‘Position’, [250, 140, 350, 190]);
% Output: Vehicle speed (km/h)
add_block(‘simulink/Sinks/Out1’, [modelName ‘/Speed’]);
set_param([modelName ‘/Speed’], ‘Position’, [450, 160, 480, 190]);
% Connect blocks
add_line(modelName, ‘Throttle/1’, ‘SurrogateModel/1’, ‘autorouting’, ‘on’);
add_line(modelName, ‘Brake/1’, ‘SurrogateModel/2’, ‘autorouting’, ‘on’);
add_line(modelName, ‘SurrogateModel/1’, ‘Speed/1’, ‘autorouting’, ‘on’);
% Set lookup table parameters (simplified data)
throttleBreakpoints = 0:20:100;
brakeBreakpoints = 0:20:100;
speedData = [
120, 100, 80, 60, 40, 20;
100, 80, 60, 40, 20, 0;
80, 60, 40, 20, 0, 0;
60, 40, 20, 0, 0, 0;
40, 20, 0, 0, 0, 0;
20, 0, 0, 0, 0, 0
];
% Set parameters (this is where the error occurs)
set_param([modelName ‘/SurrogateModel’], …
‘RowIndex’, mat2str(throttleBreakpoints), …
‘ColumnIndex’, mat2str(brakeBreakpoints), …
‘Table’, mat2str(speedData));
% Save and close the model
save_system(modelName, [modelName ‘.slx’]);
close_system(modelName);
disp(‘Vehicle longitudinal dynamics surrogate model has been created and saved.’);
Best,I’m trying to create a surrogate model for vehicle dynamics in Simulink, but I’m encountering an error when setting parameters for the 2-D Lookup Table block. I would greatly appreciate any advice.
When executing the following code, this error occurs.
set_param([modelName ‘/SurrogateModel’], …
‘RowIndex’, mat2str(throttleBreakpoints), …
‘ColumnIndex’, mat2str(brakeBreakpoints), …
‘Table’, mat2str(speedData));
Error message:
There is no parameter named ‘RowIndex’ in the Lookup_n-D block
I can’t figure out how I can solve this kind of error.
I was wondering if you could give me a solution.
How should I modify the code?
Here is my matlab script to create the surrogate model.
Full Script
% Create a surrogate model for vehicle longitudinal dynamics
% Set model name
modelName = ‘VehicleLongitudinalSurrogate’;
% Create new Simulink model
new_system(modelName);
open_system(modelName);
% Input: Throttle position (0-100%)
add_block(‘simulink/Sources/In1’, [modelName ‘/Throttle’]);
set_param([modelName ‘/Throttle’], ‘Position’, [100, 100, 130, 130]);
% Input: Brake pressure (0-100%)
add_block(‘simulink/Sources/In1’, [modelName ‘/Brake’]);
set_param([modelName ‘/Brake’], ‘Position’, [100, 200, 130, 230]);
% Surrogate model (Lookup table)
add_block(‘simulink/Lookup Tables/2-D Lookup Table’, [modelName ‘/SurrogateModel’]);
set_param([modelName ‘/SurrogateModel’], ‘Position’, [250, 140, 350, 190]);
% Output: Vehicle speed (km/h)
add_block(‘simulink/Sinks/Out1’, [modelName ‘/Speed’]);
set_param([modelName ‘/Speed’], ‘Position’, [450, 160, 480, 190]);
% Connect blocks
add_line(modelName, ‘Throttle/1’, ‘SurrogateModel/1’, ‘autorouting’, ‘on’);
add_line(modelName, ‘Brake/1’, ‘SurrogateModel/2’, ‘autorouting’, ‘on’);
add_line(modelName, ‘SurrogateModel/1’, ‘Speed/1’, ‘autorouting’, ‘on’);
% Set lookup table parameters (simplified data)
throttleBreakpoints = 0:20:100;
brakeBreakpoints = 0:20:100;
speedData = [
120, 100, 80, 60, 40, 20;
100, 80, 60, 40, 20, 0;
80, 60, 40, 20, 0, 0;
60, 40, 20, 0, 0, 0;
40, 20, 0, 0, 0, 0;
20, 0, 0, 0, 0, 0
];
% Set parameters (this is where the error occurs)
set_param([modelName ‘/SurrogateModel’], …
‘RowIndex’, mat2str(throttleBreakpoints), …
‘ColumnIndex’, mat2str(brakeBreakpoints), …
‘Table’, mat2str(speedData));
% Save and close the model
save_system(modelName, [modelName ‘.slx’]);
close_system(modelName);
disp(‘Vehicle longitudinal dynamics surrogate model has been created and saved.’);
Best, I’m trying to create a surrogate model for vehicle dynamics in Simulink, but I’m encountering an error when setting parameters for the 2-D Lookup Table block. I would greatly appreciate any advice.
When executing the following code, this error occurs.
set_param([modelName ‘/SurrogateModel’], …
‘RowIndex’, mat2str(throttleBreakpoints), …
‘ColumnIndex’, mat2str(brakeBreakpoints), …
‘Table’, mat2str(speedData));
Error message:
There is no parameter named ‘RowIndex’ in the Lookup_n-D block
I can’t figure out how I can solve this kind of error.
I was wondering if you could give me a solution.
How should I modify the code?
Here is my matlab script to create the surrogate model.
Full Script
% Create a surrogate model for vehicle longitudinal dynamics
% Set model name
modelName = ‘VehicleLongitudinalSurrogate’;
% Create new Simulink model
new_system(modelName);
open_system(modelName);
% Input: Throttle position (0-100%)
add_block(‘simulink/Sources/In1’, [modelName ‘/Throttle’]);
set_param([modelName ‘/Throttle’], ‘Position’, [100, 100, 130, 130]);
% Input: Brake pressure (0-100%)
add_block(‘simulink/Sources/In1’, [modelName ‘/Brake’]);
set_param([modelName ‘/Brake’], ‘Position’, [100, 200, 130, 230]);
% Surrogate model (Lookup table)
add_block(‘simulink/Lookup Tables/2-D Lookup Table’, [modelName ‘/SurrogateModel’]);
set_param([modelName ‘/SurrogateModel’], ‘Position’, [250, 140, 350, 190]);
% Output: Vehicle speed (km/h)
add_block(‘simulink/Sinks/Out1’, [modelName ‘/Speed’]);
set_param([modelName ‘/Speed’], ‘Position’, [450, 160, 480, 190]);
% Connect blocks
add_line(modelName, ‘Throttle/1’, ‘SurrogateModel/1’, ‘autorouting’, ‘on’);
add_line(modelName, ‘Brake/1’, ‘SurrogateModel/2’, ‘autorouting’, ‘on’);
add_line(modelName, ‘SurrogateModel/1’, ‘Speed/1’, ‘autorouting’, ‘on’);
% Set lookup table parameters (simplified data)
throttleBreakpoints = 0:20:100;
brakeBreakpoints = 0:20:100;
speedData = [
120, 100, 80, 60, 40, 20;
100, 80, 60, 40, 20, 0;
80, 60, 40, 20, 0, 0;
60, 40, 20, 0, 0, 0;
40, 20, 0, 0, 0, 0;
20, 0, 0, 0, 0, 0
];
% Set parameters (this is where the error occurs)
set_param([modelName ‘/SurrogateModel’], …
‘RowIndex’, mat2str(throttleBreakpoints), …
‘ColumnIndex’, mat2str(brakeBreakpoints), …
‘Table’, mat2str(speedData));
% Save and close the model
save_system(modelName, [modelName ‘.slx’]);
close_system(modelName);
disp(‘Vehicle longitudinal dynamics surrogate model has been created and saved.’);
Best, simulink, matlab code MATLAB Answers — New Questions
Speed up numeric integral
Hi,everyone.I got a problem of doing numeric integral on the matrix H (which is at the bottom part of my code).
The code works fine but I would like to speed it up? Am I doing something stupid to make it slow?Thanks for your help.
clear
L=0.1;
section=50;
a=L./2;
b=L./section;
v=3e8;
f1=1.2e9;
f2=4.8e9;
f3=7.5e9;
f4=10e9;
w1=(2.*pi.*f1);
w2=(2.*pi.*f2);
w3=(2.*pi.*f3);
w4=(2.*pi.*f4);
Z01=50;
Z02=75;
a0=(log(Z02./Z01))./(2..*L);
T=a;
Ub=a;
Lb=-a;
ub=a;
lb=-a;
k=5;
syms x y w m
%%% Revised Algorithm
l=0:(2.*L)./(2.*k):L % Approximate sections dvided
% Approximate terms
sec=numel(l)-1;
Z1=[50 55 60 65 70 80 75]; % Set the impedance of the end of each sections
ac=10; % Choose the accuracy of dividing a section
for s=1:1:sec
c=(l(s+1)-l(s))./ac;
app_cos=0.5./ac.*log(Z1(s+1)./Z1(s)).*sin(ac./2.*(w./v).*c).*cos(((ac+1)./2).*(w./v).*c)./sin(((c.*w)./(2.*v)));
app_sin=0.5./ac.*log(Z1(s+1)./Z1(s)).*sin(ac./2.*(w./v).*c).*sin(((ac+1)./2).*(w./v).*c)./sin(((c.*w)./(2.*v)));
amp=0.75;
Ga(s)=(app_cos-(1i.*amp.*app_sin));
end
Ta=(1-(abs(Ga(1:1:end)).^2));
%%% Turn closed loop terms into matrix presentation
for t=1:1:sec
for r=1:1:sec
E(t,r)=Ga(t).*Ga(r);
end
end
E=triu(E,1);
for t=1:1:sec
for r=1:1:sec
D(t,r)=abs(E(r,t));
end
end
C1=sum(D);
% Construct approximate loop terms
for t=1:1:sec
D1(t)=prod(Ta(1:t))./(1+(sum(C1(1:t))));
end
D=[1 D1(2:end)];
Dm=transpose(D).*D;
% Cmn
m=transpose(1:5);
n=1:5;
g=(v.^2.*w.^2.*cos((2.*w.*(- y + x))./v).*cos(20.*sym(pi).*m.*x).*cos(20.*sym(pi).*n.*y) + 10.*sym(pi).*m.*v.^3.*w.*sin(20.*sym(pi).*m.*x).*sin((2.*w.*(- y + x))./v).*cos(20.*sym(pi).*n.*y) – 10.*sym(pi).*n.*v.^3.*w.*sin(20.*sym(pi).*n.*y).*sin((2.*w.*(- y + x))./v).*cos(20.*sym(pi).*m.*x) + 100.*m.*n.*v.^4.*sym(pi).^2.*sin(20.*sym(pi).*m.*x).*sin(20.*sym(pi).*n.*y).*cos((2.*w.*(- y + x))./v))./(4.*(w.^2 – 100.*sym(pi).^2.*m.^2.*v.^2).*(w.^2 – 100.*sym(pi).^2.*n.^2.*v.^2));
for p=1:numel(l)-1
x1=l(p);
x2=l(p+1);
for q=1:numel(l)-1
y1=l(q);
y2=l(p+1);
Ht{p,q}=matlabFunction(((subs(g,[x y],[x2 y2])-subs(g,[x y],[x1 y1]))*Dm(p,q)));
end
end
Hi=Ht{1};
for m=2:1:numel(Ht)
Hi=Hi+vpa(Ht{m},3);
end
H=integral(Hi,w1,w2,"ArrayValued",true)Hi,everyone.I got a problem of doing numeric integral on the matrix H (which is at the bottom part of my code).
The code works fine but I would like to speed it up? Am I doing something stupid to make it slow?Thanks for your help.
clear
L=0.1;
section=50;
a=L./2;
b=L./section;
v=3e8;
f1=1.2e9;
f2=4.8e9;
f3=7.5e9;
f4=10e9;
w1=(2.*pi.*f1);
w2=(2.*pi.*f2);
w3=(2.*pi.*f3);
w4=(2.*pi.*f4);
Z01=50;
Z02=75;
a0=(log(Z02./Z01))./(2..*L);
T=a;
Ub=a;
Lb=-a;
ub=a;
lb=-a;
k=5;
syms x y w m
%%% Revised Algorithm
l=0:(2.*L)./(2.*k):L % Approximate sections dvided
% Approximate terms
sec=numel(l)-1;
Z1=[50 55 60 65 70 80 75]; % Set the impedance of the end of each sections
ac=10; % Choose the accuracy of dividing a section
for s=1:1:sec
c=(l(s+1)-l(s))./ac;
app_cos=0.5./ac.*log(Z1(s+1)./Z1(s)).*sin(ac./2.*(w./v).*c).*cos(((ac+1)./2).*(w./v).*c)./sin(((c.*w)./(2.*v)));
app_sin=0.5./ac.*log(Z1(s+1)./Z1(s)).*sin(ac./2.*(w./v).*c).*sin(((ac+1)./2).*(w./v).*c)./sin(((c.*w)./(2.*v)));
amp=0.75;
Ga(s)=(app_cos-(1i.*amp.*app_sin));
end
Ta=(1-(abs(Ga(1:1:end)).^2));
%%% Turn closed loop terms into matrix presentation
for t=1:1:sec
for r=1:1:sec
E(t,r)=Ga(t).*Ga(r);
end
end
E=triu(E,1);
for t=1:1:sec
for r=1:1:sec
D(t,r)=abs(E(r,t));
end
end
C1=sum(D);
% Construct approximate loop terms
for t=1:1:sec
D1(t)=prod(Ta(1:t))./(1+(sum(C1(1:t))));
end
D=[1 D1(2:end)];
Dm=transpose(D).*D;
% Cmn
m=transpose(1:5);
n=1:5;
g=(v.^2.*w.^2.*cos((2.*w.*(- y + x))./v).*cos(20.*sym(pi).*m.*x).*cos(20.*sym(pi).*n.*y) + 10.*sym(pi).*m.*v.^3.*w.*sin(20.*sym(pi).*m.*x).*sin((2.*w.*(- y + x))./v).*cos(20.*sym(pi).*n.*y) – 10.*sym(pi).*n.*v.^3.*w.*sin(20.*sym(pi).*n.*y).*sin((2.*w.*(- y + x))./v).*cos(20.*sym(pi).*m.*x) + 100.*m.*n.*v.^4.*sym(pi).^2.*sin(20.*sym(pi).*m.*x).*sin(20.*sym(pi).*n.*y).*cos((2.*w.*(- y + x))./v))./(4.*(w.^2 – 100.*sym(pi).^2.*m.^2.*v.^2).*(w.^2 – 100.*sym(pi).^2.*n.^2.*v.^2));
for p=1:numel(l)-1
x1=l(p);
x2=l(p+1);
for q=1:numel(l)-1
y1=l(q);
y2=l(p+1);
Ht{p,q}=matlabFunction(((subs(g,[x y],[x2 y2])-subs(g,[x y],[x1 y1]))*Dm(p,q)));
end
end
Hi=Ht{1};
for m=2:1:numel(Ht)
Hi=Hi+vpa(Ht{m},3);
end
H=integral(Hi,w1,w2,"ArrayValued",true) Hi,everyone.I got a problem of doing numeric integral on the matrix H (which is at the bottom part of my code).
The code works fine but I would like to speed it up? Am I doing something stupid to make it slow?Thanks for your help.
clear
L=0.1;
section=50;
a=L./2;
b=L./section;
v=3e8;
f1=1.2e9;
f2=4.8e9;
f3=7.5e9;
f4=10e9;
w1=(2.*pi.*f1);
w2=(2.*pi.*f2);
w3=(2.*pi.*f3);
w4=(2.*pi.*f4);
Z01=50;
Z02=75;
a0=(log(Z02./Z01))./(2..*L);
T=a;
Ub=a;
Lb=-a;
ub=a;
lb=-a;
k=5;
syms x y w m
%%% Revised Algorithm
l=0:(2.*L)./(2.*k):L % Approximate sections dvided
% Approximate terms
sec=numel(l)-1;
Z1=[50 55 60 65 70 80 75]; % Set the impedance of the end of each sections
ac=10; % Choose the accuracy of dividing a section
for s=1:1:sec
c=(l(s+1)-l(s))./ac;
app_cos=0.5./ac.*log(Z1(s+1)./Z1(s)).*sin(ac./2.*(w./v).*c).*cos(((ac+1)./2).*(w./v).*c)./sin(((c.*w)./(2.*v)));
app_sin=0.5./ac.*log(Z1(s+1)./Z1(s)).*sin(ac./2.*(w./v).*c).*sin(((ac+1)./2).*(w./v).*c)./sin(((c.*w)./(2.*v)));
amp=0.75;
Ga(s)=(app_cos-(1i.*amp.*app_sin));
end
Ta=(1-(abs(Ga(1:1:end)).^2));
%%% Turn closed loop terms into matrix presentation
for t=1:1:sec
for r=1:1:sec
E(t,r)=Ga(t).*Ga(r);
end
end
E=triu(E,1);
for t=1:1:sec
for r=1:1:sec
D(t,r)=abs(E(r,t));
end
end
C1=sum(D);
% Construct approximate loop terms
for t=1:1:sec
D1(t)=prod(Ta(1:t))./(1+(sum(C1(1:t))));
end
D=[1 D1(2:end)];
Dm=transpose(D).*D;
% Cmn
m=transpose(1:5);
n=1:5;
g=(v.^2.*w.^2.*cos((2.*w.*(- y + x))./v).*cos(20.*sym(pi).*m.*x).*cos(20.*sym(pi).*n.*y) + 10.*sym(pi).*m.*v.^3.*w.*sin(20.*sym(pi).*m.*x).*sin((2.*w.*(- y + x))./v).*cos(20.*sym(pi).*n.*y) – 10.*sym(pi).*n.*v.^3.*w.*sin(20.*sym(pi).*n.*y).*sin((2.*w.*(- y + x))./v).*cos(20.*sym(pi).*m.*x) + 100.*m.*n.*v.^4.*sym(pi).^2.*sin(20.*sym(pi).*m.*x).*sin(20.*sym(pi).*n.*y).*cos((2.*w.*(- y + x))./v))./(4.*(w.^2 – 100.*sym(pi).^2.*m.^2.*v.^2).*(w.^2 – 100.*sym(pi).^2.*n.^2.*v.^2));
for p=1:numel(l)-1
x1=l(p);
x2=l(p+1);
for q=1:numel(l)-1
y1=l(q);
y2=l(p+1);
Ht{p,q}=matlabFunction(((subs(g,[x y],[x2 y2])-subs(g,[x y],[x1 y1]))*Dm(p,q)));
end
end
Hi=Ht{1};
for m=2:1:numel(Ht)
Hi=Hi+vpa(Ht{m},3);
end
H=integral(Hi,w1,w2,"ArrayValued",true) integral MATLAB Answers — New Questions
How to import JPK force maps?
Hello,
I am trying to import force maps data from JPK and I could not find any clue on how to begin. Could anyone help me with how I could import raw data from force map files? Any hints and ideas are appriciated. My plan is to fit the data myself in Matlab as the available programs do not offer good fitting methods. I have compressed a JPK force map file in .zip, so I could attach it here.Hello,
I am trying to import force maps data from JPK and I could not find any clue on how to begin. Could anyone help me with how I could import raw data from force map files? Any hints and ideas are appriciated. My plan is to fit the data myself in Matlab as the available programs do not offer good fitting methods. I have compressed a JPK force map file in .zip, so I could attach it here. Hello,
I am trying to import force maps data from JPK and I could not find any clue on how to begin. Could anyone help me with how I could import raw data from force map files? Any hints and ideas are appriciated. My plan is to fit the data myself in Matlab as the available programs do not offer good fitting methods. I have compressed a JPK force map file in .zip, so I could attach it here. afm, jpk, force maps, import jpk force maps MATLAB Answers — New Questions
How to Delete Duplicate Phone Link Notifications
Hello,
I’ve encountered persistent problems with the Phone Link app on Windows 11, leading me to delete and re-add my phone multiple times. The app stopped displaying the messages I received, despite previously working without issues.
Upon reviewing Settings>System>Notifications, I found duplicated entries for Phone notifications.
Is there a method to eliminate these duplicates?
Thank you
Hello,I’ve encountered persistent problems with the Phone Link app on Windows 11, leading me to delete and re-add my phone multiple times. The app stopped displaying the messages I received, despite previously working without issues.Upon reviewing Settings>System>Notifications, I found duplicated entries for Phone notifications.Is there a method to eliminate these duplicates?Thank you Read More
The WinRAR Archive icon is missing from the context menu.
Hello everyone, I’m having trouble with the archive icon not showing up in the context menu.
This issue is really frustrating me.
I attempted the following solutions:
I installed Revo Uninstaller to try and uninstall WinRAR in hopes of fixing this issue.
I uninstalled WinRAR through the Control Panel.
I managed to hide the WinRAR archive from the context menu, but I would prefer not to do that.
Hello everyone, I’m having trouble with the archive icon not showing up in the context menu. This issue is really frustrating me. I attempted the following solutions:I installed Revo Uninstaller to try and uninstall WinRAR in hopes of fixing this issue.I uninstalled WinRAR through the Control Panel.I managed to hide the WinRAR archive from the context menu, but I would prefer not to do that. Read More
Assistance Needed: Locked Out of System Following Selective Startup Attempt
Attention everyone, I encountered an issue while attempting to access safe mode by selecting a selective startup in msconfig. Upon restarting, I am now completely locked out. The Lock Screen displays an error message stating that my pin is not available. When I try to set up a new pin, I am prompted to search for an app in the store, but nothing happens when I click on it. I am in urgent need of assistance as I am currently locked out of my system. I have already attempted restarting and pressing F8, but to no avail. Your help in resolving this matter would be greatly appreciated.
Attention everyone, I encountered an issue while attempting to access safe mode by selecting a selective startup in msconfig. Upon restarting, I am now completely locked out. The Lock Screen displays an error message stating that my pin is not available. When I try to set up a new pin, I am prompted to search for an app in the store, but nothing happens when I click on it. I am in urgent need of assistance as I am currently locked out of my system. I have already attempted restarting and pressing F8, but to no avail. Your help in resolving this matter would be greatly appreciated. Read More
New Windows 11 Laptop with Adjustable Brightness Levels
Greetings, I have transformed my Toshiba Satellite from Windows 10 to Windows 11, but encountered persistent issues with screen brightness fluctuation. Despite seeking assistance from various sources and exploring recovery options by performing a fresh cloud-based Windows 11 installation that involved wiping the entire hard drive clean and starting afresh, the problem persists. The screen brightness irregularities seem to be linked to one of the amber lights on the laptop’s front panel, acting in unison with these fluctuations. Despite my efforts, I am yet to locate a definitive guide explaining the purpose of these front lights.
I am now contemplating if the erratic screen dimming and brightening could be related to a battery-life feature mistakenly activating when the device is running on external power. Interestingly, these issues cease when the laptop operates solely on battery power.
Greetings, I have transformed my Toshiba Satellite from Windows 10 to Windows 11, but encountered persistent issues with screen brightness fluctuation. Despite seeking assistance from various sources and exploring recovery options by performing a fresh cloud-based Windows 11 installation that involved wiping the entire hard drive clean and starting afresh, the problem persists. The screen brightness irregularities seem to be linked to one of the amber lights on the laptop’s front panel, acting in unison with these fluctuations. Despite my efforts, I am yet to locate a definitive guide explaining the purpose of these front lights. I am now contemplating if the erratic screen dimming and brightening could be related to a battery-life feature mistakenly activating when the device is running on external power. Interestingly, these issues cease when the laptop operates solely on battery power. Read More
Refreshment for my portal.
Hey everyone,
I’m looking to refresh the design of our portal and found this starter kit v3, but I’m worried it might make changes to my current portal.
Initially, I just want to update the homepage, kind of like what’s shown in the package link. But I noticed the project doesn’t respond to questions very often. So, I’m wondering if anyone has worked with it or knows of another project I could use.
Here’s the link to the project:
https://github.com/pnp/sp-starter-kit
Thanks in advance!
Hey everyone, I’m looking to refresh the design of our portal and found this starter kit v3, but I’m worried it might make changes to my current portal. Initially, I just want to update the homepage, kind of like what’s shown in the package link. But I noticed the project doesn’t respond to questions very often. So, I’m wondering if anyone has worked with it or knows of another project I could use. Here’s the link to the project:https://github.com/pnp/sp-starter-kit Thanks in advance! Read More
Delegate access problem
When I attempt to grant delegate access to members of my team I get the following Outlook response:
“The Delegates settings were not saved correctly. Cannot activate free/busy information.” I cannot figure out how to correct this issue so I’m stuck….
When I attempt to grant delegate access to members of my team I get the following Outlook response:”The Delegates settings were not saved correctly. Cannot activate free/busy information.” I cannot figure out how to correct this issue so I’m stuck…. Read More
Linking Data Product asset access to Fabric Access
Hi,
I’ve created a few Data Products which include scanned Metadata from Fabric Objects. Based on Data Product policies, access is granted after review. Is there a way to link read-only access to the objects(Lakehouse tables, Semantic Layer Objects) in Fabric, based on granting access to the Data Product? The way I’ve set it up, only access to the metadata is granted, not the actual objects in Fabric Workspace.
Hi, I’ve created a few Data Products which include scanned Metadata from Fabric Objects. Based on Data Product policies, access is granted after review. Is there a way to link read-only access to the objects(Lakehouse tables, Semantic Layer Objects) in Fabric, based on granting access to the Data Product? The way I’ve set it up, only access to the metadata is granted, not the actual objects in Fabric Workspace. Read More
Photo’s delete from folder after dragging and dropping into chat
Anyone know how I can prevent this? I noticed that after I’ve dragged and dropped photos or files into a Teams chat, the files disappear. Thanks
Anyone know how I can prevent this? I noticed that after I’ve dragged and dropped photos or files into a Teams chat, the files disappear. Thanks Read More
Summarize longer Word documents using Copilot
Hi, Microsoft 365 Insiders,
We’re happy to announce a major update to Copilot’s summarization capabilities in Microsoft Word! You can now summarize documents up to 80,000 words – about 4 times more than previously. This enhancement comes from listening to your feedback, as Summarize this doc is one of the most used Copilot features.
Learn more about this feature from Stéphanie Visser, Product Manager on the Word team: Summarize longer Word documents using Copilot
Thanks!
Perry Sjogren
Microsoft 365 Insider Community Manager
Become a Microsoft 365 Insider and gain exclusive access to new features and help shape the future of Microsoft 365. Join Now: Windows | Mac | iOS | Android
Hi, Microsoft 365 Insiders,
We’re happy to announce a major update to Copilot’s summarization capabilities in Microsoft Word! You can now summarize documents up to 80,000 words – about 4 times more than previously. This enhancement comes from listening to your feedback, as Summarize this doc is one of the most used Copilot features.
Learn more about this feature from Stéphanie Visser, Product Manager on the Word team: Summarize longer Word documents using Copilot
Thanks!
Perry Sjogren
Microsoft 365 Insider Community Manager
Become a Microsoft 365 Insider and gain exclusive access to new features and help shape the future of Microsoft 365. Join Now: Windows | Mac | iOS | Android Read More
Rebind the MS Teams team to a specific SharePoint site
We’ve performed a migration of Slack to MS Teams.
One of the tasks was to perform the migration of multiple channels to one logical team.
The migration process was completed successfully.
However, after migration, we discovered that it is not possible to attach files to one channel in the team (later we found more than one such channel).
The fix was to open the tab “Files” in Teams, then the user was allowed to upload (attach) files.
During the troubleshooting, we found that while the migration process is in progress, and there’s a need to upload files (found in Slack), an associated SharePoint site is created.
In our case, the SharePoint site with the same name (as the team name itself) was created early (probably during our migration tests/dry runs and wasn’t deleted properly) which led to the creation of a SharePoint site with a different naming (as two SharePoint sites with the same naming couldn’t exist) during the real migration.
(examples:
team name = prj-team
existing (early created) ShP site = https://domain.sharepoint.com/sites/prj-team
newly created ShP site (bound to an MS Teams team) = https://domain.sharepoint.com/sites/prj-team956
)
This implies a lot of inconvenience for the users and we’re looking the way to resolve/mitigate it.
We cannot destroy all teams and channels and restart the migration.
The question here – can a team in MS Teams be updated to be bound to another SharePoint site?
Thanks in advance.
Hello, We’ve performed a migration of Slack to MS Teams.One of the tasks was to perform the migration of multiple channels to one logical team.The migration process was completed successfully. However, after migration, we discovered that it is not possible to attach files to one channel in the team (later we found more than one such channel). The fix was to open the tab “Files” in Teams, then the user was allowed to upload (attach) files. During the troubleshooting, we found that while the migration process is in progress, and there’s a need to upload files (found in Slack), an associated SharePoint site is created. In our case, the SharePoint site with the same name (as the team name itself) was created early (probably during our migration tests/dry runs and wasn’t deleted properly) which led to the creation of a SharePoint site with a different naming (as two SharePoint sites with the same naming couldn’t exist) during the real migration. (examples: team name = prj-team existing (early created) ShP site = https://domain.sharepoint.com/sites/prj-team newly created ShP site (bound to an MS Teams team) = https://domain.sharepoint.com/sites/prj-team956 ) This implies a lot of inconvenience for the users and we’re looking the way to resolve/mitigate it.We cannot destroy all teams and channels and restart the migration. The question here – can a team in MS Teams be updated to be bound to another SharePoint site?Thanks in advance. Read More