Category: News
Empty pdf if table is saved as pdf
I am trying save the table t1 by uisng the suggested table-to-figure mathod. However, the saved pdf remains empty.
t1=table(ones(5));
fig = uifigure(‘Name’,’Numbers’);
t = uitable(fig,’Data’,t1);
exportapp(fig,’Peak_assigments.pdf’)I am trying save the table t1 by uisng the suggested table-to-figure mathod. However, the saved pdf remains empty.
t1=table(ones(5));
fig = uifigure(‘Name’,’Numbers’);
t = uitable(fig,’Data’,t1);
exportapp(fig,’Peak_assigments.pdf’) I am trying save the table t1 by uisng the suggested table-to-figure mathod. However, the saved pdf remains empty.
t1=table(ones(5));
fig = uifigure(‘Name’,’Numbers’);
t = uitable(fig,’Data’,t1);
exportapp(fig,’Peak_assigments.pdf’) uitable, pdf, saveas, exportapp MATLAB Answers — New Questions
Genetic algorithm with solution of pde toolbox
Hi I’m on project that find optimal parameter about transient heat transfer problem. (find optimal values that minimize temperature fluctuation)
I have problem about exceed maximum array size (about 1800GB) while solving ga problem
I defined a design domain contains multiple values (i.e. length, geometry properties, etc) and FEA using pde toolbox has finished
the last task what i have to do is find optimal values with solution of FEA using ga function and my pseudo code about FEA is here:
function [result, model] = Heattransfer(L1, t1, t2, t3, length_fin, num_fins, shelltype, shellmat, intermed, time)
thermalmodel = createpde(‘thermal’, ‘transient’);
tlist = 0:1:time*60*60;
% Skip code about geometries, BC, IC
result = solve(thermalmodel, tlist);
model = thermalmodel;
end
L1, t1, t2, t3, length_fin is about geometry parameters that is noninteger values (because it is length)
num_fins, shelltype, shellmat, intermed is also about geometry parameters that is interger values (because it is about number or material type, i implemented that decide material type, geometry type by select number like if shellmat == 1, steel / elseif shellmat == 2, polymer)
and code about ga is as below:
function value = ObjectiveFcn(a, time)
L1 = a(1);
t1 = a(2);
t2 = a(3);
t3 = a(4);
length_fin = a(5);
num_fins = a(6);
shelltype = a(7);
shellmat = a(8);
intermed = a(9);
result = Heattransfer(L1, t1, t2, t3, length_fin, num_fins, shelltype, shellmat, intermed, time);
T = result.Temperature;
std_dev = std(T, 0, 1);
value = mean(std_dev);
end
function [c, ceq] = Constraints(b)
L1 = b(1);
t1 = b(2);
t2 = b(3);
t3 = b(4);
length_fin = b(5);
c1 = L1 + t1 + t2 + t3 – 0.3; % 0.3 is total length of control volume
c2 = length_fin – t1;
c3 = length_fin – t3;
c = [c1; c2; c3];
ceq = [];
end
% a = [L1, t1, t2, t3, length_fin, num_fins, shelltype, shellmat, intermed]
lb = [0, 0, 0, 0, 0, 1, 1, 1, 1];
ub = [0.3, 0.01, 0.02, 0.01, 0.01, 374, 2, 3, 2];
intvar = [6, 7, 8, 9];
ObjectivefunWithTime = @(a) Objectivefun(a, time);
ConstraintsFcn = @(b) Constraints(b);
options = optimoptions(‘ga’, ‘Display’, ‘iter’, ‘PopulationSize’, 10,…
‘MaxGenerations’, 20, ‘CrossoverFraction’, 0.8, ‘UseParallel’, true);
[x_opt, fval] = ga(ObjectivefunWithTime, 9, [], [], [], [], lb, ub, ConstraintsFcn, intvar, options);
time is not design variable so I excepted it from objective function
In ub (upper bound), I actually want to set value for t1, t2, t3, length_fin as 0.3 to find optimal value widely (under Constraints) but when i set values like that, it results error for invalid geometry (conflicted in pde toolbox code) so I defined arbiturary values.
What should I do for achieve my goal? (find optimal value)
I’m sorry for messy code
If anyone knows about this, please comment.
Thank youHi I’m on project that find optimal parameter about transient heat transfer problem. (find optimal values that minimize temperature fluctuation)
I have problem about exceed maximum array size (about 1800GB) while solving ga problem
I defined a design domain contains multiple values (i.e. length, geometry properties, etc) and FEA using pde toolbox has finished
the last task what i have to do is find optimal values with solution of FEA using ga function and my pseudo code about FEA is here:
function [result, model] = Heattransfer(L1, t1, t2, t3, length_fin, num_fins, shelltype, shellmat, intermed, time)
thermalmodel = createpde(‘thermal’, ‘transient’);
tlist = 0:1:time*60*60;
% Skip code about geometries, BC, IC
result = solve(thermalmodel, tlist);
model = thermalmodel;
end
L1, t1, t2, t3, length_fin is about geometry parameters that is noninteger values (because it is length)
num_fins, shelltype, shellmat, intermed is also about geometry parameters that is interger values (because it is about number or material type, i implemented that decide material type, geometry type by select number like if shellmat == 1, steel / elseif shellmat == 2, polymer)
and code about ga is as below:
function value = ObjectiveFcn(a, time)
L1 = a(1);
t1 = a(2);
t2 = a(3);
t3 = a(4);
length_fin = a(5);
num_fins = a(6);
shelltype = a(7);
shellmat = a(8);
intermed = a(9);
result = Heattransfer(L1, t1, t2, t3, length_fin, num_fins, shelltype, shellmat, intermed, time);
T = result.Temperature;
std_dev = std(T, 0, 1);
value = mean(std_dev);
end
function [c, ceq] = Constraints(b)
L1 = b(1);
t1 = b(2);
t2 = b(3);
t3 = b(4);
length_fin = b(5);
c1 = L1 + t1 + t2 + t3 – 0.3; % 0.3 is total length of control volume
c2 = length_fin – t1;
c3 = length_fin – t3;
c = [c1; c2; c3];
ceq = [];
end
% a = [L1, t1, t2, t3, length_fin, num_fins, shelltype, shellmat, intermed]
lb = [0, 0, 0, 0, 0, 1, 1, 1, 1];
ub = [0.3, 0.01, 0.02, 0.01, 0.01, 374, 2, 3, 2];
intvar = [6, 7, 8, 9];
ObjectivefunWithTime = @(a) Objectivefun(a, time);
ConstraintsFcn = @(b) Constraints(b);
options = optimoptions(‘ga’, ‘Display’, ‘iter’, ‘PopulationSize’, 10,…
‘MaxGenerations’, 20, ‘CrossoverFraction’, 0.8, ‘UseParallel’, true);
[x_opt, fval] = ga(ObjectivefunWithTime, 9, [], [], [], [], lb, ub, ConstraintsFcn, intvar, options);
time is not design variable so I excepted it from objective function
In ub (upper bound), I actually want to set value for t1, t2, t3, length_fin as 0.3 to find optimal value widely (under Constraints) but when i set values like that, it results error for invalid geometry (conflicted in pde toolbox code) so I defined arbiturary values.
What should I do for achieve my goal? (find optimal value)
I’m sorry for messy code
If anyone knows about this, please comment.
Thank you Hi I’m on project that find optimal parameter about transient heat transfer problem. (find optimal values that minimize temperature fluctuation)
I have problem about exceed maximum array size (about 1800GB) while solving ga problem
I defined a design domain contains multiple values (i.e. length, geometry properties, etc) and FEA using pde toolbox has finished
the last task what i have to do is find optimal values with solution of FEA using ga function and my pseudo code about FEA is here:
function [result, model] = Heattransfer(L1, t1, t2, t3, length_fin, num_fins, shelltype, shellmat, intermed, time)
thermalmodel = createpde(‘thermal’, ‘transient’);
tlist = 0:1:time*60*60;
% Skip code about geometries, BC, IC
result = solve(thermalmodel, tlist);
model = thermalmodel;
end
L1, t1, t2, t3, length_fin is about geometry parameters that is noninteger values (because it is length)
num_fins, shelltype, shellmat, intermed is also about geometry parameters that is interger values (because it is about number or material type, i implemented that decide material type, geometry type by select number like if shellmat == 1, steel / elseif shellmat == 2, polymer)
and code about ga is as below:
function value = ObjectiveFcn(a, time)
L1 = a(1);
t1 = a(2);
t2 = a(3);
t3 = a(4);
length_fin = a(5);
num_fins = a(6);
shelltype = a(7);
shellmat = a(8);
intermed = a(9);
result = Heattransfer(L1, t1, t2, t3, length_fin, num_fins, shelltype, shellmat, intermed, time);
T = result.Temperature;
std_dev = std(T, 0, 1);
value = mean(std_dev);
end
function [c, ceq] = Constraints(b)
L1 = b(1);
t1 = b(2);
t2 = b(3);
t3 = b(4);
length_fin = b(5);
c1 = L1 + t1 + t2 + t3 – 0.3; % 0.3 is total length of control volume
c2 = length_fin – t1;
c3 = length_fin – t3;
c = [c1; c2; c3];
ceq = [];
end
% a = [L1, t1, t2, t3, length_fin, num_fins, shelltype, shellmat, intermed]
lb = [0, 0, 0, 0, 0, 1, 1, 1, 1];
ub = [0.3, 0.01, 0.02, 0.01, 0.01, 374, 2, 3, 2];
intvar = [6, 7, 8, 9];
ObjectivefunWithTime = @(a) Objectivefun(a, time);
ConstraintsFcn = @(b) Constraints(b);
options = optimoptions(‘ga’, ‘Display’, ‘iter’, ‘PopulationSize’, 10,…
‘MaxGenerations’, 20, ‘CrossoverFraction’, 0.8, ‘UseParallel’, true);
[x_opt, fval] = ga(ObjectivefunWithTime, 9, [], [], [], [], lb, ub, ConstraintsFcn, intvar, options);
time is not design variable so I excepted it from objective function
In ub (upper bound), I actually want to set value for t1, t2, t3, length_fin as 0.3 to find optimal value widely (under Constraints) but when i set values like that, it results error for invalid geometry (conflicted in pde toolbox code) so I defined arbiturary values.
What should I do for achieve my goal? (find optimal value)
I’m sorry for messy code
If anyone knows about this, please comment.
Thank you genetic algorithm, pde toolbox, transient heat transfer, matlab, partial differential equation toolbox, global optimization toolbox MATLAB Answers — New Questions
How does im2int16 map double(0.5) to int16(0)?
I’ve known about this for a long time, and I’ve ignored it. It’s a curiosity I pick at every time I edit MIMT imcast(), but I’ve never really figured out a good explanation.
IPT im2int16() maps floating point values on the unit interval to values on the interval [-32768 32767]. That seems very simple. The problem is that obvious arithmetic doesn’t give the same result. What’s more curious is that it seems that the only input value that does not map identically is 1/2.
% our input
dx = 3E-5;
x = [0 linspace(0.5-dx,0.5+dx,7) 1].’; % ‘single’ or ‘double’ are the same
% convert it
y1 = im2int16(x); % the curiosity
y2 = int16(double(x)*65535 – 32768); % the obvious
y3 = int16(rescale(x,-32768,32767,’inputmin’,0,’inputmax’,1)); % a third opinion
% compare
[y1 y2 y3]
For what it’s worth, im2double() doesn’t map that 0 back to 1/2. It maps exactly like one would expect.
% map back to float
z1 = im2double(y1(2:8));
z2 = ((double(y2(2:8)) + 32768)/65535 );
% compare error
[z1 z2] – x(2:8)
So I suppose I have three sorts of questions.
How does this happen? I’m assuming this rises naturally from some simple conversion being used, but im2int16() isn’t working in mcode, and I’m not the clever one here.
Do you think this should be expected? Matter of differing conventions? Preference?
Does it really even matter? I’ve been assuming it doesn’t.I’ve known about this for a long time, and I’ve ignored it. It’s a curiosity I pick at every time I edit MIMT imcast(), but I’ve never really figured out a good explanation.
IPT im2int16() maps floating point values on the unit interval to values on the interval [-32768 32767]. That seems very simple. The problem is that obvious arithmetic doesn’t give the same result. What’s more curious is that it seems that the only input value that does not map identically is 1/2.
% our input
dx = 3E-5;
x = [0 linspace(0.5-dx,0.5+dx,7) 1].’; % ‘single’ or ‘double’ are the same
% convert it
y1 = im2int16(x); % the curiosity
y2 = int16(double(x)*65535 – 32768); % the obvious
y3 = int16(rescale(x,-32768,32767,’inputmin’,0,’inputmax’,1)); % a third opinion
% compare
[y1 y2 y3]
For what it’s worth, im2double() doesn’t map that 0 back to 1/2. It maps exactly like one would expect.
% map back to float
z1 = im2double(y1(2:8));
z2 = ((double(y2(2:8)) + 32768)/65535 );
% compare error
[z1 z2] – x(2:8)
So I suppose I have three sorts of questions.
How does this happen? I’m assuming this rises naturally from some simple conversion being used, but im2int16() isn’t working in mcode, and I’m not the clever one here.
Do you think this should be expected? Matter of differing conventions? Preference?
Does it really even matter? I’ve been assuming it doesn’t. I’ve known about this for a long time, and I’ve ignored it. It’s a curiosity I pick at every time I edit MIMT imcast(), but I’ve never really figured out a good explanation.
IPT im2int16() maps floating point values on the unit interval to values on the interval [-32768 32767]. That seems very simple. The problem is that obvious arithmetic doesn’t give the same result. What’s more curious is that it seems that the only input value that does not map identically is 1/2.
% our input
dx = 3E-5;
x = [0 linspace(0.5-dx,0.5+dx,7) 1].’; % ‘single’ or ‘double’ are the same
% convert it
y1 = im2int16(x); % the curiosity
y2 = int16(double(x)*65535 – 32768); % the obvious
y3 = int16(rescale(x,-32768,32767,’inputmin’,0,’inputmax’,1)); % a third opinion
% compare
[y1 y2 y3]
For what it’s worth, im2double() doesn’t map that 0 back to 1/2. It maps exactly like one would expect.
% map back to float
z1 = im2double(y1(2:8));
z2 = ((double(y2(2:8)) + 32768)/65535 );
% compare error
[z1 z2] – x(2:8)
So I suppose I have three sorts of questions.
How does this happen? I’m assuming this rises naturally from some simple conversion being used, but im2int16() isn’t working in mcode, and I’m not the clever one here.
Do you think this should be expected? Matter of differing conventions? Preference?
Does it really even matter? I’ve been assuming it doesn’t. im2int16 MATLAB Answers — New Questions
Questions on SSD problem on Windows 11
I’ve noticed that my SSD seems to be slow or unresponsive at times, with delays when booting up or loading applications. This happens intermittently, and it’s not consistent across all tasks, but it’s been happening frequently enough that it’s become annoying.
I’ve tried to troubleshoot the issue by checking for disk errors, running disk cleanup, and ensuring that my system is up-to-date with the latest Windows patches. I’m not sure what could be causing it. I’m hoping someone might have some insight or suggestions on how to resolve this problem.
I’ve noticed that my SSD seems to be slow or unresponsive at times, with delays when booting up or loading applications. This happens intermittently, and it’s not consistent across all tasks, but it’s been happening frequently enough that it’s become annoying. I’ve tried to troubleshoot the issue by checking for disk errors, running disk cleanup, and ensuring that my system is up-to-date with the latest Windows patches. I’m not sure what could be causing it. I’m hoping someone might have some insight or suggestions on how to resolve this problem. Read More
Forms embedded in SharePoint doesn’t display in custom Teams app
I’m working with a customer that is using a custom Teams app instead of Viva Connections for their intranet in Teams. They embed Microsoft Forms in SharePoint News Posts to collect feedback from their users.
The form is embedded as expected when page is rendered in SharePointThe form is embedded as expected when page is rendered in Viva Connections (Viva Petter in screenshot)The form cannot be embedded (error message says “Microsoft Forms | Can’t access the Forms.“) when page is rendered in the custom Teams app (Contoso in screenshot)
I see errors in the console log and network trace related to getting on-behalf-of tokens
{
“odata.error”: {
“code”: “-1, System.AggregateException”,
“message”: {
“lang”: “en-US”,
“value”: “One or more errors occurred.”
}
}
}
I’ve read similar cases
https://github.com/SharePoint/sp-dev-docs/issues/3923#issuecomment-514726341
https://github.com/SharePoint/sp-dev-docs/issues/4357#issuecomment-515131702
https://github.com/SharePoint/sp-dev-docs/issues/9099#issuecomment-1701406090
I have tried allowing more domains in the teams app manifest and I’ve tried deleting and recreating the client credentials for the SharePoint client extensibility app registration without effect.
The customer doesn’t want to use the standard Viva Connections app because of the mobile app experience.
I’ve managed to recreate the issue in several tenants.
Is there a way to make this work in a custom Teams app and how?
I’m working with a customer that is using a custom Teams app instead of Viva Connections for their intranet in Teams. They embed Microsoft Forms in SharePoint News Posts to collect feedback from their users. The form is embedded as expected when page is rendered in SharePointThe form is embedded as expected when page is rendered in Viva Connections (Viva Petter in screenshot)The form cannot be embedded (error message says “Microsoft Forms | Can’t access the Forms.”) when page is rendered in the custom Teams app (Contoso in screenshot)I see errors in the console log and network trace related to getting on-behalf-of tokens https://skodvinhvammen.sharepoint.com/_api/Microsoft.SharePoint.Internal.ClientSideComponent.Token.AcquireOBOToken?resource=%27https://forms.office.com%27&clientId=%2708e18876-6177-487e-b8b5-cf950c1e598c%27 Acquire OBO Token receives the following parameters: clientId: SharePoint Online Web Client Extensibility / SharePoint Online Client Extensibility Web Application Principal (different names in different tenants)resource: https://forms.office.com This API call returns HTTP 500 with unhelpful details {
“odata.error”: {
“code”: “-1, System.AggregateException”,
“message”: {
“lang”: “en-US”,
“value”: “One or more errors occurred.”
}
}
} I’ve read similar cases https://github.com/SharePoint/sp-dev-docs/issues/3923#issuecomment-514726341https://github.com/SharePoint/sp-dev-docs/issues/4357#issuecomment-515131702 https://github.com/SharePoint/sp-dev-docs/issues/9099#issuecomment-1701406090 I have tried allowing more domains in the teams app manifest and I’ve tried deleting and recreating the client credentials for the SharePoint client extensibility app registration without effect. The customer doesn’t want to use the standard Viva Connections app because of the mobile app experience. I’ve managed to recreate the issue in several tenants. Is there a way to make this work in a custom Teams app and how? Read More
Unable to train Syntex Structured Document model
Hi all,
I am trying to create and train a Syntex model for the first time in my organization. I am going through the Content Center and, while a model is created when I hit the New Model button, when it goes to start the training process, I get the following error:
I have confirmed that there exists an entry for SharePointFormProcessing in a table called Packages in Dataverse. The same thing happens when trying to create a model locally in another site and regardless of whether I’m using a the freeform selection or layout method.
Does anyone have an idea what the problem might be?
Hi all, I am trying to create and train a Syntex model for the first time in my organization. I am going through the Content Center and, while a model is created when I hit the New Model button, when it goes to start the training process, I get the following error:I have confirmed that there exists an entry for SharePointFormProcessing in a table called Packages in Dataverse. The same thing happens when trying to create a model locally in another site and regardless of whether I’m using a the freeform selection or layout method. Does anyone have an idea what the problem might be? Read More
Cannot add co-organizer and presenters in the webinar
I set up a webinar but when I add our teams as co-organizers and presenters, I can not save and updates.
It said that “Unable to save changes. Let’s try again”
I set up a webinar but when I add our teams as co-organizers and presenters, I can not save and updates.It said that “Unable to save changes. Let’s try again” Read More
Desktop app option is missing
Users wants to open documents form the New Teams desktop app with the desktop app (Word, Excel, Powerpoint) by default, but the option is missing. Because of certain requirements we have installed Office 2021 and not Office 365.
If I check the Requirements Office 2021 is supported, but we are a educational institution so we don’t have an E3 or E5 license. All users have an A3 license assigned.
I have executed the powershell script to check for the required license. The output I get is ProPlus2021Volume, so it doesn’t match O365ProPlusRetail. That’s make me wonder if Office 2021 is even supported for this feature.
Users wants to open documents form the New Teams desktop app with the desktop app (Word, Excel, Powerpoint) by default, but the option is missing. Because of certain requirements we have installed Office 2021 and not Office 365. If I check the Requirements Office 2021 is supported, but we are a educational institution so we don’t have an E3 or E5 license. All users have an A3 license assigned.I have executed the powershell script to check for the required license. The output I get is ProPlus2021Volume, so it doesn’t match O365ProPlusRetail. That’s make me wonder if Office 2021 is even supported for this feature. Read More
How to connect the Raspberry pi GPIO blocks to simulink model to perform real time simulation ?
Raspberry piRaspberry pi Raspberry pi gpio blocks MATLAB Answers — New Questions
I’m getting an error in port width and dimensions.
<</matlabcentral/answers/uploaded_files/1710701/PXL_20240607_114519832.MV.jpg>><</matlabcentral/answers/uploaded_files/1710701/PXL_20240607_114519832.MV.jpg>> <</matlabcentral/answers/uploaded_files/1710701/PXL_20240607_114519832.MV.jpg>> error in port width and dimensions or orientation. MATLAB Answers — New Questions
MQTT connection error on 2021b – Unable to resolve the name com.mathworks.mqttclient.client.Client.
I’m facing this error while trying to create an mqtt connection:
>> myMQTT=mqtt(‘tcp://broker.hivemq.com’)
‘com.mathworks’ package and subpackages will be removed in a future release. There is no simple replacement for this.
Caused by:
Unable to resolve the name com.mathworks.mqttclient.client.Client.
I just downloaded the mqtt package from file -exchange (mqtt-download).
I’m using matlab 2021b:
—————————————————————————————————–
MATLAB Version: 9.11.0.2358333 (R2021b) Update 7
MATLAB License Number:
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 19045)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
—————————————————————————————————–
MATLAB Version 9.11 (R2021b)
Database Toolbox Version 10.2 (R2021b)
Deep Learning Toolbox Version 14.3 (R2021b)
Image Acquisition Toolbox Version 6.5 (R2021b)
Image Processing Toolbox Version 11.4 (R2021b)
MATLAB Compiler Version 8.3 (R2021b)
MATLAB Compiler SDK Version 6.11 (R2021b)
MATLAB Report Generator Version 5.11 (R2021b)
Spreadsheet Link Version 3.4.6 (R2021b)
Statistics and Machine Learning Toolbox Version 12.2 (R2021b)I’m facing this error while trying to create an mqtt connection:
>> myMQTT=mqtt(‘tcp://broker.hivemq.com’)
‘com.mathworks’ package and subpackages will be removed in a future release. There is no simple replacement for this.
Caused by:
Unable to resolve the name com.mathworks.mqttclient.client.Client.
I just downloaded the mqtt package from file -exchange (mqtt-download).
I’m using matlab 2021b:
—————————————————————————————————–
MATLAB Version: 9.11.0.2358333 (R2021b) Update 7
MATLAB License Number:
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 19045)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
—————————————————————————————————–
MATLAB Version 9.11 (R2021b)
Database Toolbox Version 10.2 (R2021b)
Deep Learning Toolbox Version 14.3 (R2021b)
Image Acquisition Toolbox Version 6.5 (R2021b)
Image Processing Toolbox Version 11.4 (R2021b)
MATLAB Compiler Version 8.3 (R2021b)
MATLAB Compiler SDK Version 6.11 (R2021b)
MATLAB Report Generator Version 5.11 (R2021b)
Spreadsheet Link Version 3.4.6 (R2021b)
Statistics and Machine Learning Toolbox Version 12.2 (R2021b) I’m facing this error while trying to create an mqtt connection:
>> myMQTT=mqtt(‘tcp://broker.hivemq.com’)
‘com.mathworks’ package and subpackages will be removed in a future release. There is no simple replacement for this.
Caused by:
Unable to resolve the name com.mathworks.mqttclient.client.Client.
I just downloaded the mqtt package from file -exchange (mqtt-download).
I’m using matlab 2021b:
—————————————————————————————————–
MATLAB Version: 9.11.0.2358333 (R2021b) Update 7
MATLAB License Number:
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 19045)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
—————————————————————————————————–
MATLAB Version 9.11 (R2021b)
Database Toolbox Version 10.2 (R2021b)
Deep Learning Toolbox Version 14.3 (R2021b)
Image Acquisition Toolbox Version 6.5 (R2021b)
Image Processing Toolbox Version 11.4 (R2021b)
MATLAB Compiler Version 8.3 (R2021b)
MATLAB Compiler SDK Version 6.11 (R2021b)
MATLAB Report Generator Version 5.11 (R2021b)
Spreadsheet Link Version 3.4.6 (R2021b)
Statistics and Machine Learning Toolbox Version 12.2 (R2021b) mqtt, 2021b MATLAB Answers — New Questions
How can I custom toolbar/taskbar on Win 11?
I’m trying to restore a custom toolbar on my Windows 11 taskbar that directly links to a folder, as I find it very convenient for accessing frequently used programs. Previously, I could place these on the right side of the taskbar, but now I can only adjust the position of the main taskbar to the left or middle.
I’ve looked through numerous YouTube tutorials but haven’t found a solution yet.
If there’s no built-in way to do this in Windows 11, could someone recommend a widget or third-party program that might help? Thanks in advance!
I’m trying to restore a custom toolbar on my Windows 11 taskbar that directly links to a folder, as I find it very convenient for accessing frequently used programs. Previously, I could place these on the right side of the taskbar, but now I can only adjust the position of the main taskbar to the left or middle.I’ve looked through numerous YouTube tutorials but haven’t found a solution yet. If there’s no built-in way to do this in Windows 11, could someone recommend a widget or third-party program that might help? Thanks in advance! Read More
Windows 11 drains battery when laptop is shutdown – Fast Startup is disabled
Hello everyone! I’m using an MSI GL65 9SD laptop, and I’ve noticed an issue where it loses about 5% of battery every day, even when it’s turned off. I’ve already disabled fast startup, but the problem persists.
I came across a similar problem in another thread where the original poster suggested it might be related to the BIOS settings. I’ve gone ahead and disabled the C state for the CPU in the BIOS, but I’m still facing the same issue.
Could anyone suggest what else I should check in the BIOS to ensure that my laptop is fully shutting down and not just entering some sort of sleep or standby mode? Any advice would be greatly appreciated!
Hello everyone! I’m using an MSI GL65 9SD laptop, and I’ve noticed an issue where it loses about 5% of battery every day, even when it’s turned off. I’ve already disabled fast startup, but the problem persists. I came across a similar problem in another thread where the original poster suggested it might be related to the BIOS settings. I’ve gone ahead and disabled the C state for the CPU in the BIOS, but I’m still facing the same issue. Could anyone suggest what else I should check in the BIOS to ensure that my laptop is fully shutting down and not just entering some sort of sleep or standby mode? Any advice would be greatly appreciated! Read More
Lists: remove ability to export to Excel and other top buttons
So from my sharepoint list I need almost all buttons removed from the top part. I know the quick edit in advanced settings remove the “Cuadricula” option. But specially, I need to remove the ability to remove the Export to Excel button.
Is it possible?
So from my sharepoint list I need almost all buttons removed from the top part. I know the quick edit in advanced settings remove the “Cuadricula” option. But specially, I need to remove the ability to remove the Export to Excel button. Is it possible? Read More
Defender for Endpoint API vs Website
I use the Defender for Endpoint API to tag some devices. This generally works fine.
Now I have the following situation for some days now:
On the Website I have a specific dns name (device name) which appears two times on the website, but I only get it one time via the API.
What I did with the API:
Try to get the device with the guid provided in the web. One guid returns the object, the other returns 404-Not found
Read all Machines and try to find the dns / the guid – did not find the missing device.
As far as I know, you cannot restrict the permissions for the devices in API queries.
Any ideas?
I use the Defender for Endpoint API to tag some devices. This generally works fine.
Now I have the following situation for some days now:
On the Website I have a specific dns name (device name) which appears two times on the website, but I only get it one time via the API.
What I did with the API:
Try to get the device with the guid provided in the web. One guid returns the object, the other returns 404-Not found
Read all Machines and try to find the dns / the guid – did not find the missing device.
As far as I know, you cannot restrict the permissions for the devices in API queries.
Any ideas? Read More
Prompts collection
Basic prompts are visible in Copilot Lab and can also be used in apps.
Copilot in Windows and in Edge uses the same history. You can change the names of the prompts or delete prompts. You can also export or share them.
The history becomes quite confusing over time.
There are many interesting prompts here in the forum or on the WWW.
There are also many solutions for collecting and managing your own prompts (lists, loops, Excel etc.).
This raises the following questions for me:
Are adjustments to Copilot Lab planned in the direction that own prompts can be collected/managed?How do other users here in the forum do this or which tool do they use?
I would be very happy to receive answers and they would be appreciated.
Best regards
Andreas
Basic prompts are visible in Copilot Lab and can also be used in apps.Copilot in Windows and in Edge uses the same history. You can change the names of the prompts or delete prompts. You can also export or share them.The history becomes quite confusing over time.There are many interesting prompts here in the forum or on the WWW.There are also many solutions for collecting and managing your own prompts (lists, loops, Excel etc.). This raises the following questions for me:Are adjustments to Copilot Lab planned in the direction that own prompts can be collected/managed?How do other users here in the forum do this or which tool do they use?I would be very happy to receive answers and they would be appreciated.Best regardsAndreas Read More
Transfer to this device: option missing on Android
Hi,
I recently enrolled my new Xiaomi 14 (with Android 14) in my company via Microsoft Intune. Teams is working normally, except the “Transfer to this device” option is missing.
When I am in a meeting on Windows, I can join the same meeting with my mobile device, but the option to transfer and disconnect the Windows session is missing, I have to leave the meeting on my Windows device manually.
This worked on my old Google Pixel 5. I used to have this screen to select the transfer option, and my Windows session would automatically disconnect:
It still works the other way round though. Transferring form Android to Windows works seamlessly.
Any ideas?
Hi,I recently enrolled my new Xiaomi 14 (with Android 14) in my company via Microsoft Intune. Teams is working normally, except the “Transfer to this device” option is missing.When I am in a meeting on Windows, I can join the same meeting with my mobile device, but the option to transfer and disconnect the Windows session is missing, I have to leave the meeting on my Windows device manually. This worked on my old Google Pixel 5. I used to have this screen to select the transfer option, and my Windows session would automatically disconnect:It still works the other way round though. Transferring form Android to Windows works seamlessly.Any ideas? Read More
Can I download Youtube videos from my channel on Windows 11 computer?
Hi tech experts,
I hired someone who manages my own YouTube channels. Now, he left the job and refused to send the record videos to me. How can I download youtube videos from my own channel so I can make a local copy and do some editing. I tried some online youtube video downloader but did not work at all and keep asking me installing unknown apps.
Anyone knows how to do this?
Thanks
Hi tech experts, I hired someone who manages my own YouTube channels. Now, he left the job and refused to send the record videos to me. How can I download youtube videos from my own channel so I can make a local copy and do some editing. I tried some online youtube video downloader but did not work at all and keep asking me installing unknown apps. Anyone knows how to do this? Thanks Read More
Introduction to Graph Databases: Azure Cosmos DB for Apache Gremlin
Previously we introduced Getting started with Azure Cosmos Database (A Deep Dive) blog which is an end-to-end introduction of Azure Cosmos DB. In this blog we are going to talk about one of the Azure Cosmos Database API known as Apache Gremlin.
Graph databases are a powerful way to model and query complex relationships in your data. Let’s dive into working with Azure Cosmos DB for Apache Gremlin, which provides a graph database service.
What’s covered in this blog
Need for a Graph database
Challenge: Mapping Relationships and Insights
What is Apache Gremlin?
Azure Cosmos DB for Apache Gremlin
Benefits for Gremlin API
Common scenarios for Gremlin API
Introduction to graph databases
provisioning Azure Cosmos DB for Apache Gremlin via Azure portal
Modeling a graph Database
When Do You Need a Graph Database?
Graph databases are optimally used when your data domain exhibits certain characteristics:
Entities are highly connected through descriptive relationships.
There are cyclic relationships or self-referenced entities (which can be challenging in relational or document databases).
Dynamically evolving relationships exist between entities (common in hierarchical or tree-structured data).
Many-to-many relationships between entities.
Both entities and relationships have read and write requirements.
If your data fits these criteria, a graph database approach can provide advantages in terms of query complexity, data model scalability, and query performance.
Introduction:
Scenario: Building a Social Network for Student Entrepreneurs
Your vision is to build a dynamic social network where aspiring entrepreneurs can connect, collaborate, and support each other’s ventures. As you embark on this journey, you encounter various challenges in structuring and querying your database to efficiently handle complex relationships and data connections.
The Challenge: Mapping Relationships and Insights
In the world of social networking platforms, understanding relationships between users, their interests, connections, and interactions is paramount. Traditional relational databases might fall short when it comes to representing these intricate networks. This is where Azure Cosmos DB for Apache Gremlin steps in as your trusted guide.
Apache Gremlin: Your Graph Database Companion
In your quest to build a thriving social network, you realize that a graph database is the perfect fit for capturing the interconnected nature of user relationships and interactions.
What is Apache Gremlin?
Apache Gremlin is a graph traversal language and virtual machine developed by Apache Software Foundation. It’s specifically designed for querying graph databases and navigating complex networks of interconnected data. Gremlin provides a flexible and powerful framework for traversing graphs, enabling users to perform a wide range of operations such as pathfinding, filtering, and graph analytics.
Azure Cosmos DB for Apache Gremlin
Azure Cosmos DB for Apache Gremlin is a graph database service that can be used to store massive graphs with billions of vertices and edges. You can query the graphs with millisecond latency and evolve the graph structure easily. This integration enables users to store and query graph data using Azure Cosmos DB’s globally distributed, available infrastructure.
The API for Gremlin combines the power of graph database algorithms with highly scalable, managed infrastructure. This approach provides a unique and flexible solution to common data problems associated with inflexible or relational constraints.
Benefits for Gremlin API
The API for Gremlin has added benefits of being built on Azure Cosmos DB:
Elastically Scalable Throughput and Storage: Cosmos DB supports horizontally scalable graph databases with unlimited storage and provisioned throughput. Data is automatically distributed using graph partitioning as the database scale grows.
Multi-region Replication: Graph data can be automatically replicated to any Azure region worldwide, enabling global access to data with minimal latency. Cosmos DB provides a service-managed regional failover mechanism to ensure application continuity in case of service interruptions.
Fast Queries and Traversals with Gremlin: Cosmos DB supports querying heterogeneous vertices and edges using the Gremlin query language, which is widely adopted in the graph database community. This allows for rich real-time queries and traversals without the need for schema hints, secondary indexes, or views.
Fully Managed Graph Database: Cosmos DB eliminates the need for managing database and machine resources, allowing developers to focus on delivering application value. It automatically handles tasks such as virtual machine management, software updates, sharding, replication, and backups, ensuring high availability and reliability.
Automatic Indexing: Gremlin API automatically indexes all properties within nodes and edges without requiring schema definition or creation of secondary indices.
Compatibility with Apache TinkerPop: The Gremlin API supports the open-source Apache TinkerPop standard, enabling integration with a vast ecosystem of applications and libraries.
Tunable Consistency Levels: Cosmos DB provides five well-defined consistency levels (strong, bounded-staleness, session, consistent prefix, and eventual) to balance consistency, availability, and latency based on application requirements. This flexibility allows developers to make informed tradeoffs to optimize performance.
Common scenarios for Gremlin API
Social networks/Customer 365: By combining data about your customers and their interactions with other people, you can develop personalized experiences, predict customer behavior, or connect people with others with similar interests. Azure Cosmos DB can be used to manage social networks and track customer preferences and data.
Recommendation engines: This scenario is commonly used in the retail industry. By combining information about products, users, and user interactions, like purchasing, browsing, or rating an item, you can build customized recommendations. The low latency, elastic scale, and native graph support of Azure Cosmos DB is ideal for these scenarios.
Geospatial: Many applications in telecommunications, logistics, and travel planning need to find a location of interest within an area or locate the shortest/optimal route between two locations. Azure Cosmos DB is a natural fit for these problems.
Internet of Things: With the network and connections between IoT devices modeled as a graph, you can build a better understanding of the state of your devices and assets. You also can learn how changes in one part of the network can potentially affect another part.
Introduction to graph databases
A graph database approach relies on persisting relationships in the storage layer instead, which leads to highly efficient graph retrieval operations. The API for Gremlin supports the property graph model.
Property graph objects
A property graph is a structure that’s composed of vertices and edges. Both objects can have an arbitrary number of key-value pairs as properties.
Vertices/nodes: Vertices denote discrete entities, such as a person, place, or an event.
ID: Each vertex has a unique ID enforced per partition. If no value is supplied upon insertion, an auto-generated GUID is stored.
Label: The vertex label defines the type of entity it represents. If no value is supplied, a default vertex label is used.
Properties: Vertices can have properties (stored as key-value pairs). These properties can be of type string, boolean, or numeric.
Partition Key: Vertices are partitioned, and the partition key determines their distribution across partitions.
Edges/relationships: Edges denote relationships between vertices. For example, a person might know another person, be involved in an event, or have recently been at a location.
Properties: Properties express information (or metadata) about the vertices and edges. There can be any number of properties in either vertices or edges, and they can be used to describe and filter the objects in a query. Example properties include a vertex that has name and age, or an edge, which can have a time stamp and/or a weight.
Example of a graph database
This graph has the following vertex types. These types are also called labels in Gremlin:
People: The graph has three people; Robin, Thomas, and Ben.
Interests: Their interests, in this example, include the game of Football.
Devices: The devices that people use.
Operating Systems: The operating systems that the devices run on.
Place: The place[s] where devices are accessed.
We represent the relationships between these entities via the following edge types:
Knows: Represent familiarity. For example, “Thomas knows Robin”.
Interested: Represent the interests of the people in our graph. For example, “Ben is interested in Football”.
RunsOS: Represent what OS a device runs. For example, “Laptop runs the Windows OS”.
Uses: Represent which device a person uses. For example, “Robin uses a Motorola phone with serial number 77”.
Located: Represent the location from which the devices are accessed.
Creating Azure Cosmos DB for Apache Gremlin in Azure portal
Prerequisites
Azure account – Click to create an account: Create Azure account
Azure subscription – More about subscriptions: more on subscriptions
Steps for Creating Resources in the Azure Portal
Let’s Create an Account
Search for Azure Cosmos DB
Create Azure Cosmos DB Account
Choose Azure Cosmos DB for Apache Gremlin
Under create Azure cosmos DB Account page
Choose your subscription.
Choose or create a resource group.
Create the account name (make it unique).
Choose the availability zone if you want to improve your apps availability and resilient.
Choose the location of your DB according to the available data centers.
Capacity Mode enables you to define the throughput. The Provisioned option also comes with a free tier option.
Select Geo-Redundancy will enable your database to be available to the paired region ie East US and West Us or South Africa North and South Africa West. For this demo ‘South Africa West’ is not included in my subscription
Multi-region writes capability allows you to take advantage of the provisioned throughput for your databases and containers across the globe.
Under networking, your Azure Cosmos DB account either publicly, via public IP addresses or service endpoints, or privately, using a private endpoint. Choose according to your use case.
Connection Security Settings – I will go with TLS 1.2
Backup policy defines the way your backup will occur.
I will let Microsoft encrypt my account using service-managed keys.
I don’t need to create a tag for now, so I will review and create.
Once I have successfully provisioned the resource.
Click Go To resource to the overview page of the resource.
Congratulations, you have Created an Azure Cosmos DB for Apache Gremlin.
Creating a container in Azure Cosmos DB for Gremlin
This part explains way to create a container in Azure Cosmos DB for Gremlin. It shows how to create a container using Azure portal with data explorer. It demonstrates how to create a container, specify the partition key, and provision throughput.
NOTE: When creating containers, make sure you don’t create two containers with the same name but different casing. That’s because some parts of the Azure platform are not case-sensitive, and this can result in confusion/collision of telemetry and actions on containers with such names.
Open the Data Explorer pane and select New Graph. Next, provide the following details:
Indicate whether you are creating a new database or using an existing one. Since this is a new DB account i will new database
Enter a Database ID.
Select database throughput whether auto scale or manual.
Enter a throughput to be provisioned (for example, 1000 RUs).
Enter a graph ID.
Select indexing (automatic or off).
Enter a partition key for vertices.
Select OK.
Congratulations, you have Created a container in Azure Cosmos DB for Apache Gremlin.
Let’s Create an Some Vertex and Edges
You begin by clicking New Vertex button
Start by giving a Label (For Example gamer tag).
Select a gameId ( i.e. 1111)
Add more property like Team and preferredClass
Team: red
preferredClass: Mage
Click OK.
Repeat step 1,2 &3 to add more labels with the data below twice
And now you have successfully added 3 vertices.
Let make some edges by connecting between the labels with a relationship
We can add a relationship between John and Ben that they know each other.
This is done by clicking John Id then click target to add Ben’s id and label as “know”
We can also add the relationship between John and jane that they know each other by repeating the step above again. The final relationship graph will look like this.
Congratulations, you have Created Vertex and Edges on Gremlin graph.
Read more:
Graph data modeling with Azure Cosmos DB for Apache Gremlin
Azure Cosmos DB for Gremlin graph support and compatibility with TinkerPop features
Visualize graph data stored in Azure Cosmos DB for Gremlin with data visualization solutions
Query Azure Cosmos DB for Gremlin by using Gremlin
Pricing model in Azure Cosmos DB
QuickStart SDK:
Azure Cosmos DB for Apache Gremlin library for Python
Azure Cosmos DB for Apache Gremlin library for Node.js
Azure Cosmos DB for Apache Gremlin library for .NET
Microsoft Tech Community – Latest Blogs –Read More
How to call a function with arguments containing “.” in “run” function?
Lets say I am trying to call a function called printVersion() using run.
Here is printVersion()
function printVersion(version)
disp(version)
end
Now, if version number doesn’t contain decimal, it works fine.
But, If version number has decimal, it trys to find the whole string as a script.
Thank you.Lets say I am trying to call a function called printVersion() using run.
Here is printVersion()
function printVersion(version)
disp(version)
end
Now, if version number doesn’t contain decimal, it works fine.
But, If version number has decimal, it trys to find the whole string as a script.
Thank you. Lets say I am trying to call a function called printVersion() using run.
Here is printVersion()
function printVersion(version)
disp(version)
end
Now, if version number doesn’t contain decimal, it works fine.
But, If version number has decimal, it trys to find the whole string as a script.
Thank you. run, argument with decimal MATLAB Answers — New Questions