Category: News
Lower precision in trainnet workflow
Hi,
Is there a way to adjust the precision when training a network using the "trainnet" workflow (2024a)? I’m interested in lowering precision to speed up training, in the same way I would use "torch.set_float32_matmul_precision" in pytorch.
Thanks,
EricHi,
Is there a way to adjust the precision when training a network using the "trainnet" workflow (2024a)? I’m interested in lowering precision to speed up training, in the same way I would use "torch.set_float32_matmul_precision" in pytorch.
Thanks,
Eric Hi,
Is there a way to adjust the precision when training a network using the "trainnet" workflow (2024a)? I’m interested in lowering precision to speed up training, in the same way I would use "torch.set_float32_matmul_precision" in pytorch.
Thanks,
Eric precision, trainnet MATLAB Answers — New Questions
Bookings Notification Reminders to Client error
Our Day Before and Hour Before email reminders to the client are being sent 30 minutes after the actual appointment. Has anyone encountered this or have any suggestions? TIA
Our Day Before and Hour Before email reminders to the client are being sent 30 minutes after the actual appointment. Has anyone encountered this or have any suggestions? TIA Read More
Microsoft PowerPoint
Hello,
I am having trouble with the “Record Audio.” feature in PowerPoint. It is recording, but the playback volume is extremely low. I would appreciate any suggestions!
Thank you.
Hello, I am having trouble with the “Record Audio.” feature in PowerPoint. It is recording, but the playback volume is extremely low. I would appreciate any suggestions! Thank you. Read More
Best cloud solution for Individual MATLAB license?
I’m currently running an Individual MATLAB license on Windows desktop. I’m running into an issue with storage for data used when running my m scripts. Currently my data totals over 1 TB and I’m wondering if I could/should be utilizing cloud storage rather than the desktop solution with external hard drive. The biggest appeal for me is portability and data backup/redundancy. Does anyone have any experience with using such large datasets on the cloud or recommendations on the best way forward?I’m currently running an Individual MATLAB license on Windows desktop. I’m running into an issue with storage for data used when running my m scripts. Currently my data totals over 1 TB and I’m wondering if I could/should be utilizing cloud storage rather than the desktop solution with external hard drive. The biggest appeal for me is portability and data backup/redundancy. Does anyone have any experience with using such large datasets on the cloud or recommendations on the best way forward? I’m currently running an Individual MATLAB license on Windows desktop. I’m running into an issue with storage for data used when running my m scripts. Currently my data totals over 1 TB and I’m wondering if I could/should be utilizing cloud storage rather than the desktop solution with external hard drive. The biggest appeal for me is portability and data backup/redundancy. Does anyone have any experience with using such large datasets on the cloud or recommendations on the best way forward? cloud, aws, data, storage, windows MATLAB Answers — New Questions
under is my worked to try use root syntax.
% Using the MATLAB function “roots” for find non-zero natural frequencies
% define symbolic variable w
syms w;
% Given parameters
m1 = 1.8; m2 = 6.3; m3 = 5.4; m4 = 22.5; m5 = 54;
c2 = 10; c3 = 0.5; c4 = 1.50; c5 = 1.1;
k2 = 100000; k3 = 50; k4 = 75; k5 = 10;
% Set up system matrices
% mass matrix
M = diag([m1, m2, m3, m4, m5]);
% damping matrix
C = [c2 -c2 0 0 0;
-c2 c2+c3 -c3 0 0;
0 -c3 c3+c4 -c4 0;
0 0 -c4 c4+c5 -c5;
0 0 0 -c5 c5];
% stiffness matrix
K = [k2 -k2 0 0 0;
-k2 k2+k3 -k3 0 0;
0 -k3 k3+k4 -k4 0;
0 0 -k4 k4+k5 -k5;
0 0 0 -k5 k5];
% Calculate frequency equation
Zw = w^2*M + 1i*w*C + K; % impedance matrix
freqEq = det(Zw); % take determinant to get frequency equation
pretty(simplify(freqEq)); % display simplified frequency equation
% Display the non-zero natural frequencies
disp(‘Non-zero natural frequencies (Hz):’);
disp(root(freqEq))% Using the MATLAB function “roots” for find non-zero natural frequencies
% define symbolic variable w
syms w;
% Given parameters
m1 = 1.8; m2 = 6.3; m3 = 5.4; m4 = 22.5; m5 = 54;
c2 = 10; c3 = 0.5; c4 = 1.50; c5 = 1.1;
k2 = 100000; k3 = 50; k4 = 75; k5 = 10;
% Set up system matrices
% mass matrix
M = diag([m1, m2, m3, m4, m5]);
% damping matrix
C = [c2 -c2 0 0 0;
-c2 c2+c3 -c3 0 0;
0 -c3 c3+c4 -c4 0;
0 0 -c4 c4+c5 -c5;
0 0 0 -c5 c5];
% stiffness matrix
K = [k2 -k2 0 0 0;
-k2 k2+k3 -k3 0 0;
0 -k3 k3+k4 -k4 0;
0 0 -k4 k4+k5 -k5;
0 0 0 -k5 k5];
% Calculate frequency equation
Zw = w^2*M + 1i*w*C + K; % impedance matrix
freqEq = det(Zw); % take determinant to get frequency equation
pretty(simplify(freqEq)); % display simplified frequency equation
% Display the non-zero natural frequencies
disp(‘Non-zero natural frequencies (Hz):’);
disp(root(freqEq)) % Using the MATLAB function “roots” for find non-zero natural frequencies
% define symbolic variable w
syms w;
% Given parameters
m1 = 1.8; m2 = 6.3; m3 = 5.4; m4 = 22.5; m5 = 54;
c2 = 10; c3 = 0.5; c4 = 1.50; c5 = 1.1;
k2 = 100000; k3 = 50; k4 = 75; k5 = 10;
% Set up system matrices
% mass matrix
M = diag([m1, m2, m3, m4, m5]);
% damping matrix
C = [c2 -c2 0 0 0;
-c2 c2+c3 -c3 0 0;
0 -c3 c3+c4 -c4 0;
0 0 -c4 c4+c5 -c5;
0 0 0 -c5 c5];
% stiffness matrix
K = [k2 -k2 0 0 0;
-k2 k2+k3 -k3 0 0;
0 -k3 k3+k4 -k4 0;
0 0 -k4 k4+k5 -k5;
0 0 0 -k5 k5];
% Calculate frequency equation
Zw = w^2*M + 1i*w*C + K; % impedance matrix
freqEq = det(Zw); % take determinant to get frequency equation
pretty(simplify(freqEq)); % display simplified frequency equation
% Display the non-zero natural frequencies
disp(‘Non-zero natural frequencies (Hz):’);
disp(root(freqEq)) matlab MATLAB Answers — New Questions
warning when run 5G link level simulator
Error using save Error closing file D:5G Vienna link levelresultsresults_14-May-2024_23_43_28.mat. The file may be corrupt. Error in main (line 260) save([‘./results/results_’, timeStamp]); MATLAB has experienced a low-level graphics error, and may not have drawn correctly. Read about what you can do to prevent this issue at Resolving Low-Level Graphics Issues then restart MATLAB. To share details of this issue with MathWorks technical support, please include this file with your service request.
when increase subcarrier we get error
Out of memory.
Error in Channel.FastFading/NewRealization (line 622)
ImpulseResponseTemp(obj.Implementation.IndexDelayTaps, 🙂 =
subsampledIR(:, indSubsamp(1:obj.Nr.SamplesTotal));
Error in Channel.FastFading (line 231)
obj.NewRealization(0);
Error in Parameters.SimulationParameters/initializeLinks (line 1794)
Links{linkX, linkY}.Channel = Channel.FastFading(
obj.modulation.samplingRate,…
Error in main (line 60)
Links = simParams.initializeLinks(Links, BS, UE); %#ok
More informationError using save Error closing file D:5G Vienna link levelresultsresults_14-May-2024_23_43_28.mat. The file may be corrupt. Error in main (line 260) save([‘./results/results_’, timeStamp]); MATLAB has experienced a low-level graphics error, and may not have drawn correctly. Read about what you can do to prevent this issue at Resolving Low-Level Graphics Issues then restart MATLAB. To share details of this issue with MathWorks technical support, please include this file with your service request.
when increase subcarrier we get error
Out of memory.
Error in Channel.FastFading/NewRealization (line 622)
ImpulseResponseTemp(obj.Implementation.IndexDelayTaps, 🙂 =
subsampledIR(:, indSubsamp(1:obj.Nr.SamplesTotal));
Error in Channel.FastFading (line 231)
obj.NewRealization(0);
Error in Parameters.SimulationParameters/initializeLinks (line 1794)
Links{linkX, linkY}.Channel = Channel.FastFading(
obj.modulation.samplingRate,…
Error in main (line 60)
Links = simParams.initializeLinks(Links, BS, UE); %#ok
More information Error using save Error closing file D:5G Vienna link levelresultsresults_14-May-2024_23_43_28.mat. The file may be corrupt. Error in main (line 260) save([‘./results/results_’, timeStamp]); MATLAB has experienced a low-level graphics error, and may not have drawn correctly. Read about what you can do to prevent this issue at Resolving Low-Level Graphics Issues then restart MATLAB. To share details of this issue with MathWorks technical support, please include this file with your service request.
when increase subcarrier we get error
Out of memory.
Error in Channel.FastFading/NewRealization (line 622)
ImpulseResponseTemp(obj.Implementation.IndexDelayTaps, 🙂 =
subsampledIR(:, indSubsamp(1:obj.Nr.SamplesTotal));
Error in Channel.FastFading (line 231)
obj.NewRealization(0);
Error in Parameters.SimulationParameters/initializeLinks (line 1794)
Links{linkX, linkY}.Channel = Channel.FastFading(
obj.modulation.samplingRate,…
Error in main (line 60)
Links = simParams.initializeLinks(Links, BS, UE); %#ok
More information 5g link level simulator, noma technology MATLAB Answers — New Questions
In Simscape Rankine Cycle example the Turbine does not rotate
I tried to see how the rankine example worked but could not get my head around.
I have seen that elements like motor convert electrical energy to torque and you can measure it using an Ideal Rotational Motion Sensor:
In the "Rankine Cycle" example you can see a turbine connected to a flow energy:
If you replace the Load by a "Rotational Motion Sensor" it will never change from 0, no matter how much flow passes into the turbine through the ports A and B:
So, my question is why? I saw in the "load" block there is a speed source forcing the turbine to rotate at nominal speed, and summing the linear torque to it but why?I tried to see how the rankine example worked but could not get my head around.
I have seen that elements like motor convert electrical energy to torque and you can measure it using an Ideal Rotational Motion Sensor:
In the "Rankine Cycle" example you can see a turbine connected to a flow energy:
If you replace the Load by a "Rotational Motion Sensor" it will never change from 0, no matter how much flow passes into the turbine through the ports A and B:
So, my question is why? I saw in the "load" block there is a speed source forcing the turbine to rotate at nominal speed, and summing the linear torque to it but why? I tried to see how the rankine example worked but could not get my head around.
I have seen that elements like motor convert electrical energy to torque and you can measure it using an Ideal Rotational Motion Sensor:
In the "Rankine Cycle" example you can see a turbine connected to a flow energy:
If you replace the Load by a "Rotational Motion Sensor" it will never change from 0, no matter how much flow passes into the turbine through the ports A and B:
So, my question is why? I saw in the "load" block there is a speed source forcing the turbine to rotate at nominal speed, and summing the linear torque to it but why? rankine-cycle, turbine, torque, speed, energy MATLAB Answers — New Questions
Is there matlab code to do the mean variance spanning test with short sales constrains?
I found only tests without restrictions, but are there test with restrictions regarding weights of portfolio eleents?I found only tests without restrictions, but are there test with restrictions regarding weights of portfolio eleents? I found only tests without restrictions, but are there test with restrictions regarding weights of portfolio eleents? statistical test, mean varince spanning, portfolio theory MATLAB Answers — New Questions
Speed up Some Code
Hi all. I’m trying to speed up the code below. It’s from the SMOTE function that was wrtitten for MATLAB and works really well. The only thing is that the loops are not fast. I’ve looked at Parfor but that wouldn’t work and I can’t see how I can vectorise it either. It could be I just have to suck it up and wait but just in case, the code is :-
% This is where the magic happens 😉
% X : Observational matrix (rows are observations, columns are variables)
% J : Synthesization vector. It has the same length as the number of
% observations (rows) in X. J determines how many times each
% observation is used as a base for synthesization.
% k : Number of nearest neighbors to consider when synthesizing.
function Xn = simpleSMOTE(X,J,k)
tic
HNSMdl = hnswSearcher(X); % To remove this, comment out this line and replace the HNSMdl below with X
[idx, ~] = knnsearch(HNSMdl,X,’k’,k+1); % Find nearest neighbors (add one to the number of neighbors to find, as observations are their own nearest neighbor)
toc
Xn = nan(sum(J),size(X,2)); % Pre-allocate memory for synthesized observations
% Iterate through observations to create to synthesize new observations
for ii=1:numel(J)
P = randperm(k,J(ii))+1; % Randomize nearest neighbor pick (never pick first nearest neighbor as this is the observation itself)
for jj=1:J(ii)
x = X(idx(ii,1),:); % Observation
xk = X(idx(ii,P(jj)),:); % Nearest neighbor
Xn(sum(J(1:ii-1))+jj,:) = (xk-x)*rand+x; % Synthesize observation
end
end
end
It’s from the ‘for ii’ bit that is slow and there are around 750000 items of 13 variables.
SteveHi all. I’m trying to speed up the code below. It’s from the SMOTE function that was wrtitten for MATLAB and works really well. The only thing is that the loops are not fast. I’ve looked at Parfor but that wouldn’t work and I can’t see how I can vectorise it either. It could be I just have to suck it up and wait but just in case, the code is :-
% This is where the magic happens 😉
% X : Observational matrix (rows are observations, columns are variables)
% J : Synthesization vector. It has the same length as the number of
% observations (rows) in X. J determines how many times each
% observation is used as a base for synthesization.
% k : Number of nearest neighbors to consider when synthesizing.
function Xn = simpleSMOTE(X,J,k)
tic
HNSMdl = hnswSearcher(X); % To remove this, comment out this line and replace the HNSMdl below with X
[idx, ~] = knnsearch(HNSMdl,X,’k’,k+1); % Find nearest neighbors (add one to the number of neighbors to find, as observations are their own nearest neighbor)
toc
Xn = nan(sum(J),size(X,2)); % Pre-allocate memory for synthesized observations
% Iterate through observations to create to synthesize new observations
for ii=1:numel(J)
P = randperm(k,J(ii))+1; % Randomize nearest neighbor pick (never pick first nearest neighbor as this is the observation itself)
for jj=1:J(ii)
x = X(idx(ii,1),:); % Observation
xk = X(idx(ii,P(jj)),:); % Nearest neighbor
Xn(sum(J(1:ii-1))+jj,:) = (xk-x)*rand+x; % Synthesize observation
end
end
end
It’s from the ‘for ii’ bit that is slow and there are around 750000 items of 13 variables.
Steve Hi all. I’m trying to speed up the code below. It’s from the SMOTE function that was wrtitten for MATLAB and works really well. The only thing is that the loops are not fast. I’ve looked at Parfor but that wouldn’t work and I can’t see how I can vectorise it either. It could be I just have to suck it up and wait but just in case, the code is :-
% This is where the magic happens 😉
% X : Observational matrix (rows are observations, columns are variables)
% J : Synthesization vector. It has the same length as the number of
% observations (rows) in X. J determines how many times each
% observation is used as a base for synthesization.
% k : Number of nearest neighbors to consider when synthesizing.
function Xn = simpleSMOTE(X,J,k)
tic
HNSMdl = hnswSearcher(X); % To remove this, comment out this line and replace the HNSMdl below with X
[idx, ~] = knnsearch(HNSMdl,X,’k’,k+1); % Find nearest neighbors (add one to the number of neighbors to find, as observations are their own nearest neighbor)
toc
Xn = nan(sum(J),size(X,2)); % Pre-allocate memory for synthesized observations
% Iterate through observations to create to synthesize new observations
for ii=1:numel(J)
P = randperm(k,J(ii))+1; % Randomize nearest neighbor pick (never pick first nearest neighbor as this is the observation itself)
for jj=1:J(ii)
x = X(idx(ii,1),:); % Observation
xk = X(idx(ii,P(jj)),:); % Nearest neighbor
Xn(sum(J(1:ii-1))+jj,:) = (xk-x)*rand+x; % Synthesize observation
end
end
end
It’s from the ‘for ii’ bit that is slow and there are around 750000 items of 13 variables.
Steve speed, code, loops MATLAB Answers — New Questions
Matlab and Routh criterion for evaluation of K for stability
I am traying to evaluation & solve this system stability for the equation s^3 + 3ks^2 + ( k+2 )s + 4 = 0
I strugling with the k constant .
but need help on how to insert the K as a constant for the ROUTH HURWITZ in matlab .
%%routh hurwitz criteria
clear
clc
%firstly it is required to get first two row of routh matrix
e=input(‘enter the coefficients of characteristic equation: ‘);
disp(‘————————————————————————-‘)
l=length(e);
m=mod(l,2);
if m==0
a=rand(1,(l/2));
b=rand(1,(l/2));
for i=1:(l/2)
a(i)=e((2*i)-1);
b(i)=e(2*i);
end
else
e1=[e 0];
a=rand(1,((l+1)/2));
b=[rand(1,((l-1)/2)),0];
for i=1:((l+1)/2)
a(i)=e1((2*i)-1);
b(i)=e1(2*i);
end
end
%%now we genrate the remaining rows of routh matrix
l1=length(a);
c=zeros(l,l1);
c(1,:)=a;
c(2,:)=b;
for m=3:l
for n=1:l1-1
c(m,n)=-(1/c(m-1,1))*det([c((m-2),1) c((m-2),(n+1));c((m-1),1) c((m-1),(n+1))]);
end
end
disp(‘the routh matrix:’)
disp(c)
%%now we check the stablity of system
if c(:,1)>0
disp(‘System is Stable’)
else
disp(‘System is Unstable’);
endI am traying to evaluation & solve this system stability for the equation s^3 + 3ks^2 + ( k+2 )s + 4 = 0
I strugling with the k constant .
but need help on how to insert the K as a constant for the ROUTH HURWITZ in matlab .
%%routh hurwitz criteria
clear
clc
%firstly it is required to get first two row of routh matrix
e=input(‘enter the coefficients of characteristic equation: ‘);
disp(‘————————————————————————-‘)
l=length(e);
m=mod(l,2);
if m==0
a=rand(1,(l/2));
b=rand(1,(l/2));
for i=1:(l/2)
a(i)=e((2*i)-1);
b(i)=e(2*i);
end
else
e1=[e 0];
a=rand(1,((l+1)/2));
b=[rand(1,((l-1)/2)),0];
for i=1:((l+1)/2)
a(i)=e1((2*i)-1);
b(i)=e1(2*i);
end
end
%%now we genrate the remaining rows of routh matrix
l1=length(a);
c=zeros(l,l1);
c(1,:)=a;
c(2,:)=b;
for m=3:l
for n=1:l1-1
c(m,n)=-(1/c(m-1,1))*det([c((m-2),1) c((m-2),(n+1));c((m-1),1) c((m-1),(n+1))]);
end
end
disp(‘the routh matrix:’)
disp(c)
%%now we check the stablity of system
if c(:,1)>0
disp(‘System is Stable’)
else
disp(‘System is Unstable’);
end I am traying to evaluation & solve this system stability for the equation s^3 + 3ks^2 + ( k+2 )s + 4 = 0
I strugling with the k constant .
but need help on how to insert the K as a constant for the ROUTH HURWITZ in matlab .
%%routh hurwitz criteria
clear
clc
%firstly it is required to get first two row of routh matrix
e=input(‘enter the coefficients of characteristic equation: ‘);
disp(‘————————————————————————-‘)
l=length(e);
m=mod(l,2);
if m==0
a=rand(1,(l/2));
b=rand(1,(l/2));
for i=1:(l/2)
a(i)=e((2*i)-1);
b(i)=e(2*i);
end
else
e1=[e 0];
a=rand(1,((l+1)/2));
b=[rand(1,((l-1)/2)),0];
for i=1:((l+1)/2)
a(i)=e1((2*i)-1);
b(i)=e1(2*i);
end
end
%%now we genrate the remaining rows of routh matrix
l1=length(a);
c=zeros(l,l1);
c(1,:)=a;
c(2,:)=b;
for m=3:l
for n=1:l1-1
c(m,n)=-(1/c(m-1,1))*det([c((m-2),1) c((m-2),(n+1));c((m-1),1) c((m-1),(n+1))]);
end
end
disp(‘the routh matrix:’)
disp(c)
%%now we check the stablity of system
if c(:,1)>0
disp(‘System is Stable’)
else
disp(‘System is Unstable’);
end guide, matlab MATLAB Answers — New Questions
Can use help me. Using the eliminant, determine the frequency equation of the system
% using the eliminant, determine the frequency equation of the system
syms w;
% Given parameters
m1 = 1.8; m2 = 6.3; m3 = 5.4; m4 = 22.5; m5 = 54;
c2 = 10000; c3 = 500; c4 = 1500; c5 = 1100;
k2 = 100000000; k3 = 50000; k4 = 75000; k5 = 10000;
% Mass, damping, and stiffness matrices
M = diag([m1, m2, m3, m4, m5]);
C = [c2 -c2 0 0 0;
-c2 c2+c3 -c3 0 0;
0 -c3 c3+c4 -c4 0;
0 0 -c4 c4+c5 -c5;
0 0 0 -c5 c5];
K = [k2 -k2 0 0 0;
-k2 k2+k3 -k3 0 0;
0 -k3 k3+k4 -k4 0;
0 0 -k4 k4+k5 -k5;
0 0 0 -k5 k5];% using the eliminant, determine the frequency equation of the system
syms w;
% Given parameters
m1 = 1.8; m2 = 6.3; m3 = 5.4; m4 = 22.5; m5 = 54;
c2 = 10000; c3 = 500; c4 = 1500; c5 = 1100;
k2 = 100000000; k3 = 50000; k4 = 75000; k5 = 10000;
% Mass, damping, and stiffness matrices
M = diag([m1, m2, m3, m4, m5]);
C = [c2 -c2 0 0 0;
-c2 c2+c3 -c3 0 0;
0 -c3 c3+c4 -c4 0;
0 0 -c4 c4+c5 -c5;
0 0 0 -c5 c5];
K = [k2 -k2 0 0 0;
-k2 k2+k3 -k3 0 0;
0 -k3 k3+k4 -k4 0;
0 0 -k4 k4+k5 -k5;
0 0 0 -k5 k5]; % using the eliminant, determine the frequency equation of the system
syms w;
% Given parameters
m1 = 1.8; m2 = 6.3; m3 = 5.4; m4 = 22.5; m5 = 54;
c2 = 10000; c3 = 500; c4 = 1500; c5 = 1100;
k2 = 100000000; k3 = 50000; k4 = 75000; k5 = 10000;
% Mass, damping, and stiffness matrices
M = diag([m1, m2, m3, m4, m5]);
C = [c2 -c2 0 0 0;
-c2 c2+c3 -c3 0 0;
0 -c3 c3+c4 -c4 0;
0 0 -c4 c4+c5 -c5;
0 0 0 -c5 c5];
K = [k2 -k2 0 0 0;
-k2 k2+k3 -k3 0 0;
0 -k3 k3+k4 -k4 0;
0 0 -k4 k4+k5 -k5;
0 0 0 -k5 k5]; matlab, vibration MATLAB Answers — New Questions
subst disks cause stalling for diskpart and diskmgmt.msc
run diskpart.exe
enter “list vol” to check listing time
Import registry file
reboot
run diskpart.exe
enter “list vol” – there is stalling
REGEDIT4
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerDOS Devices]
“Z:”=”\??\C:\Windows”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerFolderDescriptions{6603B7A0-ED77-4927-BB71-D25DE52BB9D7}]
“RelativePath”=”Z:\”
“Category”=dword:00000004
“Name”=”Z_”
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerBitBucketKnownFolder{6603B7A0-ED77-4927-BB71-D25DE52BB9D7}]
“MaxCapacity”=dword:0000c7eb
“NukeOnDelete”=dword:00000000
[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionExplorerFolderDescriptions{6603B7A0-ED77-4927-BB71-D25DE52BB9D7}]
“RelativePath”=”Z:\”
“Category”=dword:00000004
“Name”=”Z_”
[HKEY_CURRENT_USERSoftwareWow6432NodeMicrosoftWindowsCurrentVersionExplorerBitBucketKnownFolder{6603B7A0-ED77-4927-BB71-D25DE52BB9D7}]
“MaxCapacity”=dword:0000c7eb
“NukeOnDelete”=dword:00000000
This is for subst disks with a working trash bin.
run diskpart.exeenter “list vol” to check listing timeImport registry filerebootrun diskpart.exeenter “list vol” – there is stalling REGEDIT4
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerDOS Devices]
“Z:”=”\??\C:\Windows”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerFolderDescriptions{6603B7A0-ED77-4927-BB71-D25DE52BB9D7}]
“RelativePath”=”Z:\”
“Category”=dword:00000004
“Name”=”Z_”
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerBitBucketKnownFolder{6603B7A0-ED77-4927-BB71-D25DE52BB9D7}]
“MaxCapacity”=dword:0000c7eb
“NukeOnDelete”=dword:00000000
[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionExplorerFolderDescriptions{6603B7A0-ED77-4927-BB71-D25DE52BB9D7}]
“RelativePath”=”Z:\”
“Category”=dword:00000004
“Name”=”Z_”
[HKEY_CURRENT_USERSoftwareWow6432NodeMicrosoftWindowsCurrentVersionExplorerBitBucketKnownFolder{6603B7A0-ED77-4927-BB71-D25DE52BB9D7}]
“MaxCapacity”=dword:0000c7eb
“NukeOnDelete”=dword:00000000 This is for subst disks with a working trash bin. Read More
Guide: Building a Policy to restrict File sharing on a VPN connection using Purview DLP
Building a Policy to restrict File sharing on a VPN connection using Microsoft Purview DLP
Scenario: The organisation needs to block any files to be copied by the user from their corporate device to a network share if they are connected from their home network via VPN.
Desired outcome: By implementing this DLP policy, any attempt to copy files within the selected file types (or file extension) to the VPN network address (example: 192.168.0.0/16 subnet) will be blocked.
There are 2 key steps that is needed to accomplish this.
Step 1: Creating the DLP policy and Configuring the VPN setting in the DLP Settings
To block file sharing to a specific network subnet (e.g. 192.168.0.0/16) using Microsoft Purview Data Loss Prevention (DLP), you can create a DLP policy with the following configuration:
Configure DLP Policy.Define the sensitive information types or sensitivity labels you want to protect from being shared to the restricted subnet.Under the policy’s Locations, Select Devices (Endpoints).
In the Conditions section, create a blanket detection to include the most common file types by using File type is. Note: You may also add additional file type by adding extra file types by using the option for File extension is
In the Actions section, go to File activities for all apps (please note that you can put in exceptions if needed) and select Copy to a network share > Then edit the Network restriction to select VPN and Select Block
This will block access to file being copied over to the network share that you will put in to Step 2:
Step 2: Updating the VPN settings in the DLP configuration
Add a VPN
Open Microsoft Purview compliance portal > Data loss prevention > Overview > Data loss prevention settings > Endpoint settings > VPN settings.Select Add or edit VPN addresses.Provide either the Server address or Network address (example: 192.168.0.0/16) To get a more accurate reading of the VPN connection. Run Get-VpnConnection on the target device using Powershell to ppull this info.Select Save.Close the item.
Source: https://learn.microsoft.com/en-gb/purview/dlp-configure-endpoint-settings#vpn-settings
Building a Policy to restrict File sharing on a VPN connection using Microsoft Purview DLPScenario: The organisation needs to block any files to be copied by the user from their corporate device to a network share if they are connected from their home network via VPN. Desired outcome: By implementing this DLP policy, any attempt to copy files within the selected file types (or file extension) to the VPN network address (example: 192.168.0.0/16 subnet) will be blocked. There are 2 key steps that is needed to accomplish this.Step 1: Creating the DLP policy and Configuring the VPN setting in the DLP SettingsTo block file sharing to a specific network subnet (e.g. 192.168.0.0/16) using Microsoft Purview Data Loss Prevention (DLP), you can create a DLP policy with the following configuration: Configure DLP Policy.Define the sensitive information types or sensitivity labels you want to protect from being shared to the restricted subnet.Under the policy’s Locations, Select Devices (Endpoints).In the Conditions section, create a blanket detection to include the most common file types by using File type is. Note: You may also add additional file type by adding extra file types by using the option for File extension isIn the Actions section, go to File activities for all apps (please note that you can put in exceptions if needed) and select Copy to a network share > Then edit the Network restriction to select VPN and Select BlockThis will block access to file being copied over to the network share that you will put in to Step 2:Step 2: Updating the VPN settings in the DLP configurationAdd a VPNOpen Microsoft Purview compliance portal > Data loss prevention > Overview > Data loss prevention settings > Endpoint settings > VPN settings.Select Add or edit VPN addresses.Provide either the Server address or Network address (example: 192.168.0.0/16) To get a more accurate reading of the VPN connection. Run Get-VpnConnection on the target device using Powershell to ppull this info.Select Save.Close the item.Source: https://learn.microsoft.com/en-gb/purview/dlp-configure-endpoint-settings#vpn-settings Read More
Google Earth Trajectory Path
I want to show the path drawn by our rocket on google earth. However, I need to make it inclined as in the link below. How can I do this?
Most probably I need to use sin and cos functions, but I don’t know what to write according to.
http://www.spacemig.com/path-in/I want to show the path drawn by our rocket on google earth. However, I need to make it inclined as in the link below. How can I do this?
Most probably I need to use sin and cos functions, but I don’t know what to write according to.
http://www.spacemig.com/path-in/ I want to show the path drawn by our rocket on google earth. However, I need to make it inclined as in the link below. How can I do this?
Most probably I need to use sin and cos functions, but I don’t know what to write according to.
http://www.spacemig.com/path-in/ google, matlab gui, kml, kmz, earth, matlab code, matlab function, matlab, trajectory, aerospace, rocket, path MATLAB Answers — New Questions
Azure Windows 2016 server IIS 10 ASP connection to MS Access 2016 w3wp.exe crashes
Summary:
My ASP pages are having w3wp.exe errors when using ADODB.Connection to my MS Access 2016 database. I tried two different approaches and observe different behaviors.
Approach #1 – Use OLEDB connection string
When I use OLEDB connection string (e.g. “Provider=Microsoft.ACE.OLEDB.16.0; Data Source=C:inetpubwwwroot6peasdb6Peas.accdb”), I am able open ADODB.Connection to the database without any error. And I have no problem trying to open ADODB.Recordset with small and simple queries. However, I run into w3wp.exe errors when trying to open ADODB.Recordset of some more complex and larger queries. The w3wp.exe errors will cause the page to crash most of the time and result in a “ERR_CONNECTION_RESET” error.
Approach #2 – Use DSN connection string
When I use DSN connection string (e.g. “DSN=6peas;UID=;PWD=”), I will run into w3wp.exe error every time *BUT* the error will not be severe enough to cause the page to crash. I am only seeing the w3wp.exe error in the Event Viewer. And with the DSN connection string, I am able to open ADODB.Recordset of the same more complex and larger queries without any additional w3wp.exe error.
At this moment, Approach #2 seem to be a better choice as there are no page crashes. However, its drawback is that regards of the size/complexity of the queries, I am getting a w3wp.exe error. And due to the Rapid-Fail Protection setting in IIS Application Pools, the web site application pool will stop if too many w3wp.exe errors occur within the set time period.
So I am hoping to get some help in resolving/stopping the w3wp.exe errors when accessing my MS Access database. Hope some one may have run into similar issues and can provide a solution.
Thank you very much!!
Tech Stack Summary of my web site:
Azure Windows 2016 server
IIS 10.0.14393.0
MS Access 2016
ASP classic
Summary:My ASP pages are having w3wp.exe errors when using ADODB.Connection to my MS Access 2016 database. I tried two different approaches and observe different behaviors. Approach #1 – Use OLEDB connection stringWhen I use OLEDB connection string (e.g. “Provider=Microsoft.ACE.OLEDB.16.0; Data Source=C:inetpubwwwroot6peasdb6Peas.accdb”), I am able open ADODB.Connection to the database without any error. And I have no problem trying to open ADODB.Recordset with small and simple queries. However, I run into w3wp.exe errors when trying to open ADODB.Recordset of some more complex and larger queries. The w3wp.exe errors will cause the page to crash most of the time and result in a “ERR_CONNECTION_RESET” error. Approach #2 – Use DSN connection string When I use DSN connection string (e.g. “DSN=6peas;UID=;PWD=”), I will run into w3wp.exe error every time *BUT* the error will not be severe enough to cause the page to crash. I am only seeing the w3wp.exe error in the Event Viewer. And with the DSN connection string, I am able to open ADODB.Recordset of the same more complex and larger queries without any additional w3wp.exe error. At this moment, Approach #2 seem to be a better choice as there are no page crashes. However, its drawback is that regards of the size/complexity of the queries, I am getting a w3wp.exe error. And due to the Rapid-Fail Protection setting in IIS Application Pools, the web site application pool will stop if too many w3wp.exe errors occur within the set time period. So I am hoping to get some help in resolving/stopping the w3wp.exe errors when accessing my MS Access database. Hope some one may have run into similar issues and can provide a solution. Thank you very much!! Tech Stack Summary of my web site:Azure Windows 2016 serverIIS 10.0.14393.0MS Access 2016ASP classic Read More
Support of excel files in Azure language studio
Hello
Today, May 2024, in Azure language studio, I can do a Q and A based on a text file I upload.
When can I expect excel file support ?
I know I can ask natural language question using M365 copilot but I am trying to use azure resources for this.
Hello Today, May 2024, in Azure language studio, I can do a Q and A based on a text file I upload.When can I expect excel file support ? I know I can ask natural language question using M365 copilot but I am trying to use azure resources for this. Read More
Write a MATLAB function named areaIntegration that takes multiple input arguments representing different shapes and their coordinates. The function should integrate the areas
Write a MATLAB function named areaIntegration that takes multiple input arguments
representing different shapes and their coordinates. The function should integrate the areas made up
of these shapes using Boolean algebra and return the total integrated area.
The function signature should be:
function totalArea = areaIntegration(shape1, shape2,…)
Where shape1, shape2, etc. are arrays representing different shapes, their scale, operation, and
location. Each cell array should contain 5 elements such that:
• 1
st Element is the shape identifier where “1” represent a square and “0” present a circle.
• 2
nd Element is the scale of the shape.
• 3
rd Element is the type of operation where ‘0’ is Union, ‘1’ is Subtract, and ‘2’ is
Intersection with the shape of the previous argument.
• 4
th and 5th is the location of the shape in Cartesian coordinate (i.e. x and y).
Together they form an array like this:
[shape identifier, scale, operation type, x-coordinate, y-coordinate].
For example:
1. If the 1st argument is an array [1, 1, 2, 0, 0], it means it is a square with a 1 unit dimension
located at (0, 0), intersecting with the existing 2D space.
2. The 2nd argument, an array with the value [0, 2, 0, -1, 1], represents a circle with a 2 unit
radius located at (-1, 1) to union with the result left by the 1st argument.Write a MATLAB function named areaIntegration that takes multiple input arguments
representing different shapes and their coordinates. The function should integrate the areas made up
of these shapes using Boolean algebra and return the total integrated area.
The function signature should be:
function totalArea = areaIntegration(shape1, shape2,…)
Where shape1, shape2, etc. are arrays representing different shapes, their scale, operation, and
location. Each cell array should contain 5 elements such that:
• 1
st Element is the shape identifier where “1” represent a square and “0” present a circle.
• 2
nd Element is the scale of the shape.
• 3
rd Element is the type of operation where ‘0’ is Union, ‘1’ is Subtract, and ‘2’ is
Intersection with the shape of the previous argument.
• 4
th and 5th is the location of the shape in Cartesian coordinate (i.e. x and y).
Together they form an array like this:
[shape identifier, scale, operation type, x-coordinate, y-coordinate].
For example:
1. If the 1st argument is an array [1, 1, 2, 0, 0], it means it is a square with a 1 unit dimension
located at (0, 0), intersecting with the existing 2D space.
2. The 2nd argument, an array with the value [0, 2, 0, -1, 1], represents a circle with a 2 unit
radius located at (-1, 1) to union with the result left by the 1st argument. Write a MATLAB function named areaIntegration that takes multiple input arguments
representing different shapes and their coordinates. The function should integrate the areas made up
of these shapes using Boolean algebra and return the total integrated area.
The function signature should be:
function totalArea = areaIntegration(shape1, shape2,…)
Where shape1, shape2, etc. are arrays representing different shapes, their scale, operation, and
location. Each cell array should contain 5 elements such that:
• 1
st Element is the shape identifier where “1” represent a square and “0” present a circle.
• 2
nd Element is the scale of the shape.
• 3
rd Element is the type of operation where ‘0’ is Union, ‘1’ is Subtract, and ‘2’ is
Intersection with the shape of the previous argument.
• 4
th and 5th is the location of the shape in Cartesian coordinate (i.e. x and y).
Together they form an array like this:
[shape identifier, scale, operation type, x-coordinate, y-coordinate].
For example:
1. If the 1st argument is an array [1, 1, 2, 0, 0], it means it is a square with a 1 unit dimension
located at (0, 0), intersecting with the existing 2D space.
2. The 2nd argument, an array with the value [0, 2, 0, -1, 1], represents a circle with a 2 unit
radius located at (-1, 1) to union with the result left by the 1st argument. matlab MATLAB Answers — New Questions
How can I get the energy of a wave?
I used signal analyzer to analyze a wave of the sound.
Now I would like to calculate the energy of the sound.
My idea is to firstly squared the amplitude and then integrated the whole wave.
I have squared the amplitude and got the diagram of squared amplitude v.s. time.
However, I don’t know how to integrate this wave without having a wavefunction.
How could I do? Thank you.I used signal analyzer to analyze a wave of the sound.
Now I would like to calculate the energy of the sound.
My idea is to firstly squared the amplitude and then integrated the whole wave.
I have squared the amplitude and got the diagram of squared amplitude v.s. time.
However, I don’t know how to integrate this wave without having a wavefunction.
How could I do? Thank you. I used signal analyzer to analyze a wave of the sound.
Now I would like to calculate the energy of the sound.
My idea is to firstly squared the amplitude and then integrated the whole wave.
I have squared the amplitude and got the diagram of squared amplitude v.s. time.
However, I don’t know how to integrate this wave without having a wavefunction.
How could I do? Thank you. signal, integration MATLAB Answers — New Questions
Other things to improve (to add to the survey)
If you open an mmc console, like lusrmgr.msc gpedit.msc gpmc.msc dsa.msc etc, every administrator, since the year 2000, moves the divider between the tree pane and the list pane to the right. If you look at every linkedin video you can find, every administrator does that move. Every time. Between three and six seconds wasted. For the last ~24 years. And the divider is too thin to grab on slow remote sessions, costing more time. Updating that default in mmc.exe, to make the tree pane at least double the width and that divider two pixels bigger, would be great. My suggestion would be 250% the current width.
For Edge on Windows Server, it should skip the enforced “do you want to use your data?” at the start. We administrators log on to many MANY servers, often after weeks or month of not logging on, and about every time that wizard comes up and costs us about 20+ seconds. The default start page should be an empty page for data protection reasons and not Bing, let alone that many servers are not allowed to go on the internet anyway. (The same applies to clients as well, every time wasting time with that Edge questions, and no way around, even if we only log in once and never again for the whole life time of that client).
All cloud features (OneDrive, including the notification to backup to OneDrive, Azure/Entra tool etc) should be not installed, but available as feature/role/capability without needing internet to install those.
If you open an mmc console, like lusrmgr.msc gpedit.msc gpmc.msc dsa.msc etc, every administrator, since the year 2000, moves the divider between the tree pane and the list pane to the right. If you look at every linkedin video you can find, every administrator does that move. Every time. Between three and six seconds wasted. For the last ~24 years. And the divider is too thin to grab on slow remote sessions, costing more time. Updating that default in mmc.exe, to make the tree pane at least double the width and that divider two pixels bigger, would be great. My suggestion would be 250% the current width.For Edge on Windows Server, it should skip the enforced “do you want to use your data?” at the start. We administrators log on to many MANY servers, often after weeks or month of not logging on, and about every time that wizard comes up and costs us about 20+ seconds. The default start page should be an empty page for data protection reasons and not Bing, let alone that many servers are not allowed to go on the internet anyway. (The same applies to clients as well, every time wasting time with that Edge questions, and no way around, even if we only log in once and never again for the whole life time of that client).All cloud features (OneDrive, including the notification to backup to OneDrive, Azure/Entra tool etc) should be not installed, but available as feature/role/capability without needing internet to install those. Read More
Exchange Server, Service Pack and Rollup for current Outlook for MacOS
Having an issue with integration with Apple Mail. It’s almost certainly an Apple issue and we are pursuing a ticket with Apple. The engineers have asked for the Exchange Server, Service Pack and Rollup numbers that apply to the version of Outlook I’m currently using (as part of my 365 account and updated). Help documents don’t provide information how to get this data.
Having an issue with integration with Apple Mail. It’s almost certainly an Apple issue and we are pursuing a ticket with Apple. The engineers have asked for the Exchange Server, Service Pack and Rollup numbers that apply to the version of Outlook I’m currently using (as part of my 365 account and updated). Help documents don’t provide information how to get this data. Read More