Month: July 2024
FileHandler in OneDrive availibleOn.allowMultiSelect does not seem to work
Hello,
I am trying to develop a plugin for OneDrive and for it to work properly it needs to be able to be called with multiple files selected.
My addIn section of the Application registration manifest
“addIns”: [
{
“id”: “d0af6c7f-1cd0-4843-93fe-578801c56db5”,
“type”: “FileHandler”,
“properties”: [
{
“key”: “version”,
“value”: “2”
},
{
“key”: “fileTypeDisplayName”,
“value”: “digidoc”
},
{
“key”: “appIcon”,
“value”: “{“svg”:null,”png1x”:”<censored>”,”png1.5x”:”<censored>”,”png2x”:”<censored>”}”
},
{
“key”: “fileTypeIcon”,
“value”: “{“svg”:null,”png1x”:”<censored>”,”png1.5x”:”<censored>”,”png2x”:”<censored>”}”
},
{
“key”: “actions”,
“value”: “[{“type”:”custom”,”url”:”<censored>”,”availableOn”:{“file”:{“extensions”:[“*”]},”web”:{},”allowMultiSelect”:true},”displayName”:”Sign file(s)”,”shortDisplayName”:”Sign”,”icon”:{“png1x”:”<censored>”}},{“type”:”custom”,”url”:”<censored>”,”availableOn”:{“file”:{“extensions”:[“*”]},”web”:{},”allowMultiSelect”:true},”displayName”:”Send file(s) for signing”,”shortDisplayName”:”Send for signing”,”icon”:{“png1x”:”<censored>”}},{“type”:”open”,”url”:”<censored>”,”availableOn”:{“file”:{“extensions”:[“.asice”]},”web”:{}}}]”
}
]
}
]
My problem is that while custom actions have allowMultiSelect set to true in OneDrive environment I can not select more than 1 file and call my plugin out.
One file selected custom FileHandler actions are present
Multiple files selected custom FileHandler actions are nowhere to be found
With that I have a question, how can I select multiple files and call out my plugin?
I am facing also a problem where custom actions appear with plugin name, but as this already was reported (
) I will not talk a lot about that in this post.
Hello, I am trying to develop a plugin for OneDrive and for it to work properly it needs to be able to be called with multiple files selected. My addIn section of the Application registration manifest “addIns”: [
{
“id”: “d0af6c7f-1cd0-4843-93fe-578801c56db5”,
“type”: “FileHandler”,
“properties”: [
{
“key”: “version”,
“value”: “2”
},
{
“key”: “fileTypeDisplayName”,
“value”: “digidoc”
},
{
“key”: “appIcon”,
“value”: “{“svg”:null,”png1x”:”<censored>”,”png1.5x”:”<censored>”,”png2x”:”<censored>”}”
},
{
“key”: “fileTypeIcon”,
“value”: “{“svg”:null,”png1x”:”<censored>”,”png1.5x”:”<censored>”,”png2x”:”<censored>”}”
},
{
“key”: “actions”,
“value”: “[{“type”:”custom”,”url”:”<censored>”,”availableOn”:{“file”:{“extensions”:[“*”]},”web”:{},”allowMultiSelect”:true},”displayName”:”Sign file(s)”,”shortDisplayName”:”Sign”,”icon”:{“png1x”:”<censored>”}},{“type”:”custom”,”url”:”<censored>”,”availableOn”:{“file”:{“extensions”:[“*”]},”web”:{},”allowMultiSelect”:true},”displayName”:”Send file(s) for signing”,”shortDisplayName”:”Send for signing”,”icon”:{“png1x”:”<censored>”}},{“type”:”open”,”url”:”<censored>”,”availableOn”:{“file”:{“extensions”:[“.asice”]},”web”:{}}}]”
}
]
}
] My problem is that while custom actions have allowMultiSelect set to true in OneDrive environment I can not select more than 1 file and call my plugin out. One file selected custom FileHandler actions are present Multiple files selected custom FileHandler actions are nowhere to be found With that I have a question, how can I select multiple files and call out my plugin? I am facing also a problem where custom actions appear with plugin name, but as this already was reported (https://techcommunity.microsoft.com/t5/onedrive-developer/filehandler-in-the-onedrive-context-menu-in-quot-my-files-quot/m-p/4169500) I will not talk a lot about that in this post. Read More
Azure Maps Route Matrix – Order of results
I’m working with the Route Matrix in Azure Maps, passing in multiple origins and multiple destinations.
I have a foreach loop getting the summary for each leg. The problem I think I have is I can’t tell what the points in the leg were. Are results always returned in the same order starting with the first origin and looping through the destinations then going to the second origin and so on?
For example (origin ordinal on left, destination ordinal on right)
[0][0]
[0][1]
[0][2]
[1][0]
[1][1]
[1][2]
[2][0]
[2][1]
[2][2]
Is there a way in the code below to programmatically get the origin and destination for each route summary?
MapsRoutingClient client = new MapsRoutingClient(credential);
RouteMatrixQuery routeMatrixQuery = new RouteMatrixQuery
{
Origins = new List<GeoPosition>()
{
new GeoPosition(42.3400064,-83.0481779),
new GeoPosition(46.4962385,-84.3575817),
new GeoPosition(45.0270536,-84.6891603)
},
Destinations = new List<GeoPosition>()
{
new GeoPosition(45.3760861, -84.9653651),
new GeoPosition(45.4297623,-84.9904332),
new GeoPosition(45.6426144,-85.0420799)
},
};
RouteMatrixOptions options = new RouteMatrixOptions(routeMatrixQuery)
{
// ignore current traffic issues
UseTrafficData = false
};
// Get results
Response<RouteMatrixResult> result = client.GetImmediateRouteMatrix(options);
// Route matrix result
foreach (IList<RouteMatrix> routeResult in result.Value.Matrix)
{
Console.WriteLine(“Route result:”);
foreach (RouteMatrix route in routeResult)
{
RouteLegSummary summary = route.Summary;
Console.WriteLine($”No traffic: {summary.NoTrafficTravelTimeInSeconds} seconds”);
Console.WriteLine($”Travel time: {summary.TravelTimeInSeconds} seconds”);
Console.WriteLine($”Travel length: {summary.LengthInMeters} meters”);
Console.WriteLine($”Departure at: {summary.DepartureTime.ToString()} meters”);
Console.WriteLine($”Arrive at: {summary.ArrivalTime.ToString()} meters”);
}
}
I’m working with the Route Matrix in Azure Maps, passing in multiple origins and multiple destinations. I have a foreach loop getting the summary for each leg. The problem I think I have is I can’t tell what the points in the leg were. Are results always returned in the same order starting with the first origin and looping through the destinations then going to the second origin and so on? For example (origin ordinal on left, destination ordinal on right)[0][0][0][1][0][2][1][0][1][1][1][2][2][0][2][1][2][2] Is there a way in the code below to programmatically get the origin and destination for each route summary?MapsRoutingClient client = new MapsRoutingClient(credential);
RouteMatrixQuery routeMatrixQuery = new RouteMatrixQuery
{
Origins = new List<GeoPosition>()
{
new GeoPosition(42.3400064,-83.0481779),
new GeoPosition(46.4962385,-84.3575817),
new GeoPosition(45.0270536,-84.6891603)
},
Destinations = new List<GeoPosition>()
{
new GeoPosition(45.3760861, -84.9653651),
new GeoPosition(45.4297623,-84.9904332),
new GeoPosition(45.6426144,-85.0420799)
},
};
RouteMatrixOptions options = new RouteMatrixOptions(routeMatrixQuery)
{
// ignore current traffic issues
UseTrafficData = false
};
// Get results
Response<RouteMatrixResult> result = client.GetImmediateRouteMatrix(options);
// Route matrix result
foreach (IList<RouteMatrix> routeResult in result.Value.Matrix)
{
Console.WriteLine(“Route result:”);
foreach (RouteMatrix route in routeResult)
{
RouteLegSummary summary = route.Summary;
Console.WriteLine($”No traffic: {summary.NoTrafficTravelTimeInSeconds} seconds”);
Console.WriteLine($”Travel time: {summary.TravelTimeInSeconds} seconds”);
Console.WriteLine($”Travel length: {summary.LengthInMeters} meters”);
Console.WriteLine($”Departure at: {summary.DepartureTime.ToString()} meters”);
Console.WriteLine($”Arrive at: {summary.ArrivalTime.ToString()} meters”);
}
} Read More
Work Email
I keep getting error codes when attempting to sign into my new work email with outlook. I can get into Microsoft 365 but have no options to get into my outlook email from there. I cannot sign in on any device.
I keep getting error codes when attempting to sign into my new work email with outlook. I can get into Microsoft 365 but have no options to get into my outlook email from there. I cannot sign in on any device. Read More
Issue map prompts to properties
Hi,
I am trying to create a new user account runbook so it can be used in the Self Service Portal. I start my runbook with an initialization of data and the following details:
I have created my Service Request template and my Runbook automation activity template. In my Request Offering, I can map LastName, FirstName, etc., but I am not able to map Branch. What could be the issue? I need to know in which branch they work and I want it to be a simple list so they can choose from it.
Please let me know if more information is required.
Thanks for the help 🙂
Hi,I am trying to create a new user account runbook so it can be used in the Self Service Portal. I start my runbook with an initialization of data and the following details: I have created my Service Request template and my Runbook automation activity template. In my Request Offering, I can map LastName, FirstName, etc., but I am not able to map Branch. What could be the issue? I need to know in which branch they work and I want it to be a simple list so they can choose from it. Please let me know if more information is required.Thanks for the help 🙂 Read More
New on Microsoft AppSource: May 12-15, 2024
We continue to expand the Microsoft AppSource ecosystem. For this volume, 12 new offers successfully met the onboarding criteria and went live. See details of the new offers below:
Get it now in our marketplace
Consultancy for Marketing and Customer Insights (Ignite Plus): Imperium Dynamics offers a guided methodology for training, basic journeys, configuring brand templates, and quick deployment of Microsoft Dynamics 365 Marketing and Customer Insights. The app features AI-generated insights, automated workflows, and personalized recommendations to optimize customer journeys and maximize customer lifetime value.
Consultancy for Marketing and Customer Insights (Ignite): Imperium Dynamics offers a guided methodology for training, basic journeys, configuring brand templates, and quick deployment of Microsoft Dynamics 365 Marketing and Customer Insights. The app features AI-generated insights, automated workflows, and personalized recommendations to optimize customer journeys and maximize customer lifetime value.
Consultancy for Marketing and Customer Insights (Transform): Imperium Dynamics offers a guided methodology for training, basic journeys, configuring brand templates, and quick deployment of Microsoft Dynamics 365 Marketing and Customer Insights. The app features AI-generated insights, automated workflows, and personalized recommendations to optimize customer journeys and maximize customer lifetime value.
Consultancy for Microsoft Teams: Imperium Dynamics offers specialized consulting services to help businesses unlock the full value of Microsoft Teams. Expert consultants streamline the deployment process, offer ongoing support and training, and facilitate seamless integration with existing systems. They also invest time in understanding unique data management needs and develop customized solutions aligned with organizational requirements.
Jurisprudencia GPT LATAM: Available in Spanish, Jurisprudencia GPT is an AI pre-trained with judicial jurisprudence publications, specializing in legal knowledge and law application. With generative AI like ChatGPT, you can talk to an expert assistant (ChatBot) about various areas of law and their application. The AI is trained only with public information from the judiciary, ensuring ethical and responsible use.
Jurisprudencia GPT: Available in Portuguese for Brazil, Jurisprudencia GPT is an AI pre-trained with judicial jurisprudence publications, specializing in legal knowledge and law application. With generative AI like ChatGPT, you can talk to an expert assistant (ChatBot) about various areas of law and their application. The AI is trained only with public information from the judiciary, ensuring ethical and responsible use.
Go further with workshops, proofs of concept, and implementations
NNIT – Power Platform – Batch Management: NNIT Batch Management offers an automated workflow that streamlines batch release processes across different products, providing a single process overview of each batch’s current quality release status. This enables a faster and stronger QA process, cost optimization, and real-time releases based on rules-based automated batch release processes. The system also allows for significant product-specific batch release-related tailoring of the automated process.
Rebel Approach: The Rebel Approach is a low-code technology solution using Microsoft Power Platform that maximizes operational efficiency, reduces costs, and achieves strategic goals. Consultants work closely with clients throughout the development process, from analysis and design to implementation and training. The approach includes a scrum methodology and testing of solutions across the entire Microsoft Power Platform stack. Training and technical documentation are provided to end-users before organization-wide rollout. This offer is available in The Netherlands.
SharePoint Training: This intensive course covers all aspects of Microsoft SharePoint, from basic to advanced skills. Learn how to create and customize SharePoint sites, manage libraries and lists, design pages, and configure permissions. Suitable for beginners and advanced users, the course includes practical demonstrations, interactive exercises, and real-world case studies.
Talan – Copilot for Microsoft 365: 1-Day Workshop: Talan offers a workshop to help businesses implement Copilot for Microsoft 365. The workshop includes technical and functional analysis, demonstrating the value of Copilot, and change management strategies to encourage adoption. This workshop is available in France.
Contact our partners
Axians Calling with Teams Phone and Azure
This content was generated by Microsoft Azure OpenAI and then revised by human editors.
Microsoft Tech Community – Latest Blogs –Read More
MATLAB wont start on Linux. It did yesterday.
I use MATLAB on Linux every day. It wouldn’t start this morning, reporting a memory problem. I rebooted which didn’t fix anything. I then updated to R2024a (I was on R2023b) and still it wont start. Here’s what I see when I run it from the command line:
$ matlab
MATLAB is selecting SOFTWARE rendering.
library initialization failed – unable to allocate file descriptor table – out of memory
MATLAB is exiting because of fatal error
Killed
$ free -m
total used free shared buff/cache available
Mem: 31531 4149 23394 32 4490 27381
Swap: 975 0 975
$ uname -a
Linux opsproc3 6.6.13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.13-1 (2024-01-20) x86_64 GNU/Linux
Any suggestions as to what the problem might be? I didn’t make any changes to my computer.I use MATLAB on Linux every day. It wouldn’t start this morning, reporting a memory problem. I rebooted which didn’t fix anything. I then updated to R2024a (I was on R2023b) and still it wont start. Here’s what I see when I run it from the command line:
$ matlab
MATLAB is selecting SOFTWARE rendering.
library initialization failed – unable to allocate file descriptor table – out of memory
MATLAB is exiting because of fatal error
Killed
$ free -m
total used free shared buff/cache available
Mem: 31531 4149 23394 32 4490 27381
Swap: 975 0 975
$ uname -a
Linux opsproc3 6.6.13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.13-1 (2024-01-20) x86_64 GNU/Linux
Any suggestions as to what the problem might be? I didn’t make any changes to my computer. I use MATLAB on Linux every day. It wouldn’t start this morning, reporting a memory problem. I rebooted which didn’t fix anything. I then updated to R2024a (I was on R2023b) and still it wont start. Here’s what I see when I run it from the command line:
$ matlab
MATLAB is selecting SOFTWARE rendering.
library initialization failed – unable to allocate file descriptor table – out of memory
MATLAB is exiting because of fatal error
Killed
$ free -m
total used free shared buff/cache available
Mem: 31531 4149 23394 32 4490 27381
Swap: 975 0 975
$ uname -a
Linux opsproc3 6.6.13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.13-1 (2024-01-20) x86_64 GNU/Linux
Any suggestions as to what the problem might be? I didn’t make any changes to my computer. linux, memory MATLAB Answers — New Questions
calculate predictions with weights and bias which extracted from LSTM model
Hello,
I’am trying to calculate outputs using parameters from LSTM model (recurrentweight, inputweight, bias)
but output is different between "below codes" and "output from code Y=predict(net,X)".
please help me if you know the problems.
Thank you.
My network structure: (simple network)
layers = [
sequenceInputLayer(9,"Normalization","none") % number of input parameters are 9
lstmLayer(256)
fullyConnectedLayer(1)];
options = trainingOptions("adam", …
MaxEpochs=2000, …
SequencePaddingDirection="left", …
Shuffle="every-epoch", …
Plots="training-progress", …
Verbose=false);
net = trainnet(X,Y,layers,"mse",options);
My code to extract the weights and bias:
R=net.Layers(2,1).RecurrentWeights;
W=net.Layers(2,1).InputWeights;
b=net.Layers(2,1).Bias;
Fc_W=net.Layers(3,1).Weights;
Fc_B=net.Layers(3,1).Bias;
Code for extract parameters of LSTM Layer (input, forget, cell, output)
HiddenLayersNum = 256;
W.Wi=W(1:HiddenLayersNum,:);
W.Wf=W(HiddenLayersNum+1:2*HiddenLayersNum,:);
W.Wc=W(2*HiddenLayersNum+1:3*HiddenLayersNum,:);
W.Wo=W(3*HiddenLayersNum+1:4*HiddenLayersNum,:);
R.Ri=R(1:HiddenLayersNum,:);
R.Rf=R(HiddenLayersNum+1:2*HiddenLayersNum,:);
R.Rc=R(2*HiddenLayersNum+1:3*HiddenLayersNum,:);
R.Ro=R(3*HiddenLayersNum+1:4*HiddenLayersNum,:);
B.bi=b(1,:);
B.bf=b(HiddenLayersNum+1:2*HiddenLayersNum,:);
B.bc=b(2*HiddenLayersNum+1:3*HiddenLayersNum,:);
B.bo=b(3*HiddenLayersNum+1:4*HiddenLayersNum,:);
h=net.State.Value{1,1}; % Hiddenstate
c=net.State.Value{2,1}; % Cellstate
Code for calculate LSTM Layer output:
% Input Gate
Z = W.Wi*X+R.Ri*h+B.bi; % x is new intput value for prediction (ex: x=[1 5 20 1 2];)
I = 1.0 ./ (1.0 + exp(-Z)); % Input gate
% Forget Gate
f =W.Wf*X+R.Rf*h+B.bf;
F = 1.0 ./ (1.0 + exp(-f)); % Forget gate
% Layer Input
g=W.Wc*X+R.Rc*h+B.bc; % Layer input
G=tanh(g);
% Output Layer
output = W.Wo*X+R.Ro*h_prev+B.bo;
output = 1.0 ./ (1.0 + exp(-output)); % Output Gate
% Cell State
cellgate=F.*c+I.*G; % Cell Gate
cellgate=cellgate;
% Output (Hidden) State
hidden=O.*tanh(cellgate); % Output State
hidden=dlarray(hidden);
L1 = relu(hidden);
Code for calculate output in fullyconnected Layer:
Fc=Fc_W*L1+Fc_BHello,
I’am trying to calculate outputs using parameters from LSTM model (recurrentweight, inputweight, bias)
but output is different between "below codes" and "output from code Y=predict(net,X)".
please help me if you know the problems.
Thank you.
My network structure: (simple network)
layers = [
sequenceInputLayer(9,"Normalization","none") % number of input parameters are 9
lstmLayer(256)
fullyConnectedLayer(1)];
options = trainingOptions("adam", …
MaxEpochs=2000, …
SequencePaddingDirection="left", …
Shuffle="every-epoch", …
Plots="training-progress", …
Verbose=false);
net = trainnet(X,Y,layers,"mse",options);
My code to extract the weights and bias:
R=net.Layers(2,1).RecurrentWeights;
W=net.Layers(2,1).InputWeights;
b=net.Layers(2,1).Bias;
Fc_W=net.Layers(3,1).Weights;
Fc_B=net.Layers(3,1).Bias;
Code for extract parameters of LSTM Layer (input, forget, cell, output)
HiddenLayersNum = 256;
W.Wi=W(1:HiddenLayersNum,:);
W.Wf=W(HiddenLayersNum+1:2*HiddenLayersNum,:);
W.Wc=W(2*HiddenLayersNum+1:3*HiddenLayersNum,:);
W.Wo=W(3*HiddenLayersNum+1:4*HiddenLayersNum,:);
R.Ri=R(1:HiddenLayersNum,:);
R.Rf=R(HiddenLayersNum+1:2*HiddenLayersNum,:);
R.Rc=R(2*HiddenLayersNum+1:3*HiddenLayersNum,:);
R.Ro=R(3*HiddenLayersNum+1:4*HiddenLayersNum,:);
B.bi=b(1,:);
B.bf=b(HiddenLayersNum+1:2*HiddenLayersNum,:);
B.bc=b(2*HiddenLayersNum+1:3*HiddenLayersNum,:);
B.bo=b(3*HiddenLayersNum+1:4*HiddenLayersNum,:);
h=net.State.Value{1,1}; % Hiddenstate
c=net.State.Value{2,1}; % Cellstate
Code for calculate LSTM Layer output:
% Input Gate
Z = W.Wi*X+R.Ri*h+B.bi; % x is new intput value for prediction (ex: x=[1 5 20 1 2];)
I = 1.0 ./ (1.0 + exp(-Z)); % Input gate
% Forget Gate
f =W.Wf*X+R.Rf*h+B.bf;
F = 1.0 ./ (1.0 + exp(-f)); % Forget gate
% Layer Input
g=W.Wc*X+R.Rc*h+B.bc; % Layer input
G=tanh(g);
% Output Layer
output = W.Wo*X+R.Ro*h_prev+B.bo;
output = 1.0 ./ (1.0 + exp(-output)); % Output Gate
% Cell State
cellgate=F.*c+I.*G; % Cell Gate
cellgate=cellgate;
% Output (Hidden) State
hidden=O.*tanh(cellgate); % Output State
hidden=dlarray(hidden);
L1 = relu(hidden);
Code for calculate output in fullyconnected Layer:
Fc=Fc_W*L1+Fc_B Hello,
I’am trying to calculate outputs using parameters from LSTM model (recurrentweight, inputweight, bias)
but output is different between "below codes" and "output from code Y=predict(net,X)".
please help me if you know the problems.
Thank you.
My network structure: (simple network)
layers = [
sequenceInputLayer(9,"Normalization","none") % number of input parameters are 9
lstmLayer(256)
fullyConnectedLayer(1)];
options = trainingOptions("adam", …
MaxEpochs=2000, …
SequencePaddingDirection="left", …
Shuffle="every-epoch", …
Plots="training-progress", …
Verbose=false);
net = trainnet(X,Y,layers,"mse",options);
My code to extract the weights and bias:
R=net.Layers(2,1).RecurrentWeights;
W=net.Layers(2,1).InputWeights;
b=net.Layers(2,1).Bias;
Fc_W=net.Layers(3,1).Weights;
Fc_B=net.Layers(3,1).Bias;
Code for extract parameters of LSTM Layer (input, forget, cell, output)
HiddenLayersNum = 256;
W.Wi=W(1:HiddenLayersNum,:);
W.Wf=W(HiddenLayersNum+1:2*HiddenLayersNum,:);
W.Wc=W(2*HiddenLayersNum+1:3*HiddenLayersNum,:);
W.Wo=W(3*HiddenLayersNum+1:4*HiddenLayersNum,:);
R.Ri=R(1:HiddenLayersNum,:);
R.Rf=R(HiddenLayersNum+1:2*HiddenLayersNum,:);
R.Rc=R(2*HiddenLayersNum+1:3*HiddenLayersNum,:);
R.Ro=R(3*HiddenLayersNum+1:4*HiddenLayersNum,:);
B.bi=b(1,:);
B.bf=b(HiddenLayersNum+1:2*HiddenLayersNum,:);
B.bc=b(2*HiddenLayersNum+1:3*HiddenLayersNum,:);
B.bo=b(3*HiddenLayersNum+1:4*HiddenLayersNum,:);
h=net.State.Value{1,1}; % Hiddenstate
c=net.State.Value{2,1}; % Cellstate
Code for calculate LSTM Layer output:
% Input Gate
Z = W.Wi*X+R.Ri*h+B.bi; % x is new intput value for prediction (ex: x=[1 5 20 1 2];)
I = 1.0 ./ (1.0 + exp(-Z)); % Input gate
% Forget Gate
f =W.Wf*X+R.Rf*h+B.bf;
F = 1.0 ./ (1.0 + exp(-f)); % Forget gate
% Layer Input
g=W.Wc*X+R.Rc*h+B.bc; % Layer input
G=tanh(g);
% Output Layer
output = W.Wo*X+R.Ro*h_prev+B.bo;
output = 1.0 ./ (1.0 + exp(-output)); % Output Gate
% Cell State
cellgate=F.*c+I.*G; % Cell Gate
cellgate=cellgate;
% Output (Hidden) State
hidden=O.*tanh(cellgate); % Output State
hidden=dlarray(hidden);
L1 = relu(hidden);
Code for calculate output in fullyconnected Layer:
Fc=Fc_W*L1+Fc_B lstm, weight, interpret, deep learning MATLAB Answers — New Questions
How to remove repeating elements but maintain occurrences in an array?
Is there a way that I can get the first occurrence of consecutively repeating values, even if the same value occurs at few different places in the matrix?
Say I have a matrix
X=[2 2 2 2 -1 -1 -1 6 6 6 6 6 5 5 5 2 2 2 2 7 7 6 6]
I want the result to be
ans=[2 -1 6 5 2 7 6].
I’ve checked a similar question <http://www.mathworks.com/matlabcentral/answers/16667-how-to-remove-repeating-elements-from-an-array How to remove repeating elements from an array> but using unique and keeping the same order as original matrix gives
ans=[2 -1 6 5 7].
I know I can use a loop like below. But I was wondering if there’s a function for this.
for i=1:(length(X)-1)
if (X(i+1,6)-X(i,6))~=0
ans(i,1)=X(i+1,6);
else
ans(i,1)=NaN;
end
end
A function to do this will be great.Is there a way that I can get the first occurrence of consecutively repeating values, even if the same value occurs at few different places in the matrix?
Say I have a matrix
X=[2 2 2 2 -1 -1 -1 6 6 6 6 6 5 5 5 2 2 2 2 7 7 6 6]
I want the result to be
ans=[2 -1 6 5 2 7 6].
I’ve checked a similar question <http://www.mathworks.com/matlabcentral/answers/16667-how-to-remove-repeating-elements-from-an-array How to remove repeating elements from an array> but using unique and keeping the same order as original matrix gives
ans=[2 -1 6 5 7].
I know I can use a loop like below. But I was wondering if there’s a function for this.
for i=1:(length(X)-1)
if (X(i+1,6)-X(i,6))~=0
ans(i,1)=X(i+1,6);
else
ans(i,1)=NaN;
end
end
A function to do this will be great. Is there a way that I can get the first occurrence of consecutively repeating values, even if the same value occurs at few different places in the matrix?
Say I have a matrix
X=[2 2 2 2 -1 -1 -1 6 6 6 6 6 5 5 5 2 2 2 2 7 7 6 6]
I want the result to be
ans=[2 -1 6 5 2 7 6].
I’ve checked a similar question <http://www.mathworks.com/matlabcentral/answers/16667-how-to-remove-repeating-elements-from-an-array How to remove repeating elements from an array> but using unique and keeping the same order as original matrix gives
ans=[2 -1 6 5 7].
I know I can use a loop like below. But I was wondering if there’s a function for this.
for i=1:(length(X)-1)
if (X(i+1,6)-X(i,6))~=0
ans(i,1)=X(i+1,6);
else
ans(i,1)=NaN;
end
end
A function to do this will be great. array, repeating elements, unique, sort, matrix, matrix manipulation MATLAB Answers — New Questions
Why i am getting the wrong graph values Active and Non Active even in code even i used the if statment to check whether Kf_LMaxA, KfL_LMax and Cand D is constant or not
Greeting
Why i am getting the wrong graph Active and Non Active Receptor values when i put Kf_LMaxA,B;C;D = 0.01 even in code i used the if statment to check whether Kf_LMaxA, KfL_LMax and Cand D is constant or not . Kindly check and guide me where i am wrong. I attach the Source code and MATLAB GUI (Interface) and the screen shot.Greeting
Why i am getting the wrong graph Active and Non Active Receptor values when i put Kf_LMaxA,B;C;D = 0.01 even in code i used the if statment to check whether Kf_LMaxA, KfL_LMax and Cand D is constant or not . Kindly check and guide me where i am wrong. I attach the Source code and MATLAB GUI (Interface) and the screen shot. Greeting
Why i am getting the wrong graph Active and Non Active Receptor values when i put Kf_LMaxA,B;C;D = 0.01 even in code i used the if statment to check whether Kf_LMaxA, KfL_LMax and Cand D is constant or not . Kindly check and guide me where i am wrong. I attach the Source code and MATLAB GUI (Interface) and the screen shot. matlab coder MATLAB Answers — New Questions
Custom URL handler with MSIX package
I have packaged my classic Win32 application as an MSIX package to be distributed on the Microsoft Store.
Now, I want to register it as a handler for a custom URL protocol. With the classic Win32 installation, it was just a matter of creating some registry entries. However, I couldn’t find a way to do that with the AppxManifest.xml file.
Ideas?
I have packaged my classic Win32 application as an MSIX package to be distributed on the Microsoft Store. Now, I want to register it as a handler for a custom URL protocol. With the classic Win32 installation, it was just a matter of creating some registry entries. However, I couldn’t find a way to do that with the AppxManifest.xml file.Ideas? Read More
What causes Update Error 15270 in QuickBook and How can it be resolved?
I’m encountering Update Error 15270 in QuickBook. Every time I try to update the software, I receive this error message. What does it mean, and how can I fix it?
I’m encountering Update Error 15270 in QuickBook. Every time I try to update the software, I receive this error message. What does it mean, and how can I fix it? Read More
Next-generation SMB file services
Windows Server 2025 is the most secure and performant release yet! Download the evaluation now!
Looking to migrate from VMware to Windows Server 2025? Contact your Microsoft account team!
Looking to migrate from VMware to Windows Server 2025? Contact your Microsoft account team!
The 2024 Windows Server Summit was held in March and brought three days of demos, technical sessions, and Q&A, led by Microsoft engineers, guest experts from Intel®, and our MVP community. For more videos from this year’s Windows Server Summit, please find the full session list here.
This article focuses on improvements in SMB file services coming in Windows Server 2025.
Next-generation SMB file services
Radical changes are coming to the Server Message Block (SMB) and file services in Windows Server 2025 and Windows 11. Learn about new security behaviors, new functionality, and new scenarios available to your organization.
Microsoft Tech Community – Latest Blogs –Read More
extracting area of cracks from image
Dear all, I wrote this code to extract cracks from a tomography image. I tried many ways to remove the background and enhance the colors for better crack extraction, but some cracks are still missing. Can anyone help me improve the code?
clear all
close all
clc
A= imread(‘image_1567.png’);
[rows, columns, numberOfColorChannels] = size(A);
[centers,radii] = imfindcircles(A,[500 650],Sensitivity=0.95);
mask = circles2mask(centers,radii,size(A));
new_image = A;
new_image(~mask) = nan;
figure(1)
sigma = 20;
Iflatfield = imflatfield(new_image,sigma);
imshow(Iflatfield)
figure(2)
imhist(Iflatfield);
figure(3)
crackMask = Iflatfield < 50;
imshow(crackMask)Dear all, I wrote this code to extract cracks from a tomography image. I tried many ways to remove the background and enhance the colors for better crack extraction, but some cracks are still missing. Can anyone help me improve the code?
clear all
close all
clc
A= imread(‘image_1567.png’);
[rows, columns, numberOfColorChannels] = size(A);
[centers,radii] = imfindcircles(A,[500 650],Sensitivity=0.95);
mask = circles2mask(centers,radii,size(A));
new_image = A;
new_image(~mask) = nan;
figure(1)
sigma = 20;
Iflatfield = imflatfield(new_image,sigma);
imshow(Iflatfield)
figure(2)
imhist(Iflatfield);
figure(3)
crackMask = Iflatfield < 50;
imshow(crackMask) Dear all, I wrote this code to extract cracks from a tomography image. I tried many ways to remove the background and enhance the colors for better crack extraction, but some cracks are still missing. Can anyone help me improve the code?
clear all
close all
clc
A= imread(‘image_1567.png’);
[rows, columns, numberOfColorChannels] = size(A);
[centers,radii] = imfindcircles(A,[500 650],Sensitivity=0.95);
mask = circles2mask(centers,radii,size(A));
new_image = A;
new_image(~mask) = nan;
figure(1)
sigma = 20;
Iflatfield = imflatfield(new_image,sigma);
imshow(Iflatfield)
figure(2)
imhist(Iflatfield);
figure(3)
crackMask = Iflatfield < 50;
imshow(crackMask) image analysis, crack identification, iflatfield MATLAB Answers — New Questions
How can I isolate some objects from a image?
(hot_air_balloons.jpg)
(canyon.jpg)
I try to isolate the 4 yellow hot air balloons from the image to paste them to canyon.jpg (second image). I aim to obtain a binary image that the pixesls of hot air ballons white and all other areas black to be able to isolate them from rest of the image. Could you help me to obtain that binary image?(hot_air_balloons.jpg)
(canyon.jpg)
I try to isolate the 4 yellow hot air balloons from the image to paste them to canyon.jpg (second image). I aim to obtain a binary image that the pixesls of hot air ballons white and all other areas black to be able to isolate them from rest of the image. Could you help me to obtain that binary image? (hot_air_balloons.jpg)
(canyon.jpg)
I try to isolate the 4 yellow hot air balloons from the image to paste them to canyon.jpg (second image). I aim to obtain a binary image that the pixesls of hot air ballons white and all other areas black to be able to isolate them from rest of the image. Could you help me to obtain that binary image? binary, image, image processing MATLAB Answers — New Questions
Termination criterion for Genetic Algorithm when used in context of feature selection??
I have tried for 50 iterations but on running the Matlab code the best fitness value of all iterations is coming out to be different at different times. How will I decide which will be the best features in such a condition.
Getting different best feature set for same number of iterations. How results should be interpreted so that I can come to a Termination criterion??I have tried for 50 iterations but on running the Matlab code the best fitness value of all iterations is coming out to be different at different times. How will I decide which will be the best features in such a condition.
Getting different best feature set for same number of iterations. How results should be interpreted so that I can come to a Termination criterion?? I have tried for 50 iterations but on running the Matlab code the best fitness value of all iterations is coming out to be different at different times. How will I decide which will be the best features in such a condition.
Getting different best feature set for same number of iterations. How results should be interpreted so that I can come to a Termination criterion?? genetic algorithm MATLAB Answers — New Questions
Windows 11 Power Mode Question/Help
I have a Dell XPS 15 9510 w/ i9-11900H that I’ve done a thermal paste and pad replacement on a few months ago. Setting the Windows mode to “Power efficiency” reduces power and a modest turbo boost drop (but still some)…performance and temperatures are still good. However, I’ve noticed that when I plug the machine in, the Power efficiency is not in effect, machine runs at full power/speed, and machine still bounces off of 100C threshold even when doing simple productivity apps. I don’t notice throttling but it still bothers me. Disabling turbo boost works and temperatures drop significantly, but there is also a performance hit. How come the “power efficiency” mode doesn’t apply when plugged in and is there a way to enable it (or set maximum boost frequency) when both on battery or AC power? Thanks.
I have a Dell XPS 15 9510 w/ i9-11900H that I’ve done a thermal paste and pad replacement on a few months ago. Setting the Windows mode to “Power efficiency” reduces power and a modest turbo boost drop (but still some)…performance and temperatures are still good. However, I’ve noticed that when I plug the machine in, the Power efficiency is not in effect, machine runs at full power/speed, and machine still bounces off of 100C threshold even when doing simple productivity apps. I don’t notice throttling but it still bothers me. Disabling turbo boost works and temperatures drop significantly, but there is also a performance hit. How come the “power efficiency” mode doesn’t apply when plugged in and is there a way to enable it (or set maximum boost frequency) when both on battery or AC power? Thanks. Read More
Notification partage fichier dans un repertoire
Bonjour a tous, j’ai des dossier partagés a partir de mon serveur, j’aimerais que les utilisateurs reçoivent des notifications windows dès que un fichier est balancé dans un de leur répertoire partagé; Merci d’avance a tous, c’est un peu urgent !
Bonjour a tous, j’ai des dossier partagés a partir de mon serveur, j’aimerais que les utilisateurs reçoivent des notifications windows dès que un fichier est balancé dans un de leur répertoire partagé; Merci d’avance a tous, c’est un peu urgent ! Read More
How do I fix error code 12029 in QuickBook after update?
I keep encountering Quick-Books Error 12029 whenever I try to update my QuickBook software or pay-roll services. The error message says there’s a network timeout. I’ve tried restarting my computer and router, but the issue persists. What could be causing this error, and how can I resolve it?
I keep encountering Quick-Books Error 12029 whenever I try to update my QuickBook software or pay-roll services. The error message says there’s a network timeout. I’ve tried restarting my computer and router, but the issue persists. What could be causing this error, and how can I resolve it? Read More
How to fix QuickBook error 12031 after update?
Quick-Books error 12031 usually appears while updating Quick-Books Desktop and its added features. There are several update errors that a user might encounter while running Quick-Books update, where 120XX series of error appears as a result of internet connectivity issues.
Quick-Books error 12031 usually appears while updating Quick-Books Desktop and its added features. There are several update errors that a user might encounter while running Quick-Books update, where 120XX series of error appears as a result of internet connectivity issues. Read More
ERRO #VALOR! ao utilizar a função CONT.SES
Estou utilizando um banco de dados da ANVISA para um projeto de mestrado. O banco apresentava varias informações em uma mesma coluna e tive que fazer a separação dessas informações em inúmeras colunas para poder analisar. Tenho informações se a reação adversa ao medicamento são graves (sim= codifiquei igual a 1) ou não graves (não= codifiquei igual a 2). Essas informações ocupam as colunas EG:HG.
Depois tenho colunas relacionadas a gravidade da reação adversa ao medicamento (tenho 7 possíveis respostas), essas informações ocupam as colunas HH:QQ.
Gostaria de contar entre as reações adversas graves (EG:HG =1) quantas vezes aparece a gravidade de ameaça a vida, por exemplo (HH:QQ = 1 – ameaça a vida está codificada como 1)
Apliquei a fórmula =CONT.SES(EG:HG;1;HH:QQ;1) porém está dando erro #VALOR! e já tentei ver se está com algum vinculo e o erro continua aparecendo.
Alguem pode me ajudar como resolver?
Estou utilizando um banco de dados da ANVISA para um projeto de mestrado. O banco apresentava varias informações em uma mesma coluna e tive que fazer a separação dessas informações em inúmeras colunas para poder analisar. Tenho informações se a reação adversa ao medicamento são graves (sim= codifiquei igual a 1) ou não graves (não= codifiquei igual a 2). Essas informações ocupam as colunas EG:HG.Depois tenho colunas relacionadas a gravidade da reação adversa ao medicamento (tenho 7 possíveis respostas), essas informações ocupam as colunas HH:QQ.Gostaria de contar entre as reações adversas graves (EG:HG =1) quantas vezes aparece a gravidade de ameaça a vida, por exemplo (HH:QQ = 1 – ameaça a vida está codificada como 1)Apliquei a fórmula =CONT.SES(EG:HG;1;HH:QQ;1) porém está dando erro #VALOR! e já tentei ver se está com algum vinculo e o erro continua aparecendo.Alguem pode me ajudar como resolver? Read More