Month: July 2024
Looking for an answer to a specific case within Exchange Hybrid Free/Busy sharing across two org.
Hello,
At first let me say that we are really exhausted by finding some real answers for our problem. We tried Microsoft Official support which leads us nowhere, we read official and un-official documentations but the answer is nowhere to find. We have this problem for months and we can’t find any reliable source of information to answer our questions.
The context:
We have two separate organizations. By separate organization I mean separate AD DS, separate M365 and MS Entra ID, separate physical place, separate management etc..The setup within these two organizations:Organization A:AD DS, ADFS, AAD Connect, M365 (MS Entra ID), Exchange Online (only)All hybrid users in this organization have their active mailboxes in Exchange Online only. Non-hybrid users doesn’t have any mailbox.THERE IS NO EXCHANGE ON-PREMISE SERVER! ALL EXCHANGE ON-PREMISE SERVERS ARE DEALLOCATED AND DELETED!Exchange Online has sharing configured against Organization B Exchange On-premise server and Exchange Online server and it’s configured correctly.Organization B:AD DS, ADFS , AAD Connect, M365 (MS Entra ID), Exchange Hybrid (Exchange On-premise server and Exchange Online.Users in this organization have their mailboxes in Exchange On-prem or in Exchange Online (depends on the situation).Their autodiscover DNS is pointing to their Exchange On-premise server.
Now the problem:
We as Organization A are unable to retrieve Free/Busy status of calendars of users in Organization B WHEN the users in Organization B have their mailbox located in Exchange Online.
Let’s put it another way:
I as an user from Organization A can retrieve user’s free/busy status in Organization B when the user’s mailbox is located on Exchange on-premise. However, when the user is migrated to Exchange Online within the Exchange Hybrid setup in the Organization B I as the user from Organization A can no longer retrieve the calendar free/busy status from that user from Organization B.
The questions:
1. Why the free/busy status retrieval doesn’t work when an user in Organization A is retrieving it from an user in Organization B while the user’s mailbox of Organization B is located in Exchange Online within the Exchange Hybrid setup in Organization B?
We will be very thankful for any information to this case.
Hello,At first let me say that we are really exhausted by finding some real answers for our problem. We tried Microsoft Official support which leads us nowhere, we read official and un-official documentations but the answer is nowhere to find. We have this problem for months and we can’t find any reliable source of information to answer our questions. The context:We have two separate organizations. By separate organization I mean separate AD DS, separate M365 and MS Entra ID, separate physical place, separate management etc..The setup within these two organizations:Organization A:AD DS, ADFS, AAD Connect, M365 (MS Entra ID), Exchange Online (only)All hybrid users in this organization have their active mailboxes in Exchange Online only. Non-hybrid users doesn’t have any mailbox.THERE IS NO EXCHANGE ON-PREMISE SERVER! ALL EXCHANGE ON-PREMISE SERVERS ARE DEALLOCATED AND DELETED!Exchange Online has sharing configured against Organization B Exchange On-premise server and Exchange Online server and it’s configured correctly.Organization B:AD DS, ADFS , AAD Connect, M365 (MS Entra ID), Exchange Hybrid (Exchange On-premise server and Exchange Online.Users in this organization have their mailboxes in Exchange On-prem or in Exchange Online (depends on the situation).Their autodiscover DNS is pointing to their Exchange On-premise server. Now the problem:We as Organization A are unable to retrieve Free/Busy status of calendars of users in Organization B WHEN the users in Organization B have their mailbox located in Exchange Online.Let’s put it another way:I as an user from Organization A can retrieve user’s free/busy status in Organization B when the user’s mailbox is located on Exchange on-premise. However, when the user is migrated to Exchange Online within the Exchange Hybrid setup in the Organization B I as the user from Organization A can no longer retrieve the calendar free/busy status from that user from Organization B.The questions:1. Why the free/busy status retrieval doesn’t work when an user in Organization A is retrieving it from an user in Organization B while the user’s mailbox of Organization B is located in Exchange Online within the Exchange Hybrid setup in Organization B? We will be very thankful for any information to this case. Read More
Auto click a hyperlink within Outlook
Name of link is all the time the same name: Verify Request. So, it is a better way to click on link name called ‘Verify Request’. It is only one name within email message, regardless of a link: https://sendtokindle.amazon.com/verification/confirm/
As it is reliable email sender from Amazon, it is not an issue with the malicious code. Code is just an example as I do not know if this is suitable for Outlook:
strUrl = “https://sendtokindle.amazon.com/verification/confirm/XXX ‘ obviously you will have to parse the
appropriate address out of your message body
set xmlhttp = CreateObject(“MSXML2.ServerXMLHTTP”)
xmlhttp.open “GET”, strurl, false
xmlhttp.send “”
strBody = xmlhttp.responseText
set xmlhttp = nothing
Name of link is all the time the same name: Verify Request. So, it is a better way to click on link name called ‘Verify Request’. It is only one name within email message, regardless of a link: https://sendtokindle.amazon.com/verification/confirm/ As it is reliable email sender from Amazon, it is not an issue with the malicious code. Code is just an example as I do not know if this is suitable for Outlook: strUrl = “https://sendtokindle.amazon.com/verification/confirm/XXX ‘ obviously you will have to parse the
appropriate address out of your message body
set xmlhttp = CreateObject(“MSXML2.ServerXMLHTTP”)
xmlhttp.open “GET”, strurl, false
xmlhttp.send “”
strBody = xmlhttp.responseText
set xmlhttp = nothing Read More
Excel file error
I have a problem in an excel file in format 97-2003. It worked and opened good, suddenly when trying to open it gives me message file error: data may have been lost, the text only in cells don’t appear. The file size approximately 39 Mb, the file was first established in excel 2010 and I save it as 97-2003 from about 4 years, and continue working on it on excel 2007, till this problem appears.
I have a problem in an excel file in format 97-2003. It worked and opened good, suddenly when trying to open it gives me message file error: data may have been lost, the text only in cells don’t appear. The file size approximately 39 Mb, the file was first established in excel 2010 and I save it as 97-2003 from about 4 years, and continue working on it on excel 2007, till this problem appears. Read More
Mail merge error (text is cutting off)
Dears, I would highly appreciate your support on following issue.
I am using mail merge function and taking fields with long texts to word. Some texts are merged in full but some of them are cutting off. What may be the problem? Thank you.
Dears, I would highly appreciate your support on following issue. I am using mail merge function and taking fields with long texts to word. Some texts are merged in full but some of them are cutting off. What may be the problem? Thank you. Read More
Rigol DS1052E Digital Oscilloscope
Hey all!
I want to import data form Rigol DS1052E Digital Oscilloscope into Simulink at run time. Has anyone done this before ? Neither I can’t find the drivers for my Rigol Model nor I know how to do. Will someone help me with this ?
Regards,Hey all!
I want to import data form Rigol DS1052E Digital Oscilloscope into Simulink at run time. Has anyone done this before ? Neither I can’t find the drivers for my Rigol Model nor I know how to do. Will someone help me with this ?
Regards, Hey all!
I want to import data form Rigol DS1052E Digital Oscilloscope into Simulink at run time. Has anyone done this before ? Neither I can’t find the drivers for my Rigol Model nor I know how to do. Will someone help me with this ?
Regards, rigol ds1052e MATLAB Answers — New Questions
How to find the RMSE.. !
I am learning to calculate the RMSE, so i just created the simplest data that i could think of-
a = [2 3 4 5 1 6 3 6 7 8];
years = 1979:1988;
i have used the basic fitting tools to plot the linear trend-
For RMSE, i need the actual data values and estimated data values, how to find the estimated data values or is there a way to just calculate the RMSE?I am learning to calculate the RMSE, so i just created the simplest data that i could think of-
a = [2 3 4 5 1 6 3 6 7 8];
years = 1979:1988;
i have used the basic fitting tools to plot the linear trend-
For RMSE, i need the actual data values and estimated data values, how to find the estimated data values or is there a way to just calculate the RMSE? I am learning to calculate the RMSE, so i just created the simplest data that i could think of-
a = [2 3 4 5 1 6 3 6 7 8];
years = 1979:1988;
i have used the basic fitting tools to plot the linear trend-
For RMSE, i need the actual data values and estimated data values, how to find the estimated data values or is there a way to just calculate the RMSE? rmse, mse, statistics, regression, regstat MATLAB Answers — New Questions
Downloading word file as PDF from SharePoint using graph api looses sensitivity-label
I have a word file in SharePoint Online document library, this file has Sensitivity label assigned to it. I am downloading this file using Graph SDK with query parameter ‘format=pdf’. The file is successfully downloaded and saved as pdf, however, the sensitivity labels are lost.
I opened the same file in browser (Open in browser) and clicked on File –> Save as –> Download as PDF; this step retain the sensitivity labels.
Why is the file when downloading from API loosing its labels?
Note:
I tried downloading directly using SharePoint URL and there too Label information is lost.The sensitivity labels does not carry any control mechanisms i.e., they are used for information classification.
I have a word file in SharePoint Online document library, this file has Sensitivity label assigned to it. I am downloading this file using Graph SDK with query parameter ‘format=pdf’. The file is successfully downloaded and saved as pdf, however, the sensitivity labels are lost.Graph url: Graph url: https://graph.microsoft.com:443/v1.0/drives/b!blTHg…nEk/root:/test03/document.docx:/content?format=pdfI opened the same file in browser (Open in browser) and clicked on File –> Save as –> Download as PDF; this step retain the sensitivity labels.Why is the file when downloading from API loosing its labels?Note:I tried downloading directly using SharePoint URL and there too Label information is lost.The sensitivity labels does not carry any control mechanisms i.e., they are used for information classification. Read More
To make a contact available in Teams for everyone in my tenant
Hello
Please i need your help on this issue.
If i add a contact in my Teams desktop client, this will only be available for me?
How can I make it available for everyone in my tenant when they login to Microsoft Teams.
Hello Please i need your help on this issue. If i add a contact in my Teams desktop client, this will only be available for me? How can I make it available for everyone in my tenant when they login to Microsoft Teams. Read More
Can I create folders automatically linking / containing all files with a certain tag / column info?
For example, could I create a folder that contains or links to all files in other folders that were created by me? Or filtering on any other meta info like file creation date or custom columns? So almost like a predefined search?
For example, could I create a folder that contains or links to all files in other folders that were created by me? Or filtering on any other meta info like file creation date or custom columns? So almost like a predefined search? Read More
Overview of pending/open transferrequests
Greetings,
Since the introduction of NCE subscription transfers, we, as an Indirect provider, have observed a surge in both incoming and outgoing transfers. However, despite my understanding, there appears to be no straightforward method to obtain a comprehensive list of ALL transfer requests across all our customers, even when utilizing the API.
Is there something I might be overlooking?
Greetings,Since the introduction of NCE subscription transfers, we, as an Indirect provider, have observed a surge in both incoming and outgoing transfers. However, despite my understanding, there appears to be no straightforward method to obtain a comprehensive list of ALL transfer requests across all our customers, even when utilizing the API.Is there something I might be overlooking? Read More
No way to continue after Employment Verification with no indication of issue or how to fix
We want to add our app to the Microsoft Store, the submission is ready however we cannot submit until the account has been verified.
In the Legal info section we have entered the company details and the process is stuck at Employment Verification. Under rejected there is a clickable “Things to take care” which I assume displays the issues we need to resolve but which on clicking just makes the page jump a bit. We have no way to know how to proceed. Has anyone else encountered this?
We have create a ticket for help+support but a message appears saying “Not available for this support request.” and a “There was a problem retrieving the support request details.” .
What can we do?
We want to add our app to the Microsoft Store, the submission is ready however we cannot submit until the account has been verified. In the Legal info section we have entered the company details and the process is stuck at Employment Verification. Under rejected there is a clickable “Things to take care” which I assume displays the issues we need to resolve but which on clicking just makes the page jump a bit. We have no way to know how to proceed. Has anyone else encountered this? We have create a ticket for help+support but a message appears saying “Not available for this support request.” and a “There was a problem retrieving the support request details.” . What can we do? Read More
Exclude Linux disk from monitoring
Hello,
I get this message in SCOM and I want to exclude the disk from monitoring:
The disk partitions breaching threshold are:
Drive Name – Free space MB
/ – 7.94MB
So, it’s root and it is not neccessary to monitor / for a particular server.
I have created an override for / but it doesn’t work. The override value is only /. On other machines I have this override: /etc/resolv.conf|/boot/* this works. Could somone help to understand, why the override for / doesn’t work?
Thanks,
Arne
Hello,I get this message in SCOM and I want to exclude the disk from monitoring:The disk partitions breaching threshold are:Drive Name – Free space MB/ – 7.94MBSo, it’s root and it is not neccessary to monitor / for a particular server. I have created an override for / but it doesn’t work. The override value is only /. On other machines I have this override: /etc/resolv.conf|/boot/* this works. Could somone help to understand, why the override for / doesn’t work?Thanks,Arne Read More
How Can Site Collection Admins Adapt to SharePoint Online Development?
I am a Site Collection Administrator currently managing a SharePoint 2016 environment. Over the years, I’ve honed my skills in using the Content Editor and Script Editor web parts to add custom HTML, CSS, and JavaScript to .aspx pages across our site collection and its subsites. These techniques have allowed me to develop tailored solutions for our business unit without needing to engage SharePoint farm admins or server-level developers.
However, with our impending migration to SharePoint Online, I am concerned about how these skills and methods will translate. From what I understand, the ability to use these web parts is either non-existent or extremely limited in the SharePoint Online environment. Additionally, I will not have access to PowerShell or higher-level roles such as Global Administrator or SharePoint Administrator.
Given these constraints, I am seeking advice on the following:
How can I continue to provide development services in SharePoint Online without the use of Content Editor and Script Editor web parts?What tools and techniques should I start learning now to prepare for this transition?Are there modern alternatives or best practices in SharePoint Online that I can leverage to achieve similar outcomes?How can I effectively develop and deploy solutions within the boundaries of the permissions I will have in SharePoint Online?
I want to ensure that I can still deliver value to my business unit by creating custom solutions and maintaining a high level of service. Any insights, resources, or experiences you can share would be greatly appreciated as we navigate this significant change.
Thank you for your support and guidance!
I am a Site Collection Administrator currently managing a SharePoint 2016 environment. Over the years, I’ve honed my skills in using the Content Editor and Script Editor web parts to add custom HTML, CSS, and JavaScript to .aspx pages across our site collection and its subsites. These techniques have allowed me to develop tailored solutions for our business unit without needing to engage SharePoint farm admins or server-level developers. However, with our impending migration to SharePoint Online, I am concerned about how these skills and methods will translate. From what I understand, the ability to use these web parts is either non-existent or extremely limited in the SharePoint Online environment. Additionally, I will not have access to PowerShell or higher-level roles such as Global Administrator or SharePoint Administrator. Given these constraints, I am seeking advice on the following:How can I continue to provide development services in SharePoint Online without the use of Content Editor and Script Editor web parts?What tools and techniques should I start learning now to prepare for this transition?Are there modern alternatives or best practices in SharePoint Online that I can leverage to achieve similar outcomes?How can I effectively develop and deploy solutions within the boundaries of the permissions I will have in SharePoint Online?I want to ensure that I can still deliver value to my business unit by creating custom solutions and maintaining a high level of service. Any insights, resources, or experiences you can share would be greatly appreciated as we navigate this significant change. Thank you for your support and guidance! Read More
Fixing Q.B. Pay roll Tax Updates Not Working After Windows Update
Following a recent Windows update, I’ve encountered problems with Q.B. where the pay roll tax updates aren’t functioning correctly. Despite attempting to update the pay roll tax rates, the changes aren’t being applied as expected in Q.B. Pay roll. What steps should I take to address this issue and ensure that the pay roll tax updates function properly after a Windows update?
Following a recent Windows update, I’ve encountered problems with Q.B. where the pay roll tax updates aren’t functioning correctly. Despite attempting to update the pay roll tax rates, the changes aren’t being applied as expected in Q.B. Pay roll. What steps should I take to address this issue and ensure that the pay roll tax updates function properly after a Windows update? Read More
Unable to open my excel file its corrupted. I tried open and repair method too but it doesn’t workin
Unable to open my excel file its corrupted. I tried open and repair method too but it doesn’t working. Can you please fix me.
Unable to open my excel file its corrupted. I tried open and repair method too but it doesn’t working. Can you please fix me. Read More
What is the correct input for the Two-sample Kolmogorov-Smirnov test, when I need to compare two histograms?
What is the correct input for the Two-sample Kolmogorov-Smirnov test, when I need to compare two histograms?
Example 1. If the input data are quite similar, it looks like there is no difference in the output of the Two-sample Kolmogorov-Smirnov test, either if I use the original data, "X" and "Y", or the bin counts "NX" and "NY" (returned from the histcounts function), as inputs for the Two-sample Kolmogorov-Smirnov test:
% inputs
X = [2 5 7 10 11 12 13 14 16 17 18 19 22 23 24 29];
Y = [2 5 11 12 13 14 16 17 18 19 20 21 22 23 24 29];
[NX,edgesX] = histcounts(X,’NumBins’,6);
[NY,edgesY] = histcounts(Y,’NumBins’,6);
% plot
hold on
histogram(X,edgesX,’FaceAlpha’,0.1,’EdgeAlpha’,0.8)
histogram(Y,edgesY,’FaceAlpha’,0.1,’EdgeAlpha’,0.2)
% Two-sample Kolmogorov-Smirnov test
[h1,p1,ks2stat1] = kstest2(X,Y); % <– By using the original input data
[h2,p2,ks2stat2] = kstest2(NX,NY); % <– By using the Bin counts "NX" and "NY", returned from the "histcounts" function
table([[h1,p1,ks2stat1];[h2,p2,ks2stat2]] ,’VariableNames’, {‘h | p | ks2stat’},’RowNames’, {‘kstest2(X,Y)’, ‘kstest2(NX,NY)’})
% Reusult of Example 1
ans =
2×1 table
h | p | ks2stat
___________________________________________
kstest2(X,Y) 0 0.999035232339821 0.125
kstest2(NX,NY) 0 0.999956514899259 0.166666666666667
Example 2. If the input data are a bit different, it looks like there is difference in the output of the Two-sample Kolmogorov-Smirnov test, if I use the original data, "X" and "Y", or the bin counts "NX" and "NY" (returned from the histcounts function), as inputs for the Two-sample Kolmogorov-Smirnov test:
% inputs
X = [2 5 7 10 11 12 13 14 16 17 18 19 22 23 24 29];
Y = [2 5 11 12 13 14 16 17 18 19 20 21 22 23 24 29 29 29 29 29 29 29 29];
[NX,edgesX] = histcounts(X,’NumBins’,6);
[NY,edgesY] = histcounts(Y,’NumBins’,6);
% plot
hold on
histogram(X,edgesX,’FaceAlpha’,0.1,’EdgeAlpha’,0.8)
histogram(Y,edgesY,’FaceAlpha’,0.1,’EdgeAlpha’,0.2)
% Two-sample Kolmogorov-Smirnov test
[h1,p1,ks2stat1] = kstest2(X,Y);
[h2,p2,ks2stat2] = kstest2(NX,NY);
table([[h1,p1,ks2stat1];[h2,p2,ks2stat2]] ,’VariableNames’, {‘h | p | ks2stat’},’RowNames’, {‘kstest2(X,Y)’, ‘kstest2(NX,NY)’})
% Result of Example 2
ans =
2×1 table
h | p | ks2stat
___________________________________________
kstest2(X,Y) 0 0.251817384522441 0.315217391304348
kstest2(NX,NY) 0 0.809557310616653 0.333333333333333What is the correct input for the Two-sample Kolmogorov-Smirnov test, when I need to compare two histograms?
Example 1. If the input data are quite similar, it looks like there is no difference in the output of the Two-sample Kolmogorov-Smirnov test, either if I use the original data, "X" and "Y", or the bin counts "NX" and "NY" (returned from the histcounts function), as inputs for the Two-sample Kolmogorov-Smirnov test:
% inputs
X = [2 5 7 10 11 12 13 14 16 17 18 19 22 23 24 29];
Y = [2 5 11 12 13 14 16 17 18 19 20 21 22 23 24 29];
[NX,edgesX] = histcounts(X,’NumBins’,6);
[NY,edgesY] = histcounts(Y,’NumBins’,6);
% plot
hold on
histogram(X,edgesX,’FaceAlpha’,0.1,’EdgeAlpha’,0.8)
histogram(Y,edgesY,’FaceAlpha’,0.1,’EdgeAlpha’,0.2)
% Two-sample Kolmogorov-Smirnov test
[h1,p1,ks2stat1] = kstest2(X,Y); % <– By using the original input data
[h2,p2,ks2stat2] = kstest2(NX,NY); % <– By using the Bin counts "NX" and "NY", returned from the "histcounts" function
table([[h1,p1,ks2stat1];[h2,p2,ks2stat2]] ,’VariableNames’, {‘h | p | ks2stat’},’RowNames’, {‘kstest2(X,Y)’, ‘kstest2(NX,NY)’})
% Reusult of Example 1
ans =
2×1 table
h | p | ks2stat
___________________________________________
kstest2(X,Y) 0 0.999035232339821 0.125
kstest2(NX,NY) 0 0.999956514899259 0.166666666666667
Example 2. If the input data are a bit different, it looks like there is difference in the output of the Two-sample Kolmogorov-Smirnov test, if I use the original data, "X" and "Y", or the bin counts "NX" and "NY" (returned from the histcounts function), as inputs for the Two-sample Kolmogorov-Smirnov test:
% inputs
X = [2 5 7 10 11 12 13 14 16 17 18 19 22 23 24 29];
Y = [2 5 11 12 13 14 16 17 18 19 20 21 22 23 24 29 29 29 29 29 29 29 29];
[NX,edgesX] = histcounts(X,’NumBins’,6);
[NY,edgesY] = histcounts(Y,’NumBins’,6);
% plot
hold on
histogram(X,edgesX,’FaceAlpha’,0.1,’EdgeAlpha’,0.8)
histogram(Y,edgesY,’FaceAlpha’,0.1,’EdgeAlpha’,0.2)
% Two-sample Kolmogorov-Smirnov test
[h1,p1,ks2stat1] = kstest2(X,Y);
[h2,p2,ks2stat2] = kstest2(NX,NY);
table([[h1,p1,ks2stat1];[h2,p2,ks2stat2]] ,’VariableNames’, {‘h | p | ks2stat’},’RowNames’, {‘kstest2(X,Y)’, ‘kstest2(NX,NY)’})
% Result of Example 2
ans =
2×1 table
h | p | ks2stat
___________________________________________
kstest2(X,Y) 0 0.251817384522441 0.315217391304348
kstest2(NX,NY) 0 0.809557310616653 0.333333333333333 What is the correct input for the Two-sample Kolmogorov-Smirnov test, when I need to compare two histograms?
Example 1. If the input data are quite similar, it looks like there is no difference in the output of the Two-sample Kolmogorov-Smirnov test, either if I use the original data, "X" and "Y", or the bin counts "NX" and "NY" (returned from the histcounts function), as inputs for the Two-sample Kolmogorov-Smirnov test:
% inputs
X = [2 5 7 10 11 12 13 14 16 17 18 19 22 23 24 29];
Y = [2 5 11 12 13 14 16 17 18 19 20 21 22 23 24 29];
[NX,edgesX] = histcounts(X,’NumBins’,6);
[NY,edgesY] = histcounts(Y,’NumBins’,6);
% plot
hold on
histogram(X,edgesX,’FaceAlpha’,0.1,’EdgeAlpha’,0.8)
histogram(Y,edgesY,’FaceAlpha’,0.1,’EdgeAlpha’,0.2)
% Two-sample Kolmogorov-Smirnov test
[h1,p1,ks2stat1] = kstest2(X,Y); % <– By using the original input data
[h2,p2,ks2stat2] = kstest2(NX,NY); % <– By using the Bin counts "NX" and "NY", returned from the "histcounts" function
table([[h1,p1,ks2stat1];[h2,p2,ks2stat2]] ,’VariableNames’, {‘h | p | ks2stat’},’RowNames’, {‘kstest2(X,Y)’, ‘kstest2(NX,NY)’})
% Reusult of Example 1
ans =
2×1 table
h | p | ks2stat
___________________________________________
kstest2(X,Y) 0 0.999035232339821 0.125
kstest2(NX,NY) 0 0.999956514899259 0.166666666666667
Example 2. If the input data are a bit different, it looks like there is difference in the output of the Two-sample Kolmogorov-Smirnov test, if I use the original data, "X" and "Y", or the bin counts "NX" and "NY" (returned from the histcounts function), as inputs for the Two-sample Kolmogorov-Smirnov test:
% inputs
X = [2 5 7 10 11 12 13 14 16 17 18 19 22 23 24 29];
Y = [2 5 11 12 13 14 16 17 18 19 20 21 22 23 24 29 29 29 29 29 29 29 29];
[NX,edgesX] = histcounts(X,’NumBins’,6);
[NY,edgesY] = histcounts(Y,’NumBins’,6);
% plot
hold on
histogram(X,edgesX,’FaceAlpha’,0.1,’EdgeAlpha’,0.8)
histogram(Y,edgesY,’FaceAlpha’,0.1,’EdgeAlpha’,0.2)
% Two-sample Kolmogorov-Smirnov test
[h1,p1,ks2stat1] = kstest2(X,Y);
[h2,p2,ks2stat2] = kstest2(NX,NY);
table([[h1,p1,ks2stat1];[h2,p2,ks2stat2]] ,’VariableNames’, {‘h | p | ks2stat’},’RowNames’, {‘kstest2(X,Y)’, ‘kstest2(NX,NY)’})
% Result of Example 2
ans =
2×1 table
h | p | ks2stat
___________________________________________
kstest2(X,Y) 0 0.251817384522441 0.315217391304348
kstest2(NX,NY) 0 0.809557310616653 0.333333333333333 histcounts, kstest2, two-sample kolmogorov-smirnov test, distributions MATLAB Answers — New Questions
Program to Change the least number of a given Matrix Elements to get a condition on the sum of the numbers from collated row digits of the Matrix
I have a given Matrix A=k x n (k rows and n columns), with all elements digits in base 4,(can be only {0,1,2,3}). I want to write a program to change for any input matrix A to a new output B matrix respecting a condition. The condition is to change the least number of elements of A to form a modified matrix B(which keeps all the other unchanged elements of A), such that the k numbers of the row collated digits summed in base 4, are a multiple of (4^n)-1, expressed in base 4(n the number of columns of A and B)(The multiple must be the one such that B differs with the minimum nr of elements from A). Note that (4^n)-1 in base 4 is a row of n digits all 3s(3333…33, n times) . (4^3)-1 in base 4 = 333, However, a multiple of (4^3)-1, for instance [5*(4^3)-1] in base 4= 10323.
%I will give just an Example of a matrix A=3×6, k=3, n=6
A= [3,3,3,2,2,2; 3,2,3,3,1,2; 3,1,0,1,3,2]
%Convert row collated digits to numbers then to decimal
base2base(‘333222’,4,10)
base2base(‘323312’,4,10)
base2base(‘310132’,4,10)
%ans = ‘4074’
%ans = ‘3830’
%ans = ‘3358’
%Calculate their sum in base 10 of row digits 3 numbers
S=4074+3830+3358
%S = 11262
%Calculate (4^6) – 1 in decimal
(4^6) – 1
%4095
% One can see that a multiple of 2 of (4^6) – 1=8190, which can be expressed in base 4 , and is close to S
base2base(‘8190’,10,4)
%ans = ‘1333332’
%To get this row digits sum just one element change is sufficient, change element of A (2,1)=3 to B(2,1)=0, hence B is
B= [3,3,3,2,2,2; 0,2,3,3,1,2; 3,1,0,1,3,2]
base2base(‘333222’,4,10)
base2base(‘023312’,4,10)
base2base(‘310132’,4,10)
%ans = ‘4074’
%ans = ‘758’
%ans = ‘3358’
%Sum all in decimal to check if it is in base 4
S2=4074+758+3358
%S2 = 8190
% Which is the sought result. The program should be able to do such conversions of A to B for any input AI have a given Matrix A=k x n (k rows and n columns), with all elements digits in base 4,(can be only {0,1,2,3}). I want to write a program to change for any input matrix A to a new output B matrix respecting a condition. The condition is to change the least number of elements of A to form a modified matrix B(which keeps all the other unchanged elements of A), such that the k numbers of the row collated digits summed in base 4, are a multiple of (4^n)-1, expressed in base 4(n the number of columns of A and B)(The multiple must be the one such that B differs with the minimum nr of elements from A). Note that (4^n)-1 in base 4 is a row of n digits all 3s(3333…33, n times) . (4^3)-1 in base 4 = 333, However, a multiple of (4^3)-1, for instance [5*(4^3)-1] in base 4= 10323.
%I will give just an Example of a matrix A=3×6, k=3, n=6
A= [3,3,3,2,2,2; 3,2,3,3,1,2; 3,1,0,1,3,2]
%Convert row collated digits to numbers then to decimal
base2base(‘333222’,4,10)
base2base(‘323312’,4,10)
base2base(‘310132’,4,10)
%ans = ‘4074’
%ans = ‘3830’
%ans = ‘3358’
%Calculate their sum in base 10 of row digits 3 numbers
S=4074+3830+3358
%S = 11262
%Calculate (4^6) – 1 in decimal
(4^6) – 1
%4095
% One can see that a multiple of 2 of (4^6) – 1=8190, which can be expressed in base 4 , and is close to S
base2base(‘8190’,10,4)
%ans = ‘1333332’
%To get this row digits sum just one element change is sufficient, change element of A (2,1)=3 to B(2,1)=0, hence B is
B= [3,3,3,2,2,2; 0,2,3,3,1,2; 3,1,0,1,3,2]
base2base(‘333222’,4,10)
base2base(‘023312’,4,10)
base2base(‘310132’,4,10)
%ans = ‘4074’
%ans = ‘758’
%ans = ‘3358’
%Sum all in decimal to check if it is in base 4
S2=4074+758+3358
%S2 = 8190
% Which is the sought result. The program should be able to do such conversions of A to B for any input A I have a given Matrix A=k x n (k rows and n columns), with all elements digits in base 4,(can be only {0,1,2,3}). I want to write a program to change for any input matrix A to a new output B matrix respecting a condition. The condition is to change the least number of elements of A to form a modified matrix B(which keeps all the other unchanged elements of A), such that the k numbers of the row collated digits summed in base 4, are a multiple of (4^n)-1, expressed in base 4(n the number of columns of A and B)(The multiple must be the one such that B differs with the minimum nr of elements from A). Note that (4^n)-1 in base 4 is a row of n digits all 3s(3333…33, n times) . (4^3)-1 in base 4 = 333, However, a multiple of (4^3)-1, for instance [5*(4^3)-1] in base 4= 10323.
%I will give just an Example of a matrix A=3×6, k=3, n=6
A= [3,3,3,2,2,2; 3,2,3,3,1,2; 3,1,0,1,3,2]
%Convert row collated digits to numbers then to decimal
base2base(‘333222’,4,10)
base2base(‘323312’,4,10)
base2base(‘310132’,4,10)
%ans = ‘4074’
%ans = ‘3830’
%ans = ‘3358’
%Calculate their sum in base 10 of row digits 3 numbers
S=4074+3830+3358
%S = 11262
%Calculate (4^6) – 1 in decimal
(4^6) – 1
%4095
% One can see that a multiple of 2 of (4^6) – 1=8190, which can be expressed in base 4 , and is close to S
base2base(‘8190’,10,4)
%ans = ‘1333332’
%To get this row digits sum just one element change is sufficient, change element of A (2,1)=3 to B(2,1)=0, hence B is
B= [3,3,3,2,2,2; 0,2,3,3,1,2; 3,1,0,1,3,2]
base2base(‘333222’,4,10)
base2base(‘023312’,4,10)
base2base(‘310132’,4,10)
%ans = ‘4074’
%ans = ‘758’
%ans = ‘3358’
%Sum all in decimal to check if it is in base 4
S2=4074+758+3358
%S2 = 8190
% Which is the sought result. The program should be able to do such conversions of A to B for any input A min matrix elements change on condition MATLAB Answers — New Questions
How do I get DQN to output the policy I want
I’m solving a problem with DQN. This environment currently has 10 optional moves, 8 states, and 20 rounds per run. I want to keep my problem variables to a minimum. The optimaI’m solving a problem with DQN. This environment currently has 10 optional moves, 8 states, and 20 rounds per run. I want to keep my problem variables to a minimum. The optima I’m solving a problem with DQN. This environment currently has 10 optional moves, 8 states, and 20 rounds per run. I want to keep my problem variables to a minimum. The optima dqn MATLAB Answers — New Questions
Query on the use of %text string%
Using the tutorial below I created a shortcut to my ‘Recent items’ and it stated “Enter text string ‘%AppData%MicrosoftWindowsRecent’ in the ‘Location’ box. After completing the shortcut I find it takes me to the longer address ‘C:UsersKenAppDataRoamingMicrosoftWindowsRecent’.
It seems that ‘%textstring% is a search instruction to look for what follows after the second % character and then go to that full address.
If this is correct then can someone explain what is happening here and maybe give a couple more useful examples please? Maybe there is a list of useful %textstring% examples?
Using the tutorial below I created a shortcut to my ‘Recent items’ and it stated “Enter text string ‘%AppData%MicrosoftWindowsRecent’ in the ‘Location’ box. After completing the shortcut I find it takes me to the longer address ‘C:UsersKenAppDataRoamingMicrosoftWindowsRecent’.It seems that ‘%textstring% is a search instruction to look for what follows after the second % character and then go to that full address. If this is correct then can someone explain what is happening here and maybe give a couple more useful examples please? Maybe there is a list of useful %textstring% examples? Read More