Category: News
How to display temperature at location x,y in command window for 2D heat transfer
Below is code that produces the steady state temperature field in a square with consatnt temperature bounday conditions. I want to add code that would define the temperature at any location x,y of interest and display it in the command window. For example, what is the temperature at x= -10, y= 0?
thermalmodel = createpde("thermal","steadystate");
R2= [3,4,-15,15,15,-15,-15,-15,15,15]’;
geom=[R2]
g=decsg(geom)
model= createpde
geometryFromEdges(thermalmodel,g);
pdegplot(thermalmodel,"EdgeLabels","on")
xlim([-20 20])
axis equal
thermalProperties(thermalmodel,"ThermalConductivity",1);
thermalBC(thermalmodel,"Edge",1,"Temperature",100);
thermalBC(thermalmodel,"Edge",2,"Temperature",100);
thermalBC(thermalmodel,"Edge",3,"Temperature",100);
thermalBC(thermalmodel,"Edge",4,"Temperature",400);
generateMesh(thermalmodel);
figure
pdemesh(thermalmodel)
title("Mesh with Quadratic Triangular Elements")
thermalresults = solve(thermalmodel)
pdeplot(thermalresults.Mesh,XYData=thermalresults.Temperature,ColorMap="jet")
title("Temperature In The Plate, Steady State Solution")
xlabel("X-coordinate, meters")
ylabel("Y-coordinate, meters")
axis equalBelow is code that produces the steady state temperature field in a square with consatnt temperature bounday conditions. I want to add code that would define the temperature at any location x,y of interest and display it in the command window. For example, what is the temperature at x= -10, y= 0?
thermalmodel = createpde("thermal","steadystate");
R2= [3,4,-15,15,15,-15,-15,-15,15,15]’;
geom=[R2]
g=decsg(geom)
model= createpde
geometryFromEdges(thermalmodel,g);
pdegplot(thermalmodel,"EdgeLabels","on")
xlim([-20 20])
axis equal
thermalProperties(thermalmodel,"ThermalConductivity",1);
thermalBC(thermalmodel,"Edge",1,"Temperature",100);
thermalBC(thermalmodel,"Edge",2,"Temperature",100);
thermalBC(thermalmodel,"Edge",3,"Temperature",100);
thermalBC(thermalmodel,"Edge",4,"Temperature",400);
generateMesh(thermalmodel);
figure
pdemesh(thermalmodel)
title("Mesh with Quadratic Triangular Elements")
thermalresults = solve(thermalmodel)
pdeplot(thermalresults.Mesh,XYData=thermalresults.Temperature,ColorMap="jet")
title("Temperature In The Plate, Steady State Solution")
xlabel("X-coordinate, meters")
ylabel("Y-coordinate, meters")
axis equal Below is code that produces the steady state temperature field in a square with consatnt temperature bounday conditions. I want to add code that would define the temperature at any location x,y of interest and display it in the command window. For example, what is the temperature at x= -10, y= 0?
thermalmodel = createpde("thermal","steadystate");
R2= [3,4,-15,15,15,-15,-15,-15,15,15]’;
geom=[R2]
g=decsg(geom)
model= createpde
geometryFromEdges(thermalmodel,g);
pdegplot(thermalmodel,"EdgeLabels","on")
xlim([-20 20])
axis equal
thermalProperties(thermalmodel,"ThermalConductivity",1);
thermalBC(thermalmodel,"Edge",1,"Temperature",100);
thermalBC(thermalmodel,"Edge",2,"Temperature",100);
thermalBC(thermalmodel,"Edge",3,"Temperature",100);
thermalBC(thermalmodel,"Edge",4,"Temperature",400);
generateMesh(thermalmodel);
figure
pdemesh(thermalmodel)
title("Mesh with Quadratic Triangular Elements")
thermalresults = solve(thermalmodel)
pdeplot(thermalresults.Mesh,XYData=thermalresults.Temperature,ColorMap="jet")
title("Temperature In The Plate, Steady State Solution")
xlabel("X-coordinate, meters")
ylabel("Y-coordinate, meters")
axis equal temperature, location x y MATLAB Answers — New Questions
How do we change the default domain in the Purview Data Map?
How do we change the default domain in the Purview Data Map?
How do we change the default domain in the Purview Data Map? Read More
Hyperautomation Go Big Program former RPA 100 how to become partner?
Hi there community,
Hoping someone can shed some lights to this. We’ve been told there is a program called Hyperautomation Go Big Program former RPA 100; we’re trying to work on a solution to migrate our client from Blue Prism to Power Automate and seems like Microsoft recently built a migration tool that partners can utilize as part of this program. This the tool can decrease the cost and complexity of migration projects.
How do we become an approved partner/provider for the Hyperautomation Go Big Program former RPA 100? and what are the requirements to be part of this?
appreciate your guidance!
Hi there community, Hoping someone can shed some lights to this. We’ve been told there is a program called Hyperautomation Go Big Program former RPA 100; we’re trying to work on a solution to migrate our client from Blue Prism to Power Automate and seems like Microsoft recently built a migration tool that partners can utilize as part of this program. This the tool can decrease the cost and complexity of migration projects. How do we become an approved partner/provider for the Hyperautomation Go Big Program former RPA 100? and what are the requirements to be part of this? appreciate your guidance! Read More
slow drawing of a set of points on a plane
Dear Sir
please let me have a help
this is a simple set of statements that:
-define figure 1
-clear the figure
-define a matrix 2 x 82 ,where each column represent the coordinate of a point on a plane
these set of points represent a circle and a cross , centered inside
-then do a loop that draw each point at a time, as red dot
the "hold on" is needed because at each loop i wish to maintain the points already drawed
the purpose of this code is to visualize this figure first undeformed, and after, with some deformation gradient F applied to the set of points, (and) with another (more external) loop , to visualize the advance of the deformation making the gradient F varying
(F not present in the code below)
—————————————-
clear
figure(1),clf
p=[[cos(0:.1:1.9*pi) (-1:.2:1) 0*(-1:.2:1) ]’ [sin(0:.1:1.9*pi) 0*(-1:.2:1) (-1:.2:1) ]’]’
for j=1:max(size(p)) % visualize
figure(1),plot(p(1,j),p(2,j),’r.’),grid on, axis([-2 2 -2 2]),axis(‘square’)
hold on
end
—————————————-
now , to draw this simple figure it take roughly 1 second , so i ask were i’m wrong , and how can I speed up the execution of this code
the specification of the pc is as follow
Device name s.
Processor Intel(R) Pentium(R) CPU G860 @ 3.00GHz 3.00 GHz
Installed RAM 4.00 GB
Device ID ….8C39
Product ID …9
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
Edition Windows 10 Home
Version 22H2
Installed on 11/7/2020
OS build 19045.4355
Experience Windows Feature Experience Pack 1000.19056.1000.0
Matlab :
ver
—————————————————————————————————–
MATLAB Version: 24.1.0.2689473 (R2024a) Update 6
MATLAB License Number: STUDENT
Operating System: Microsoft Windows 10 Home 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 24.1 (R2024a)
Symbolic Math Toolbox Version 24.1 (R2024a)
>>
Thankyou very much
Kind Regards
manu1965Dear Sir
please let me have a help
this is a simple set of statements that:
-define figure 1
-clear the figure
-define a matrix 2 x 82 ,where each column represent the coordinate of a point on a plane
these set of points represent a circle and a cross , centered inside
-then do a loop that draw each point at a time, as red dot
the "hold on" is needed because at each loop i wish to maintain the points already drawed
the purpose of this code is to visualize this figure first undeformed, and after, with some deformation gradient F applied to the set of points, (and) with another (more external) loop , to visualize the advance of the deformation making the gradient F varying
(F not present in the code below)
—————————————-
clear
figure(1),clf
p=[[cos(0:.1:1.9*pi) (-1:.2:1) 0*(-1:.2:1) ]’ [sin(0:.1:1.9*pi) 0*(-1:.2:1) (-1:.2:1) ]’]’
for j=1:max(size(p)) % visualize
figure(1),plot(p(1,j),p(2,j),’r.’),grid on, axis([-2 2 -2 2]),axis(‘square’)
hold on
end
—————————————-
now , to draw this simple figure it take roughly 1 second , so i ask were i’m wrong , and how can I speed up the execution of this code
the specification of the pc is as follow
Device name s.
Processor Intel(R) Pentium(R) CPU G860 @ 3.00GHz 3.00 GHz
Installed RAM 4.00 GB
Device ID ….8C39
Product ID …9
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
Edition Windows 10 Home
Version 22H2
Installed on 11/7/2020
OS build 19045.4355
Experience Windows Feature Experience Pack 1000.19056.1000.0
Matlab :
ver
—————————————————————————————————–
MATLAB Version: 24.1.0.2689473 (R2024a) Update 6
MATLAB License Number: STUDENT
Operating System: Microsoft Windows 10 Home 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 24.1 (R2024a)
Symbolic Math Toolbox Version 24.1 (R2024a)
>>
Thankyou very much
Kind Regards
manu1965 Dear Sir
please let me have a help
this is a simple set of statements that:
-define figure 1
-clear the figure
-define a matrix 2 x 82 ,where each column represent the coordinate of a point on a plane
these set of points represent a circle and a cross , centered inside
-then do a loop that draw each point at a time, as red dot
the "hold on" is needed because at each loop i wish to maintain the points already drawed
the purpose of this code is to visualize this figure first undeformed, and after, with some deformation gradient F applied to the set of points, (and) with another (more external) loop , to visualize the advance of the deformation making the gradient F varying
(F not present in the code below)
—————————————-
clear
figure(1),clf
p=[[cos(0:.1:1.9*pi) (-1:.2:1) 0*(-1:.2:1) ]’ [sin(0:.1:1.9*pi) 0*(-1:.2:1) (-1:.2:1) ]’]’
for j=1:max(size(p)) % visualize
figure(1),plot(p(1,j),p(2,j),’r.’),grid on, axis([-2 2 -2 2]),axis(‘square’)
hold on
end
—————————————-
now , to draw this simple figure it take roughly 1 second , so i ask were i’m wrong , and how can I speed up the execution of this code
the specification of the pc is as follow
Device name s.
Processor Intel(R) Pentium(R) CPU G860 @ 3.00GHz 3.00 GHz
Installed RAM 4.00 GB
Device ID ….8C39
Product ID …9
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
Edition Windows 10 Home
Version 22H2
Installed on 11/7/2020
OS build 19045.4355
Experience Windows Feature Experience Pack 1000.19056.1000.0
Matlab :
ver
—————————————————————————————————–
MATLAB Version: 24.1.0.2689473 (R2024a) Update 6
MATLAB License Number: STUDENT
Operating System: Microsoft Windows 10 Home 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 24.1 (R2024a)
Symbolic Math Toolbox Version 24.1 (R2024a)
>>
Thankyou very much
Kind Regards
manu1965 slow drawing of a set of points on a plane MATLAB Answers — New Questions
How to generate random numbers in RL simulation
Dear Matlab Experts, I am currently modelling a reinforcement learning agent integrated into a simevents system. My model is able to run, however there is supposed to be a random number generator in the entity server block "mission". If I unplug the RL agent and run the simevents model only, the random numbers are generated randomly as intended, however if I run the complete model with the RL agent, the results always gives the same values and not random at all. I understand stand that matlab rng is deterministic and depends on a predefined seed, how do you think should I proceed to gain actual random numbers for my model? Thank you in advance. Attached is my model.Dear Matlab Experts, I am currently modelling a reinforcement learning agent integrated into a simevents system. My model is able to run, however there is supposed to be a random number generator in the entity server block "mission". If I unplug the RL agent and run the simevents model only, the random numbers are generated randomly as intended, however if I run the complete model with the RL agent, the results always gives the same values and not random at all. I understand stand that matlab rng is deterministic and depends on a predefined seed, how do you think should I proceed to gain actual random numbers for my model? Thank you in advance. Attached is my model. Dear Matlab Experts, I am currently modelling a reinforcement learning agent integrated into a simevents system. My model is able to run, however there is supposed to be a random number generator in the entity server block "mission". If I unplug the RL agent and run the simevents model only, the random numbers are generated randomly as intended, however if I run the complete model with the RL agent, the results always gives the same values and not random at all. I understand stand that matlab rng is deterministic and depends on a predefined seed, how do you think should I proceed to gain actual random numbers for my model? Thank you in advance. Attached is my model. random number generator, reinforcement learning, simulink MATLAB Answers — New Questions
Is there a setting to move labels on a plot closer
In the following image is plotted with the code:
load(‘data.mat’);
f = figure;
f.Position = [21,471,1883,333];
subplot(1,4,1);
S = 50;
scatter3(xCoord*1e6,yCoord*1e6,zCoord*1e6,S,sd1,’filled’);
xlabel(‘x (mum)’);
ylabel(‘y (mum)’);
zlabel(‘z (mum)’);
xlim([-15 15]);
ylim([-15 15]);
zlim([-15 15]);
xticks([-15 0 15]);
xticklabels({‘-15′,’0′,’15’});
yticks([-15 0 15]);
yticklabels({‘-15′,’0′,’15’});
zticks([-15 0 15]);
zticklabels({‘-15′,’0′,’15’});
% axis equal;
cb = colorbar();
% clim([0 1]);
title(cb, ‘SD1’);
subplot(1,4,2);
S = 50;
scatter3(xCoord*1e6,yCoord*1e6,zCoord*1e6,S,sd2,’filled’);
xlabel(‘x (mum)’);
ylabel(‘y (mum)’);
zlabel(‘z (mum)’);
xlim([-15 15]);
ylim([-15 15]);
zlim([-15 15]);
xticks([-15 0 15]);
xticklabels({‘-15′,’0′,’15’});
yticks([-15 0 15]);
yticklabels({‘-15′,’0′,’15’});
zticks([-15 0 15]);
zticklabels({‘-15′,’0′,’15’});
% axis equal;
cb = colorbar();
% clim([0 1]);
title(cb, ‘SD2’);
subplot(1,4,3);
S = 50;
scatter3(xCoord*1e6,yCoord*1e6,zCoord*1e6,S,sd3,’filled’);
xlabel(‘x (mum)’);
ylabel(‘y (mum)’);
zlabel(‘z (mum)’);
xlim([-15 15]);
ylim([-15 15]);
zlim([-15 15]);
xticks([-15 0 15]);
xticklabels({‘-15′,’0′,’15’});
yticks([-15 0 15]);
yticklabels({‘-15′,’0′,’15’});
zticks([-15 0 15]);
zticklabels({‘-15′,’0′,’15’});
% axis equal;
cb = colorbar();
% clim([0 1]);
title(cb, ‘SD3’);
subplot(1,4,4);
S = 50;
scatter3(xCoord*1e6,yCoord*1e6,zCoord*1e6,S,relangle,’filled’);
xlabel(‘x (mum)’);
ylabel(‘y (mum)’);
zlabel(‘z (mum)’);
xlim([-15 15]);
ylim([-15 15]);
zlim([-15 15]);
xticks([-15 0 15]);
xticklabels({‘-15′,’0′,’15’});
yticks([-15 0 15]);
yticklabels({‘-15′,’0′,’15’});
zticks([-15 0 15]);
zticklabels({‘-15′,’0′,’15’});
% axis equal;
cb = colorbar();
clim([0 30]);
title(cb, ‘alpha’);
Notice the colorbar labels "SD1", "SD2", "SD3" are clipped at the top and X and Y axes labels are far away from the axes.
Is there a setting to fix all these? I have been moving them manually with the editor but I have several of these figures and would like to make them as consistent as possible in terms of things like label positions. I think it is possible to scan the texts and set their positions semi-manually with code, but it would be much easier if there is a setting like "tight’ or something to move them closer. But "axis tight" does not work here, possibly due to the 3D nature of the plots.In the following image is plotted with the code:
load(‘data.mat’);
f = figure;
f.Position = [21,471,1883,333];
subplot(1,4,1);
S = 50;
scatter3(xCoord*1e6,yCoord*1e6,zCoord*1e6,S,sd1,’filled’);
xlabel(‘x (mum)’);
ylabel(‘y (mum)’);
zlabel(‘z (mum)’);
xlim([-15 15]);
ylim([-15 15]);
zlim([-15 15]);
xticks([-15 0 15]);
xticklabels({‘-15′,’0′,’15’});
yticks([-15 0 15]);
yticklabels({‘-15′,’0′,’15’});
zticks([-15 0 15]);
zticklabels({‘-15′,’0′,’15’});
% axis equal;
cb = colorbar();
% clim([0 1]);
title(cb, ‘SD1’);
subplot(1,4,2);
S = 50;
scatter3(xCoord*1e6,yCoord*1e6,zCoord*1e6,S,sd2,’filled’);
xlabel(‘x (mum)’);
ylabel(‘y (mum)’);
zlabel(‘z (mum)’);
xlim([-15 15]);
ylim([-15 15]);
zlim([-15 15]);
xticks([-15 0 15]);
xticklabels({‘-15′,’0′,’15’});
yticks([-15 0 15]);
yticklabels({‘-15′,’0′,’15’});
zticks([-15 0 15]);
zticklabels({‘-15′,’0′,’15’});
% axis equal;
cb = colorbar();
% clim([0 1]);
title(cb, ‘SD2’);
subplot(1,4,3);
S = 50;
scatter3(xCoord*1e6,yCoord*1e6,zCoord*1e6,S,sd3,’filled’);
xlabel(‘x (mum)’);
ylabel(‘y (mum)’);
zlabel(‘z (mum)’);
xlim([-15 15]);
ylim([-15 15]);
zlim([-15 15]);
xticks([-15 0 15]);
xticklabels({‘-15′,’0′,’15’});
yticks([-15 0 15]);
yticklabels({‘-15′,’0′,’15’});
zticks([-15 0 15]);
zticklabels({‘-15′,’0′,’15’});
% axis equal;
cb = colorbar();
% clim([0 1]);
title(cb, ‘SD3’);
subplot(1,4,4);
S = 50;
scatter3(xCoord*1e6,yCoord*1e6,zCoord*1e6,S,relangle,’filled’);
xlabel(‘x (mum)’);
ylabel(‘y (mum)’);
zlabel(‘z (mum)’);
xlim([-15 15]);
ylim([-15 15]);
zlim([-15 15]);
xticks([-15 0 15]);
xticklabels({‘-15′,’0′,’15’});
yticks([-15 0 15]);
yticklabels({‘-15′,’0′,’15’});
zticks([-15 0 15]);
zticklabels({‘-15′,’0′,’15’});
% axis equal;
cb = colorbar();
clim([0 30]);
title(cb, ‘alpha’);
Notice the colorbar labels "SD1", "SD2", "SD3" are clipped at the top and X and Y axes labels are far away from the axes.
Is there a setting to fix all these? I have been moving them manually with the editor but I have several of these figures and would like to make them as consistent as possible in terms of things like label positions. I think it is possible to scan the texts and set their positions semi-manually with code, but it would be much easier if there is a setting like "tight’ or something to move them closer. But "axis tight" does not work here, possibly due to the 3D nature of the plots. In the following image is plotted with the code:
load(‘data.mat’);
f = figure;
f.Position = [21,471,1883,333];
subplot(1,4,1);
S = 50;
scatter3(xCoord*1e6,yCoord*1e6,zCoord*1e6,S,sd1,’filled’);
xlabel(‘x (mum)’);
ylabel(‘y (mum)’);
zlabel(‘z (mum)’);
xlim([-15 15]);
ylim([-15 15]);
zlim([-15 15]);
xticks([-15 0 15]);
xticklabels({‘-15′,’0′,’15’});
yticks([-15 0 15]);
yticklabels({‘-15′,’0′,’15’});
zticks([-15 0 15]);
zticklabels({‘-15′,’0′,’15’});
% axis equal;
cb = colorbar();
% clim([0 1]);
title(cb, ‘SD1’);
subplot(1,4,2);
S = 50;
scatter3(xCoord*1e6,yCoord*1e6,zCoord*1e6,S,sd2,’filled’);
xlabel(‘x (mum)’);
ylabel(‘y (mum)’);
zlabel(‘z (mum)’);
xlim([-15 15]);
ylim([-15 15]);
zlim([-15 15]);
xticks([-15 0 15]);
xticklabels({‘-15′,’0′,’15’});
yticks([-15 0 15]);
yticklabels({‘-15′,’0′,’15’});
zticks([-15 0 15]);
zticklabels({‘-15′,’0′,’15’});
% axis equal;
cb = colorbar();
% clim([0 1]);
title(cb, ‘SD2’);
subplot(1,4,3);
S = 50;
scatter3(xCoord*1e6,yCoord*1e6,zCoord*1e6,S,sd3,’filled’);
xlabel(‘x (mum)’);
ylabel(‘y (mum)’);
zlabel(‘z (mum)’);
xlim([-15 15]);
ylim([-15 15]);
zlim([-15 15]);
xticks([-15 0 15]);
xticklabels({‘-15′,’0′,’15’});
yticks([-15 0 15]);
yticklabels({‘-15′,’0′,’15’});
zticks([-15 0 15]);
zticklabels({‘-15′,’0′,’15’});
% axis equal;
cb = colorbar();
% clim([0 1]);
title(cb, ‘SD3’);
subplot(1,4,4);
S = 50;
scatter3(xCoord*1e6,yCoord*1e6,zCoord*1e6,S,relangle,’filled’);
xlabel(‘x (mum)’);
ylabel(‘y (mum)’);
zlabel(‘z (mum)’);
xlim([-15 15]);
ylim([-15 15]);
zlim([-15 15]);
xticks([-15 0 15]);
xticklabels({‘-15′,’0′,’15’});
yticks([-15 0 15]);
yticklabels({‘-15′,’0′,’15’});
zticks([-15 0 15]);
zticklabels({‘-15′,’0′,’15’});
% axis equal;
cb = colorbar();
clim([0 30]);
title(cb, ‘alpha’);
Notice the colorbar labels "SD1", "SD2", "SD3" are clipped at the top and X and Y axes labels are far away from the axes.
Is there a setting to fix all these? I have been moving them manually with the editor but I have several of these figures and would like to make them as consistent as possible in terms of things like label positions. I think it is possible to scan the texts and set their positions semi-manually with code, but it would be much easier if there is a setting like "tight’ or something to move them closer. But "axis tight" does not work here, possibly due to the 3D nature of the plots. plotting, text, position MATLAB Answers — New Questions
Dev Channel update to 129.0.2779.0 is live.
Hello Insiders! We released 129.0.2779.0 to the Dev channel! This includes numerous fixes. For more details on the changes, check out the highlights below.
Unlocking the future of innovation: the Microsoft AI Tour – The Official Microsoft Blog
Improved Reliability:
Resolved an issue where the app would crash after multiple clicks on the layout button on the NTP (New Tab Page) on iOS.
Changed Behavior:
Resolved an issue where keyboard navigation to the controls in the ‘Current window’ section under the tabs action menu was not possible.
Resolved an issue where the ‘Sort’ option (three dots) in the Collections pane was not functioning.
Resolved an issue where a broken group was displayed in the Tab Groups pane.
Resolved an issue where completing Gamer Mode opens the Gaming Feed in a new tab.
Resolved an issue where icons would overlap on the vertical tab after screen splitting.
Fixed an issue where the tab close buttons were not displayed for focused inactive tabs.
Android:
Resolved an issue where the sign-in time for MSA accounts was excessively long and not synchronized on android.
Resolved an issue where the Android Rewards ‘Earn More’ page was opening in the web UI instead of a new browser tab.
iOS:
Resolved an issue where the Read Aloud toolbar had a different color from the address bar and tab center, making it aesthetically unpleasing on iOS.
Resolved an issue where the address bar would disappear when the translator appeared on iOS.
Fixed an issue where Voiceover did not announce clear name information for the ‘Camera, Switch, button’ on iOS.
Fixed an issue where, after translation, using the read aloud feature and clicking on ‘x’ caused the translation toolbar to not appear on iOS.
Resolved an issue by updating the text from ‘Ask me anything’ to ‘Search or type URL’ as part of the Copilot transition on iOS.
See an issue that you think might be a bug? Remember to send that directly through the in-app feedback by heading to the … menu > Help and feedback > Send feedback and include diagnostics so the team can investigate.
Thanks again for sending us feedback and helping us improve our Insider builds.
~Gouri
Hello Insiders! We released 129.0.2779.0 to the Dev channel! This includes numerous fixes. For more details on the changes, check out the highlights below.
Unlocking the future of innovation: the Microsoft AI Tour – The Official Microsoft Blog
Improved Reliability:
Resolved an issue where the app would crash after multiple clicks on the layout button on the NTP (New Tab Page) on iOS.
Changed Behavior:
Resolved an issue where keyboard navigation to the controls in the ‘Current window’ section under the tabs action menu was not possible.
Resolved an issue where the ‘Sort’ option (three dots) in the Collections pane was not functioning.
Resolved an issue where a broken group was displayed in the Tab Groups pane.
Resolved an issue where completing Gamer Mode opens the Gaming Feed in a new tab.
Resolved an issue where icons would overlap on the vertical tab after screen splitting.
Fixed an issue where the tab close buttons were not displayed for focused inactive tabs.
Android:
Resolved an issue where the sign-in time for MSA accounts was excessively long and not synchronized on android.
Resolved an issue where the Android Rewards ‘Earn More’ page was opening in the web UI instead of a new browser tab.
iOS:
Resolved an issue where the Read Aloud toolbar had a different color from the address bar and tab center, making it aesthetically unpleasing on iOS.
Resolved an issue where the address bar would disappear when the translator appeared on iOS.
Fixed an issue where Voiceover did not announce clear name information for the ‘Camera, Switch, button’ on iOS.
Fixed an issue where, after translation, using the read aloud feature and clicking on ‘x’ caused the translation toolbar to not appear on iOS.
Resolved an issue by updating the text from ‘Ask me anything’ to ‘Search or type URL’ as part of the Copilot transition on iOS.
See an issue that you think might be a bug? Remember to send that directly through the in-app feedback by heading to the … menu > Help and feedback > Send feedback and include diagnostics so the team can investigate.
Thanks again for sending us feedback and helping us improve our Insider builds.
~Gouri Read More
New Blog Post: Securing Multi-Cloud Gen AI workloads using Azure Native Solutions
Note: This series is part of “Security using Azure Native services” series and assumes that you are or planning to leverage Defender for Cloud, Defender XDR Portal, and Azure Sentinel.
Introduction
AI Based Technology introduces a new set of security risks that may not be comprehensively covered by existing risk management frameworks. Based on our experience, customers often only consider the risks related to the Gen AI models like OpenAI or Anthropic. Thereby, not taking a holistic approach that cover all aspects of the workload.
This article will help you:
Understand a typical multi-cloud Gen AI workload pattern
Articulate the technical risks exists in the AI workload
Recommend security controls leveraging Azure Native services
We will not cover Data Security (cryptography, regulatory implications etc.), model specific issues like Hallucinations, deepfakes, privacy, toxicity, societal bias, supply chain security, attacks that leverage Gen AI capabilities to manifest such as Disinformation, Deepfakes, Financial Fraud etc. Instead, we aim to provide guidance on architectural security controls that will enable secure:
Configuration of AI workload
Operation of the workload
This is a two-part series:
Part 1: Provides a framework to understand the threats related to Gen AI workloads holistically and an easy reference to the native security solutions that help mitigate. We also provide sample controls using leading industry frameworks.
Part 2: Will dive deeper into the AI shared responsibility model and how that overlaps with your design choices
Threat Landscape
Let’s discuss some common threats:
Insider abuse: An insider (human or machine) sending sensitive / proprietary information to a third party GenAI model
Supply chain poisoning: Compromise of a third-party GenAI model (whether this is a SaaS or binary llm models developed by third party and downloaded by your organization)
System abuse: Manipulating the model prompts to mislead the end user of the model
Over privilege: Granting unrestricted permissions and capability to the model thereby allowing the model to perform unintentional actions
Data theft/exfiltration: Intentional or unintentional exfiltration of the proprietary models, prompts, and model outputs
Insecure configuration: Not following the leading practices when architecting and operating your AI workload
Model poisoning: Tampering with the model itself to affect the desired behavior of the model
Denial of Service: Impacting the performance of the model with resource intensive operations
We will discuss how these threats apply in a common architecture.
Reference architecture
Fig. Gen-AI cloud native workload
Let’s discuss each step so we can construct a layered defense:
Assuming you are following cloud native architecture patterns, your developer will publish all the application and infrastructure code in an Azure DevOps repo
The DevOps pipeline will then Create a container image
Pipeline will also set up respective API endpoints in Azure API management
Pipeline will deploy the image with Kubernetes manifests (note that he secrets will stored out of bound in Azure Key Vault)
User access an application that leverages GenAI (Open AI for Azure and Anthropic in AWS)
Depending on the API endpoint requested, APIM will direct the request to the containerized application running in cloud native Kubernetes platforms (AKS or EKS)
The application uses API credentials stored in KeyVault
The application makes requests to appropriate Gen AI service
The results are stored in a storage service and are reported back to the user who initiated step 5 above
Each cloud native service stores the diagnostic logs in a centralized Log Analytics Workspace (LAW)
Azure Sentinel is enabled on the LAW
For the full post click here: Securing Multi-Cloud Gen AI workloads using Azure Native Solutions – Microsoft Community Hub
Note: This series is part of “Security using Azure Native services” series and assumes that you are or planning to leverage Defender for Cloud, Defender XDR Portal, and Azure Sentinel.
Introduction
AI Based Technology introduces a new set of security risks that may not be comprehensively covered by existing risk management frameworks. Based on our experience, customers often only consider the risks related to the Gen AI models like OpenAI or Anthropic. Thereby, not taking a holistic approach that cover all aspects of the workload.
This article will help you:
Understand a typical multi-cloud Gen AI workload pattern
Articulate the technical risks exists in the AI workload
Recommend security controls leveraging Azure Native services
We will not cover Data Security (cryptography, regulatory implications etc.), model specific issues like Hallucinations, deepfakes, privacy, toxicity, societal bias, supply chain security, attacks that leverage Gen AI capabilities to manifest such as Disinformation, Deepfakes, Financial Fraud etc. Instead, we aim to provide guidance on architectural security controls that will enable secure:
Configuration of AI workload
Operation of the workload
This is a two-part series:
Part 1: Provides a framework to understand the threats related to Gen AI workloads holistically and an easy reference to the native security solutions that help mitigate. We also provide sample controls using leading industry frameworks.
Part 2: Will dive deeper into the AI shared responsibility model and how that overlaps with your design choices
Threat Landscape
Let’s discuss some common threats:
Insider abuse: An insider (human or machine) sending sensitive / proprietary information to a third party GenAI model
Supply chain poisoning: Compromise of a third-party GenAI model (whether this is a SaaS or binary llm models developed by third party and downloaded by your organization)
System abuse: Manipulating the model prompts to mislead the end user of the model
Over privilege: Granting unrestricted permissions and capability to the model thereby allowing the model to perform unintentional actions
Data theft/exfiltration: Intentional or unintentional exfiltration of the proprietary models, prompts, and model outputs
Insecure configuration: Not following the leading practices when architecting and operating your AI workload
Model poisoning: Tampering with the model itself to affect the desired behavior of the model
Denial of Service: Impacting the performance of the model with resource intensive operations
We will discuss how these threats apply in a common architecture.
Reference architecture
Fig. Gen-AI cloud native workload
Let’s discuss each step so we can construct a layered defense:
Assuming you are following cloud native architecture patterns, your developer will publish all the application and infrastructure code in an Azure DevOps repo
The DevOps pipeline will then Create a container image
Pipeline will also set up respective API endpoints in Azure API management
Pipeline will deploy the image with Kubernetes manifests (note that he secrets will stored out of bound in Azure Key Vault)
User access an application that leverages GenAI (Open AI for Azure and Anthropic in AWS)
Depending on the API endpoint requested, APIM will direct the request to the containerized application running in cloud native Kubernetes platforms (AKS or EKS)
The application uses API credentials stored in KeyVault
The application makes requests to appropriate Gen AI service
The results are stored in a storage service and are reported back to the user who initiated step 5 above
Each cloud native service stores the diagnostic logs in a centralized Log Analytics Workspace (LAW)
Azure Sentinel is enabled on the LAW
For the full post click here: Securing Multi-Cloud Gen AI workloads using Azure Native Solutions – Microsoft Community Hub Read More
IIS: Remediation steps for insecure HTTP TRACE Method and XSS vulnerability.
The HTTP TRACE method vulnerability, identified as CVE-2022-38115, is a critical security concern within Internet Information Services. This vulnerability allows attackers to exploit the HTTP TRACE method, which can be misused for Cross-Site Scripting (XSS) attacks. Such attacks can enable malicious actors to intercept and manipulate user data, potentially leading to unauthorized access, data breaches, and other security incidents.
Identify the issue
To diagnose the issue, open your PowerShell console and run the following command to check if the server is responding to the TRACE method.
Invoke-WebRequest -Uri http://<your_address>:<port> -Method TRACE -Verbose
You can also use curl command to identify the same.
curl -v -X TRACE http://<your_address>:<port>
In both scenarios, the server responded with a status code 200 for the TRACE method. This confirms that the site is vulnerable and can be identified as CVE-2022-38115.
Solution
There are many ways to remediate the vulnerability. You can follow any of the methods outlined below for remediation.
Request Filtering
You can use the built-in IIS feature, Request Filtering. Open IIS Manager, navigate to your site, and then open the “Request Filtering” module. From there, go to the HTTP Verbs section.
In the right-hand Actions pane, click on “Deny Verb.” The Deny Verb popup window will appear. Enter “TRACE” as the Verb and click OK, as shown in the picture. Then, restart the Application Pool or IIS to apply the settings.
You can achieve the same result by modifying your web.config file. To do this, locate the web.config file in the root directory of your web application and add the following configuration under the <system.webServer> tag.
<system.webServer>
<security>
<requestFiltering>
<verbs>
<remove verb=”TRACE” />
</verbs>
</requestFiltering>
</security>
</system.webServer>
To test the changes, try accessing the URL using the TRACE method. You should receive a 404.6 Not Found error.
Registry settings
You can also address the vulnerability by updating the registry settings. Open the Registry Editor and navigate to “ComputerHKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW3SVCParameters”.
Set the DWORD EnableTraceMethod value to 0. For more information about the EnableTraceMethod value, you can refer to the article Use registry keys – Internet Information Services | Microsoft Learn. After making this change, restart IIS for it to take effect. To test, access the URL using the TRACE method; you should receive a 501 – Not Implemented status code.
Microsoft Tech Community – Latest Blogs –Read More
Exchange Online Message Recall Updates
Since we released the cloud-based Message Recall for Outlook on Windows in April 2023 (see Cloud-based Message Recall in Exchange Online), we’ve continued to work on improvements and enhanced functionality such as support for Outlook on the Web and an improved experience when recalling shared mailbox messages. Today, we’re pleased to announce several more updates and improvements based on customer feedback that are available now to all Exchange Online customers:
Optional Recall Notifications for Recipients
Maximum Recallable Message Age
Support for External Round-trip Routing
Optional Recall Notifications for Recipients
Previously, when a message was recalled it would be silently deleted from a recipient’s mailbox, sometimes causing user confusion. Recipients who had seen or read the message before it was recalled could be left puzzled about its disappearance. While senders often prefer their recalls to be done discreetly, some recipients felt confused by the silent deletion. To reduce recipient confusion, tenant admins can now enable recall notification emails for recipients when a message is recalled. This feature is disabled by default but can be activated in two modes.
For all recalled messages
For read recalled messages only
When enabled, the relevant recipients of recalled messages will get an email notification informing them of the recall. For example:
Admins can configure recall notifications for recipients in the Exchange admin center (under Settings > Mail flow):
Admins can also configure these settings using Exchange Online PowerShell:
Set-OrganizationConfig -MessageRecallAlertRecipientsEnabled [$False | $True]
This enables or disables message recall notifications for recipients. Setting this parameter to $True enables notifications, while setting it to $False (default) disables them.
Set-OrganizationConfig -MessageRecallAlertRecipientsReadMessagesOnlyEnabled [$False | $True]
When the -MessageRecallAlertRecipientsEnabled parameter is set to $True, this cmdlet allows admins to specify if recall notifications should be sent only for read messages. Setting this parameter to $True enables notifications only for read messages, while $False (default) enables notifications for read and unread messages.
Maximum Recallable Message Age
Previously, messages could be recalled regardless of age. Customers requested the ability to restrict recalling older messages, such as those sent more than 30 days ago. The new Maximum Recallable Message Age setting allows this, with a default of 365 days. Tenant admins can configure it between 5 minutes and 10 years.
This can be done in the Exchange admin center (under Settings > Mail flow):
And it can be done using Exchange Online PowerShell:
Set-OrganizationConfig -MessageRecallMaxRecallableAge [DDDD.HH:MM:SS]
When a sender tries to recall a sent message older than what’s allowed, the sender will get a notification saying that the message is too old to be recalled.
Support for External Round-trip Routing
By design, Message Recall doesn’t support recalling messages sent outside the Exchange Online service boundary. Yet, some admins route their intra-tenant mail (where the sender and the recipients are in the same tenant) out of Exchange Online to a third-party service or on-premises systems for additional processing before routing back into Exchange Online for delivery. Previously, in this scenario, recalls fail.
Today, we’re pleased to announce that Message Recall now supports recalling intra-tenant messages that route externally then back into Exchange Online for delivery.
All three updates are now available to Exchange Online tenants. We hope you’ll find these enhancements useful, and we look forward to your feedback.
Kevin Shaughnessy
Microsoft Tech Community – Latest Blogs –Read More
The new Microsoft Planner in Teams is now available in GCC
We’re excited to share that the new Planner app in Teams is now available to our customers in the Microsoft GCC-M environment! There is no migration necessary; all your tasks, basic plans, and premium plans (formerly projects) are already in the new Planner.
You can learn more about the new Planner in our previous announcement in the Planner blog. Your feedback helps us prioritize what to build! Share it with us via the Planner Feedback Portal.
Getting started
Click here to open Planner in Teams. You can also find the Planner App in the Teams App browser. Start by opening the “…” menu on the navigation bar.
Once you’ve added it, pin Planner for easy access.
Differences for customers in GCC-M
A few features are not available to customers in GCC-M.
CoPilot
In the My Tasks view, Tasks assigned to you in premium plans.
Converting a basic plan to a premium plan.
Task History
Additional Resources
Read the FAQs
Watch the recording of an “Ask Microsoft Anything“ event with the Planner Product team on the new Planner
Watch the new Planner demos for inspiration on how to get the most out of the new Planner app in Microsoft Teams.
Check out the new Planner adoption website
We’ve got a lot more ‘planned’ for the new Planner this year! Stay tuned to the Planner Blog – Microsoft Community Hub for news.
Sign up to get the latest updates on the new Planner
For future of the new Planner app, please view the Microsoft 365 roadmap here
Microsoft Tech Community – Latest Blogs –Read More
Please help me to run surf plot with bvp4c.
Please help me to run surf plot with bvp4c.The surfce digram consists of (constant Prf [2 :1:6] represents y-axis & vector>> sol.x [0 4] represents x-axis (m = linspace(0,4);) & second solution only sol.y(6,:) represents z-axis).The following is the code for 2D (sol.x [0 4] and only sol.y(6,:)). How to give command for making surf plot in bvp4c.
proj()
function sol= proj
clc;clf;clear;
%Relation of base fluid
rhof=1;kf=0.613*10^5;cpf=4179*10^4;muf=10^-3*10;sigf=0.05*10^-8;alfaf=kf/(rhof*cpf);
%FE3O4
ph1=0.01;rho1=5180*10^-3;cp1=670*10^4;k1=9.7*10^5;sig1=0.74*10^-2;
%copper
ph2=0.01;rho2=8933*10^-3;cp2=385*10^4;k2=401*10^5;sig2=5.96*10^-1;
%Relation of hyprid
m=5.7;
kh=kf*((k1+(m-1)*kf-(m-1)*ph1*(kf-k1))/((k1+(m-1)*kf+ph1*(kf-k1))))*((k2+(m-1)*kf-(m-1)*ph2*(kf-k2))/((k2+(m-1)*kf+ph2*(kf-k2))));
muh= muf/((1-ph1)^2.5*(1-ph2)^2.5);
rhoh=rhof*(1-ph2)*((1-ph1)+ph1*(rho1/rhof))+ph2*rho2;
v1 =rhof*cpf*(1-ph2)*((1-ph1)+ph1*((rho1*cp1)/(rho2*cp2)))+ph2*(rho2*cp2);
sigh=sigf+(3*((ph1*sig1+ph2*sig2)-sigf*(ph1+ph2))/(((ph1*sig1+ph2*sig2)/(sigf*(ph1+ph2)))+2-((ph1*sig1+ph2*sig2)/sigf)+(ph1+ph2)));
alfah=kh/v1;
myLegend1 = {};
rr = [4 5 6 7]
for i =1:numel(rr)
Prf = rr(i);
Nr=0.1;
gamma=pi/3;
a=1;b=0.1;v=1;u=1;
M=3;
Nt=1;Nb=1; sc=0.6;s1=1;s2=1;
p=-0.5; L=(muf/rhof);L1=L^(p);
Tw=273+50;Ti=273+27;deltaT=Tw-Ti;
Lf=rhof*kf;
y0 = [1,0,1,0,0,1,0,1,0];
options =bvpset(‘stats’,’on’,’RelTol’,1e-4);
m = linspace(0,4);
solinit = bvpinit(m,y0);
sol= bvp4c(@projfun,@projbc,solinit,options);
disp((sol.y(1,20)))
figure(1)
plot(sol.x,(sol.y(6,:)))
% axis([0 4 0 1])
grid on,hold on
myLegend1{i}=[‘Pr = ‘,num2str(rr(i))];
i=i+1;
end
figure(1)
legend(myLegend1)
hold on
function dy= projfun(~,y)
dy= zeros(9,1);
% alignComments
E = y(1);
dE = y(2);
F = y(3);
dF= y(4);
W = y(5);
t = y(6);
dt = y(7);
phi = y(8);
dphi = y(9);
dy(1) = dE;
dy(2) = (rhoh/muh)*((((a*u)/L1^(2)))*E^2+(1/L1)*W*dE+((sigh/sigf)/(rhoh/rhof))*(1/L1^2)*M*E*sin(gamma)*sin(gamma));
dy(3) = dF;
dy(4) = (rhoh/muh)*((((b*v)/L1^(2)))*F^2+(1/L1)*W*dF+((sigh/sigf)/(rhoh/rhof))*(1/L1^2)*M*F*sin(gamma)*sin(gamma));
dy(5) = -(1/L1)*(u*a*E+b*v*F);
dy(6) = dt;
dy(7) =(Prf*(rhof/muf))*(1/(Nr+(kh/kf)))*(((v1)/(rhof*cpf))*(1/L1)*W*dt-(muh/(rhof*cpf))*(L1/s1)*(1/deltaT)*(-(1/L1)*(u*a*E+b*v*F))^2);
dy(8)= dphi;
dy(9)=(sc/L^(p+1))*W*dphi-(s1/s2)*(Nt/Nb)*(((Prf*(rhof/muf)))*(1/(Nr+(kh/kf)))*(((v1)/(rhof*cpf))*(1/L1)*W*dt-(muh/(rhof*cpf))*(L1/s1)*(1/deltaT)*(-(1/L1)*(u*a*E+b*v*F))^2));
end
end
function res= projbc(ya,yb)
res= [ya(1)-1;
ya(3)-1;
ya(5)-0;
ya(6)-1;
ya(8)-1;
yb(1);
yb(3);
yb(6);
yb(8)];
endPlease help me to run surf plot with bvp4c.The surfce digram consists of (constant Prf [2 :1:6] represents y-axis & vector>> sol.x [0 4] represents x-axis (m = linspace(0,4);) & second solution only sol.y(6,:) represents z-axis).The following is the code for 2D (sol.x [0 4] and only sol.y(6,:)). How to give command for making surf plot in bvp4c.
proj()
function sol= proj
clc;clf;clear;
%Relation of base fluid
rhof=1;kf=0.613*10^5;cpf=4179*10^4;muf=10^-3*10;sigf=0.05*10^-8;alfaf=kf/(rhof*cpf);
%FE3O4
ph1=0.01;rho1=5180*10^-3;cp1=670*10^4;k1=9.7*10^5;sig1=0.74*10^-2;
%copper
ph2=0.01;rho2=8933*10^-3;cp2=385*10^4;k2=401*10^5;sig2=5.96*10^-1;
%Relation of hyprid
m=5.7;
kh=kf*((k1+(m-1)*kf-(m-1)*ph1*(kf-k1))/((k1+(m-1)*kf+ph1*(kf-k1))))*((k2+(m-1)*kf-(m-1)*ph2*(kf-k2))/((k2+(m-1)*kf+ph2*(kf-k2))));
muh= muf/((1-ph1)^2.5*(1-ph2)^2.5);
rhoh=rhof*(1-ph2)*((1-ph1)+ph1*(rho1/rhof))+ph2*rho2;
v1 =rhof*cpf*(1-ph2)*((1-ph1)+ph1*((rho1*cp1)/(rho2*cp2)))+ph2*(rho2*cp2);
sigh=sigf+(3*((ph1*sig1+ph2*sig2)-sigf*(ph1+ph2))/(((ph1*sig1+ph2*sig2)/(sigf*(ph1+ph2)))+2-((ph1*sig1+ph2*sig2)/sigf)+(ph1+ph2)));
alfah=kh/v1;
myLegend1 = {};
rr = [4 5 6 7]
for i =1:numel(rr)
Prf = rr(i);
Nr=0.1;
gamma=pi/3;
a=1;b=0.1;v=1;u=1;
M=3;
Nt=1;Nb=1; sc=0.6;s1=1;s2=1;
p=-0.5; L=(muf/rhof);L1=L^(p);
Tw=273+50;Ti=273+27;deltaT=Tw-Ti;
Lf=rhof*kf;
y0 = [1,0,1,0,0,1,0,1,0];
options =bvpset(‘stats’,’on’,’RelTol’,1e-4);
m = linspace(0,4);
solinit = bvpinit(m,y0);
sol= bvp4c(@projfun,@projbc,solinit,options);
disp((sol.y(1,20)))
figure(1)
plot(sol.x,(sol.y(6,:)))
% axis([0 4 0 1])
grid on,hold on
myLegend1{i}=[‘Pr = ‘,num2str(rr(i))];
i=i+1;
end
figure(1)
legend(myLegend1)
hold on
function dy= projfun(~,y)
dy= zeros(9,1);
% alignComments
E = y(1);
dE = y(2);
F = y(3);
dF= y(4);
W = y(5);
t = y(6);
dt = y(7);
phi = y(8);
dphi = y(9);
dy(1) = dE;
dy(2) = (rhoh/muh)*((((a*u)/L1^(2)))*E^2+(1/L1)*W*dE+((sigh/sigf)/(rhoh/rhof))*(1/L1^2)*M*E*sin(gamma)*sin(gamma));
dy(3) = dF;
dy(4) = (rhoh/muh)*((((b*v)/L1^(2)))*F^2+(1/L1)*W*dF+((sigh/sigf)/(rhoh/rhof))*(1/L1^2)*M*F*sin(gamma)*sin(gamma));
dy(5) = -(1/L1)*(u*a*E+b*v*F);
dy(6) = dt;
dy(7) =(Prf*(rhof/muf))*(1/(Nr+(kh/kf)))*(((v1)/(rhof*cpf))*(1/L1)*W*dt-(muh/(rhof*cpf))*(L1/s1)*(1/deltaT)*(-(1/L1)*(u*a*E+b*v*F))^2);
dy(8)= dphi;
dy(9)=(sc/L^(p+1))*W*dphi-(s1/s2)*(Nt/Nb)*(((Prf*(rhof/muf)))*(1/(Nr+(kh/kf)))*(((v1)/(rhof*cpf))*(1/L1)*W*dt-(muh/(rhof*cpf))*(L1/s1)*(1/deltaT)*(-(1/L1)*(u*a*E+b*v*F))^2));
end
end
function res= projbc(ya,yb)
res= [ya(1)-1;
ya(3)-1;
ya(5)-0;
ya(6)-1;
ya(8)-1;
yb(1);
yb(3);
yb(6);
yb(8)];
end Please help me to run surf plot with bvp4c.The surfce digram consists of (constant Prf [2 :1:6] represents y-axis & vector>> sol.x [0 4] represents x-axis (m = linspace(0,4);) & second solution only sol.y(6,:) represents z-axis).The following is the code for 2D (sol.x [0 4] and only sol.y(6,:)). How to give command for making surf plot in bvp4c.
proj()
function sol= proj
clc;clf;clear;
%Relation of base fluid
rhof=1;kf=0.613*10^5;cpf=4179*10^4;muf=10^-3*10;sigf=0.05*10^-8;alfaf=kf/(rhof*cpf);
%FE3O4
ph1=0.01;rho1=5180*10^-3;cp1=670*10^4;k1=9.7*10^5;sig1=0.74*10^-2;
%copper
ph2=0.01;rho2=8933*10^-3;cp2=385*10^4;k2=401*10^5;sig2=5.96*10^-1;
%Relation of hyprid
m=5.7;
kh=kf*((k1+(m-1)*kf-(m-1)*ph1*(kf-k1))/((k1+(m-1)*kf+ph1*(kf-k1))))*((k2+(m-1)*kf-(m-1)*ph2*(kf-k2))/((k2+(m-1)*kf+ph2*(kf-k2))));
muh= muf/((1-ph1)^2.5*(1-ph2)^2.5);
rhoh=rhof*(1-ph2)*((1-ph1)+ph1*(rho1/rhof))+ph2*rho2;
v1 =rhof*cpf*(1-ph2)*((1-ph1)+ph1*((rho1*cp1)/(rho2*cp2)))+ph2*(rho2*cp2);
sigh=sigf+(3*((ph1*sig1+ph2*sig2)-sigf*(ph1+ph2))/(((ph1*sig1+ph2*sig2)/(sigf*(ph1+ph2)))+2-((ph1*sig1+ph2*sig2)/sigf)+(ph1+ph2)));
alfah=kh/v1;
myLegend1 = {};
rr = [4 5 6 7]
for i =1:numel(rr)
Prf = rr(i);
Nr=0.1;
gamma=pi/3;
a=1;b=0.1;v=1;u=1;
M=3;
Nt=1;Nb=1; sc=0.6;s1=1;s2=1;
p=-0.5; L=(muf/rhof);L1=L^(p);
Tw=273+50;Ti=273+27;deltaT=Tw-Ti;
Lf=rhof*kf;
y0 = [1,0,1,0,0,1,0,1,0];
options =bvpset(‘stats’,’on’,’RelTol’,1e-4);
m = linspace(0,4);
solinit = bvpinit(m,y0);
sol= bvp4c(@projfun,@projbc,solinit,options);
disp((sol.y(1,20)))
figure(1)
plot(sol.x,(sol.y(6,:)))
% axis([0 4 0 1])
grid on,hold on
myLegend1{i}=[‘Pr = ‘,num2str(rr(i))];
i=i+1;
end
figure(1)
legend(myLegend1)
hold on
function dy= projfun(~,y)
dy= zeros(9,1);
% alignComments
E = y(1);
dE = y(2);
F = y(3);
dF= y(4);
W = y(5);
t = y(6);
dt = y(7);
phi = y(8);
dphi = y(9);
dy(1) = dE;
dy(2) = (rhoh/muh)*((((a*u)/L1^(2)))*E^2+(1/L1)*W*dE+((sigh/sigf)/(rhoh/rhof))*(1/L1^2)*M*E*sin(gamma)*sin(gamma));
dy(3) = dF;
dy(4) = (rhoh/muh)*((((b*v)/L1^(2)))*F^2+(1/L1)*W*dF+((sigh/sigf)/(rhoh/rhof))*(1/L1^2)*M*F*sin(gamma)*sin(gamma));
dy(5) = -(1/L1)*(u*a*E+b*v*F);
dy(6) = dt;
dy(7) =(Prf*(rhof/muf))*(1/(Nr+(kh/kf)))*(((v1)/(rhof*cpf))*(1/L1)*W*dt-(muh/(rhof*cpf))*(L1/s1)*(1/deltaT)*(-(1/L1)*(u*a*E+b*v*F))^2);
dy(8)= dphi;
dy(9)=(sc/L^(p+1))*W*dphi-(s1/s2)*(Nt/Nb)*(((Prf*(rhof/muf)))*(1/(Nr+(kh/kf)))*(((v1)/(rhof*cpf))*(1/L1)*W*dt-(muh/(rhof*cpf))*(L1/s1)*(1/deltaT)*(-(1/L1)*(u*a*E+b*v*F))^2));
end
end
function res= projbc(ya,yb)
res= [ya(1)-1;
ya(3)-1;
ya(5)-0;
ya(6)-1;
ya(8)-1;
yb(1);
yb(3);
yb(6);
yb(8)];
end surf, surface, bvp4c MATLAB Answers — New Questions
Separate data to plot as multiple lines
It has been a while since I have touched matlab, and as such I can’t quite figure out how to solve this issue. Essentially, I have data being created to monitor a device. This data is in an excel sheet, and I have imported that excel sheet into matlab. The table is then parsed to only include certain data for creation of each plot. My problem is when plotting the table, which has multiple runs included. An example of such I will be including below:
run time var1
0 0 0
0 1 1
0 2 …
1 3 …
1 4 …
2 5 …
3 6 50
My question is how would I split this data so that I can plot each run as a seperate line on the same graph? So in this case, it would be a line plot showing the 4 runs (0-3) as separate lines, comparing time to the change in the variables. Thank you.It has been a while since I have touched matlab, and as such I can’t quite figure out how to solve this issue. Essentially, I have data being created to monitor a device. This data is in an excel sheet, and I have imported that excel sheet into matlab. The table is then parsed to only include certain data for creation of each plot. My problem is when plotting the table, which has multiple runs included. An example of such I will be including below:
run time var1
0 0 0
0 1 1
0 2 …
1 3 …
1 4 …
2 5 …
3 6 50
My question is how would I split this data so that I can plot each run as a seperate line on the same graph? So in this case, it would be a line plot showing the 4 runs (0-3) as separate lines, comparing time to the change in the variables. Thank you. It has been a while since I have touched matlab, and as such I can’t quite figure out how to solve this issue. Essentially, I have data being created to monitor a device. This data is in an excel sheet, and I have imported that excel sheet into matlab. The table is then parsed to only include certain data for creation of each plot. My problem is when plotting the table, which has multiple runs included. An example of such I will be including below:
run time var1
0 0 0
0 1 1
0 2 …
1 3 …
1 4 …
2 5 …
3 6 50
My question is how would I split this data so that I can plot each run as a seperate line on the same graph? So in this case, it would be a line plot showing the 4 runs (0-3) as separate lines, comparing time to the change in the variables. Thank you. plot, table MATLAB Answers — New Questions
IVI connection to Rigol DMM
Hi All… I have been attempting to connect a Rigol DM3068 DMM to Matlab. The driver from the manufacturer has been installed. I have spent many hours going down a rabbit hole of pages that links to more links, along with processes that leads to depreciated functions and errors. Below shows the current state of my attempts.
I’m now rather confused on the actual process. It would be ideal to find an example of how to generate the wrapper and link the driver to Matlab with current functions.
>> instrhwinfo
ans =
HardwareInfo with properties:
MATLABVersion: ‘9.14 (R2023a)’
SupportedInterfaces: {‘gpib’ ‘serial’ ‘serialport’ ‘tcpip’ ‘udp’ ‘visa’ ‘Bluetooth’ ‘i2c’ ‘spi’}
SupportedDrivers: {‘matlab’ ‘ivi’ ‘vxipnp’}
ToolboxName: ‘Instrument Control Toolbox’
ToolboxVersion: ‘4.8 (R2023a)’
>> ividriverlist
ans =
1×4 table
VendorDriver MATLABDriver IVIClass SupportedModels
____________ ____________ ________ _______________
1 "rgdm3068" "" "IVIDmm" {["DM3068"]}
>> configStore = iviconfigurationstore;
>> add(configStore,"HardwareAsset","myDMMHWAsset2","TCPIP0::192.168.1.120::INSTR");
>> add(configStore,"DriverSession","myDMMSession2","rgdm3068","myDMMHWAsset2");
>> add(configStore,"LogicalName","myDMM2","myDMMSession2");
>> commit(configStore);
>> dev = ividev("IviDMM2","myDMM2");
No ividev MATLAB drivers found for your hardware.
>> instrhwinfo(‘ivi’)
ans =
HardwareInfo with properties:
LogicalNames: {‘myDMM’ ‘myDMM2’}
Modules: {1×13 cell}
ConfigurationServerVersion: ‘1.7.0.12115’
ConfigurationStoreLocation: ‘C:ProgramDataIVI FoundationIVIIviConfigurationStore.xml’
IVIRootPath: ‘C:Program FilesIVI FoundationIVI’Hi All… I have been attempting to connect a Rigol DM3068 DMM to Matlab. The driver from the manufacturer has been installed. I have spent many hours going down a rabbit hole of pages that links to more links, along with processes that leads to depreciated functions and errors. Below shows the current state of my attempts.
I’m now rather confused on the actual process. It would be ideal to find an example of how to generate the wrapper and link the driver to Matlab with current functions.
>> instrhwinfo
ans =
HardwareInfo with properties:
MATLABVersion: ‘9.14 (R2023a)’
SupportedInterfaces: {‘gpib’ ‘serial’ ‘serialport’ ‘tcpip’ ‘udp’ ‘visa’ ‘Bluetooth’ ‘i2c’ ‘spi’}
SupportedDrivers: {‘matlab’ ‘ivi’ ‘vxipnp’}
ToolboxName: ‘Instrument Control Toolbox’
ToolboxVersion: ‘4.8 (R2023a)’
>> ividriverlist
ans =
1×4 table
VendorDriver MATLABDriver IVIClass SupportedModels
____________ ____________ ________ _______________
1 "rgdm3068" "" "IVIDmm" {["DM3068"]}
>> configStore = iviconfigurationstore;
>> add(configStore,"HardwareAsset","myDMMHWAsset2","TCPIP0::192.168.1.120::INSTR");
>> add(configStore,"DriverSession","myDMMSession2","rgdm3068","myDMMHWAsset2");
>> add(configStore,"LogicalName","myDMM2","myDMMSession2");
>> commit(configStore);
>> dev = ividev("IviDMM2","myDMM2");
No ividev MATLAB drivers found for your hardware.
>> instrhwinfo(‘ivi’)
ans =
HardwareInfo with properties:
LogicalNames: {‘myDMM’ ‘myDMM2’}
Modules: {1×13 cell}
ConfigurationServerVersion: ‘1.7.0.12115’
ConfigurationStoreLocation: ‘C:ProgramDataIVI FoundationIVIIviConfigurationStore.xml’
IVIRootPath: ‘C:Program FilesIVI FoundationIVI’ Hi All… I have been attempting to connect a Rigol DM3068 DMM to Matlab. The driver from the manufacturer has been installed. I have spent many hours going down a rabbit hole of pages that links to more links, along with processes that leads to depreciated functions and errors. Below shows the current state of my attempts.
I’m now rather confused on the actual process. It would be ideal to find an example of how to generate the wrapper and link the driver to Matlab with current functions.
>> instrhwinfo
ans =
HardwareInfo with properties:
MATLABVersion: ‘9.14 (R2023a)’
SupportedInterfaces: {‘gpib’ ‘serial’ ‘serialport’ ‘tcpip’ ‘udp’ ‘visa’ ‘Bluetooth’ ‘i2c’ ‘spi’}
SupportedDrivers: {‘matlab’ ‘ivi’ ‘vxipnp’}
ToolboxName: ‘Instrument Control Toolbox’
ToolboxVersion: ‘4.8 (R2023a)’
>> ividriverlist
ans =
1×4 table
VendorDriver MATLABDriver IVIClass SupportedModels
____________ ____________ ________ _______________
1 "rgdm3068" "" "IVIDmm" {["DM3068"]}
>> configStore = iviconfigurationstore;
>> add(configStore,"HardwareAsset","myDMMHWAsset2","TCPIP0::192.168.1.120::INSTR");
>> add(configStore,"DriverSession","myDMMSession2","rgdm3068","myDMMHWAsset2");
>> add(configStore,"LogicalName","myDMM2","myDMMSession2");
>> commit(configStore);
>> dev = ividev("IviDMM2","myDMM2");
No ividev MATLAB drivers found for your hardware.
>> instrhwinfo(‘ivi’)
ans =
HardwareInfo with properties:
LogicalNames: {‘myDMM’ ‘myDMM2’}
Modules: {1×13 cell}
ConfigurationServerVersion: ‘1.7.0.12115’
ConfigurationStoreLocation: ‘C:ProgramDataIVI FoundationIVIIviConfigurationStore.xml’
IVIRootPath: ‘C:Program FilesIVI FoundationIVI’ ivi, rigol, instrument toolbox MATLAB Answers — New Questions
converting string to num and table
I have a table containing string data that represents cyclone certain and uncertain tracks. Each cell in the table may contain multiple track numbers (seperated by a space), where the presence of ‘x’ beside a number indicates uncertainty in that track. For example, in tempData(7,1) = "30 25x", ’30’ is a certain track, and ’25’ is uncertain.
I need to write a code that parses each cell in a column of tempData, separates the track numbers and their uncertainty markers (‘x’), and outputs a (in this case) 4-column table for each column in tempData. The headers of the output table should be track1, uncert1, track2, uncert2, corresponding to the parsed tracks and their certainty indicators (marked by 0 or 1). If the input has 3 tracks, the then output table should have a 6 column table
Finally, I want to store each output table in a cell array marked by the varname of the input column (y98, y99, y20, etc), as I need to process over 200 columns in my original data.
I have attached a sample input (tempData) and output for the first coumn that i want (tempDataOut).
Thanks in advance.I have a table containing string data that represents cyclone certain and uncertain tracks. Each cell in the table may contain multiple track numbers (seperated by a space), where the presence of ‘x’ beside a number indicates uncertainty in that track. For example, in tempData(7,1) = "30 25x", ’30’ is a certain track, and ’25’ is uncertain.
I need to write a code that parses each cell in a column of tempData, separates the track numbers and their uncertainty markers (‘x’), and outputs a (in this case) 4-column table for each column in tempData. The headers of the output table should be track1, uncert1, track2, uncert2, corresponding to the parsed tracks and their certainty indicators (marked by 0 or 1). If the input has 3 tracks, the then output table should have a 6 column table
Finally, I want to store each output table in a cell array marked by the varname of the input column (y98, y99, y20, etc), as I need to process over 200 columns in my original data.
I have attached a sample input (tempData) and output for the first coumn that i want (tempDataOut).
Thanks in advance. I have a table containing string data that represents cyclone certain and uncertain tracks. Each cell in the table may contain multiple track numbers (seperated by a space), where the presence of ‘x’ beside a number indicates uncertainty in that track. For example, in tempData(7,1) = "30 25x", ’30’ is a certain track, and ’25’ is uncertain.
I need to write a code that parses each cell in a column of tempData, separates the track numbers and their uncertainty markers (‘x’), and outputs a (in this case) 4-column table for each column in tempData. The headers of the output table should be track1, uncert1, track2, uncert2, corresponding to the parsed tracks and their certainty indicators (marked by 0 or 1). If the input has 3 tracks, the then output table should have a 6 column table
Finally, I want to store each output table in a cell array marked by the varname of the input column (y98, y99, y20, etc), as I need to process over 200 columns in my original data.
I have attached a sample input (tempData) and output for the first coumn that i want (tempDataOut).
Thanks in advance. data process MATLAB Answers — New Questions
MS Forms Survey – break down of data from responses
I have results from a survey that I did which encompassed several “regions” in our company. I have about 15 questions in the survey, but would like the data broken down by the region the person was in. Reason: I would like to see if one region is have success or difficulty in a certain area (any given question on the survey). Ex: Region A is having issues with response times version Region B is showing they have no issues with response times.
Is there a dump of the entire survey that matches respondent #15, who took the survey, and all their associated responses (even if they skipped a question)?
thank you in advance.
I have results from a survey that I did which encompassed several “regions” in our company. I have about 15 questions in the survey, but would like the data broken down by the region the person was in. Reason: I would like to see if one region is have success or difficulty in a certain area (any given question on the survey). Ex: Region A is having issues with response times version Region B is showing they have no issues with response times. Is there a dump of the entire survey that matches respondent #15, who took the survey, and all their associated responses (even if they skipped a question)? thank you in advance. Read More
Can i add 2 hours to Date/Time field inside PnP Modern Search web part
I have this formula inside PnP Modern Search web part:-
{{ getDate (getDate (slot item @root.slots.PUETA) “YYYY-MM-DDTHH:mm:ss.0000000Z”) “MMMM DD, YYYY h:mm a” 3 }}
to format a date time, and allow it to follow the time zone of the site.. my question is how i can add 2 hours to the generated date/time from the above formula?
Thanks
I have this formula inside PnP Modern Search web part:- {{ getDate (getDate (slot item @root.slots.PUETA) “YYYY-MM-DDTHH:mm:ss.0000000Z”) “MMMM DD, YYYY h:mm a” 3 }} to format a date time, and allow it to follow the time zone of the site.. my question is how i can add 2 hours to the generated date/time from the above formula?Thanks Read More
Sorry something went wrong – Please make sure you have permission to access this form.
New to forms, trying to create a survey that users in my organization can use to indicate if they’re using software. When I copy the URL and send it out, I can access the form myself as the form creator from the link, but everyone else that tries to access the form gets the error message in the title. The technical details are:
I’ve had the users try a different browser with no change. I have it set so that only people in my organization can respond as I want to record names. Not sure where else to look for access permissions. I’ve read many of the threads with the same error message and have validated that all settings should be correct for access and that the people I’m sending the form to are logged in with their business account. Any suggestions? TIA!
New to forms, trying to create a survey that users in my organization can use to indicate if they’re using software. When I copy the URL and send it out, I can access the form myself as the form creator from the link, but everyone else that tries to access the form gets the error message in the title. The technical details are:I’ve had the users try a different browser with no change. I have it set so that only people in my organization can respond as I want to record names. Not sure where else to look for access permissions. I’ve read many of the threads with the same error message and have validated that all settings should be correct for access and that the people I’m sending the form to are logged in with their business account. Any suggestions? TIA! Read More
Pinned Tabs and middle mouse button behavior
I saw a post made in 2022, with no replies, that gave the same feedback. Middle mouse button clicking shouldn’t close pinned tabs nor disable tab groups. Is there any kind of extension that can be used while devs don’t add this as default behavior?
I saw a post made in 2022, with no replies, that gave the same feedback. Middle mouse button clicking shouldn’t close pinned tabs nor disable tab groups. Is there any kind of extension that can be used while devs don’t add this as default behavior? Read More
New Site members email
I constantly have to instruct new site members how to access their SharePoint site from their email invite because it is confusing to many recipients.
I don’t know if Microsoft will see this or how to submit an idea, but it would be much more straightforward to change the link name here to “Go to SharePoint Site” or something more definitive.
Poor UI & UX design seems to be a perennial problem for Microsoft. I hope they can make this simpler.
I constantly have to instruct new site members how to access their SharePoint site from their email invite because it is confusing to many recipients. I don’t know if Microsoft will see this or how to submit an idea, but it would be much more straightforward to change the link name here to “Go to SharePoint Site” or something more definitive. Poor UI & UX design seems to be a perennial problem for Microsoft. I hope they can make this simpler. Read More