Category: News
Password Hash Sync enable – any immediate issues when enabling
Hey all,
AD on-premise, using Azure AD Connect to sync objects.
Will enabling PHS have any immediate effect on our systems functioning? We currently have the User Sign-in method as Federated with AD FS. Will look at eventually changing to PHS but not yet.
Just want to make sure that simply ticking the PHS option in Optional Features won’t affect anything.
cheers
j
Hey all, AD on-premise, using Azure AD Connect to sync objects. Will enabling PHS have any immediate effect on our systems functioning? We currently have the User Sign-in method as Federated with AD FS. Will look at eventually changing to PHS but not yet. Just want to make sure that simply ticking the PHS option in Optional Features won’t affect anything. cheers j Read More
How can I create windows 11 bootable usb on Mac?
I recently bought a Mac and need to create a Windows 11 bootable USB drive on Mac. I tried using BootCamp but it kept saying there was not enough space, which was giving me a headache. I searched a lot online but still couldn’t figure out how to do it. Can anyone explain in detail how to make a bootable USB drive with Windows 11 on a Mac? It would be best if you could recommend some useful software and specific steps. Thank you very much for your help!
I recently bought a Mac and need to create a Windows 11 bootable USB drive on Mac. I tried using BootCamp but it kept saying there was not enough space, which was giving me a headache. I searched a lot online but still couldn’t figure out how to do it. Can anyone explain in detail how to make a bootable USB drive with Windows 11 on a Mac? It would be best if you could recommend some useful software and specific steps. Thank you very much for your help! Read More
How to re arrange data in excel?
Hi, Currently i have my parameters all in the same column. But i need to arrange them in rows and column. For example:
I want to have the Name and Count as column, that means i only want to 2 columns (Name and Count) and all the values under it. Please advice on how i can do this.
Hi, Currently i have my parameters all in the same column. But i need to arrange them in rows and column. For example:I want to have the Name and Count as column, that means i only want to 2 columns (Name and Count) and all the values under it. Please advice on how i can do this. Read More
Combining FILTER, MID, and FIND functions
We use Excel to manage logs from many agricultural trials. There is a central ‘live’ table where live data for all trials gets sent to, but ultimately only the relevant data needs to be sent to each individual trial excel file in a table. Each Trial has a unique code, and I’m trying to use the filter function to populate a table on each individual trial file with data from the live central data table, using the unique code as an identifier.
Here is a portion of the table:
And here is what’s currently working. I’m using the RIGHT function to include just the right 11 characters in the “Trial” column in the FILTER ‘include’ function, which is the trial code, to pull the relevant data across:
=FILTER(OnlineSprayBookAllData[[Date]:[Photo or Video]],(RIGHT(OnlineSprayBookAllData[Trial],11))=Table5[@SITE1],”Please check GOA code is entered in SITE_DATA”)
BUT what I’d really like to do is combine the FILTER, MID, and FIND functions to be able to pull the relevant data across even if there are multiple trial codes within the trial column in the live data table. This would make the data entry process much more efficient and we could capture data for multiple trial sites at a time. Like this:
=FILTER(OnlineSprayBookAllData[[Date]:[Photo or Video]],(MID(OnlineSprayBookAllData[Trial],(FIND(Table5[@SITE1],OnlineSprayBookAllData[Trial],1)),11))=Table5[@SITE1],”Please check GOA code is entered in SITE_DATA”)
As you can see, It does not work. It does work if you select just a single cell in the FIND ‘within_text’ portion of the function, but not if you select the whole table column. I’ve had the same lack of success using the INDEX SMALL functions. Is there anyway I can make this work??
Warmly,
Jos.
We use Excel to manage logs from many agricultural trials. There is a central ‘live’ table where live data for all trials gets sent to, but ultimately only the relevant data needs to be sent to each individual trial excel file in a table. Each Trial has a unique code, and I’m trying to use the filter function to populate a table on each individual trial file with data from the live central data table, using the unique code as an identifier. Here is a portion of the table: And here is what’s currently working. I’m using the RIGHT function to include just the right 11 characters in the “Trial” column in the FILTER ‘include’ function, which is the trial code, to pull the relevant data across:=FILTER(OnlineSprayBookAllData[[Date]:[Photo or Video]],(RIGHT(OnlineSprayBookAllData[Trial],11))=Table5[@SITE1],”Please check GOA code is entered in SITE_DATA”) BUT what I’d really like to do is combine the FILTER, MID, and FIND functions to be able to pull the relevant data across even if there are multiple trial codes within the trial column in the live data table. This would make the data entry process much more efficient and we could capture data for multiple trial sites at a time. Like this: =FILTER(OnlineSprayBookAllData[[Date]:[Photo or Video]],(MID(OnlineSprayBookAllData[Trial],(FIND(Table5[@SITE1],OnlineSprayBookAllData[Trial],1)),11))=Table5[@SITE1],”Please check GOA code is entered in SITE_DATA”) As you can see, It does not work. It does work if you select just a single cell in the FIND ‘within_text’ portion of the function, but not if you select the whole table column. I’ve had the same lack of success using the INDEX SMALL functions. Is there anyway I can make this work?? Warmly, Jos. Read More
How to enable participant agreement for recording and transcription in Teams
Microsoft Teams supports an Explicit Recording Consent meeting policy. When the policy is applied, the Teams meeting window will request explicit consent of all participants to be recorded. Before a user gives consent, the user’s audio, video, and screenshare/consent-share won’t be captured in the meeting recording. Explicit Recording Consent is OFF by default and is an IT admin policy-controlled feature. Admins can choose to enable the feature either for the entire tenant or for specific individuals based on their business needs. When the policy is applied, Teams meetings set up by these individuals will request explicit consent from all participants to be recorded. #MicrosoftTeams #Teams #NewFeatures #Microsoft365 #Productivity
Microsoft Teams supports an Explicit Recording Consent meeting policy. When the policy is applied, the Teams meeting window will request explicit consent of all participants to be recorded. Before a user gives consent, the user’s audio, video, and screenshare/consent-share won’t be captured in the meeting recording. Explicit Recording Consent is OFF by default and is an IT admin policy-controlled feature. Admins can choose to enable the feature either for the entire tenant or for specific individuals based on their business needs. When the policy is applied, Teams meetings set up by these individuals will request explicit consent from all participants to be recorded. #MicrosoftTeams #Teams #NewFeatures #Microsoft365 #Productivity Read More
MIcrosoft Intune Sync Issue
What could be causing some devices connected to Microsoft Intune to not sync automatically with policies, requiring manual sync by end users? Also, what is the typical time interval for policy sync to occur in Intune? What is the time taken by the device to get synced with the Intune?
What could be causing some devices connected to Microsoft Intune to not sync automatically with policies, requiring manual sync by end users? Also, what is the typical time interval for policy sync to occur in Intune? What is the time taken by the device to get synced with the Intune? Read More
{1-855-526-5749} What is the Error support number in Q.B after update?
I’ve been experiencing Quick-Books Error and haven’t been able to resolve it with the usual troubleshooting steps. What is the Quick-Books Error support number I can call for assistance? Has anyone else faced this issue and found a solution? Any help from the community would be appreciated!
I’ve been experiencing Quick-Books Error and haven’t been able to resolve it with the usual troubleshooting steps. What is the Quick-Books Error support number I can call for assistance? Has anyone else faced this issue and found a solution? Any help from the community would be appreciated! Read More
Automatic update of Universal Print to v2 – not working as described
Hi everyone,
i got the information that we need to update to v2. So i installed Net Framework 4.8 on our “Printer Server” which is a Win2019 Server.
In the documentation it says that it will update the next night but nothing it happening. It worked in May for the last update though.
At the eventlog (informational) it states:
Updates for Connector feature ‘all features’ are blocked at this hour.
So just keep waiting or do i have to take any action?
BR
Stephan
Hi everyone, i got the information that we need to update to v2. So i installed Net Framework 4.8 on our “Printer Server” which is a Win2019 Server.In the documentation it says that it will update the next night but nothing it happening. It worked in May for the last update though. At the eventlog (informational) it states:Updates for Connector feature ‘all features’ are blocked at this hour. So just keep waiting or do i have to take any action? BRStephan Read More
{1-855-526-5749} What is the Q.B pay-roll support number after update?
I am facing issues with my Quick-Books pay-roll updates, and I keep getting error messages. I tried troubleshooting steps but to no avail. Can anyone guide me on what to do next?
I am facing issues with my Quick-Books pay-roll updates, and I keep getting error messages. I tried troubleshooting steps but to no avail. Can anyone guide me on what to do next? Read More
Can I send image from Matlab to iPhone?
Hi,I’m developing iOS app. then,I need the results from Matlab and show it on application. Are there any solutions of Matlab for sending the image to iPhone. Could someone help me an example or recommendations ? I would be really appreciated. Thank you so much:)Hi,I’m developing iOS app. then,I need the results from Matlab and show it on application. Are there any solutions of Matlab for sending the image to iPhone. Could someone help me an example or recommendations ? I would be really appreciated. Thank you so much:) Hi,I’m developing iOS app. then,I need the results from Matlab and show it on application. Are there any solutions of Matlab for sending the image to iPhone. Could someone help me an example or recommendations ? I would be really appreciated. Thank you so much:) communication, iphone MATLAB Answers — New Questions
How to define a slicing like x(i).property in a custom class?
One minor but useful thing about image feature classes in MATLAB is that they have varieties of ways to slice the feature points and get a subset. For example, let’s say we extract SIFT features from an image:
I = imread(‘cameraman.tif’);
points = detectSIFTFeatures(I);
fprintf(‘Number of detected points: %dn’, points.Count);
We have the following ways to slice them, which give us the same sets of results:
% Subset of indices
subs = 1:10;
% Method 1
a = points(subs);
aa = a.Location;
% Method 2
b = points.Location;
bb = b(subs,:);
% Method 3
c = points.Location(subs,:);
% Method 4
d = points(subs).Location;
I’m wondering how to define a custom class to achieve all these slicing methods. I tried to use subsref function to define a custom class like this:
% File name: MyCustomPoints.m
classdef MyCustomPoints
properties
Scale % (n x 1)
Location % (n x 2)
end
methods (Access=’public’)
% Constructor
function this = MyCustomPoints(scale, location)
this.Scale = scale;
this.Location = location;
end
% Slicing
function varargout = subsref(this, s)
switch s(1).type
case ‘()’
subs = s(1).subs{1};
varargout{1} = MyCustomPoints(this.Scale(subs,:), …
this.Location(subs,:));
case ‘.’
% Handle property access
if isscalar(s)
varargout{1} = this.(s(1).subs);
else
[varargout{1:nargout}] = builtin(‘subsref’, this, s);
end
end
end
end
end
Below is an example usage of this class:
% Example input
Scale = rand(100,1);
Location = rand(100,2);
myPoints = MyCustomPoints(Scale, Location);
subs = 1:3; % subset indices
% Method 1
a = myPoints(subs);
aa = a.Location; % –> Successful.
% Method 2
b = myPoints.Location;
bb = b(subs,:); % –> Successful.
% Method 3
c = myPoints.Location(subs,:); % –> Successful.
% Method 4
d = myPoints(subs).Location; % –> Failed.
Only the last slicing method gives me an error message:
Output argument "varargout{2}" (and possibly others) not assigned a value
in the execution with "MyCustomPoints/subsref" function.
Could you please advise how to modify my class to enable all the slicing methods above?One minor but useful thing about image feature classes in MATLAB is that they have varieties of ways to slice the feature points and get a subset. For example, let’s say we extract SIFT features from an image:
I = imread(‘cameraman.tif’);
points = detectSIFTFeatures(I);
fprintf(‘Number of detected points: %dn’, points.Count);
We have the following ways to slice them, which give us the same sets of results:
% Subset of indices
subs = 1:10;
% Method 1
a = points(subs);
aa = a.Location;
% Method 2
b = points.Location;
bb = b(subs,:);
% Method 3
c = points.Location(subs,:);
% Method 4
d = points(subs).Location;
I’m wondering how to define a custom class to achieve all these slicing methods. I tried to use subsref function to define a custom class like this:
% File name: MyCustomPoints.m
classdef MyCustomPoints
properties
Scale % (n x 1)
Location % (n x 2)
end
methods (Access=’public’)
% Constructor
function this = MyCustomPoints(scale, location)
this.Scale = scale;
this.Location = location;
end
% Slicing
function varargout = subsref(this, s)
switch s(1).type
case ‘()’
subs = s(1).subs{1};
varargout{1} = MyCustomPoints(this.Scale(subs,:), …
this.Location(subs,:));
case ‘.’
% Handle property access
if isscalar(s)
varargout{1} = this.(s(1).subs);
else
[varargout{1:nargout}] = builtin(‘subsref’, this, s);
end
end
end
end
end
Below is an example usage of this class:
% Example input
Scale = rand(100,1);
Location = rand(100,2);
myPoints = MyCustomPoints(Scale, Location);
subs = 1:3; % subset indices
% Method 1
a = myPoints(subs);
aa = a.Location; % –> Successful.
% Method 2
b = myPoints.Location;
bb = b(subs,:); % –> Successful.
% Method 3
c = myPoints.Location(subs,:); % –> Successful.
% Method 4
d = myPoints(subs).Location; % –> Failed.
Only the last slicing method gives me an error message:
Output argument "varargout{2}" (and possibly others) not assigned a value
in the execution with "MyCustomPoints/subsref" function.
Could you please advise how to modify my class to enable all the slicing methods above? One minor but useful thing about image feature classes in MATLAB is that they have varieties of ways to slice the feature points and get a subset. For example, let’s say we extract SIFT features from an image:
I = imread(‘cameraman.tif’);
points = detectSIFTFeatures(I);
fprintf(‘Number of detected points: %dn’, points.Count);
We have the following ways to slice them, which give us the same sets of results:
% Subset of indices
subs = 1:10;
% Method 1
a = points(subs);
aa = a.Location;
% Method 2
b = points.Location;
bb = b(subs,:);
% Method 3
c = points.Location(subs,:);
% Method 4
d = points(subs).Location;
I’m wondering how to define a custom class to achieve all these slicing methods. I tried to use subsref function to define a custom class like this:
% File name: MyCustomPoints.m
classdef MyCustomPoints
properties
Scale % (n x 1)
Location % (n x 2)
end
methods (Access=’public’)
% Constructor
function this = MyCustomPoints(scale, location)
this.Scale = scale;
this.Location = location;
end
% Slicing
function varargout = subsref(this, s)
switch s(1).type
case ‘()’
subs = s(1).subs{1};
varargout{1} = MyCustomPoints(this.Scale(subs,:), …
this.Location(subs,:));
case ‘.’
% Handle property access
if isscalar(s)
varargout{1} = this.(s(1).subs);
else
[varargout{1:nargout}] = builtin(‘subsref’, this, s);
end
end
end
end
end
Below is an example usage of this class:
% Example input
Scale = rand(100,1);
Location = rand(100,2);
myPoints = MyCustomPoints(Scale, Location);
subs = 1:3; % subset indices
% Method 1
a = myPoints(subs);
aa = a.Location; % –> Successful.
% Method 2
b = myPoints.Location;
bb = b(subs,:); % –> Successful.
% Method 3
c = myPoints.Location(subs,:); % –> Successful.
% Method 4
d = myPoints(subs).Location; % –> Failed.
Only the last slicing method gives me an error message:
Output argument "varargout{2}" (and possibly others) not assigned a value
in the execution with "MyCustomPoints/subsref" function.
Could you please advise how to modify my class to enable all the slicing methods above? class, slicing, structures MATLAB Answers — New Questions
Name a dataset that will be used in Simulink
How do I name a dataset. My dataset is available in Simulink; however, it is identified as unnamed. I want to use multiple datasets so I need to be able to identify each of them separately.
clc
% Parameters
f0 = 60; % Fundamental frequency in Hz
sampling_rate = 120000; % Sampling rate in Hz
stopTime = 0.1; % Duration of the signal in seconds
t = 0:1/sampling_rate:stopTime; % Time vector
% Harmonic amplitudes (example values)
IA = [771.32, 0.24,1.36, 0.96, 6.64, 0.16, 2.36, 0, 0.48,…
0.16, 1.84, 0.08, 0.56, 0.08, 0.32, 0.08, 0.24,…
0.08, 0.08, 0.08, 0.08, 0, 0.48, 0, 0.16, 0.08, 0.08, 0, 0.08, 0, 0, 0, 0,…
0.08, 0.24, 0.16, 0.32, 0.08, 0.08, 0.08, 0.32,…
0.08, 0.24, 0.16, 0.24, 0.08, 0.8, 0.16, 0.48,…
0.16, 0.16, 0.08, 0.72, 0.24, 0.72, 0.16, 0.24,…
0.08, 0.16, 0.08, 0.56, 0.08, 0.32]’; % Amplitudes for the 1st, 2nd, and 3rd harmonics
IB = [773.44, 0.4, 0.72, 0.88, 6.16, 0.4, 2.84, 0.08, 0.4, 0.08,…
1.76, 0.08, 0.96, 0.08, 0.16, 0, 0.4, 0.08, …
0.24, 0.08, 0, 0, 0.4, 0, 0.24, 0,…
0.08, 0, 0.08, 0, 0.08, 0, 0.16, 0.08,…
0.16, 0.08, 0.32, 0.08, 0.08, 0, 0.24, 0.08,…
0.4, 0.08, 0.08, 0.08, 0.8, 0.08, 0.72, 0.16,…
0.08, 0.32, 0.48, 0, 0.08, 0.08, 0.24, 0.32,…
0.24, 0.24, 0.72, 0.24, 0.08];
IC = [775.76, 0.24, 0.56, 0.72, 6.48, 0.24, 2.44, 0.08, 0.08, 0.08, …
2.12, 0, 0.72, 0.08, 0.16, 0.08,…
0.32, 0, 0.08, 0, 0, 0, 0.56, 0, 0.08, 0, 0.08, 0, …
0, 0, 0.08, 0, 0, 0, 0.24, 0, 0.24, 0, 0, 0.08, 0.24, 0, 0.32, 0,…
0.08, 0.08, 0.8, 0.08, 0.56, 0.08, 0.32, 0.08,…
0.64, 0.32, 0.56, 0.08, 0.24, 0.32, 0.24, 0.32, 0.72, 0.16, 0.24];
%% Generate the current
currentIA = zeros(size(t));
currentIB = zeros(size(t));
currentIC = zeros(size(t));
for n = 1:length(IA)
amplitudeIA = IA(n);
currentIA = currentIA + amplitudeIA * cos(2 * pi * n * f0 * t);
amplitudeIB = IB(n);
currentIB = currentIB + amplitudeIB * cos(2 * pi * n * f0 * t + 2*pi/3);
amplitudeIC = IC(n);
currentIC = currentIC + amplitudeIC * cos(2 * pi * n * f0 * t – 2*pi/3);
end
currents = timeseries([currentIA; currentIB; currentIC]’, t);
dataset = Simulink.SimulationData.Dataset(currents); %How do I give the dataset a name?
save currentsWith63Harmonics.mat dataset
%% Plot the signal
figure(1);
plot(t, currentIA);
hold on
plot(t, currentIB);
plot(t, currentIC);
title(‘Three-Phase currents with 63 harmonics’);
xlabel(‘Time (s)’);
ylabel(‘A’);
grid on;
figure(2);
ee_calculateThdPercent(1:1:63,IA’)
bar(1:1:63,IA’)
clear IA IB IC f0 duration amplitudeIA amplitudeIB amplitudeIC
clear n t signalHow do I name a dataset. My dataset is available in Simulink; however, it is identified as unnamed. I want to use multiple datasets so I need to be able to identify each of them separately.
clc
% Parameters
f0 = 60; % Fundamental frequency in Hz
sampling_rate = 120000; % Sampling rate in Hz
stopTime = 0.1; % Duration of the signal in seconds
t = 0:1/sampling_rate:stopTime; % Time vector
% Harmonic amplitudes (example values)
IA = [771.32, 0.24,1.36, 0.96, 6.64, 0.16, 2.36, 0, 0.48,…
0.16, 1.84, 0.08, 0.56, 0.08, 0.32, 0.08, 0.24,…
0.08, 0.08, 0.08, 0.08, 0, 0.48, 0, 0.16, 0.08, 0.08, 0, 0.08, 0, 0, 0, 0,…
0.08, 0.24, 0.16, 0.32, 0.08, 0.08, 0.08, 0.32,…
0.08, 0.24, 0.16, 0.24, 0.08, 0.8, 0.16, 0.48,…
0.16, 0.16, 0.08, 0.72, 0.24, 0.72, 0.16, 0.24,…
0.08, 0.16, 0.08, 0.56, 0.08, 0.32]’; % Amplitudes for the 1st, 2nd, and 3rd harmonics
IB = [773.44, 0.4, 0.72, 0.88, 6.16, 0.4, 2.84, 0.08, 0.4, 0.08,…
1.76, 0.08, 0.96, 0.08, 0.16, 0, 0.4, 0.08, …
0.24, 0.08, 0, 0, 0.4, 0, 0.24, 0,…
0.08, 0, 0.08, 0, 0.08, 0, 0.16, 0.08,…
0.16, 0.08, 0.32, 0.08, 0.08, 0, 0.24, 0.08,…
0.4, 0.08, 0.08, 0.08, 0.8, 0.08, 0.72, 0.16,…
0.08, 0.32, 0.48, 0, 0.08, 0.08, 0.24, 0.32,…
0.24, 0.24, 0.72, 0.24, 0.08];
IC = [775.76, 0.24, 0.56, 0.72, 6.48, 0.24, 2.44, 0.08, 0.08, 0.08, …
2.12, 0, 0.72, 0.08, 0.16, 0.08,…
0.32, 0, 0.08, 0, 0, 0, 0.56, 0, 0.08, 0, 0.08, 0, …
0, 0, 0.08, 0, 0, 0, 0.24, 0, 0.24, 0, 0, 0.08, 0.24, 0, 0.32, 0,…
0.08, 0.08, 0.8, 0.08, 0.56, 0.08, 0.32, 0.08,…
0.64, 0.32, 0.56, 0.08, 0.24, 0.32, 0.24, 0.32, 0.72, 0.16, 0.24];
%% Generate the current
currentIA = zeros(size(t));
currentIB = zeros(size(t));
currentIC = zeros(size(t));
for n = 1:length(IA)
amplitudeIA = IA(n);
currentIA = currentIA + amplitudeIA * cos(2 * pi * n * f0 * t);
amplitudeIB = IB(n);
currentIB = currentIB + amplitudeIB * cos(2 * pi * n * f0 * t + 2*pi/3);
amplitudeIC = IC(n);
currentIC = currentIC + amplitudeIC * cos(2 * pi * n * f0 * t – 2*pi/3);
end
currents = timeseries([currentIA; currentIB; currentIC]’, t);
dataset = Simulink.SimulationData.Dataset(currents); %How do I give the dataset a name?
save currentsWith63Harmonics.mat dataset
%% Plot the signal
figure(1);
plot(t, currentIA);
hold on
plot(t, currentIB);
plot(t, currentIC);
title(‘Three-Phase currents with 63 harmonics’);
xlabel(‘Time (s)’);
ylabel(‘A’);
grid on;
figure(2);
ee_calculateThdPercent(1:1:63,IA’)
bar(1:1:63,IA’)
clear IA IB IC f0 duration amplitudeIA amplitudeIB amplitudeIC
clear n t signal How do I name a dataset. My dataset is available in Simulink; however, it is identified as unnamed. I want to use multiple datasets so I need to be able to identify each of them separately.
clc
% Parameters
f0 = 60; % Fundamental frequency in Hz
sampling_rate = 120000; % Sampling rate in Hz
stopTime = 0.1; % Duration of the signal in seconds
t = 0:1/sampling_rate:stopTime; % Time vector
% Harmonic amplitudes (example values)
IA = [771.32, 0.24,1.36, 0.96, 6.64, 0.16, 2.36, 0, 0.48,…
0.16, 1.84, 0.08, 0.56, 0.08, 0.32, 0.08, 0.24,…
0.08, 0.08, 0.08, 0.08, 0, 0.48, 0, 0.16, 0.08, 0.08, 0, 0.08, 0, 0, 0, 0,…
0.08, 0.24, 0.16, 0.32, 0.08, 0.08, 0.08, 0.32,…
0.08, 0.24, 0.16, 0.24, 0.08, 0.8, 0.16, 0.48,…
0.16, 0.16, 0.08, 0.72, 0.24, 0.72, 0.16, 0.24,…
0.08, 0.16, 0.08, 0.56, 0.08, 0.32]’; % Amplitudes for the 1st, 2nd, and 3rd harmonics
IB = [773.44, 0.4, 0.72, 0.88, 6.16, 0.4, 2.84, 0.08, 0.4, 0.08,…
1.76, 0.08, 0.96, 0.08, 0.16, 0, 0.4, 0.08, …
0.24, 0.08, 0, 0, 0.4, 0, 0.24, 0,…
0.08, 0, 0.08, 0, 0.08, 0, 0.16, 0.08,…
0.16, 0.08, 0.32, 0.08, 0.08, 0, 0.24, 0.08,…
0.4, 0.08, 0.08, 0.08, 0.8, 0.08, 0.72, 0.16,…
0.08, 0.32, 0.48, 0, 0.08, 0.08, 0.24, 0.32,…
0.24, 0.24, 0.72, 0.24, 0.08];
IC = [775.76, 0.24, 0.56, 0.72, 6.48, 0.24, 2.44, 0.08, 0.08, 0.08, …
2.12, 0, 0.72, 0.08, 0.16, 0.08,…
0.32, 0, 0.08, 0, 0, 0, 0.56, 0, 0.08, 0, 0.08, 0, …
0, 0, 0.08, 0, 0, 0, 0.24, 0, 0.24, 0, 0, 0.08, 0.24, 0, 0.32, 0,…
0.08, 0.08, 0.8, 0.08, 0.56, 0.08, 0.32, 0.08,…
0.64, 0.32, 0.56, 0.08, 0.24, 0.32, 0.24, 0.32, 0.72, 0.16, 0.24];
%% Generate the current
currentIA = zeros(size(t));
currentIB = zeros(size(t));
currentIC = zeros(size(t));
for n = 1:length(IA)
amplitudeIA = IA(n);
currentIA = currentIA + amplitudeIA * cos(2 * pi * n * f0 * t);
amplitudeIB = IB(n);
currentIB = currentIB + amplitudeIB * cos(2 * pi * n * f0 * t + 2*pi/3);
amplitudeIC = IC(n);
currentIC = currentIC + amplitudeIC * cos(2 * pi * n * f0 * t – 2*pi/3);
end
currents = timeseries([currentIA; currentIB; currentIC]’, t);
dataset = Simulink.SimulationData.Dataset(currents); %How do I give the dataset a name?
save currentsWith63Harmonics.mat dataset
%% Plot the signal
figure(1);
plot(t, currentIA);
hold on
plot(t, currentIB);
plot(t, currentIC);
title(‘Three-Phase currents with 63 harmonics’);
xlabel(‘Time (s)’);
ylabel(‘A’);
grid on;
figure(2);
ee_calculateThdPercent(1:1:63,IA’)
bar(1:1:63,IA’)
clear IA IB IC f0 duration amplitudeIA amplitudeIB amplitudeIC
clear n t signal naming datasets in matlab MATLAB Answers — New Questions
How to resolve warning message about broadcast variable while using ‘parfor’?
males = {‘animal1’, ‘animal2’, ‘animal3’};
treatmentGrps = {‘T1’, ‘T2’, ‘T3’};
nrows = size(featureLists, 1);
ncols = size(featureLists, 2);
featureLists = cell(nrows, ncols);
parfor grp = 1:nrows
tempRow = cell(1, ncols);
for animal = 1:ncols
tempRow{animal} = individualPsychValuesPerSession(‘approachavoid’, …
treatmentGrps{grp}, males{animal});
end
featureLists(grp, 🙂 = tempRow;
end
When I use ‘parfor’ like above I get an warning message
The entire array or structure ‘males’ is a broadcast variable.
This might result in unnecessary communication overhead.
But, when I change ‘ncols’ to ‘numel(males)’ like following
for animal = 1:numel(males)
tempRow{animal} = individualPsychValuesPerSession(‘approachavoid’, …
treatmentGrps{grp}, males{animal});
end
for the inner loop I don’t get any warning.
Can someone please explain this behavior of ‘parfor’?males = {‘animal1’, ‘animal2’, ‘animal3’};
treatmentGrps = {‘T1’, ‘T2’, ‘T3’};
nrows = size(featureLists, 1);
ncols = size(featureLists, 2);
featureLists = cell(nrows, ncols);
parfor grp = 1:nrows
tempRow = cell(1, ncols);
for animal = 1:ncols
tempRow{animal} = individualPsychValuesPerSession(‘approachavoid’, …
treatmentGrps{grp}, males{animal});
end
featureLists(grp, 🙂 = tempRow;
end
When I use ‘parfor’ like above I get an warning message
The entire array or structure ‘males’ is a broadcast variable.
This might result in unnecessary communication overhead.
But, when I change ‘ncols’ to ‘numel(males)’ like following
for animal = 1:numel(males)
tempRow{animal} = individualPsychValuesPerSession(‘approachavoid’, …
treatmentGrps{grp}, males{animal});
end
for the inner loop I don’t get any warning.
Can someone please explain this behavior of ‘parfor’? males = {‘animal1’, ‘animal2’, ‘animal3’};
treatmentGrps = {‘T1’, ‘T2’, ‘T3’};
nrows = size(featureLists, 1);
ncols = size(featureLists, 2);
featureLists = cell(nrows, ncols);
parfor grp = 1:nrows
tempRow = cell(1, ncols);
for animal = 1:ncols
tempRow{animal} = individualPsychValuesPerSession(‘approachavoid’, …
treatmentGrps{grp}, males{animal});
end
featureLists(grp, 🙂 = tempRow;
end
When I use ‘parfor’ like above I get an warning message
The entire array or structure ‘males’ is a broadcast variable.
This might result in unnecessary communication overhead.
But, when I change ‘ncols’ to ‘numel(males)’ like following
for animal = 1:numel(males)
tempRow{animal} = individualPsychValuesPerSession(‘approachavoid’, …
treatmentGrps{grp}, males{animal});
end
for the inner loop I don’t get any warning.
Can someone please explain this behavior of ‘parfor’? parfor, matlab MATLAB Answers — New Questions
How to download Picsart Mod Apk?
Picsart Mod APK is fantastic photo editing app, an all-in-one editing app that gives photos and videos an artistic touch before posting them on Social Media (Facebook, Instagram, WhatsApp, etc.). It helps the users in retouching and removing unwanted elements and distractions quickly. It is equally essential for individuals, businesses, influencers and artists to design social posts, create scroll-stopping videos or edit product shots. It is a unique suite of apps to assist in creating professional-level content and design.
You can download the Picsart Mod APK for FREE from this website modapkpicsart.com.
Picsart Mod APK is fantastic photo editing app, an all-in-one editing app that gives photos and videos an artistic touch before posting them on Social Media (Facebook, Instagram, WhatsApp, etc.). It helps the users in retouching and removing unwanted elements and distractions quickly. It is equally essential for individuals, businesses, influencers and artists to design social posts, create scroll-stopping videos or edit product shots. It is a unique suite of apps to assist in creating professional-level content and design. You can download the Picsart Mod APK for FREE from this website modapkpicsart.com. Read More
How to get warning source
Good day everyone,
I have a very long matlab code, and I get the folowing warning when runing (about as much as matlab can spill out into the console per second):
Warning: Colon operands must be real scalars. This warning will become an error in a future release.
How do I get the file / line number generating this warning?
Thank you very much.Good day everyone,
I have a very long matlab code, and I get the folowing warning when runing (about as much as matlab can spill out into the console per second):
Warning: Colon operands must be real scalars. This warning will become an error in a future release.
How do I get the file / line number generating this warning?
Thank you very much. Good day everyone,
I have a very long matlab code, and I get the folowing warning when runing (about as much as matlab can spill out into the console per second):
Warning: Colon operands must be real scalars. This warning will become an error in a future release.
How do I get the file / line number generating this warning?
Thank you very much. warning MATLAB Answers — New Questions
Runtime keyboard layout changing on Windows 11
I’m currently dealing with keyboard layout changing during my usage on Windows 11. I acquire my laptop in Brazil that uses ABNT2 layout, but my OS keeps changing to default US layout keyboard some time after booting my computer.
Does anyone have any suggestions on what could be causing this or how can I solve it?
IMPORTANT: I was using English as my only language, however even installing Brazilian Portuguese package the problem persists.
Thanks!
I’m currently dealing with keyboard layout changing during my usage on Windows 11. I acquire my laptop in Brazil that uses ABNT2 layout, but my OS keeps changing to default US layout keyboard some time after booting my computer. Does anyone have any suggestions on what could be causing this or how can I solve it? IMPORTANT: I was using English as my only language, however even installing Brazilian Portuguese package the problem persists. Thanks! Read More
Load flow doesn’t run properly, the results in all buses are 0
Hi everyone,
I am triying to obtain the load flow buses results in the load flow analyzer table but it only appears "0". Moreover, it sends an error message telling that there is no swing bus but I have a 3 phase programmable voltage source in my model. I attach an image with my simulation model.
Thank you!Hi everyone,
I am triying to obtain the load flow buses results in the load flow analyzer table but it only appears "0". Moreover, it sends an error message telling that there is no swing bus but I have a 3 phase programmable voltage source in my model. I attach an image with my simulation model.
Thank you! Hi everyone,
I am triying to obtain the load flow buses results in the load flow analyzer table but it only appears "0". Moreover, it sends an error message telling that there is no swing bus but I have a 3 phase programmable voltage source in my model. I attach an image with my simulation model.
Thank you! load flow MATLAB Answers — New Questions
plot(skin friction)
skinfriction()
function skinfriction
Nt=0.5; Nb=0.5; Le=2; Pr=1; alpha=1.5; s=1; A=3;
%% solution in structure form
%First solution
sol = bvpinit(linspace(0,6,10), [0 0 0 0 0 0 0]);
sol1 = bvp4c(@bvpexam2, @bcexam2, sol);
x1 = sol1.x;
y1 = sol1.y;
% Second solution
opts = bvpset(‘stats’,’off’,’RelTol’,1e-10);
sol = bvpinit(linspace(0,5,10), [-1 0 0 0 0 0 0]);
sol2 = bvp4c(@bvpexam2, @bcexam2_dual, sol,opts);
x2 = sol2.x;
y2 = sol2.y;
% Plot both solutions
plot(x1,y1(3,:),’-‘); hold on
plot(x2,y2(3,:),’–‘);
xlabel(‘eta’)
ylabel(‘f`(eta)’)
result1 = A^(-1/2)*y1(3,1)
result2 = A^(-1/2)*y2(3,1)
%%residual of bcs
function res = bcexam2(y0, yinf)
res= [y0(1)-s; y0(2)-alpha; y0(4)-1; y0(6)-1; yinf(2); yinf(4);yinf(6)];
end
function res = bcexam2_dual(y0, yinf)
res= [y0(1)-s; y0(2)-alpha; y0(4)-1; y0(6)-1; yinf(2); yinf(4);yinf(6)];
end
%% first order odes
function ysol = bvpexam2(x,y)
yy1 = -(A*y(1)*y(3)-A*(y(2))^2)-y(2)-(x/2)*y(3);
yy2 = -Pr*(A*y(1)*y(5)+(x/2)*y(5)+Nb*y(5)*y(7)+Nt*(y(5))^2);
yy3 = (-Le*(A*(y(1)*y(7)+(x/2)*y(7)))-(Nt/Nb)*( -Pr*(A*y(1)*y(5)+Nb*y(5)*y(7)+Nt*(y(5))^2)));
ysol = [y(2); y(3); yy1;y(5);yy2;y(7);yy3];
end
end
please help to plot this graph using the above codeskinfriction()
function skinfriction
Nt=0.5; Nb=0.5; Le=2; Pr=1; alpha=1.5; s=1; A=3;
%% solution in structure form
%First solution
sol = bvpinit(linspace(0,6,10), [0 0 0 0 0 0 0]);
sol1 = bvp4c(@bvpexam2, @bcexam2, sol);
x1 = sol1.x;
y1 = sol1.y;
% Second solution
opts = bvpset(‘stats’,’off’,’RelTol’,1e-10);
sol = bvpinit(linspace(0,5,10), [-1 0 0 0 0 0 0]);
sol2 = bvp4c(@bvpexam2, @bcexam2_dual, sol,opts);
x2 = sol2.x;
y2 = sol2.y;
% Plot both solutions
plot(x1,y1(3,:),’-‘); hold on
plot(x2,y2(3,:),’–‘);
xlabel(‘eta’)
ylabel(‘f`(eta)’)
result1 = A^(-1/2)*y1(3,1)
result2 = A^(-1/2)*y2(3,1)
%%residual of bcs
function res = bcexam2(y0, yinf)
res= [y0(1)-s; y0(2)-alpha; y0(4)-1; y0(6)-1; yinf(2); yinf(4);yinf(6)];
end
function res = bcexam2_dual(y0, yinf)
res= [y0(1)-s; y0(2)-alpha; y0(4)-1; y0(6)-1; yinf(2); yinf(4);yinf(6)];
end
%% first order odes
function ysol = bvpexam2(x,y)
yy1 = -(A*y(1)*y(3)-A*(y(2))^2)-y(2)-(x/2)*y(3);
yy2 = -Pr*(A*y(1)*y(5)+(x/2)*y(5)+Nb*y(5)*y(7)+Nt*(y(5))^2);
yy3 = (-Le*(A*(y(1)*y(7)+(x/2)*y(7)))-(Nt/Nb)*( -Pr*(A*y(1)*y(5)+Nb*y(5)*y(7)+Nt*(y(5))^2)));
ysol = [y(2); y(3); yy1;y(5);yy2;y(7);yy3];
end
end
please help to plot this graph using the above code skinfriction()
function skinfriction
Nt=0.5; Nb=0.5; Le=2; Pr=1; alpha=1.5; s=1; A=3;
%% solution in structure form
%First solution
sol = bvpinit(linspace(0,6,10), [0 0 0 0 0 0 0]);
sol1 = bvp4c(@bvpexam2, @bcexam2, sol);
x1 = sol1.x;
y1 = sol1.y;
% Second solution
opts = bvpset(‘stats’,’off’,’RelTol’,1e-10);
sol = bvpinit(linspace(0,5,10), [-1 0 0 0 0 0 0]);
sol2 = bvp4c(@bvpexam2, @bcexam2_dual, sol,opts);
x2 = sol2.x;
y2 = sol2.y;
% Plot both solutions
plot(x1,y1(3,:),’-‘); hold on
plot(x2,y2(3,:),’–‘);
xlabel(‘eta’)
ylabel(‘f`(eta)’)
result1 = A^(-1/2)*y1(3,1)
result2 = A^(-1/2)*y2(3,1)
%%residual of bcs
function res = bcexam2(y0, yinf)
res= [y0(1)-s; y0(2)-alpha; y0(4)-1; y0(6)-1; yinf(2); yinf(4);yinf(6)];
end
function res = bcexam2_dual(y0, yinf)
res= [y0(1)-s; y0(2)-alpha; y0(4)-1; y0(6)-1; yinf(2); yinf(4);yinf(6)];
end
%% first order odes
function ysol = bvpexam2(x,y)
yy1 = -(A*y(1)*y(3)-A*(y(2))^2)-y(2)-(x/2)*y(3);
yy2 = -Pr*(A*y(1)*y(5)+(x/2)*y(5)+Nb*y(5)*y(7)+Nt*(y(5))^2);
yy3 = (-Le*(A*(y(1)*y(7)+(x/2)*y(7)))-(Nt/Nb)*( -Pr*(A*y(1)*y(5)+Nb*y(5)*y(7)+Nt*(y(5))^2)));
ysol = [y(2); y(3); yy1;y(5);yy2;y(7);yy3];
end
end
please help to plot this graph using the above code matlab MATLAB Answers — New Questions
Power Pivot join with pivot table
I’ve used complex Power Pivot models routinely in the past, but now I’m having simple problems. The screenshot gives an example of joining two Excel tables by ID. The Pivot table at upper right should have four rows with corresponding One-n and Two-n values. I’m scratching my head, help badly needed.
I’ve used complex Power Pivot models routinely in the past, but now I’m having simple problems. The screenshot gives an example of joining two Excel tables by ID. The Pivot table at upper right should have four rows with corresponding One-n and Two-n values. I’m scratching my head, help badly needed. Read More