Month: May 2024
Application window cannot be resized or moved
I am having the same problem described in this previous question:
https://www.mathworks.com/matlabcentral/answers/556288-i-cannot-control-the-window-size
I also tried the suggested advice in that post but did not fix the issue.
I am using Ubuntu 20.04.6. I am starting matlab from the command line.I am having the same problem described in this previous question:
https://www.mathworks.com/matlabcentral/answers/556288-i-cannot-control-the-window-size
I also tried the suggested advice in that post but did not fix the issue.
I am using Ubuntu 20.04.6. I am starting matlab from the command line. I am having the same problem described in this previous question:
https://www.mathworks.com/matlabcentral/answers/556288-i-cannot-control-the-window-size
I also tried the suggested advice in that post but did not fix the issue.
I am using Ubuntu 20.04.6. I am starting matlab from the command line. startup MATLAB Answers — New Questions
How can I desactivate Data Type Override option for a Simulink model ?
After executing a Simulink model I had the error message in the image bellow, I click on fix button so matlab enabled the Data Type Override option automatically and now I want to desactivate it because it caused me problems with other variables types .How can I do to desactivate this option from the hole model ?After executing a Simulink model I had the error message in the image bellow, I click on fix button so matlab enabled the Data Type Override option automatically and now I want to desactivate it because it caused me problems with other variables types .How can I do to desactivate this option from the hole model ? After executing a Simulink model I had the error message in the image bellow, I click on fix button so matlab enabled the Data Type Override option automatically and now I want to desactivate it because it caused me problems with other variables types .How can I do to desactivate this option from the hole model ? data type override MATLAB Answers — New Questions
Should I modify x-values for curve fitting with response variable?
I am trying to fit concentration (in x-axis) and approach rate (in y-axis) using a logistic equation. The real values of x are [0.5, 2, 5, 9]. Should I fit real_x vs y? I think I saw somewhere that one should use equidistant points (like x = [1,2,3,4]) for fitting. What is your opinion?I am trying to fit concentration (in x-axis) and approach rate (in y-axis) using a logistic equation. The real values of x are [0.5, 2, 5, 9]. Should I fit real_x vs y? I think I saw somewhere that one should use equidistant points (like x = [1,2,3,4]) for fitting. What is your opinion? I am trying to fit concentration (in x-axis) and approach rate (in y-axis) using a logistic equation. The real values of x are [0.5, 2, 5, 9]. Should I fit real_x vs y? I think I saw somewhere that one should use equidistant points (like x = [1,2,3,4]) for fitting. What is your opinion? curve fitting MATLAB Answers — New Questions
Spreadsheet table auto populate
Hi,
I have a table that i’m entering figures into, i’d like to have the table reference a second table (ie: if i enter a value of 600, then that cell looks to the ‘master table’ and automatically takes the 600 value from that table. Is that possible ?
So when i put a figure in of say 1400 under Pressure PSI, it automatically looks to the chart on the right and populates the Torque and Estimate load cells from the chart to the right. Hope that makes sense !
Hi,I have a table that i’m entering figures into, i’d like to have the table reference a second table (ie: if i enter a value of 600, then that cell looks to the ‘master table’ and automatically takes the 600 value from that table. Is that possible ? So when i put a figure in of say 1400 under Pressure PSI, it automatically looks to the chart on the right and populates the Torque and Estimate load cells from the chart to the right. Hope that makes sense ! Read More
Need a little Assistance.
So I have a formula like this. Basically it is in the worksheet or “tab” control and it looks up a cable tag on the M102 then the cable length is on the E4-105. Then it goes back to the M4-105 and looks for duplicate tags of the same and adds them together to get a total length for me. This is good but I also want a way to have that formula in another light to remove duplicate as well if possible. I tried the unique formula at the end but I believe it doesn’t work in the same column I put the below formula in and also not 100% if it can see the output # as a duplicate because its a formula?
=IF(M87<>””,SUMIF(CONTROL!$M$4:$M$105,M87,CONTROL!$E$4:$E$105),””)
I tried this below but didn’t work.
=IF(M4<>””, SUMIF(CONTROL!$M$4:$M$105, M4, CONTROL!$E$4:$E$105), UNIQUE($X$4:$X$105))
So I have a formula like this. Basically it is in the worksheet or “tab” control and it looks up a cable tag on the M102 then the cable length is on the E4-105. Then it goes back to the M4-105 and looks for duplicate tags of the same and adds them together to get a total length for me. This is good but I also want a way to have that formula in another light to remove duplicate as well if possible. I tried the unique formula at the end but I believe it doesn’t work in the same column I put the below formula in and also not 100% if it can see the output # as a duplicate because its a formula? =IF(M87<>””,SUMIF(CONTROL!$M$4:$M$105,M87,CONTROL!$E$4:$E$105),””)I tried this below but didn’t work.=IF(M4<>””, SUMIF(CONTROL!$M$4:$M$105, M4, CONTROL!$E$4:$E$105), UNIQUE($X$4:$X$105)) Read More
polynomial multiplication not accurate, using conv() vs symbolic
I’m calculating the square of a polynomial inside a loop. It seems to me that, calculating it using conv() is resulting in large errors, compared to converting the polynomial to symbolic and do the calculation there.
Just out of curiosity, I tried to sym2poly the symbolic results back to polynomial, and the error appears again.
However, I can’t using symbolic calculation in the loop, because it’s too slow.
Any input on why this is happening and how to solve it properly? Thanks in advance.
figure
% the polynomial
D4_poly= 1.0e+06 * [ -0.000001003321333
0.000108002928093
-0.004647941272734
0.099959233380745
-1.074286120871490
4.615719487403345];
D4_fn = matlabFunction(poly2sym(D4_poly));
subplot(2,2,1);fplot(D4_fn,[19.999825010467916,23.158281544048581])
% using conv
SqD4_poly = conv(D4_poly’,D4_poly’);
SqD4_fn = matlabFunction(poly2sym(SqD4_poly));
subplot(2,2,2);fplot(SqD4_fn,[19.999825010467916,23.158281544048581])
% using poly2sym
temp = poly2sym(D4_poly);
SqD4_s_fn = matlabFunction(temp ^2);
subplot(2,2,3);fplot(SqD4_s_fn,[19.999825010467916,23.158281544048581])
% sym2poly
SqD4_poly_2 = sym2poly(temp ^2);
SqD4_3_fn = matlabFunction(poly2sym(SqD4_poly_2));
subplot(2,2,4);fplot(SqD4_3_fn,[19.999825010467916,23.158281544048581])I’m calculating the square of a polynomial inside a loop. It seems to me that, calculating it using conv() is resulting in large errors, compared to converting the polynomial to symbolic and do the calculation there.
Just out of curiosity, I tried to sym2poly the symbolic results back to polynomial, and the error appears again.
However, I can’t using symbolic calculation in the loop, because it’s too slow.
Any input on why this is happening and how to solve it properly? Thanks in advance.
figure
% the polynomial
D4_poly= 1.0e+06 * [ -0.000001003321333
0.000108002928093
-0.004647941272734
0.099959233380745
-1.074286120871490
4.615719487403345];
D4_fn = matlabFunction(poly2sym(D4_poly));
subplot(2,2,1);fplot(D4_fn,[19.999825010467916,23.158281544048581])
% using conv
SqD4_poly = conv(D4_poly’,D4_poly’);
SqD4_fn = matlabFunction(poly2sym(SqD4_poly));
subplot(2,2,2);fplot(SqD4_fn,[19.999825010467916,23.158281544048581])
% using poly2sym
temp = poly2sym(D4_poly);
SqD4_s_fn = matlabFunction(temp ^2);
subplot(2,2,3);fplot(SqD4_s_fn,[19.999825010467916,23.158281544048581])
% sym2poly
SqD4_poly_2 = sym2poly(temp ^2);
SqD4_3_fn = matlabFunction(poly2sym(SqD4_poly_2));
subplot(2,2,4);fplot(SqD4_3_fn,[19.999825010467916,23.158281544048581]) I’m calculating the square of a polynomial inside a loop. It seems to me that, calculating it using conv() is resulting in large errors, compared to converting the polynomial to symbolic and do the calculation there.
Just out of curiosity, I tried to sym2poly the symbolic results back to polynomial, and the error appears again.
However, I can’t using symbolic calculation in the loop, because it’s too slow.
Any input on why this is happening and how to solve it properly? Thanks in advance.
figure
% the polynomial
D4_poly= 1.0e+06 * [ -0.000001003321333
0.000108002928093
-0.004647941272734
0.099959233380745
-1.074286120871490
4.615719487403345];
D4_fn = matlabFunction(poly2sym(D4_poly));
subplot(2,2,1);fplot(D4_fn,[19.999825010467916,23.158281544048581])
% using conv
SqD4_poly = conv(D4_poly’,D4_poly’);
SqD4_fn = matlabFunction(poly2sym(SqD4_poly));
subplot(2,2,2);fplot(SqD4_fn,[19.999825010467916,23.158281544048581])
% using poly2sym
temp = poly2sym(D4_poly);
SqD4_s_fn = matlabFunction(temp ^2);
subplot(2,2,3);fplot(SqD4_s_fn,[19.999825010467916,23.158281544048581])
% sym2poly
SqD4_poly_2 = sym2poly(temp ^2);
SqD4_3_fn = matlabFunction(poly2sym(SqD4_poly_2));
subplot(2,2,4);fplot(SqD4_3_fn,[19.999825010467916,23.158281544048581]) conv(), symbolic, poly2sym, sym2poly, accuracy MATLAB Answers — New Questions
I’d like to do various things, including controlling the dimensions of the plot box. What I do here with xlim, ylim, and zlim doens’t work.
I put the following together. It runs, but it doesn’t produce an image that moves on the screen. Instead, the screen moves around the image. I’d prefer the former. I try to expand the scope of the plot box using xlim, ylim, and zlim, but it doesn’t work. I also have a question regarding what is being done with XYZ and XYZ’. I don’t understand what is being done with the single quote mark. Can anyone help me or explain the meaning of the single quote mark? Thank you in advance.
pn=20;
pe=0;
pd=-5;
phi=0;
theta=0;
psi=0;
handle=[];
%Simulation parameters
dpn=-0.2; %Change in position.
dpsi=0.05; %Change in yaw angle.
simlength=100;%Number of Sim Steps
%Draw and update the plane’s position.
for k = 1:simlength
pn = pn+dpn;
psi = psi+dpsi;
%Draw or update the plane.
handle = drawPlaneBody(pn,pe,pd,phi,theta,psi,handle);
pause(0.1); %Pause to visualize the movement
end
function handle = drawPlaneBody(pn,pe,pd,phi,theta,psi,handle)
%define points on plane in local NED coordintates
NED = airplanepoints;
%rotate plane by (phi; theta; psi)
NED = rotate(NED, phi, theta, psi);
%translate plane to [pn; pe; pd]
NED = translate(NED, pn, pe, pd);
%transform vertices from NED to XYZ
R = […
0, 1, 0;…
1, 0 , 0;…
0, 0, -1;…
];
XYZ = R* NED’;
%plot plane
if isempty(handle)
handle = plot3(XYZ(1,:),XYZ(2,:),XYZ(3,:),’b’);
xlim = ([-100 100]);
ylim = ([-100 100]);
zlim = ([0 100]);
grid on;%show grid
xlabel(‘X’);ylabel(‘Y’);zlabel(‘Z’);%label axes
axis equal;%Maintain aspect ratio
else
set(handle, ‘XData’, XYZ(1,:), ‘YData’,XYZ(2,:), ‘ZData’,XYZ(3,:));
drawnow
end
end
function XYZ = airplanepoints
%define points on the aircraft in local NED
XYZ = […
0 0 0;%point1
-2 1 1;%point2
-2 1 -1;%point3
0 0 0;%point1
-2 -1 1;%point4
-2 -1 -1;%point5
0 0 0;%point1
-2 1 1;%point2
-2 -1 1;%point4
0 0 0;%point1
-2 1 -1;%point3
-2 -1 -1;%point5
0 0 0;%point1
-2 1 1;%point2
-18 0 0;%point6
-2 1 -1;%point3
-18 0 0;%point6
-2 -1 -1;%point5
-18 0 0;%point6
-2 -1 1;%point4
-18 0 0;%point6
-2 1 1;%point2
0 0 0;%point1
-5 0 0;%point7
-5 -10 0;%point8
-8 -10 0;%point9
-8 10 0;%point10
-5 10 0;%point11
-5 0 0;%point7
-15.5 0 0;%point12
-15.5 2 0;%point13
-17.5 2 0;%point14
-17.5 -2 0;%point15
-15.5 -2 0;%point16
-15.5 0 0;%point12
-18 0 0;%point6
-18 0 -3;%point17
-15.5 0 0;%point15
-18 0 0;%point16
];
end
function XYZ=rotate(XYZ,phi,theta,psi)
%define rotation matrix
R_roll = [
1, 0, 0;
0, cos(phi), -sin(phi);
0, sin(phi), cos(phi)];
R_pitch = [
cos(theta), 0, sin(theta);
0, 1, 0;
-sin(theta), 0, cos(theta)];
R_yaw = [
cos(psi), -sin(psi), 0;
sin(psi), cos(psi), 0;
0, 0, 1];
R = R_roll*R_pitch*R_yaw;
%rotate vertices
XYZ =R*XYZ’;
XYZ = XYZ’;
end
function XYZ = translate(XYZ, pn, pe, pd)
XYZ = XYZ’ + repmat([pn;pe;pd],1,size(XYZ,1));
XYZ=XYZ’;
endI put the following together. It runs, but it doesn’t produce an image that moves on the screen. Instead, the screen moves around the image. I’d prefer the former. I try to expand the scope of the plot box using xlim, ylim, and zlim, but it doesn’t work. I also have a question regarding what is being done with XYZ and XYZ’. I don’t understand what is being done with the single quote mark. Can anyone help me or explain the meaning of the single quote mark? Thank you in advance.
pn=20;
pe=0;
pd=-5;
phi=0;
theta=0;
psi=0;
handle=[];
%Simulation parameters
dpn=-0.2; %Change in position.
dpsi=0.05; %Change in yaw angle.
simlength=100;%Number of Sim Steps
%Draw and update the plane’s position.
for k = 1:simlength
pn = pn+dpn;
psi = psi+dpsi;
%Draw or update the plane.
handle = drawPlaneBody(pn,pe,pd,phi,theta,psi,handle);
pause(0.1); %Pause to visualize the movement
end
function handle = drawPlaneBody(pn,pe,pd,phi,theta,psi,handle)
%define points on plane in local NED coordintates
NED = airplanepoints;
%rotate plane by (phi; theta; psi)
NED = rotate(NED, phi, theta, psi);
%translate plane to [pn; pe; pd]
NED = translate(NED, pn, pe, pd);
%transform vertices from NED to XYZ
R = […
0, 1, 0;…
1, 0 , 0;…
0, 0, -1;…
];
XYZ = R* NED’;
%plot plane
if isempty(handle)
handle = plot3(XYZ(1,:),XYZ(2,:),XYZ(3,:),’b’);
xlim = ([-100 100]);
ylim = ([-100 100]);
zlim = ([0 100]);
grid on;%show grid
xlabel(‘X’);ylabel(‘Y’);zlabel(‘Z’);%label axes
axis equal;%Maintain aspect ratio
else
set(handle, ‘XData’, XYZ(1,:), ‘YData’,XYZ(2,:), ‘ZData’,XYZ(3,:));
drawnow
end
end
function XYZ = airplanepoints
%define points on the aircraft in local NED
XYZ = […
0 0 0;%point1
-2 1 1;%point2
-2 1 -1;%point3
0 0 0;%point1
-2 -1 1;%point4
-2 -1 -1;%point5
0 0 0;%point1
-2 1 1;%point2
-2 -1 1;%point4
0 0 0;%point1
-2 1 -1;%point3
-2 -1 -1;%point5
0 0 0;%point1
-2 1 1;%point2
-18 0 0;%point6
-2 1 -1;%point3
-18 0 0;%point6
-2 -1 -1;%point5
-18 0 0;%point6
-2 -1 1;%point4
-18 0 0;%point6
-2 1 1;%point2
0 0 0;%point1
-5 0 0;%point7
-5 -10 0;%point8
-8 -10 0;%point9
-8 10 0;%point10
-5 10 0;%point11
-5 0 0;%point7
-15.5 0 0;%point12
-15.5 2 0;%point13
-17.5 2 0;%point14
-17.5 -2 0;%point15
-15.5 -2 0;%point16
-15.5 0 0;%point12
-18 0 0;%point6
-18 0 -3;%point17
-15.5 0 0;%point15
-18 0 0;%point16
];
end
function XYZ=rotate(XYZ,phi,theta,psi)
%define rotation matrix
R_roll = [
1, 0, 0;
0, cos(phi), -sin(phi);
0, sin(phi), cos(phi)];
R_pitch = [
cos(theta), 0, sin(theta);
0, 1, 0;
-sin(theta), 0, cos(theta)];
R_yaw = [
cos(psi), -sin(psi), 0;
sin(psi), cos(psi), 0;
0, 0, 1];
R = R_roll*R_pitch*R_yaw;
%rotate vertices
XYZ =R*XYZ’;
XYZ = XYZ’;
end
function XYZ = translate(XYZ, pn, pe, pd)
XYZ = XYZ’ + repmat([pn;pe;pd],1,size(XYZ,1));
XYZ=XYZ’;
end I put the following together. It runs, but it doesn’t produce an image that moves on the screen. Instead, the screen moves around the image. I’d prefer the former. I try to expand the scope of the plot box using xlim, ylim, and zlim, but it doesn’t work. I also have a question regarding what is being done with XYZ and XYZ’. I don’t understand what is being done with the single quote mark. Can anyone help me or explain the meaning of the single quote mark? Thank you in advance.
pn=20;
pe=0;
pd=-5;
phi=0;
theta=0;
psi=0;
handle=[];
%Simulation parameters
dpn=-0.2; %Change in position.
dpsi=0.05; %Change in yaw angle.
simlength=100;%Number of Sim Steps
%Draw and update the plane’s position.
for k = 1:simlength
pn = pn+dpn;
psi = psi+dpsi;
%Draw or update the plane.
handle = drawPlaneBody(pn,pe,pd,phi,theta,psi,handle);
pause(0.1); %Pause to visualize the movement
end
function handle = drawPlaneBody(pn,pe,pd,phi,theta,psi,handle)
%define points on plane in local NED coordintates
NED = airplanepoints;
%rotate plane by (phi; theta; psi)
NED = rotate(NED, phi, theta, psi);
%translate plane to [pn; pe; pd]
NED = translate(NED, pn, pe, pd);
%transform vertices from NED to XYZ
R = […
0, 1, 0;…
1, 0 , 0;…
0, 0, -1;…
];
XYZ = R* NED’;
%plot plane
if isempty(handle)
handle = plot3(XYZ(1,:),XYZ(2,:),XYZ(3,:),’b’);
xlim = ([-100 100]);
ylim = ([-100 100]);
zlim = ([0 100]);
grid on;%show grid
xlabel(‘X’);ylabel(‘Y’);zlabel(‘Z’);%label axes
axis equal;%Maintain aspect ratio
else
set(handle, ‘XData’, XYZ(1,:), ‘YData’,XYZ(2,:), ‘ZData’,XYZ(3,:));
drawnow
end
end
function XYZ = airplanepoints
%define points on the aircraft in local NED
XYZ = […
0 0 0;%point1
-2 1 1;%point2
-2 1 -1;%point3
0 0 0;%point1
-2 -1 1;%point4
-2 -1 -1;%point5
0 0 0;%point1
-2 1 1;%point2
-2 -1 1;%point4
0 0 0;%point1
-2 1 -1;%point3
-2 -1 -1;%point5
0 0 0;%point1
-2 1 1;%point2
-18 0 0;%point6
-2 1 -1;%point3
-18 0 0;%point6
-2 -1 -1;%point5
-18 0 0;%point6
-2 -1 1;%point4
-18 0 0;%point6
-2 1 1;%point2
0 0 0;%point1
-5 0 0;%point7
-5 -10 0;%point8
-8 -10 0;%point9
-8 10 0;%point10
-5 10 0;%point11
-5 0 0;%point7
-15.5 0 0;%point12
-15.5 2 0;%point13
-17.5 2 0;%point14
-17.5 -2 0;%point15
-15.5 -2 0;%point16
-15.5 0 0;%point12
-18 0 0;%point6
-18 0 -3;%point17
-15.5 0 0;%point15
-18 0 0;%point16
];
end
function XYZ=rotate(XYZ,phi,theta,psi)
%define rotation matrix
R_roll = [
1, 0, 0;
0, cos(phi), -sin(phi);
0, sin(phi), cos(phi)];
R_pitch = [
cos(theta), 0, sin(theta);
0, 1, 0;
-sin(theta), 0, cos(theta)];
R_yaw = [
cos(psi), -sin(psi), 0;
sin(psi), cos(psi), 0;
0, 0, 1];
R = R_roll*R_pitch*R_yaw;
%rotate vertices
XYZ =R*XYZ’;
XYZ = XYZ’;
end
function XYZ = translate(XYZ, pn, pe, pd)
XYZ = XYZ’ + repmat([pn;pe;pd],1,size(XYZ,1));
XYZ=XYZ’;
end sizing plot boxes, meaning of single quote mark on existing variable MATLAB Answers — New Questions
plot a 2D circular intensity map
Dear all,
i would like to plot a 2D map showing below. I have x and y coordinates and z being the intensity showing as in different scale in color.
for the areas without the datapoint, i might need to interpolate the gap.
does anyone know how i can do this?
thanks so much for your helpDear all,
i would like to plot a 2D map showing below. I have x and y coordinates and z being the intensity showing as in different scale in color.
for the areas without the datapoint, i might need to interpolate the gap.
does anyone know how i can do this?
thanks so much for your help Dear all,
i would like to plot a 2D map showing below. I have x and y coordinates and z being the intensity showing as in different scale in color.
for the areas without the datapoint, i might need to interpolate the gap.
does anyone know how i can do this?
thanks so much for your help circular plot MATLAB Answers — New Questions
One drive data transfer
Hello
Please i need your help on this issue.
I want to transfer my data from personal one-drive to a business one drive
Hello Please i need your help on this issue. I want to transfer my data from personal one-drive to a business one drive Read More
Teck Talks Presents: Microsoft Power Platform Well-Architected | June 6th
Join us on Thursday, June 6th at 8am PT as Principal Program Managers, Manuela Pichler and Robert Standefer introduce Microsoft Power Platform Well-Architected.
Microsoft Power Platform Well-Architected is a comprehensive framework designed to help you maximize the value of your investments in modern enterprise application workloads with Power Platform. As organizations increasingly rely on modern applications to drive their business processes, ensuring that these applications are built on a strong, adaptable foundation is more critical than ever. Power Platform Well-Architected helps you design Power Platform workloads that are built to change and built to last. In this call, we will explain the purpose of Power Platform Well-Architected, walk you through the content and share how to use the assessment tool to evaluate your workloads.
We hope you’ll join us!
Call to Action:
Click on the link to save the calendar invite: https://aka.ms/TechTalksInvite
View past recordings (sign in required): https://aka.ms/TechTalksRecording
Get started with the adoption tools here
Join us on Thursday, June 6th at 8am PT as Principal Program Managers, Manuela Pichler and Robert Standefer introduce Microsoft Power Platform Well-Architected.
Microsoft Power Platform Well-Architected is a comprehensive framework designed to help you maximize the value of your investments in modern enterprise application workloads with Power Platform. As organizations increasingly rely on modern applications to drive their business processes, ensuring that these applications are built on a strong, adaptable foundation is more critical than ever. Power Platform Well-Architected helps you design Power Platform workloads that are built to change and built to last. In this call, we will explain the purpose of Power Platform Well-Architected, walk you through the content and share how to use the assessment tool to evaluate your workloads.
We hope you’ll join us!
Call to Action:
Click on the link to save the calendar invite: https://aka.ms/TechTalksInvite
View past recordings (sign in required): https://aka.ms/TechTalksRecording
Get started with the adoption tools here Read More
Native declaration AUTOSAR for Infineon Tricore
Hello,
I am encountering an issue in the arxml generation similar to the one (NATIVE-DECLARATION generated by embedded coder wrong – MATLAB Answers – MATLAB Central (mathworks.com)).
However, the Hardware Implementation is set for Infineon Tricore and AUTOSAR standard specifies these native platform data type.
typedef unsigned char boolean;
typedef signed char sint8;
typedef unsigned char uint8;
typedef signed short sint16;
typedef unsigned short uint16;
typedef signed long sint32;
typedef signed long long sint64;
typedef unsigned long uint32;
typedef unsigned long long uint64;
typedef unsigned long uint8_least;
typedef unsigned long uint16_least;
typedef unsigned long uint32_least;
typedef signed long sint8_least;
typedef signed long sint16_least;
typedef signed long sint32_least;
typedef float float32;
typedef double float64;
The sint32 in the arxml is defined as signed int instead of signed long as you can see in the extract from arxml, below
<SW-BASE-TYPE UUID="36d31887-a2ee-597b-2081-a1b40f0e6b5c">
<SHORT-NAME>sint32</SHORT-NAME>
<CATEGORY>FIXED_LENGTH</CATEGORY>
<BASE-TYPE-SIZE>32</BASE-TYPE-SIZE>
<BASE-TYPE-ENCODING>2C</BASE-TYPE-ENCODING>
<NATIVE-DECLARATION>signed int</NATIVE-DECLARATION>
</SW-BASE-TYPE>
How can I control the NATIVE-DECLARATION with Embedded Coder and AUTOSAR Blockset?
Below the configuration of the model
Hardware Implementation: Infineon TriCore
Code Generation/System target file: autosar.tlc
Code Generation/Language standard: C89/C90 (ANSI)
AUTOSAR Code Generation Options/Generate XML file for schema version: 4.2
Thank you in advance.Hello,
I am encountering an issue in the arxml generation similar to the one (NATIVE-DECLARATION generated by embedded coder wrong – MATLAB Answers – MATLAB Central (mathworks.com)).
However, the Hardware Implementation is set for Infineon Tricore and AUTOSAR standard specifies these native platform data type.
typedef unsigned char boolean;
typedef signed char sint8;
typedef unsigned char uint8;
typedef signed short sint16;
typedef unsigned short uint16;
typedef signed long sint32;
typedef signed long long sint64;
typedef unsigned long uint32;
typedef unsigned long long uint64;
typedef unsigned long uint8_least;
typedef unsigned long uint16_least;
typedef unsigned long uint32_least;
typedef signed long sint8_least;
typedef signed long sint16_least;
typedef signed long sint32_least;
typedef float float32;
typedef double float64;
The sint32 in the arxml is defined as signed int instead of signed long as you can see in the extract from arxml, below
<SW-BASE-TYPE UUID="36d31887-a2ee-597b-2081-a1b40f0e6b5c">
<SHORT-NAME>sint32</SHORT-NAME>
<CATEGORY>FIXED_LENGTH</CATEGORY>
<BASE-TYPE-SIZE>32</BASE-TYPE-SIZE>
<BASE-TYPE-ENCODING>2C</BASE-TYPE-ENCODING>
<NATIVE-DECLARATION>signed int</NATIVE-DECLARATION>
</SW-BASE-TYPE>
How can I control the NATIVE-DECLARATION with Embedded Coder and AUTOSAR Blockset?
Below the configuration of the model
Hardware Implementation: Infineon TriCore
Code Generation/System target file: autosar.tlc
Code Generation/Language standard: C89/C90 (ANSI)
AUTOSAR Code Generation Options/Generate XML file for schema version: 4.2
Thank you in advance. Hello,
I am encountering an issue in the arxml generation similar to the one (NATIVE-DECLARATION generated by embedded coder wrong – MATLAB Answers – MATLAB Central (mathworks.com)).
However, the Hardware Implementation is set for Infineon Tricore and AUTOSAR standard specifies these native platform data type.
typedef unsigned char boolean;
typedef signed char sint8;
typedef unsigned char uint8;
typedef signed short sint16;
typedef unsigned short uint16;
typedef signed long sint32;
typedef signed long long sint64;
typedef unsigned long uint32;
typedef unsigned long long uint64;
typedef unsigned long uint8_least;
typedef unsigned long uint16_least;
typedef unsigned long uint32_least;
typedef signed long sint8_least;
typedef signed long sint16_least;
typedef signed long sint32_least;
typedef float float32;
typedef double float64;
The sint32 in the arxml is defined as signed int instead of signed long as you can see in the extract from arxml, below
<SW-BASE-TYPE UUID="36d31887-a2ee-597b-2081-a1b40f0e6b5c">
<SHORT-NAME>sint32</SHORT-NAME>
<CATEGORY>FIXED_LENGTH</CATEGORY>
<BASE-TYPE-SIZE>32</BASE-TYPE-SIZE>
<BASE-TYPE-ENCODING>2C</BASE-TYPE-ENCODING>
<NATIVE-DECLARATION>signed int</NATIVE-DECLARATION>
</SW-BASE-TYPE>
How can I control the NATIVE-DECLARATION with Embedded Coder and AUTOSAR Blockset?
Below the configuration of the model
Hardware Implementation: Infineon TriCore
Code Generation/System target file: autosar.tlc
Code Generation/Language standard: C89/C90 (ANSI)
AUTOSAR Code Generation Options/Generate XML file for schema version: 4.2
Thank you in advance. autosar blockset, native declaration, data type, embedded coder MATLAB Answers — New Questions
Help read temperature data from MAX6675 sensor connected to Arduino
We have a k-type thermocouple that is connected to the MAX6675 board that is then connected to our arduino mega 2560 which is connected to matlab. The SO pin is in D42, the SCK is in D52, the CS pin is in D50, the VCC is connected to the 5Volts and the GND is connected to the ground. The code we were using so far only is outputting 0 no matter what we try. We know the sensor is working after testing it on the arduino ide software, so there is something wrong with our code and how we are sending/recieving data from the arduino. Any help is apperciated. This code was from another post here on matlab, we think the issue is with datOut, it only has been 0 the whole time we have been testing with it.
% KTYPE.m This example is based on the reference manual of the MAX6675 amplifier
% LED Versuch
clear all, close all
%ComPort = getAvailableComPort
a = arduino(‘COM3′,’Uno’,’Libraries’,’SPI’);
dev = device(a,’SPIChipSelectPin’,’D8′);
MAX6675 = device(a,’SPIChipSelectPin’,’D10′);
tmax= 30;
fs = 1;
dt = 1/fs;
t = [dt:dt:tmax];
il = length(t);
T = zeros(il,1);
dummy = [uint8(0),uint8(0)];
for i=1:il
datOut = writeRead(MAX6675,dummy); % Read MAX6675
pause(0.5)
BINR = [dec2bin(datOut(1),8), dec2bin(datOut(2),8)]; % Show the bits of the read
DECR = bin2dec(BINR);
DECT = bitshift(DECR,-3); % Shift by 3 bits to the right
BINT = dec2bin(DECT); % Just to show the change
MP = 255/1023.75; % Reading 0 means 0°C,
% Reading 255 its hot as 1023.75°C
T(i,1) = MP*DECT; % Factor to get °C
disp(T(i,:))
endWe have a k-type thermocouple that is connected to the MAX6675 board that is then connected to our arduino mega 2560 which is connected to matlab. The SO pin is in D42, the SCK is in D52, the CS pin is in D50, the VCC is connected to the 5Volts and the GND is connected to the ground. The code we were using so far only is outputting 0 no matter what we try. We know the sensor is working after testing it on the arduino ide software, so there is something wrong with our code and how we are sending/recieving data from the arduino. Any help is apperciated. This code was from another post here on matlab, we think the issue is with datOut, it only has been 0 the whole time we have been testing with it.
% KTYPE.m This example is based on the reference manual of the MAX6675 amplifier
% LED Versuch
clear all, close all
%ComPort = getAvailableComPort
a = arduino(‘COM3′,’Uno’,’Libraries’,’SPI’);
dev = device(a,’SPIChipSelectPin’,’D8′);
MAX6675 = device(a,’SPIChipSelectPin’,’D10′);
tmax= 30;
fs = 1;
dt = 1/fs;
t = [dt:dt:tmax];
il = length(t);
T = zeros(il,1);
dummy = [uint8(0),uint8(0)];
for i=1:il
datOut = writeRead(MAX6675,dummy); % Read MAX6675
pause(0.5)
BINR = [dec2bin(datOut(1),8), dec2bin(datOut(2),8)]; % Show the bits of the read
DECR = bin2dec(BINR);
DECT = bitshift(DECR,-3); % Shift by 3 bits to the right
BINT = dec2bin(DECT); % Just to show the change
MP = 255/1023.75; % Reading 0 means 0°C,
% Reading 255 its hot as 1023.75°C
T(i,1) = MP*DECT; % Factor to get °C
disp(T(i,:))
end We have a k-type thermocouple that is connected to the MAX6675 board that is then connected to our arduino mega 2560 which is connected to matlab. The SO pin is in D42, the SCK is in D52, the CS pin is in D50, the VCC is connected to the 5Volts and the GND is connected to the ground. The code we were using so far only is outputting 0 no matter what we try. We know the sensor is working after testing it on the arduino ide software, so there is something wrong with our code and how we are sending/recieving data from the arduino. Any help is apperciated. This code was from another post here on matlab, we think the issue is with datOut, it only has been 0 the whole time we have been testing with it.
% KTYPE.m This example is based on the reference manual of the MAX6675 amplifier
% LED Versuch
clear all, close all
%ComPort = getAvailableComPort
a = arduino(‘COM3′,’Uno’,’Libraries’,’SPI’);
dev = device(a,’SPIChipSelectPin’,’D8′);
MAX6675 = device(a,’SPIChipSelectPin’,’D10′);
tmax= 30;
fs = 1;
dt = 1/fs;
t = [dt:dt:tmax];
il = length(t);
T = zeros(il,1);
dummy = [uint8(0),uint8(0)];
for i=1:il
datOut = writeRead(MAX6675,dummy); % Read MAX6675
pause(0.5)
BINR = [dec2bin(datOut(1),8), dec2bin(datOut(2),8)]; % Show the bits of the read
DECR = bin2dec(BINR);
DECT = bitshift(DECR,-3); % Shift by 3 bits to the right
BINT = dec2bin(DECT); % Just to show the change
MP = 255/1023.75; % Reading 0 means 0°C,
% Reading 255 its hot as 1023.75°C
T(i,1) = MP*DECT; % Factor to get °C
disp(T(i,:))
end arduino, max6675, thermocouple MATLAB Answers — New Questions
Where can I find the V2Glib library for Simulink?
Hi,
I am working on a Simulink model for an industrial load simulation, and I encountered an error stating that the ‘V2Glib’ library is missing.
Error: Failed to load library ‘V2Glib’ referenced by ‘MG2/Industrial Load 5 MVA /Asynchronous Machine (customized)’.
Does anyone know where I can obtain this library or who I might contact to get it? Any help would be greatly appreciated!
Thank you.Hi,
I am working on a Simulink model for an industrial load simulation, and I encountered an error stating that the ‘V2Glib’ library is missing.
Error: Failed to load library ‘V2Glib’ referenced by ‘MG2/Industrial Load 5 MVA /Asynchronous Machine (customized)’.
Does anyone know where I can obtain this library or who I might contact to get it? Any help would be greatly appreciated!
Thank you. Hi,
I am working on a Simulink model for an industrial load simulation, and I encountered an error stating that the ‘V2Glib’ library is missing.
Error: Failed to load library ‘V2Glib’ referenced by ‘MG2/Industrial Load 5 MVA /Asynchronous Machine (customized)’.
Does anyone know where I can obtain this library or who I might contact to get it? Any help would be greatly appreciated!
Thank you. transferred MATLAB Answers — New Questions
Upgrade major versions in sharepoint Online
I have a sharepoint site that has a document with 500 major versions, and I want to limit it to 100 major versions. When updating the number of major versions, will the first 400 versions be deleted or will they be kept?
If they are removed, is there a way to recover those versions?
Thanks in advance.
I have a sharepoint site that has a document with 500 major versions, and I want to limit it to 100 major versions. When updating the number of major versions, will the first 400 versions be deleted or will they be kept?If they are removed, is there a way to recover those versions?Thanks in advance. Read More
Help Needed: Nest XMATCH in h-linked drop-down to land on first blank record in the destination Tab
I’m sorry to post again. My last post was not clear enough. Lots of views, but no answers. I’m not very practiced at asking questions in the forum. Please bear with me and don’t hesitate to offer posting advice.
Anyway, I have a “Directory” tab where a user can find the office location for a particular Staff person. The other tabs are labeled with each office that exists, and there are many. I created a list of the offices. First, I created a ‘dummy’ reference (no formula) to a random cell so I could create a named range. Then I used this formula to point the hyperlink to the named range and go to the corresponding Tab.
=INDIRECT(ADDRESS(1,1,,,INDIRECT(“cell where dropdown is”)))
This works great to jump to the correct tab. Now, I’m trying to figure out a way to have the user land on the first blank cell in the first column for data entry. I’ve been trying to use a nested XMATCH function in place of the first (1) after the ADDRESS function (bolded it in the formula above). Apparently, I’m not doing it right. Please let me know if the correct syntax or if there is a better way. Thank you! 🙂
I’m sorry to post again. My last post was not clear enough. Lots of views, but no answers. I’m not very practiced at asking questions in the forum. Please bear with me and don’t hesitate to offer posting advice. Anyway, I have a “Directory” tab where a user can find the office location for a particular Staff person. The other tabs are labeled with each office that exists, and there are many. I created a list of the offices. First, I created a ‘dummy’ reference (no formula) to a random cell so I could create a named range. Then I used this formula to point the hyperlink to the named range and go to the corresponding Tab. =INDIRECT(ADDRESS(1,1,,,INDIRECT(“cell where dropdown is”))) This works great to jump to the correct tab. Now, I’m trying to figure out a way to have the user land on the first blank cell in the first column for data entry. I’ve been trying to use a nested XMATCH function in place of the first (1) after the ADDRESS function (bolded it in the formula above). Apparently, I’m not doing it right. Please let me know if the correct syntax or if there is a better way. Thank you! 🙂 Read More
June 2024, Viva Glint release update
Welcome to the Viva Glint newsletter. Our recurring communications will help you get the most out of the Viva Glint product. You can always access the current and past editions of the newsletter on our Viva Glint blog.
Viva Glint’s next feature release is scheduled for June 1, 2024. Your dashboard provides date and timing details of a short maintenance shutdown two or three days before the release. Follow along with what features are ahead by checking out the Viva Glint product roadmap.
Newsletter news! You let us know that you’re excited to see and use new Glint features when you read about them. Starting with the next release, our newsletters will be sent after the release date so that you can jump right in, see the goodness, and put it to work for you! Please note our future release and downtime dates.
In your Viva Glint programs
Enhanced data management. Control which custom attributes from your employee data file appear on the Viva Glint People page and in user exports. Learn more about this new visibility feature available in the platform.
Tailor email messages to your organization. In the body of your Team Conversations and survey emails, insert multiple paragraphs to break up and emphasize important messages. Learn about customizing survey email and Team Conversations email content.
Support your survey takers and managers
Help users easily submit their valuable feedback. Use support guidance to communicate proactively and create resources to address commonly asked questions by survey takers. Share survey taker help content directly with your organization. You can also send survey takers to learn what accessibility tools and features are available to them.
Share our Manager Quick Guide for Results & Conversations. Help managers become familiar with the Glint platform, interpret feedback, and discuss survey results with their teams in a way that facilitates ongoing conversations and growth.
Connect and learn with Viva Glint
Get ready for our upcoming Ask the Experts sessions:
Confidentiality Thresholds & Suppression | June 11 | Register |Geared towards Viva Glint customers who are deploying their first programs, this session focuses on confidentiality thresholds and suppression.
Data File Preparation and Troubleshooting | June 25 | Register |Learn about Glint best practices for preparing employee data and how to troubleshoot common errors and warnings.
Join our customer cohorts! We have created community groups for like-minded customers to connect. Join our private user groups and be sure to register for our upcoming Retail or Manufacturing quarterly meeting. For more information, check out this blog post.
Thought leadership events and blogs
On May 28 we hosted the fourth webinar in our popular ‘Think like a People Scientist’ series. Catch all the recordings from this series here:
Designing a survey that meets your organization’s needs
Influencing action without authority
Telling a compelling story with your data
Understanding and interpreting your survey data
Recap from our AI Empowerment webinar series are available here:
AI Empowerment: A game-changer for the employee experience
AI Empowerment: A Viva People Science series for HR
Preparing your organization for AI: Insights from Microsoft’s roll-out of Copilot in Viva Glint
In addition, we have two upcoming events that you might be interested in:
Viva Insights Organizational Network Analysis (ONA) customer roundtable webinar | June 20 | Register |The ONA experience is a powerful analysis tool to understand and visualize how collaboration happens across your organization. With it, you can identify key collaboration patterns and acquire meaningful insights. See a demo of the Viva Insights ONA experience and hear from analysts using it to gather feedback.
Aligning Employee Experience to Culture of Patient Safety with the Leapfrog Innovators group | June 20 | Register|Panels from two large healthcare systems will share how their organizations align employee experience to patient safety culture. They’ll discuss internal research demonstrating a link between the two and the steps taken to demonstrate this link in a practical way for frontline leaders. Learn how they’ve used new tools and technology to measure, understand, and drive the culture of safety.
Check out our most recent blog content on the Microsoft Viva Community:
What’s New from Viva People Science: Beyond Engagement – Measuring Productivity in the Workplace
How are we doing?
If you have any feedback on this newsletter, please reply to this email. Also, if there are people on your teams that should be receiving this newsletter, please have them sign up using this link.
*Viva Glint is committed to consistently improving the customer experience. The cloud-based platform maintains an agile production cycle with fixes, enhancements, and new features. Planned program release dates are provided with the best intentions of releasing on these dates, but dates may change due to unforeseen circumstances. Schedule updates will be provided as appropriate.
Microsoft Tech Community – Latest Blogs –Read More
Affordable Innovation: Unveiling the Pricing of Phi-3 SLMs on Models as a Service
At this year’s Microsoft Build, we introduced the Phi-3 series of small language models (SLMs), a groundbreaking addition to our Azure AI model catalog. The Phi-3 models, which include Phi-3-mini, Phi-3-medium, represent a significant advancement in the realm of generative AI, designed to deliver large model performance in a compact, efficient package.
The power of Phi-3 models
The Phi-3 series stands out by offering the capabilities of significantly larger models while requiring far less computational power. This makes Phi-3 models ideal for a wide range of applications, from enhancing mobile apps to powering devices with stringent energy requirements. These models support extensive context lengths—up to 128K tokens—pushing the boundaries of what small models can achieve.
Features and Benefits
Versatility and Scalability: Phi-3 models are versatile across various NLP tasks, including text generation, summarization, and more complex language understanding tasks, making them adaptable to both commercial and academic uses.
Optimized Performance: Designed for efficiency, these models excel in environments where quick response times are crucial without sacrificing the quality of outcomes.
Cost-Effectiveness: By optimizing the quality-cost curve, Phi-3 models ensure that users can deploy cutting-edge AI without the high resource costs typically associated with large models.
Ease of Integration: Available on Azure AI Studio, Hugging Face and Ollama, these models can be seamlessly integrated into existing systems, allowing developers to leverage their capabilities with minimal setup.
Pricing and Availability
Experience the efficiency and agility of Phi-3 small language models on Azure AI model catalog through Pay-As-You-Go (PAYGO) offering via Serverless APIs. PAYGO allows you to pay only for what you use, perfect for managing costs without compromising on performance. For consistent throughput and minimal latency, Phi-3 models offer competitive pricing per unit, providing you with a clear and predictable cost structure. The pricing starts on June 1st, 2024 at 00:00 am UTC i.e. 05:00 pm PST on May 31st, 2024.
These models are available in East US2 and Sweden Central regions.
Models
Context
Input (Per 1,000 tokens)
Output (Per 1,000 tokens)
Phi-3-mini-4k-instruct
4K
0.00028
0.00084
Phi-3-mini-128k-instruct
128K
0.0003
0.0009
Phi-3-medium-4k-instruct
4K
0.00045
0.00135
Phi-3-medium-128k-instruct
128K
0.0005
0.0015
Stay tuned for more updates on Phi-3, and prepare to transform your applications with the efficiency, versatility, and power of Phi-3 small language models. For more information, visit our product page or contact our sales team to see how Phi-3 can fit into your technology stack.
Microsoft Tech Community – Latest Blogs –Read More
New Purview Portal Does Not Allow Glossary Import?
In the New Purview Portal, I am not seeing the ability to Import Terms for Glossary. Did they get away from bulk importing of glossary terms? That would be unfortunate. Its a very helpful feature to ensure accuracy on the numerous terms.
In the New Purview Portal, I am not seeing the ability to Import Terms for Glossary. Did they get away from bulk importing of glossary terms? That would be unfortunate. Its a very helpful feature to ensure accuracy on the numerous terms. Read More
TSI Partner Community Update | May 2024
Hello Partners,
Short on time? Open the May Community Update and bookmark the links inside.
We have curated for you: Copilot for M365, Azure, Business Applications resources plus important NIS2 for our EMEA partners and a link to Submittable, a Digital Natives Partner Program participant.
Download the May 2024 TSI Community Update
Hello Partners,
Short on time? Open the May Community Update and bookmark the links inside.
We have curated for you: Copilot for M365, Azure, Business Applications resources plus important NIS2 for our EMEA partners and a link to Submittable, a Digital Natives Partner Program participant.
Download the May 2024 TSI Community Update
Issue with multiple Index data field mapping in Azure AI Studio
I’m working on integrating my own data into a deployed GPT-4 model using an Azure SQL database. The database connection is working perfectly, and I’m able to perform searches in the Azure portal using Azure AI Search without any issues.
However, I’m running into a problem in Azure AI Studio. When setting up the content mapping, I’m able to add a single column without any issues. But each time I try to add multiple columns, I receive the following error message:
An error occurred when calling Azure Cognitive Search: AzureSearch: Wrong content columns provided. Please ensure your content columns are retrievable. Cannot find the following columns in result set: Description, CustomerName.
{ “search”: “*”, “select”: “Description,CustomerName”, “top”: 10 }
I tested this query in the Search explorer, and it successfully returned the expected results, which confirms that the columns are present and retrievable in the index. I’ve also checked that all fields are retrievable and searchable in the index.
What am I missing here? Has anyone else faced this issue or have any ideas on what might be going wrong with the content mapping in Azure AI Studio when specifying multiple columns?
Thanks in advance for your help!
I’m working on integrating my own data into a deployed GPT-4 model using an Azure SQL database. The database connection is working perfectly, and I’m able to perform searches in the Azure portal using Azure AI Search without any issues. However, I’m running into a problem in Azure AI Studio. When setting up the content mapping, I’m able to add a single column without any issues. But each time I try to add multiple columns, I receive the following error message:An error occurred when calling Azure Cognitive Search: AzureSearch: Wrong content columns provided. Please ensure your content columns are retrievable. Cannot find the following columns in result set: Description, CustomerName.{ “search”: “*”, “select”: “Description,CustomerName”, “top”: 10 } I tested this query in the Search explorer, and it successfully returned the expected results, which confirms that the columns are present and retrievable in the index. I’ve also checked that all fields are retrievable and searchable in the index.What am I missing here? Has anyone else faced this issue or have any ideas on what might be going wrong with the content mapping in Azure AI Studio when specifying multiple columns? Thanks in advance for your help! Read More