Month: June 2024
power settings ignored
Windows 11 home on msi laptop. I do consulting and have several work accounts. Something is overriding the power /sleep settings. Since it was working last fall. but has been an issue since about oct nov last year when I gained several clients policies. My pc goes to sleep mode at about 3 minutes. I loose any connections to vpns. IF I am on remote desktop on a meeting, it will go to sleep. I have to e active on my pc desktop keyboard or mouse. I have been launching teams meeting on my desktop to keep it from sleeping.
How do I find what is overriding my settings?
Windows 11 home on msi laptop. I do consulting and have several work accounts. Something is overriding the power /sleep settings. Since it was working last fall. but has been an issue since about oct nov last year when I gained several clients policies. My pc goes to sleep mode at about 3 minutes. I loose any connections to vpns. IF I am on remote desktop on a meeting, it will go to sleep. I have to e active on my pc desktop keyboard or mouse. I have been launching teams meeting on my desktop to keep it from sleeping.How do I find what is overriding my settings? Read More
sort(), filter() and IF() combined
I have a formula:
=SORT(IF(AX2 = “1+1”; FILTER(A2:J200; E2:E200 >= MAX(P:P)); 1; 1); FILTER(A2:J200; E2:E200 >= INDEX(P2:P200; X4-1)); 1; 1)
I want to sort a column by a condition statement.
For example, if the statement is true I want to filter and sort the numeric column with values only bigger and equal to the max() function result,
otherwise, I want to filter and sort the numeric column with values bigger or equal to max() – 1 (the preceding value).
Are there any workarounds for this, because the Excel pop-up with the window “can’t calculate this formula” without helper columns if possible?
I have a formula:=SORT(IF(AX2 = “1+1”; FILTER(A2:J200; E2:E200 >= MAX(P:P)); 1; 1); FILTER(A2:J200; E2:E200 >= INDEX(P2:P200; X4-1)); 1; 1)I want to sort a column by a condition statement.For example, if the statement is true I want to filter and sort the numeric column with values only bigger and equal to the max() function result,otherwise, I want to filter and sort the numeric column with values bigger or equal to max() – 1 (the preceding value).Are there any workarounds for this, because the Excel pop-up with the window “can’t calculate this formula” without helper columns if possible? Read More
Update records in a Kusto Database (General Availability)
Kusto databases, either in Fabric (KQL Database) or in Azure (Azure Data Explorer), are optimized for append ingestion.
In recent years, we’ve introduced the .delete command, allowing you to selectively delete records.
In February, we introduced the .update command in public preview. This command allows you to update records by deleting existing records and appending new ones in a single transaction.
Today, the .update is Generally Available (GA)!
During the public preview, we introduced two syntaxes: the simplified and expanded syntax. We only GA the expanded syntax (the most powerful) and are deprecating the simplified syntax. This is due to the simplified syntax being confusing in some scenarios.
We encourage you to go through the many examples of the online documentation page to familiarize yourself with the syntax.
As usual, we are looking forward for your feedback and hope this makes you more productive in Kusto!
Microsoft Tech Community – Latest Blogs –Read More
Right Clicking Teams Taskbar Icon opens “Open With” Dialogue on Windows 10
We recently identified a Windows known issue with custom Jump Lists that shipped in Windows 10 22H2. New Teams is one of several apps known to be impacted. When you right click on the New Teams icon in the taskbar on Win10 you might see an “Open With” dialogue instead of the expected Teams custom options (Status, Quit, etc).
Looks like:
Instead of:
You can work around this issue by setting Status via your Profile in the main Teams client window:
The good news is that the necessary fix has already been identified and prepared and will ship in a future update for Windows 10 22H2 soon.
To follow along monitor the Windows 10 update history page here:
Windows 10 update history – Microsoft Support
For more information about the JumpList known issue:
Windows 10, version 22H2 | Microsoft Learn
We apologize for the inconvenience.
Microsoft Tech Community – Latest Blogs –Read More
I need help combining two sine waves
Hello. I am trying to learn how to end an ascending sine wave at the start of a signal and end a descending sine wave at the end of a signal. Here is what I have so far:
f=1000;
n=10;
T=1/f;
t=(0:T/100:n*T);
s = sin(2*pi*t*f);
e = (-expm1(-t*250));
e2 = (exp(-t*250));
n = s .* e;
m = e2 .* s;
fix = n + s + m;
plot(t,fix);
I am still doing research on how to properly add them but any help from others would be appreciated.Hello. I am trying to learn how to end an ascending sine wave at the start of a signal and end a descending sine wave at the end of a signal. Here is what I have so far:
f=1000;
n=10;
T=1/f;
t=(0:T/100:n*T);
s = sin(2*pi*t*f);
e = (-expm1(-t*250));
e2 = (exp(-t*250));
n = s .* e;
m = e2 .* s;
fix = n + s + m;
plot(t,fix);
I am still doing research on how to properly add them but any help from others would be appreciated. Hello. I am trying to learn how to end an ascending sine wave at the start of a signal and end a descending sine wave at the end of a signal. Here is what I have so far:
f=1000;
n=10;
T=1/f;
t=(0:T/100:n*T);
s = sin(2*pi*t*f);
e = (-expm1(-t*250));
e2 = (exp(-t*250));
n = s .* e;
m = e2 .* s;
fix = n + s + m;
plot(t,fix);
I am still doing research on how to properly add them but any help from others would be appreciated. plotting MATLAB Answers — New Questions
Matching combinations of strings
I have a table TT with a string variable TT.name. I want to return true if TT.name matches any entry in another table variable OK.name. However, I have some complications I am having a hard time parsing.
Many of the strings in TT.name are combinations of strings that appear in OK.name. I want to include these as a true match. Sometimes they have a + symbol, sometimes just a space. Further complicating matters, the table OK contains some entries with spaces, and if they do I want to treat them as an entire entry, and not break them up at the spaces.
TT = table(["Green"; "Red"; "Blue"; "Black Blue"; "Black"; "Blue Green"; "Red + Blue"; "Red Orange"; "Red + White"], ‘VariableNames’, {‘name’})
OK = table(["Red"; "Green"; "Blue"; "Black Blue"], ‘VariableNames’, {‘name’})
This is the output I would want, but not by manually changing rows 6 and 7:
TT.match=ismember(TT.name,OK.name);
TT.match(6:7)=1
In the example, "Blue Green" and "Red + Blue" are true matchs, because "Blue" "Green" and "Red" all appear as entries in OK.name.
"Black" is not a match, because the only entry in OK.name is "Black Blue" and I do not want to separate the words from this table.
"Red Orange" and "Red + Orange" are not matches because only "Red" is in the OK table.I have a table TT with a string variable TT.name. I want to return true if TT.name matches any entry in another table variable OK.name. However, I have some complications I am having a hard time parsing.
Many of the strings in TT.name are combinations of strings that appear in OK.name. I want to include these as a true match. Sometimes they have a + symbol, sometimes just a space. Further complicating matters, the table OK contains some entries with spaces, and if they do I want to treat them as an entire entry, and not break them up at the spaces.
TT = table(["Green"; "Red"; "Blue"; "Black Blue"; "Black"; "Blue Green"; "Red + Blue"; "Red Orange"; "Red + White"], ‘VariableNames’, {‘name’})
OK = table(["Red"; "Green"; "Blue"; "Black Blue"], ‘VariableNames’, {‘name’})
This is the output I would want, but not by manually changing rows 6 and 7:
TT.match=ismember(TT.name,OK.name);
TT.match(6:7)=1
In the example, "Blue Green" and "Red + Blue" are true matchs, because "Blue" "Green" and "Red" all appear as entries in OK.name.
"Black" is not a match, because the only entry in OK.name is "Black Blue" and I do not want to separate the words from this table.
"Red Orange" and "Red + Orange" are not matches because only "Red" is in the OK table. I have a table TT with a string variable TT.name. I want to return true if TT.name matches any entry in another table variable OK.name. However, I have some complications I am having a hard time parsing.
Many of the strings in TT.name are combinations of strings that appear in OK.name. I want to include these as a true match. Sometimes they have a + symbol, sometimes just a space. Further complicating matters, the table OK contains some entries with spaces, and if they do I want to treat them as an entire entry, and not break them up at the spaces.
TT = table(["Green"; "Red"; "Blue"; "Black Blue"; "Black"; "Blue Green"; "Red + Blue"; "Red Orange"; "Red + White"], ‘VariableNames’, {‘name’})
OK = table(["Red"; "Green"; "Blue"; "Black Blue"], ‘VariableNames’, {‘name’})
This is the output I would want, but not by manually changing rows 6 and 7:
TT.match=ismember(TT.name,OK.name);
TT.match(6:7)=1
In the example, "Blue Green" and "Red + Blue" are true matchs, because "Blue" "Green" and "Red" all appear as entries in OK.name.
"Black" is not a match, because the only entry in OK.name is "Black Blue" and I do not want to separate the words from this table.
"Red Orange" and "Red + Orange" are not matches because only "Red" is in the OK table. strings, compare, ismember, matching MATLAB Answers — New Questions
Client Analyzer Page – Release notes
It would be helpful if the client analyzer page had release notes to go along with new version releases and update, and also a subscription notification for when the page has been updated.
(https://learn.microsoft.com/en-us/defender-endpoint/run-analyzer-macos-linux?view=o365-worldwide)
Currently the best guess is check last page edited date, but this has not been reliable in the past as the page has been edited without Client Analyzer updates or the ClientAnalyzer has been updated without page edits.
It would be helpful if the client analyzer page had release notes to go along with new version releases and update, and also a subscription notification for when the page has been updated. (https://learn.microsoft.com/en-us/defender-endpoint/run-analyzer-macos-linux?view=o365-worldwide) Currently the best guess is check last page edited date, but this has not been reliable in the past as the page has been edited without Client Analyzer updates or the ClientAnalyzer has been updated without page edits. Read More
How do I submit app with api on azure, I am new to azure and struggling to submit or host.
Hi there,
I am trying for the first time on Microsoft azure I am new developer and have very few knowledge about the azure I am trying to create a web app like. AI to human text converter https://aitohumanizetextconverter.com this website is a sample but my app is similar to this. How do I submit or host my app on azure. I really appreciate if i get any sort of guidance.
Thank you
Hi there,I am trying for the first time on Microsoft azure I am new developer and have very few knowledge about the azure I am trying to create a web app like. AI to human text converter https://aitohumanizetextconverter.com this website is a sample but my app is similar to this. How do I submit or host my app on azure. I really appreciate if i get any sort of guidance. Thank you Read More
Issues with Oracle Database Classification in Microsoft Purview
Hello,I’m testing the registration of an Oracle on-prem database with Microsoft Purview. The scan is running successfully and ingesting metadata, but it is not identifying any classifications.although this dataset is used with SQL Server and works properly, showing all the classifications, there is a section discussing this saying that If the user is not the owner of the table, the scan will run successfully and ingest metadata, but will not identify any classifications. https://learn.microsoft.com/en-us/purview/register-scan-oracle-source#required-permissions-for-scanBut it’s already done and the user have all the select roles and system roles.Could anyone help i don’t know where is the problem Thanks in advance Read More
Issues with Hybrid Azure AD Join During Autopilot Enrollment
Hello Community,
I am seeking advice on an issue we’re experiencing with Microsoft Intune and Autopilot in our environment. We have set up an enrollment profile intended to enroll devices as Hybrid Azure AD joined during the Autopilot process. However, we’re encountering a problem where some devices are enrolling as Azure AD joined (cloud-only) instead of Hybrid.
Has anyone else experienced this issue? Any suggestions on what might be causing this inconsistency or how to troubleshoot it further would be greatly appreciated!
Hello Community,I am seeking advice on an issue we’re experiencing with Microsoft Intune and Autopilot in our environment. We have set up an enrollment profile intended to enroll devices as Hybrid Azure AD joined during the Autopilot process. However, we’re encountering a problem where some devices are enrolling as Azure AD joined (cloud-only) instead of Hybrid.Has anyone else experienced this issue? Any suggestions on what might be causing this inconsistency or how to troubleshoot it further would be greatly appreciated! Read More
The ability to add photos / images to Microsoft Authenticator accounts
Hi,
First post in this forum (hello to all !).
Can we have the ability to add photos / images to each account listed on our Microsoft Authenticator accounts ? This would allow me to quickly identify which account code I need on the long list of accounts I have connected to my Authenticator app.
Many thanks
Jay
Hi, First post in this forum (hello to all !). Can we have the ability to add photos / images to each account listed on our Microsoft Authenticator accounts ? This would allow me to quickly identify which account code I need on the long list of accounts I have connected to my Authenticator app. Many thanksJay Read More
File Issues after copying from another PC
I copied over a set of files from my workstation to use on my laptop when working in the labratory. The script runs fine when using the workstation but comes up with an error when used on my laptop. I didn’t write this code a former student at my university did but I need to alter his plots using the file. I’m new to MATLAB, and added the Raw Tension Data to the file path, and tried restarting the program/computer. I can’t seem to figure this out on my own. I’ve used other files the former student created with minimal issues on my laptop, this one is hanging me up.
Incorrect number or types of inputs or outputs for function resample.
Error in TensionPlots (line 7)
TPS_1 = resample(readmatrix(‘Raw Tension DataPS-1.csv’, ‘NumHeaderLines’,1),10,100);I copied over a set of files from my workstation to use on my laptop when working in the labratory. The script runs fine when using the workstation but comes up with an error when used on my laptop. I didn’t write this code a former student at my university did but I need to alter his plots using the file. I’m new to MATLAB, and added the Raw Tension Data to the file path, and tried restarting the program/computer. I can’t seem to figure this out on my own. I’ve used other files the former student created with minimal issues on my laptop, this one is hanging me up.
Incorrect number or types of inputs or outputs for function resample.
Error in TensionPlots (line 7)
TPS_1 = resample(readmatrix(‘Raw Tension DataPS-1.csv’, ‘NumHeaderLines’,1),10,100); I copied over a set of files from my workstation to use on my laptop when working in the labratory. The script runs fine when using the workstation but comes up with an error when used on my laptop. I didn’t write this code a former student at my university did but I need to alter his plots using the file. I’m new to MATLAB, and added the Raw Tension Data to the file path, and tried restarting the program/computer. I can’t seem to figure this out on my own. I’ve used other files the former student created with minimal issues on my laptop, this one is hanging me up.
Incorrect number or types of inputs or outputs for function resample.
Error in TensionPlots (line 7)
TPS_1 = resample(readmatrix(‘Raw Tension DataPS-1.csv’, ‘NumHeaderLines’,1),10,100); resample error MATLAB Answers — New Questions
How to write data from a Cell Array as multiple columns in a text or CSV file?
Greeting,
I have a 1×2 cell array with data in each cell. I’m trying to extract the data from each cell and write it to a CSV or text file. I’ve tried various combinations of writecell, cell2table, writetable, etc. The closest I can get us using writecell, but I end up with a single row containing all the data from both cells in the cell array.
Does anybody have a suggestion how to end up with multiple columns when I write my output to a file?
For context, right now my cell array is 1×2, and is only this small since I’m building and troubleshooting a Simulink model and data output script. Once I finish troubleshooting, the real deal data in the cell array will probably be around 1×20, and I’ll be doing about 10 runs in Simulink (so 10 total sets of 1×20 output in my cell arrays).
Thanks in advance!Greeting,
I have a 1×2 cell array with data in each cell. I’m trying to extract the data from each cell and write it to a CSV or text file. I’ve tried various combinations of writecell, cell2table, writetable, etc. The closest I can get us using writecell, but I end up with a single row containing all the data from both cells in the cell array.
Does anybody have a suggestion how to end up with multiple columns when I write my output to a file?
For context, right now my cell array is 1×2, and is only this small since I’m building and troubleshooting a Simulink model and data output script. Once I finish troubleshooting, the real deal data in the cell array will probably be around 1×20, and I’ll be doing about 10 runs in Simulink (so 10 total sets of 1×20 output in my cell arrays).
Thanks in advance! Greeting,
I have a 1×2 cell array with data in each cell. I’m trying to extract the data from each cell and write it to a CSV or text file. I’ve tried various combinations of writecell, cell2table, writetable, etc. The closest I can get us using writecell, but I end up with a single row containing all the data from both cells in the cell array.
Does anybody have a suggestion how to end up with multiple columns when I write my output to a file?
For context, right now my cell array is 1×2, and is only this small since I’m building and troubleshooting a Simulink model and data output script. Once I finish troubleshooting, the real deal data in the cell array will probably be around 1×20, and I’ll be doing about 10 runs in Simulink (so 10 total sets of 1×20 output in my cell arrays).
Thanks in advance! cell arrays, cell2table, writetable, writecell MATLAB Answers — New Questions
How to iterate over data sets?
Hi everyone,
I am new to coding so please bare with me as I am trying my best.
I am trying to plot and iterate over different data sets, for example, I want to plot data points 1-10, skip over 11 and 12, and then plot the next 10, 13-23 and so on and so forth. This is what I have so far. Please let me know where I have gone wrong. Thank you.
filename = "Mydatasheet.csv";
opts = detectImportOptions(‘filepathMydatasheet.csv’,’.csv’);
T = readtable("Mydatasheet.csv",opts);
dummy1 = table2array(:,1);
dummy2 = table2array(:,2);
for ii= 1: length(dummy,2)
plot(dummy1(1:10:230),dummy2(1:10:230));
endHi everyone,
I am new to coding so please bare with me as I am trying my best.
I am trying to plot and iterate over different data sets, for example, I want to plot data points 1-10, skip over 11 and 12, and then plot the next 10, 13-23 and so on and so forth. This is what I have so far. Please let me know where I have gone wrong. Thank you.
filename = "Mydatasheet.csv";
opts = detectImportOptions(‘filepathMydatasheet.csv’,’.csv’);
T = readtable("Mydatasheet.csv",opts);
dummy1 = table2array(:,1);
dummy2 = table2array(:,2);
for ii= 1: length(dummy,2)
plot(dummy1(1:10:230),dummy2(1:10:230));
end Hi everyone,
I am new to coding so please bare with me as I am trying my best.
I am trying to plot and iterate over different data sets, for example, I want to plot data points 1-10, skip over 11 and 12, and then plot the next 10, 13-23 and so on and so forth. This is what I have so far. Please let me know where I have gone wrong. Thank you.
filename = "Mydatasheet.csv";
opts = detectImportOptions(‘filepathMydatasheet.csv’,’.csv’);
T = readtable("Mydatasheet.csv",opts);
dummy1 = table2array(:,1);
dummy2 = table2array(:,2);
for ii= 1: length(dummy,2)
plot(dummy1(1:10:230),dummy2(1:10:230));
end plotting, for loop MATLAB Answers — New Questions
Internal heat source PDE
Dear community,
I am using the PDE toolbox to study the release of latent heat from a solid geometry. To do so, I need to set the internalheatsource in the thermal model. Is this energy per unit volume [J/m3] or power per unit volume [W/m3]?
In general, is there any place where the units of measure used in the toolbox are clearly declared?
Thank you,Dear community,
I am using the PDE toolbox to study the release of latent heat from a solid geometry. To do so, I need to set the internalheatsource in the thermal model. Is this energy per unit volume [J/m3] or power per unit volume [W/m3]?
In general, is there any place where the units of measure used in the toolbox are clearly declared?
Thank you, Dear community,
I am using the PDE toolbox to study the release of latent heat from a solid geometry. To do so, I need to set the internalheatsource in the thermal model. Is this energy per unit volume [J/m3] or power per unit volume [W/m3]?
In general, is there any place where the units of measure used in the toolbox are clearly declared?
Thank you, pde, thermal model, internal heat source MATLAB Answers — New Questions
Why are the components of the two eigenvectors not continuous and smooth, when the underlying data is continuous and smooth?
For my research, I measure a 2×2 scattering (S) matrix for a number of frequency points. Each component of the S matrix is complex, but varies smoothly and continuously. I am interested in the inner product of the two eigenvectors of the S matrix, but it is discontinuous due to the components of the eigenvectors behaving oddly. The issue isn’t that the label of which eigenvector is which has swapped, or a phase ambiguity of the eigenvectors. I define the eigenvectors as R1 = (A;B), R2 = (C;D) and choose A and D to be purely real. When the discontinuities in the inner product occur, a few things simultaneously occur. These include the label of eigenvalue 1 and 2 switching, a linear kink in the minima of A and D, a kink and switching of the real parts of B and C, and a kink or discontinuity in the imaginary parts of B and C. The code below and attached data show this behavior. Is there any way to fix this such that both the real and imaginary parts of the eigenvectors stay continuous, and the eigenvalues also be continuous with no switching?
%Experimental Data
load(‘Representative_Data.mat’)
%Eigensolver
for k=1:length(x_pts)
[Right_evec(:,:,k),eval(:,:,k)] = eig(smat(:,:,k));
Eval_1(k) = eval(1,1,k);
Eval_2(k) = eval(2,2,k);
end
%Get rid of eigenvector phase ambiguities
Phase_Component_1 = angle(Right_evec(1,1,:)); %A
Phase_Component_2 = angle(Right_evec(2,2,:)); %D
Right_evec(:,1,:) = Right_evec(:,1,:).*exp(-1i*Phase_Component_1);
Right_evec(:,2,:) = Right_evec(:,2,:).*exp(-1i*Phase_Component_2);
for k=1:length(x_pts)
Inner_Product(k) = Right_evec(:,1,k)’*Right_evec(:,2,k);
end
Marker_size = 20;
%Eigenvalues
figure(‘Position’,[200,100,1500,730]);
scatter(x_pts,real(Eval_1),Marker_size,’filled’); hold on;
scatter(x_pts,imag(Eval_1),Marker_size,’filled’);
scatter(x_pts,real(Eval_2),Marker_size,’filled’);
scatter(x_pts,imag(Eval_2),Marker_size,’filled’);
xlabel(‘Frequency (GHz)’)
ylabel(‘Eigenvalues’)
set(gca,’Fontsize’,26)
legend(‘Re lambda_1′,’Im lambda_1′,’Re lambda_2′,’Im lambda_2’)
grid on; box on;
%Eigenvector Components A and D
figure(‘Position’,[200,100,1500,730]);
scatter(x_pts,real(squeeze(Right_evec(1,1,:))),Marker_size,’filled’); hold on;
scatter(x_pts,real(squeeze(Right_evec(2,2,:))),Marker_size,’filled’);
%scatter(x_pts,imag(squeeze(Right_evec(1,1,:))),Marker_size,’filled’); %Imaginary part specified to be 0
%scatter(x_pts,imag(squeeze(Right_evec(2,2,:))),Marker_size,’filled’); %Imaginary part specified to be 0
xlabel(‘Frequency (GHz)’)
ylabel(‘Eigenvector components’)
set(gca,’Fontsize’,26)
legend(‘Re A’,’Re D’)
grid on; box on;
%Eigenvector Components B and C
figure(‘Position’,[200,100,1500,730]);
scatter(x_pts,real(squeeze(Right_evec(2,1,:))),Marker_size,’filled’); hold on;
scatter(x_pts,imag(squeeze(Right_evec(2,1,:))),Marker_size,’filled’);
scatter(x_pts,real(squeeze(Right_evec(1,2,:))),Marker_size,’filled’);
scatter(x_pts,imag(squeeze(Right_evec(1,2,:))),Marker_size,’filled’);
xlabel(‘Frequency (GHz)’)
ylabel(‘Eigenvector components’)
set(gca,’Fontsize’,26)
legend(‘Re B’,’Im B’,’Re C’,’Im C’)
grid on; box on;
%Inner Product
figure(‘Position’,[200,100,1500,730]);
scatter(x_pts,real(Inner_Product),Marker_size,’filled’); hold on;
%scatter(x_pts,imag(Inner_Product),Marker_size,’filled’); %Imaginary part is properly continuous
xlabel(‘Frequency (GHz)’)
ylabel(‘Re <R_1|R_2>’)
set(gca,’Fontsize’,26)
grid on; box on;For my research, I measure a 2×2 scattering (S) matrix for a number of frequency points. Each component of the S matrix is complex, but varies smoothly and continuously. I am interested in the inner product of the two eigenvectors of the S matrix, but it is discontinuous due to the components of the eigenvectors behaving oddly. The issue isn’t that the label of which eigenvector is which has swapped, or a phase ambiguity of the eigenvectors. I define the eigenvectors as R1 = (A;B), R2 = (C;D) and choose A and D to be purely real. When the discontinuities in the inner product occur, a few things simultaneously occur. These include the label of eigenvalue 1 and 2 switching, a linear kink in the minima of A and D, a kink and switching of the real parts of B and C, and a kink or discontinuity in the imaginary parts of B and C. The code below and attached data show this behavior. Is there any way to fix this such that both the real and imaginary parts of the eigenvectors stay continuous, and the eigenvalues also be continuous with no switching?
%Experimental Data
load(‘Representative_Data.mat’)
%Eigensolver
for k=1:length(x_pts)
[Right_evec(:,:,k),eval(:,:,k)] = eig(smat(:,:,k));
Eval_1(k) = eval(1,1,k);
Eval_2(k) = eval(2,2,k);
end
%Get rid of eigenvector phase ambiguities
Phase_Component_1 = angle(Right_evec(1,1,:)); %A
Phase_Component_2 = angle(Right_evec(2,2,:)); %D
Right_evec(:,1,:) = Right_evec(:,1,:).*exp(-1i*Phase_Component_1);
Right_evec(:,2,:) = Right_evec(:,2,:).*exp(-1i*Phase_Component_2);
for k=1:length(x_pts)
Inner_Product(k) = Right_evec(:,1,k)’*Right_evec(:,2,k);
end
Marker_size = 20;
%Eigenvalues
figure(‘Position’,[200,100,1500,730]);
scatter(x_pts,real(Eval_1),Marker_size,’filled’); hold on;
scatter(x_pts,imag(Eval_1),Marker_size,’filled’);
scatter(x_pts,real(Eval_2),Marker_size,’filled’);
scatter(x_pts,imag(Eval_2),Marker_size,’filled’);
xlabel(‘Frequency (GHz)’)
ylabel(‘Eigenvalues’)
set(gca,’Fontsize’,26)
legend(‘Re lambda_1′,’Im lambda_1′,’Re lambda_2′,’Im lambda_2’)
grid on; box on;
%Eigenvector Components A and D
figure(‘Position’,[200,100,1500,730]);
scatter(x_pts,real(squeeze(Right_evec(1,1,:))),Marker_size,’filled’); hold on;
scatter(x_pts,real(squeeze(Right_evec(2,2,:))),Marker_size,’filled’);
%scatter(x_pts,imag(squeeze(Right_evec(1,1,:))),Marker_size,’filled’); %Imaginary part specified to be 0
%scatter(x_pts,imag(squeeze(Right_evec(2,2,:))),Marker_size,’filled’); %Imaginary part specified to be 0
xlabel(‘Frequency (GHz)’)
ylabel(‘Eigenvector components’)
set(gca,’Fontsize’,26)
legend(‘Re A’,’Re D’)
grid on; box on;
%Eigenvector Components B and C
figure(‘Position’,[200,100,1500,730]);
scatter(x_pts,real(squeeze(Right_evec(2,1,:))),Marker_size,’filled’); hold on;
scatter(x_pts,imag(squeeze(Right_evec(2,1,:))),Marker_size,’filled’);
scatter(x_pts,real(squeeze(Right_evec(1,2,:))),Marker_size,’filled’);
scatter(x_pts,imag(squeeze(Right_evec(1,2,:))),Marker_size,’filled’);
xlabel(‘Frequency (GHz)’)
ylabel(‘Eigenvector components’)
set(gca,’Fontsize’,26)
legend(‘Re B’,’Im B’,’Re C’,’Im C’)
grid on; box on;
%Inner Product
figure(‘Position’,[200,100,1500,730]);
scatter(x_pts,real(Inner_Product),Marker_size,’filled’); hold on;
%scatter(x_pts,imag(Inner_Product),Marker_size,’filled’); %Imaginary part is properly continuous
xlabel(‘Frequency (GHz)’)
ylabel(‘Re <R_1|R_2>’)
set(gca,’Fontsize’,26)
grid on; box on; For my research, I measure a 2×2 scattering (S) matrix for a number of frequency points. Each component of the S matrix is complex, but varies smoothly and continuously. I am interested in the inner product of the two eigenvectors of the S matrix, but it is discontinuous due to the components of the eigenvectors behaving oddly. The issue isn’t that the label of which eigenvector is which has swapped, or a phase ambiguity of the eigenvectors. I define the eigenvectors as R1 = (A;B), R2 = (C;D) and choose A and D to be purely real. When the discontinuities in the inner product occur, a few things simultaneously occur. These include the label of eigenvalue 1 and 2 switching, a linear kink in the minima of A and D, a kink and switching of the real parts of B and C, and a kink or discontinuity in the imaginary parts of B and C. The code below and attached data show this behavior. Is there any way to fix this such that both the real and imaginary parts of the eigenvectors stay continuous, and the eigenvalues also be continuous with no switching?
%Experimental Data
load(‘Representative_Data.mat’)
%Eigensolver
for k=1:length(x_pts)
[Right_evec(:,:,k),eval(:,:,k)] = eig(smat(:,:,k));
Eval_1(k) = eval(1,1,k);
Eval_2(k) = eval(2,2,k);
end
%Get rid of eigenvector phase ambiguities
Phase_Component_1 = angle(Right_evec(1,1,:)); %A
Phase_Component_2 = angle(Right_evec(2,2,:)); %D
Right_evec(:,1,:) = Right_evec(:,1,:).*exp(-1i*Phase_Component_1);
Right_evec(:,2,:) = Right_evec(:,2,:).*exp(-1i*Phase_Component_2);
for k=1:length(x_pts)
Inner_Product(k) = Right_evec(:,1,k)’*Right_evec(:,2,k);
end
Marker_size = 20;
%Eigenvalues
figure(‘Position’,[200,100,1500,730]);
scatter(x_pts,real(Eval_1),Marker_size,’filled’); hold on;
scatter(x_pts,imag(Eval_1),Marker_size,’filled’);
scatter(x_pts,real(Eval_2),Marker_size,’filled’);
scatter(x_pts,imag(Eval_2),Marker_size,’filled’);
xlabel(‘Frequency (GHz)’)
ylabel(‘Eigenvalues’)
set(gca,’Fontsize’,26)
legend(‘Re lambda_1′,’Im lambda_1′,’Re lambda_2′,’Im lambda_2’)
grid on; box on;
%Eigenvector Components A and D
figure(‘Position’,[200,100,1500,730]);
scatter(x_pts,real(squeeze(Right_evec(1,1,:))),Marker_size,’filled’); hold on;
scatter(x_pts,real(squeeze(Right_evec(2,2,:))),Marker_size,’filled’);
%scatter(x_pts,imag(squeeze(Right_evec(1,1,:))),Marker_size,’filled’); %Imaginary part specified to be 0
%scatter(x_pts,imag(squeeze(Right_evec(2,2,:))),Marker_size,’filled’); %Imaginary part specified to be 0
xlabel(‘Frequency (GHz)’)
ylabel(‘Eigenvector components’)
set(gca,’Fontsize’,26)
legend(‘Re A’,’Re D’)
grid on; box on;
%Eigenvector Components B and C
figure(‘Position’,[200,100,1500,730]);
scatter(x_pts,real(squeeze(Right_evec(2,1,:))),Marker_size,’filled’); hold on;
scatter(x_pts,imag(squeeze(Right_evec(2,1,:))),Marker_size,’filled’);
scatter(x_pts,real(squeeze(Right_evec(1,2,:))),Marker_size,’filled’);
scatter(x_pts,imag(squeeze(Right_evec(1,2,:))),Marker_size,’filled’);
xlabel(‘Frequency (GHz)’)
ylabel(‘Eigenvector components’)
set(gca,’Fontsize’,26)
legend(‘Re B’,’Im B’,’Re C’,’Im C’)
grid on; box on;
%Inner Product
figure(‘Position’,[200,100,1500,730]);
scatter(x_pts,real(Inner_Product),Marker_size,’filled’); hold on;
%scatter(x_pts,imag(Inner_Product),Marker_size,’filled’); %Imaginary part is properly continuous
xlabel(‘Frequency (GHz)’)
ylabel(‘Re <R_1|R_2>’)
set(gca,’Fontsize’,26)
grid on; box on; eigenvectors MATLAB Answers — New Questions
Days Earned Calculator
Good Day!
I have a set of guidelines for earning bonus days off. (eg. between 251-450hrs earns 2 holiday days) As you can see in the attached pic. I would like to build a calculator that will allow me to enter a number of hours and it tells me how many bonus days I qualify for. The guidelines and rough calculator are in the pic, can you please help?
(Please note: these are not actual numbers, only made up values. Please don’t call the labor board LOL)
Good Day! I have a set of guidelines for earning bonus days off. (eg. between 251-450hrs earns 2 holiday days) As you can see in the attached pic. I would like to build a calculator that will allow me to enter a number of hours and it tells me how many bonus days I qualify for. The guidelines and rough calculator are in the pic, can you please help? (Please note: these are not actual numbers, only made up values. Please don’t call the labor board LOL) Read More
Viva Training Inquiry
Hi,
Our company is looking to implement online training programs and I have a few questions. I have not been able to get in touch with a microsoft sales representative.
1. We would like to create quizzes and have them embedded to the training modules. Is this possible?
2. Is this private so it is only visible to people within the company?
3. Organizaiton is key factor for us. These training documents will be auditied How does it keep records?
4. Is there any type of integration possibilies with our in house crm(customer relationship management system)?
5. Company of around 50 people what is the cost? What is the main differences in price tiers
6. Any metrics available to show the impact of the viva system?
Hi, Our company is looking to implement online training programs and I have a few questions. I have not been able to get in touch with a microsoft sales representative. 1. We would like to create quizzes and have them embedded to the training modules. Is this possible?2. Is this private so it is only visible to people within the company?3. Organizaiton is key factor for us. These training documents will be auditied How does it keep records?4. Is there any type of integration possibilies with our in house crm(customer relationship management system)?5. Company of around 50 people what is the cost? What is the main differences in price tiers6. Any metrics available to show the impact of the viva system? Read More
Visual Basic/Macros
I have uninstalled office, reinstalled office. I have even updated the office apps and then I have ran quick repair. I have checked for any add ins that can cause this issue. For some reason my selection options for the VBA and the Macros are all greyed out on Word app. I cannot use the VBA as all the options to make changes and personalization are all greyed out.
I have uninstalled office, reinstalled office. I have even updated the office apps and then I have ran quick repair. I have checked for any add ins that can cause this issue. For some reason my selection options for the VBA and the Macros are all greyed out on Word app. I cannot use the VBA as all the options to make changes and personalization are all greyed out. Read More
Purview Governance – New Portal Not Ready for GA Use (noted in Preview)
It feels like the New Portal for Purview, Governance in particular is partially ready for release. I am getting many errors and inconsistencies. I havent received support yet. Anyone else experienceing these issues?
1. Unable to test my REGEX for pattern accuracy (though used same file to create pattern)
2. Unable to set a Data Quality Connection for SQL
3. Missing Data Products within Data Access
4. Inconsistent use of Tech metadata to Business Glossary terms
5. Missing Glossary terms in Data Search function
6. Missing Data Products in Data Products Search
7. Unable to bulk upload Business Glossary terms
I am surprised their are not more community postings for the issues.
It feels like the New Portal for Purview, Governance in particular is partially ready for release. I am getting many errors and inconsistencies. I havent received support yet. Anyone else experienceing these issues?1. Unable to test my REGEX for pattern accuracy (though used same file to create pattern)2. Unable to set a Data Quality Connection for SQL3. Missing Data Products within Data Access4. Inconsistent use of Tech metadata to Business Glossary terms5. Missing Glossary terms in Data Search function6. Missing Data Products in Data Products Search7. Unable to bulk upload Business Glossary termsI am surprised their are not more community postings for the issues. Read More