Month: July 2024
Query group fields into one
Hi
I’m new to the community… forgive me if I’m not precise.
I’m looking for the best way to write a SQL query for MS Access, capable of obtaining the grouping of the values contained in the same field, but in different rows, and having the same key (not primary).
I have 3 rows with the same key (i.e. “1234”)each row has a precise text value in the “Field” field (Water, Earth and Air)
I would like to create a SQL query that results in a single row, with the concatenation of the contents of the “Field” fields.
1234Water1234Earth1234Air
I want a query result like this
1234Water, Earth, Air
also taking into account the fact that there can be NULL values.
Can you help me?
Thanks in advance
HiI’m new to the community… forgive me if I’m not precise.I’m looking for the best way to write a SQL query for MS Access, capable of obtaining the grouping of the values contained in the same field, but in different rows, and having the same key (not primary).I have 3 rows with the same key (i.e. “1234”)each row has a precise text value in the “Field” field (Water, Earth and Air)I would like to create a SQL query that results in a single row, with the concatenation of the contents of the “Field” fields.1234Water1234Earth1234AirI want a query result like this1234Water, Earth, Airalso taking into account the fact that there can be NULL values.Can you help me?Thanks in advance Read More
Microsoft Copilot in Azure Series – AKS Cluster configuration and management
In addition to helping you in deploying applications and identifying resources in your Azure Kubernetes Service (AKS) cluster, Microsoft Copilot in Azure can help you with insights into best practices for configuration and management.
Microsoft Copilot in Azure can:
Look at the AKS documentation and identify best practices for configuration and management of your cluster. While it can’t directly apply these to the cluster, you can get insights on what the settings are, get more information on each recommendation, and ask Copilot to help you implement them.
Examples of these include restricting access to the Cluster API to certain known IP addresses, changing the AKS pricing tier, and enabling the AKS backup extension.
We hope you enjoy watching our video and learning how to use Copilot in Azure for managing and configuring your AKS cluster. To learn more about Copilot in Azure, you can check out the documentation page. Let us know what you think about Copilot in Azure and share your feedback with us in the comments section below.
Microsoft Tech Community – Latest Blogs –Read More
the mechanism of different syntax for realizing the same effect
hi, i wanted to ask is there some logics for remembering the syntax in Matlab, because sometimes i found the syntax have different logics, which confused myself. For example, < box on/off > is a simplified syntax in controlling whether the axis box is on. There are two syntax with different logics on controlling box. One is < box(ax,"off") >, and the other one is < set(ax,"box","off") > . PS. The former is probably the full form of < box off > ?? These two forms have different starting point within it. But when it comes to setting xlabel, it seems we could only use < xlabel("Time") >, and < set(ax,"XLabel","Time") > doesnot work. Why is this so as both box and XLabel are the properties of Axis. The funny thing is that < ax.XLabel.String = "Time" > is also ok. Can someone help explain? Thanks.hi, i wanted to ask is there some logics for remembering the syntax in Matlab, because sometimes i found the syntax have different logics, which confused myself. For example, < box on/off > is a simplified syntax in controlling whether the axis box is on. There are two syntax with different logics on controlling box. One is < box(ax,"off") >, and the other one is < set(ax,"box","off") > . PS. The former is probably the full form of < box off > ?? These two forms have different starting point within it. But when it comes to setting xlabel, it seems we could only use < xlabel("Time") >, and < set(ax,"XLabel","Time") > doesnot work. Why is this so as both box and XLabel are the properties of Axis. The funny thing is that < ax.XLabel.String = "Time" > is also ok. Can someone help explain? Thanks. hi, i wanted to ask is there some logics for remembering the syntax in Matlab, because sometimes i found the syntax have different logics, which confused myself. For example, < box on/off > is a simplified syntax in controlling whether the axis box is on. There are two syntax with different logics on controlling box. One is < box(ax,"off") >, and the other one is < set(ax,"box","off") > . PS. The former is probably the full form of < box off > ?? These two forms have different starting point within it. But when it comes to setting xlabel, it seems we could only use < xlabel("Time") >, and < set(ax,"XLabel","Time") > doesnot work. Why is this so as both box and XLabel are the properties of Axis. The funny thing is that < ax.XLabel.String = "Time" > is also ok. Can someone help explain? Thanks. box, axis, label MATLAB Answers — New Questions
WSL, ROS Humble – Simulink
Hello,
I am using ROS Humbe on WSL2 with Ubuntu 22.04 and I was wondering if I should install MATLAB into my Ubuntu System ? Or MATLAB on my Windows can still communicate with ROS ? Has any one ever tried using it ?Hello,
I am using ROS Humbe on WSL2 with Ubuntu 22.04 and I was wondering if I should install MATLAB into my Ubuntu System ? Or MATLAB on my Windows can still communicate with ROS ? Has any one ever tried using it ? Hello,
I am using ROS Humbe on WSL2 with Ubuntu 22.04 and I was wondering if I should install MATLAB into my Ubuntu System ? Or MATLAB on my Windows can still communicate with ROS ? Has any one ever tried using it ? simulink, matlab MATLAB Answers — New Questions
Scrollable Plot in real time from Arduino to Matlab
Hi,
I meet a problem when plotting data from Arduino to Matlab, where the x axis is increasing continously and cause the compression of plot. I want to let the x axis auto-scroll, something like axis(t,t+dx,y1,y2). I’ve tried two ways plotting the data, shown below. Is there any other methods to make the x axis auto-scrolling? Thank you in advance!
Method 1
%Method 1
clear all
a = arduino(‘COM5′,’ProMini328_5v’);
%interv = 10;
passo = 1;
t=1;
x=0;
%while(t<interv)
while(t)
b=a.readVoltage(‘A3’);
x=[x,b];
plot(x);
%axis([0,interv,0,5]);
ylim(‘auto’);
grid
t=t+passo;
drawnow;
end
Method 2
clear all
clc
%User Defined Properties
a = arduino(‘COM5′,’ProMini328_5v’); % define the Arduino Communication port
plotTitle = ‘Arduino Data Log’; % plot title
xLabel = ‘Elapsed Time (s)’; % x-axis label
yLabel = ‘Voltage’; % y-axis label
legend1 = ‘Optical Channel 1’;
legend2 = ‘Optical Channel 2’;
yMax = 40 %y Maximum Value
yMin = 0 %y minimum Value
plotGrid = ‘on’; % ‘off’ to turn off grid
min = 0; % set y-min
max = 40; % set y-max
delay = .01; % make sure sample faster than resolution
%Define Function Variables
time = 0;
data = 0;
data1 = 0;
data2 = 0;
count = 0;
%Set up Plot
%plotGraph = plot(time,data,’-r’ ) % every AnalogRead needs to be on its own Plotgraph
plotGraph1 = plot(time,data1,’-b’)
hold on %hold on makes sure all of the channels are plotted
plotGraph2 = plot(time, data2,’-g’ )
title(plotTitle,’FontSize’,15);
xlabel(xLabel,’FontSize’,15);
ylabel(yLabel,’FontSize’,15);
legend(legend1,legend2);
axis([yMin yMax min max]);
grid(plotGrid);
tic
while ishandle(plotGraph1) %Loop when Plot is Active will run until plot is closed
%dat = a.analogRead(0)* 0.48875855327; %Data from the arduino
%dat1 = a.analogRead(2)* 0.48875855327;
%dat2 = a.analogRead(3)* 0.48875855327;
dat1 = readVoltage(a,’A2′);
dat2 = readVoltage(a,’A3′);
count = count + 1;
time(count) = toc;
%data(count) = dat(1);
data1(count) = dat1(1)
data2(count) = dat2(1)
%This is the magic code
%Using plot will slow down the sampling time.. At times to over 20
%seconds per sample!
%set(plotGraph,’XData’,time,’YData’,data);
set(plotGraph1,’XData’,time,’YData’,data1);
set(plotGraph2,’XData’,time,’YData’,data2);
%x = linspace(0,100,10000);
xlim([0 30]);
%xticks(‘auto’);
ylim(‘auto’);
%axis([time(count) time(count)+10 min max]);
%axis([0 time(count) 1 5]);
%xlim([max(0,time(count)-0.1) max(10,time(count)-0.1)]);
%ylim(min,max);
%Update the graph
pause(delay);
end
delete(a);Hi,
I meet a problem when plotting data from Arduino to Matlab, where the x axis is increasing continously and cause the compression of plot. I want to let the x axis auto-scroll, something like axis(t,t+dx,y1,y2). I’ve tried two ways plotting the data, shown below. Is there any other methods to make the x axis auto-scrolling? Thank you in advance!
Method 1
%Method 1
clear all
a = arduino(‘COM5′,’ProMini328_5v’);
%interv = 10;
passo = 1;
t=1;
x=0;
%while(t<interv)
while(t)
b=a.readVoltage(‘A3’);
x=[x,b];
plot(x);
%axis([0,interv,0,5]);
ylim(‘auto’);
grid
t=t+passo;
drawnow;
end
Method 2
clear all
clc
%User Defined Properties
a = arduino(‘COM5′,’ProMini328_5v’); % define the Arduino Communication port
plotTitle = ‘Arduino Data Log’; % plot title
xLabel = ‘Elapsed Time (s)’; % x-axis label
yLabel = ‘Voltage’; % y-axis label
legend1 = ‘Optical Channel 1’;
legend2 = ‘Optical Channel 2’;
yMax = 40 %y Maximum Value
yMin = 0 %y minimum Value
plotGrid = ‘on’; % ‘off’ to turn off grid
min = 0; % set y-min
max = 40; % set y-max
delay = .01; % make sure sample faster than resolution
%Define Function Variables
time = 0;
data = 0;
data1 = 0;
data2 = 0;
count = 0;
%Set up Plot
%plotGraph = plot(time,data,’-r’ ) % every AnalogRead needs to be on its own Plotgraph
plotGraph1 = plot(time,data1,’-b’)
hold on %hold on makes sure all of the channels are plotted
plotGraph2 = plot(time, data2,’-g’ )
title(plotTitle,’FontSize’,15);
xlabel(xLabel,’FontSize’,15);
ylabel(yLabel,’FontSize’,15);
legend(legend1,legend2);
axis([yMin yMax min max]);
grid(plotGrid);
tic
while ishandle(plotGraph1) %Loop when Plot is Active will run until plot is closed
%dat = a.analogRead(0)* 0.48875855327; %Data from the arduino
%dat1 = a.analogRead(2)* 0.48875855327;
%dat2 = a.analogRead(3)* 0.48875855327;
dat1 = readVoltage(a,’A2′);
dat2 = readVoltage(a,’A3′);
count = count + 1;
time(count) = toc;
%data(count) = dat(1);
data1(count) = dat1(1)
data2(count) = dat2(1)
%This is the magic code
%Using plot will slow down the sampling time.. At times to over 20
%seconds per sample!
%set(plotGraph,’XData’,time,’YData’,data);
set(plotGraph1,’XData’,time,’YData’,data1);
set(plotGraph2,’XData’,time,’YData’,data2);
%x = linspace(0,100,10000);
xlim([0 30]);
%xticks(‘auto’);
ylim(‘auto’);
%axis([time(count) time(count)+10 min max]);
%axis([0 time(count) 1 5]);
%xlim([max(0,time(count)-0.1) max(10,time(count)-0.1)]);
%ylim(min,max);
%Update the graph
pause(delay);
end
delete(a); Hi,
I meet a problem when plotting data from Arduino to Matlab, where the x axis is increasing continously and cause the compression of plot. I want to let the x axis auto-scroll, something like axis(t,t+dx,y1,y2). I’ve tried two ways plotting the data, shown below. Is there any other methods to make the x axis auto-scrolling? Thank you in advance!
Method 1
%Method 1
clear all
a = arduino(‘COM5′,’ProMini328_5v’);
%interv = 10;
passo = 1;
t=1;
x=0;
%while(t<interv)
while(t)
b=a.readVoltage(‘A3’);
x=[x,b];
plot(x);
%axis([0,interv,0,5]);
ylim(‘auto’);
grid
t=t+passo;
drawnow;
end
Method 2
clear all
clc
%User Defined Properties
a = arduino(‘COM5′,’ProMini328_5v’); % define the Arduino Communication port
plotTitle = ‘Arduino Data Log’; % plot title
xLabel = ‘Elapsed Time (s)’; % x-axis label
yLabel = ‘Voltage’; % y-axis label
legend1 = ‘Optical Channel 1’;
legend2 = ‘Optical Channel 2’;
yMax = 40 %y Maximum Value
yMin = 0 %y minimum Value
plotGrid = ‘on’; % ‘off’ to turn off grid
min = 0; % set y-min
max = 40; % set y-max
delay = .01; % make sure sample faster than resolution
%Define Function Variables
time = 0;
data = 0;
data1 = 0;
data2 = 0;
count = 0;
%Set up Plot
%plotGraph = plot(time,data,’-r’ ) % every AnalogRead needs to be on its own Plotgraph
plotGraph1 = plot(time,data1,’-b’)
hold on %hold on makes sure all of the channels are plotted
plotGraph2 = plot(time, data2,’-g’ )
title(plotTitle,’FontSize’,15);
xlabel(xLabel,’FontSize’,15);
ylabel(yLabel,’FontSize’,15);
legend(legend1,legend2);
axis([yMin yMax min max]);
grid(plotGrid);
tic
while ishandle(plotGraph1) %Loop when Plot is Active will run until plot is closed
%dat = a.analogRead(0)* 0.48875855327; %Data from the arduino
%dat1 = a.analogRead(2)* 0.48875855327;
%dat2 = a.analogRead(3)* 0.48875855327;
dat1 = readVoltage(a,’A2′);
dat2 = readVoltage(a,’A3′);
count = count + 1;
time(count) = toc;
%data(count) = dat(1);
data1(count) = dat1(1)
data2(count) = dat2(1)
%This is the magic code
%Using plot will slow down the sampling time.. At times to over 20
%seconds per sample!
%set(plotGraph,’XData’,time,’YData’,data);
set(plotGraph1,’XData’,time,’YData’,data1);
set(plotGraph2,’XData’,time,’YData’,data2);
%x = linspace(0,100,10000);
xlim([0 30]);
%xticks(‘auto’);
ylim(‘auto’);
%axis([time(count) time(count)+10 min max]);
%axis([0 time(count) 1 5]);
%xlim([max(0,time(count)-0.1) max(10,time(count)-0.1)]);
%ylim(min,max);
%Update the graph
pause(delay);
end
delete(a); arduino, autoscroll scroll plot live plot MATLAB Answers — New Questions
help with bvp4c error
Hello! I am trying to solve a system of four coupled differential equation with two-point boundary conditions. I am getting errors and i am new to this, so i dont understand. Please help me fix it.
function proca_star
clear;
clc;
format long;
infinity = 10;
w=0.817;
x_init=1e-5:0.01:infinity;
global phi_c
for phi_c=[0.394 0.394 0 0]
%solinit = bvpinit(linspace(1e-5,infinity,1000),[1 1 phi_c 0],omega);
solinit = bvpinit(x_init,[1 1 phi_c 0],w);
options = bvpset(‘stats’,’on’,’RelTol’,1e-6);
%condition=true;
%while condition
sol = bvp4c(@bsode,@bsbc,solinit,options);
%condition = sol.stats.maxerr >= 1e-5;
%end
r_data = sol.x;
f = sol.y;
% Plotting the results
figure(1)
plot(r_data, f(1,:));
axis([0 infinity 0 1.5]);
title(‘sigma vs r’)
xlabel(‘r’)
ylabel(‘sigma’)
figure(2)
plot(r_data, f(2,:));
axis([0 infinity -0.5 1]);
title(‘f vs r’)
xlabel(‘r’)
ylabel(‘f’)
figure(3)
plot(r_data, f(3,:));
axis([0 infinity 0 1]);
title(‘m vs r’)
xlabel(‘r’)
ylabel(‘m’)
figure(4)
plot(r_data, f(4,:));
axis([0 infinity -0.5 1.5]);
title(‘g vs r’)
xlabel(‘r’)
ylabel(‘g’)
end
end
% ————————————————————————–
function dfdr = bsode(r, y)
w = 0.817;
N = 1 – 2 * y(3) / r;
dfdr = [4 * pi * r * 0.745 * (y(4)^2 + y(2)^2 / (N^2 * y(1)^2))
w * y(4) – 0.745 * y(1)^2 * N * y(4) / w
4 * pi * r^2 * (((0.745 * y(1)^2 * N^2 * y(4)^2)^2) / (2 * y(1)^2 * w^2) + 0.5 * 0.745 * (y(4)^2 * N + y(2)^2 / (N * y(1)^2)))
r^2 * y(2) * w / (y(1)^2 * N^2) – 2 * y(4)];
end
% ————————————————————————–
function res = bsbc(ya, yb)
global phi_c
res = [ya(1) – 0.394
ya(2) – 0.394
ya(3) – 0
ya(4) – 0
yb(1) – 1
yb(2) – 0
yb(3) – 0.745
yb(4) – 0];
end
Here is the error shown:
Error using proca_star>bsode
Too many input arguments.
Error in bvparguments (line 96)
testODE = ode(x1,y1,odeExtras{:});
Error in bvp4c (line 119)
bvparguments(solver_name,ode,bc,solinit,options,varargin);
Error in proca_star (line 22)
sol = bvp4c(@bsode,@bsbc,solinit,options);Hello! I am trying to solve a system of four coupled differential equation with two-point boundary conditions. I am getting errors and i am new to this, so i dont understand. Please help me fix it.
function proca_star
clear;
clc;
format long;
infinity = 10;
w=0.817;
x_init=1e-5:0.01:infinity;
global phi_c
for phi_c=[0.394 0.394 0 0]
%solinit = bvpinit(linspace(1e-5,infinity,1000),[1 1 phi_c 0],omega);
solinit = bvpinit(x_init,[1 1 phi_c 0],w);
options = bvpset(‘stats’,’on’,’RelTol’,1e-6);
%condition=true;
%while condition
sol = bvp4c(@bsode,@bsbc,solinit,options);
%condition = sol.stats.maxerr >= 1e-5;
%end
r_data = sol.x;
f = sol.y;
% Plotting the results
figure(1)
plot(r_data, f(1,:));
axis([0 infinity 0 1.5]);
title(‘sigma vs r’)
xlabel(‘r’)
ylabel(‘sigma’)
figure(2)
plot(r_data, f(2,:));
axis([0 infinity -0.5 1]);
title(‘f vs r’)
xlabel(‘r’)
ylabel(‘f’)
figure(3)
plot(r_data, f(3,:));
axis([0 infinity 0 1]);
title(‘m vs r’)
xlabel(‘r’)
ylabel(‘m’)
figure(4)
plot(r_data, f(4,:));
axis([0 infinity -0.5 1.5]);
title(‘g vs r’)
xlabel(‘r’)
ylabel(‘g’)
end
end
% ————————————————————————–
function dfdr = bsode(r, y)
w = 0.817;
N = 1 – 2 * y(3) / r;
dfdr = [4 * pi * r * 0.745 * (y(4)^2 + y(2)^2 / (N^2 * y(1)^2))
w * y(4) – 0.745 * y(1)^2 * N * y(4) / w
4 * pi * r^2 * (((0.745 * y(1)^2 * N^2 * y(4)^2)^2) / (2 * y(1)^2 * w^2) + 0.5 * 0.745 * (y(4)^2 * N + y(2)^2 / (N * y(1)^2)))
r^2 * y(2) * w / (y(1)^2 * N^2) – 2 * y(4)];
end
% ————————————————————————–
function res = bsbc(ya, yb)
global phi_c
res = [ya(1) – 0.394
ya(2) – 0.394
ya(3) – 0
ya(4) – 0
yb(1) – 1
yb(2) – 0
yb(3) – 0.745
yb(4) – 0];
end
Here is the error shown:
Error using proca_star>bsode
Too many input arguments.
Error in bvparguments (line 96)
testODE = ode(x1,y1,odeExtras{:});
Error in bvp4c (line 119)
bvparguments(solver_name,ode,bc,solinit,options,varargin);
Error in proca_star (line 22)
sol = bvp4c(@bsode,@bsbc,solinit,options); Hello! I am trying to solve a system of four coupled differential equation with two-point boundary conditions. I am getting errors and i am new to this, so i dont understand. Please help me fix it.
function proca_star
clear;
clc;
format long;
infinity = 10;
w=0.817;
x_init=1e-5:0.01:infinity;
global phi_c
for phi_c=[0.394 0.394 0 0]
%solinit = bvpinit(linspace(1e-5,infinity,1000),[1 1 phi_c 0],omega);
solinit = bvpinit(x_init,[1 1 phi_c 0],w);
options = bvpset(‘stats’,’on’,’RelTol’,1e-6);
%condition=true;
%while condition
sol = bvp4c(@bsode,@bsbc,solinit,options);
%condition = sol.stats.maxerr >= 1e-5;
%end
r_data = sol.x;
f = sol.y;
% Plotting the results
figure(1)
plot(r_data, f(1,:));
axis([0 infinity 0 1.5]);
title(‘sigma vs r’)
xlabel(‘r’)
ylabel(‘sigma’)
figure(2)
plot(r_data, f(2,:));
axis([0 infinity -0.5 1]);
title(‘f vs r’)
xlabel(‘r’)
ylabel(‘f’)
figure(3)
plot(r_data, f(3,:));
axis([0 infinity 0 1]);
title(‘m vs r’)
xlabel(‘r’)
ylabel(‘m’)
figure(4)
plot(r_data, f(4,:));
axis([0 infinity -0.5 1.5]);
title(‘g vs r’)
xlabel(‘r’)
ylabel(‘g’)
end
end
% ————————————————————————–
function dfdr = bsode(r, y)
w = 0.817;
N = 1 – 2 * y(3) / r;
dfdr = [4 * pi * r * 0.745 * (y(4)^2 + y(2)^2 / (N^2 * y(1)^2))
w * y(4) – 0.745 * y(1)^2 * N * y(4) / w
4 * pi * r^2 * (((0.745 * y(1)^2 * N^2 * y(4)^2)^2) / (2 * y(1)^2 * w^2) + 0.5 * 0.745 * (y(4)^2 * N + y(2)^2 / (N * y(1)^2)))
r^2 * y(2) * w / (y(1)^2 * N^2) – 2 * y(4)];
end
% ————————————————————————–
function res = bsbc(ya, yb)
global phi_c
res = [ya(1) – 0.394
ya(2) – 0.394
ya(3) – 0
ya(4) – 0
yb(1) – 1
yb(2) – 0
yb(3) – 0.745
yb(4) – 0];
end
Here is the error shown:
Error using proca_star>bsode
Too many input arguments.
Error in bvparguments (line 96)
testODE = ode(x1,y1,odeExtras{:});
Error in bvp4c (line 119)
bvparguments(solver_name,ode,bc,solinit,options,varargin);
Error in proca_star (line 22)
sol = bvp4c(@bsode,@bsbc,solinit,options); bvp4c, boundary value problem, coupled odes, error MATLAB Answers — New Questions
Time series – How to use a loop
Hi, I’m working on a timeseries as you can see. I can canculate my results from 0-2 years and after that from 0-3 years until i reach the 20 years. Do you how to aytomatic this procces only by using a loop ?
The step to go from 0 year to 2 is by default 1 day.
Also i don’t know how i can put my data in a loop so everytime i’m gonna use a loop fow an extra year there will be raised by 365.25 daysHi, I’m working on a timeseries as you can see. I can canculate my results from 0-2 years and after that from 0-3 years until i reach the 20 years. Do you how to aytomatic this procces only by using a loop ?
The step to go from 0 year to 2 is by default 1 day.
Also i don’t know how i can put my data in a loop so everytime i’m gonna use a loop fow an extra year there will be raised by 365.25 days Hi, I’m working on a timeseries as you can see. I can canculate my results from 0-2 years and after that from 0-3 years until i reach the 20 years. Do you how to aytomatic this procces only by using a loop ?
The step to go from 0 year to 2 is by default 1 day.
Also i don’t know how i can put my data in a loop so everytime i’m gonna use a loop fow an extra year there will be raised by 365.25 days loop, time series MATLAB Answers — New Questions
macro or vba
I would like to show the dates of a subform. When line 5 is completed, I need those dates, if not, the dates of line 4 should be taken, if not, the dates of line 3 and so on till line 0. Can someone tell me how to do?
Thanks
I would like to show the dates of a subform. When line 5 is completed, I need those dates, if not, the dates of line 4 should be taken, if not, the dates of line 3 and so on till line 0. Can someone tell me how to do?Thanks Read More
How to recover accidentally deleted desktop folder on Windows 11?
Hi everyone,
I hope someone can help me out here. I accidentally deleted my entire Desktop folder in Windows 11 and I’m not sure how to recover it. I’ve already checked the Recycle Bin and unfortunately, it’s not there. Here’s what I’ve tried so far:
Checking the Recycle Bin (folder isn’t there)Using File Explorer to search for the folderLooking into OneDrive backups (no luck)
I’m really in a pinch because I had some important files and shortcuts on my Desktop that I need to retrieve. Can anyone suggest any reliable tool for recovering accidentally deleted desktop folder on Windows 11? Any input would be greatly appreciated
Hi everyone, I hope someone can help me out here. I accidentally deleted my entire Desktop folder in Windows 11 and I’m not sure how to recover it. I’ve already checked the Recycle Bin and unfortunately, it’s not there. Here’s what I’ve tried so far:Checking the Recycle Bin (folder isn’t there)Using File Explorer to search for the folderLooking into OneDrive backups (no luck)I’m really in a pinch because I had some important files and shortcuts on my Desktop that I need to retrieve. Can anyone suggest any reliable tool for recovering accidentally deleted desktop folder on Windows 11? Any input would be greatly appreciated Read More
Manipulable objects incorrect physics behavior with kinematic
Hi
I have a “mesh interactable setup” manipulable object with constraints on rotation and movement. I can move object only up and down and I can’t rotate. the object in the rigidbody component has the kinamatic property active. Until a few days ago it worked perfectly. inside mesh I raised and lowered the object and it stayed exactly where I left it iwthout momentum. Exactly what i wanted. Today it no longer works. I can no longer move the object. It is selected. It is hovered but i cannot move.
In unity editor I have mesh toolkit 5.2402.240 and from the editor in play mode it is still working, but inside a custom mesh event it no longer works. Has anything changed about the physics of manipulable objects?
Thank you
HiI have a “mesh interactable setup” manipulable object with constraints on rotation and movement. I can move object only up and down and I can’t rotate. the object in the rigidbody component has the kinamatic property active. Until a few days ago it worked perfectly. inside mesh I raised and lowered the object and it stayed exactly where I left it iwthout momentum. Exactly what i wanted. Today it no longer works. I can no longer move the object. It is selected. It is hovered but i cannot move.In unity editor I have mesh toolkit 5.2402.240 and from the editor in play mode it is still working, but inside a custom mesh event it no longer works. Has anything changed about the physics of manipulable objects? Thank you Read More
Personal BYOD – filter contacts
Hi
We are a college and need to enrol BYOD devices to meet CE requirements, which includes staff personal mobiles for when they access email etc. Android works really well with Personal/Work split, iOS devices, not so well.
We’ve noticed that when a personal phone is enrolled and they search contacts, it is pulling back all contacts within the tenant and there is no way to switch this off when just using on a personal basis. I need to filter this to search staff only, excluding students. How can this be achieved.
Thanks
Hi We are a college and need to enrol BYOD devices to meet CE requirements, which includes staff personal mobiles for when they access email etc. Android works really well with Personal/Work split, iOS devices, not so well. We’ve noticed that when a personal phone is enrolled and they search contacts, it is pulling back all contacts within the tenant and there is no way to switch this off when just using on a personal basis. I need to filter this to search staff only, excluding students. How can this be achieved. Thanks Read More
Bicep Deploy Azure
{“code”:”DeploymentFailed”,”target”:”/subscriptions/…/resourceGroups/Earth-Webshop/providers/Microsoft.Resources/deployments/AzFuncs”,”message”:”At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.”,”details”:[{“target”:”/subscriptions/…/resourceGroups/Earth-Webshop/providers/Microsoft.Web/sites/saphir-webshop-order”,”message”:”There was a conflict. The remote name could not be resolved: ‘mtvpprlfzkau2azfunctions.file.core.windows.net'”}]}
Here is my bicep file!
@description(‘The name of the function app that you wish to create.’)
param appName string = ‘saphir-webshop-order’
@description(‘Storage Account type’)
@allowed([
‘Standard_LRS’
‘Standard_GRS’
‘Standard_RAGRS’
])
param storageAccountType string = ‘Standard_LRS’
@description(‘Location for all resources.’)
param location string = resourceGroup().location
@description(‘Location for Application Insights’)
param appInsightsLocation string
@description(‘The language worker runtime to load in the function app.’)
@allowed([
‘node’
‘dotnet’
‘java’
])
param runtime string = ‘dotnet’
var functionAppName = appName
var hostingPlanName = appName
var applicationInsightsName = appName
var storageAccountName = ‘${uniqueString(resourceGroup().id)}azfunctions’
var functionWorkerRuntime = runtime
resource storageAccount ‘Microsoft.Storage/storageAccounts@2022-05-01’ = {
name: ‘earthwebshopstorage’
location: location
sku: {
name: storageAccountType
}
kind: ‘Storage’
properties: {
supportsHttpsTrafficOnly: true
defaultToOAuthAuthentication: true
}
}
resource hostingPlan ‘Microsoft.Web/serverfarms@2021-03-01’ = {
name: hostingPlanName
location: location
sku: {
name: ‘Y1’
tier: ‘Dynamic’
}
properties: {}
}
resource functionApp ‘Microsoft.Web/sites@2023-12-01’ = {
name: appName
location: ‘West Europe’
kind: ‘functionapp’
identity: {
type: ‘SystemAssigned’
}
properties: {
serverFarmId: hostingPlan.id
siteConfig: {
appSettings: [
{
name: ‘FUNCTIONS_EXTENSION_VERSION’
value: ‘~4’
}
{
name: ‘WEBSITE_NODE_DEFAULT_VERSION’
value: ‘~14’
}
{
name: ‘APPINSIGHTS_INSTRUMENTATIONKEY’
value: applicationInsights.properties.InstrumentationKey
}
{
name: ‘FUNCTIONS_WORKER_RUNTIME’
value: functionWorkerRuntime
}
]
ftpsState: ‘FtpsOnly’
minTlsVersion: ‘1.2’
}
httpsOnly: true
}
}
resource applicationInsights ‘Microsoft.Insights/components@2020-02-02’ = {
name: applicationInsightsName
location: appInsightsLocation
kind: ‘web’
properties: {
Application_Type: ‘web’
Request_Source: ‘rest’
}
}
{“code”:”DeploymentFailed”,”target”:”/subscriptions/…/resourceGroups/Earth-Webshop/providers/Microsoft.Resources/deployments/AzFuncs”,”message”:”At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.”,”details”:[{“target”:”/subscriptions/…/resourceGroups/Earth-Webshop/providers/Microsoft.Web/sites/saphir-webshop-order”,”message”:”There was a conflict. The remote name could not be resolved: ‘mtvpprlfzkau2azfunctions.file.core.windows.net'”}]}Here is my bicep file! @description(‘The name of the function app that you wish to create.’)
param appName string = ‘saphir-webshop-order’
@description(‘Storage Account type’)
@allowed([
‘Standard_LRS’
‘Standard_GRS’
‘Standard_RAGRS’
])
param storageAccountType string = ‘Standard_LRS’
@description(‘Location for all resources.’)
param location string = resourceGroup().location
@description(‘Location for Application Insights’)
param appInsightsLocation string
@description(‘The language worker runtime to load in the function app.’)
@allowed([
‘node’
‘dotnet’
‘java’
])
param runtime string = ‘dotnet’
var functionAppName = appName
var hostingPlanName = appName
var applicationInsightsName = appName
var storageAccountName = ‘${uniqueString(resourceGroup().id)}azfunctions’
var functionWorkerRuntime = runtime
resource storageAccount ‘Microsoft.Storage/storageAccounts@2022-05-01’ = {
name: ‘earthwebshopstorage’
location: location
sku: {
name: storageAccountType
}
kind: ‘Storage’
properties: {
supportsHttpsTrafficOnly: true
defaultToOAuthAuthentication: true
}
}
resource hostingPlan ‘Microsoft.Web/serverfarms@2021-03-01’ = {
name: hostingPlanName
location: location
sku: {
name: ‘Y1’
tier: ‘Dynamic’
}
properties: {}
}
resource functionApp ‘Microsoft.Web/sites@2023-12-01’ = {
name: appName
location: ‘West Europe’
kind: ‘functionapp’
identity: {
type: ‘SystemAssigned’
}
properties: {
serverFarmId: hostingPlan.id
siteConfig: {
appSettings: [
{
name: ‘FUNCTIONS_EXTENSION_VERSION’
value: ‘~4’
}
{
name: ‘WEBSITE_NODE_DEFAULT_VERSION’
value: ‘~14’
}
{
name: ‘APPINSIGHTS_INSTRUMENTATIONKEY’
value: applicationInsights.properties.InstrumentationKey
}
{
name: ‘FUNCTIONS_WORKER_RUNTIME’
value: functionWorkerRuntime
}
]
ftpsState: ‘FtpsOnly’
minTlsVersion: ‘1.2’
}
httpsOnly: true
}
}
resource applicationInsights ‘Microsoft.Insights/components@2020-02-02’ = {
name: applicationInsightsName
location: appInsightsLocation
kind: ‘web’
properties: {
Application_Type: ‘web’
Request_Source: ‘rest’
}
} Read More
Team Owners Can Rename the General Channel
In what seems to be a small change, team owners can rename general channels (naturally with ‘meaningful names.’ The change is more important than it seems because it’s associated with an effort to make users think about using channels as the basis for collaboration instead of always creating a new team. Being able to rename the General channel might make the channel more useful. After all, it’s just a regular channel.
https://office365itpros.com/2024/07/17/rename-general-channel/
In what seems to be a small change, team owners can rename general channels (naturally with ‘meaningful names.’ The change is more important than it seems because it’s associated with an effort to make users think about using channels as the basis for collaboration instead of always creating a new team. Being able to rename the General channel might make the channel more useful. After all, it’s just a regular channel.
https://office365itpros.com/2024/07/17/rename-general-channel/ Read More
How to use tcpclient instead of tcpip with icdevice
I am using instrfind and tcpip to create interface object. I am pasing this interface object in icdevice to create object of my matlab intrument device driver. As, instrfind and tcpip will be removed in future release, how can I modify my code to use my instrument device driver? If I replace tcpip with tcpclient then I cannot use icdevice to create object of my intrument device driver. Refer below code which I am using.
% Create a TCPIP object.
interfaceObj = instrfind(‘Type’, ‘tcpip’, ‘RemoteHost’, ‘127.0.0.1’, ‘RemotePort’, 1234, ‘Tag’, ”);
% Create the TCPIP object if it does not exist
% otherwise use the object that was found.
if isempty(interfaceObj)
interfaceObj = tcpip(‘127.0.0.1’, 1234);
else
fclose(interfaceObj);
interfaceObj = interfaceObj(1);
end
% Create a device object.
deviceObj = icdevice(‘my_driver.mdd’, interfaceObj);
% Connect device object to hardware.
connect(deviceObj);I am using instrfind and tcpip to create interface object. I am pasing this interface object in icdevice to create object of my matlab intrument device driver. As, instrfind and tcpip will be removed in future release, how can I modify my code to use my instrument device driver? If I replace tcpip with tcpclient then I cannot use icdevice to create object of my intrument device driver. Refer below code which I am using.
% Create a TCPIP object.
interfaceObj = instrfind(‘Type’, ‘tcpip’, ‘RemoteHost’, ‘127.0.0.1’, ‘RemotePort’, 1234, ‘Tag’, ”);
% Create the TCPIP object if it does not exist
% otherwise use the object that was found.
if isempty(interfaceObj)
interfaceObj = tcpip(‘127.0.0.1’, 1234);
else
fclose(interfaceObj);
interfaceObj = interfaceObj(1);
end
% Create a device object.
deviceObj = icdevice(‘my_driver.mdd’, interfaceObj);
% Connect device object to hardware.
connect(deviceObj); I am using instrfind and tcpip to create interface object. I am pasing this interface object in icdevice to create object of my matlab intrument device driver. As, instrfind and tcpip will be removed in future release, how can I modify my code to use my instrument device driver? If I replace tcpip with tcpclient then I cannot use icdevice to create object of my intrument device driver. Refer below code which I am using.
% Create a TCPIP object.
interfaceObj = instrfind(‘Type’, ‘tcpip’, ‘RemoteHost’, ‘127.0.0.1’, ‘RemotePort’, 1234, ‘Tag’, ”);
% Create the TCPIP object if it does not exist
% otherwise use the object that was found.
if isempty(interfaceObj)
interfaceObj = tcpip(‘127.0.0.1’, 1234);
else
fclose(interfaceObj);
interfaceObj = interfaceObj(1);
end
% Create a device object.
deviceObj = icdevice(‘my_driver.mdd’, interfaceObj);
% Connect device object to hardware.
connect(deviceObj); instrfind, tcpip, removed in future release, instrument device driver MATLAB Answers — New Questions
Matlab code for Sorting diagonal elements of matrix and index of sorted elements is filled into new matrix as shown below?
This first matrix table1 contains normalized values for 5 names.I need to perform some operations on this matrix and I have to obtain second matrix as shown in table2.
Diagonal elements of table2 should obtained by giving rank(ordinal value) to each value.That means highest element is given 5th rank and next highest is given 4th 3rd and so on.
OPERATION:For diagonal elements
B(1,1)=5(first largest element)
B(2,2)=1(5th largest element)
B(3,3)=4(4th largest element)
B(4,4)=2(2nd largest element)
B(5,5)=3(3rd largest element)
Table1:
BASAVARAJ MANOJ NATESH VIJAY GOWDA
BASAVARAJ 1.0000 0.2727 0.3182 0.0455 0.2727
MANOJ 0.2727 0.2727 0 0 0
NATESH 0.3182 0 0.4545 0.1818 0
VIJAY 0.0455 0 0.1818 0.2727 0.0909
GOWDA 0.2727 0 0 0.0909 0.3636
Table2:
BASAVARAJ MANOJ NATESH VIJAY GOWDA
BASAVARAJ 5 0 0 0 0
MANOJ 0 1 0 0 0
NATESH 0 0 4 0 0
VIJAY 0 0 0 2 0
GOWDA 0 0 0 0 3This first matrix table1 contains normalized values for 5 names.I need to perform some operations on this matrix and I have to obtain second matrix as shown in table2.
Diagonal elements of table2 should obtained by giving rank(ordinal value) to each value.That means highest element is given 5th rank and next highest is given 4th 3rd and so on.
OPERATION:For diagonal elements
B(1,1)=5(first largest element)
B(2,2)=1(5th largest element)
B(3,3)=4(4th largest element)
B(4,4)=2(2nd largest element)
B(5,5)=3(3rd largest element)
Table1:
BASAVARAJ MANOJ NATESH VIJAY GOWDA
BASAVARAJ 1.0000 0.2727 0.3182 0.0455 0.2727
MANOJ 0.2727 0.2727 0 0 0
NATESH 0.3182 0 0.4545 0.1818 0
VIJAY 0.0455 0 0.1818 0.2727 0.0909
GOWDA 0.2727 0 0 0.0909 0.3636
Table2:
BASAVARAJ MANOJ NATESH VIJAY GOWDA
BASAVARAJ 5 0 0 0 0
MANOJ 0 1 0 0 0
NATESH 0 0 4 0 0
VIJAY 0 0 0 2 0
GOWDA 0 0 0 0 3 This first matrix table1 contains normalized values for 5 names.I need to perform some operations on this matrix and I have to obtain second matrix as shown in table2.
Diagonal elements of table2 should obtained by giving rank(ordinal value) to each value.That means highest element is given 5th rank and next highest is given 4th 3rd and so on.
OPERATION:For diagonal elements
B(1,1)=5(first largest element)
B(2,2)=1(5th largest element)
B(3,3)=4(4th largest element)
B(4,4)=2(2nd largest element)
B(5,5)=3(3rd largest element)
Table1:
BASAVARAJ MANOJ NATESH VIJAY GOWDA
BASAVARAJ 1.0000 0.2727 0.3182 0.0455 0.2727
MANOJ 0.2727 0.2727 0 0 0
NATESH 0.3182 0 0.4545 0.1818 0
VIJAY 0.0455 0 0.1818 0.2727 0.0909
GOWDA 0.2727 0 0 0.0909 0.3636
Table2:
BASAVARAJ MANOJ NATESH VIJAY GOWDA
BASAVARAJ 5 0 0 0 0
MANOJ 0 1 0 0 0
NATESH 0 0 4 0 0
VIJAY 0 0 0 2 0
GOWDA 0 0 0 0 3 matlab, matrix manipulation, sort, for loop, index MATLAB Answers — New Questions
I can’t find my land or junction id
https://kr.mathworks.com/videos/getting-started-with-roadrunner-junction-creation-in-roadrunner-1586438843851.html
At 4:34 in the video, I can see something called junction id.
I followed the same steps in the video, but I don’t see any attributes on my end.
Similarly, in another video, I saw something called lane id, but I couldn’t see anything on my road.
I have purchased Roadrunner license, but do I need to make an additional payment to use junction id or lane id? Or is there another way?https://kr.mathworks.com/videos/getting-started-with-roadrunner-junction-creation-in-roadrunner-1586438843851.html
At 4:34 in the video, I can see something called junction id.
I followed the same steps in the video, but I don’t see any attributes on my end.
Similarly, in another video, I saw something called lane id, but I couldn’t see anything on my road.
I have purchased Roadrunner license, but do I need to make an additional payment to use junction id or lane id? Or is there another way? https://kr.mathworks.com/videos/getting-started-with-roadrunner-junction-creation-in-roadrunner-1586438843851.html
At 4:34 in the video, I can see something called junction id.
I followed the same steps in the video, but I don’t see any attributes on my end.
Similarly, in another video, I saw something called lane id, but I couldn’t see anything on my road.
I have purchased Roadrunner license, but do I need to make an additional payment to use junction id or lane id? Or is there another way? id, junction, lane, junction id, lane id MATLAB Answers — New Questions
MATLAB editor shows files have no contents (blank)
Hello,
When I try to open an m-file or script in the editor, it opens up blank. The file, however, is clearly not empty – I can open it with a generic text editor and the code appears fine. This also happens if I try to create a new script in the editor. The editor opens a new ‘untitled’ file, but I can not enter any text in the editor.
I am running R2022b on an Apple M1 Max macOS 13.1
thanksHello,
When I try to open an m-file or script in the editor, it opens up blank. The file, however, is clearly not empty – I can open it with a generic text editor and the code appears fine. This also happens if I try to create a new script in the editor. The editor opens a new ‘untitled’ file, but I can not enter any text in the editor.
I am running R2022b on an Apple M1 Max macOS 13.1
thanks Hello,
When I try to open an m-file or script in the editor, it opens up blank. The file, however, is clearly not empty – I can open it with a generic text editor and the code appears fine. This also happens if I try to create a new script in the editor. The editor opens a new ‘untitled’ file, but I can not enter any text in the editor.
I am running R2022b on an Apple M1 Max macOS 13.1
thanks editor MATLAB Answers — New Questions
SC-900 MCT material needed
Hello,
can someone please send me the MCT material for the SC-900 training?
Especially the PPTs?
This is my first request for this, so sorry, if I made a mistake!
Thank you
Arnd
Hello, can someone please send me the MCT material for the SC-900 training?Especially the PPTs? This is my first request for this, so sorry, if I made a mistake! Thank youArnd Read More
Secure Data Storage for WinUI application
UWP being a sandboxed application had a way to save data using PasswordVault/Credential Manager, but WinUI doesn’t offer the same level of security since other apps can access the data. DPAPI also doesn’t provide a good way to protect the data as any app running in the same User Context can unprotect it. Adding entropy helps, but where do I store the entropy? Can somebody help me understand the mechanism for storing data securely in Windows App SDK?
UWP being a sandboxed application had a way to save data using PasswordVault/Credential Manager, but WinUI doesn’t offer the same level of security since other apps can access the data. DPAPI also doesn’t provide a good way to protect the data as any app running in the same User Context can unprotect it. Adding entropy helps, but where do I store the entropy? Can somebody help me understand the mechanism for storing data securely in Windows App SDK? Read More
Unable to patch windows server 2022 getting error 0x80240438
Hello Team, I am getting below error whenever I am trying to update my windows server 2022.
I tried to patch it manually but getting below error. I tried all possible fix that I can try.
Searching for all applicable updates…
An error occurred:
Exception from HRESULT: 0x80240438
(Press ENTER to continue):
Hello Team, I am getting below error whenever I am trying to update my windows server 2022.I tried to patch it manually but getting below error. I tried all possible fix that I can try. Searching for all applicable updates…An error occurred:Exception from HRESULT: 0x80240438(Press ENTER to continue): Read More