Category: News
Excel cannot open the file ‘Home.Accounts.xlsx’ because the format or file extension is not valid
I need help in opening/recovering this file please.
I need help in opening/recovering this file please. Home Accouts.xlsx Read More
Connexion
Bonjour,
Depuis quelques jours, il apparaît un triangle orange avec un point d’exclamation à côté de mon nom et il est indiqué que je suis connectée. Lorsque je travaille sur excell, une barre apparaît m’indiquant que je dois me connecter pour que mon document soit enregistré,
Je le fais à plusieurs reprises, mais je ne sais pas pourquoi.
il est aussi indiqué que l’on ne peut pas accéder à mon compte. comment régler tout cela ? Merci
Bonjour,Depuis quelques jours, il apparaît un triangle orange avec un point d’exclamation à côté de mon nom et il est indiqué que je suis connectée. Lorsque je travaille sur excell, une barre apparaît m’indiquant que je dois me connecter pour que mon document soit enregistré, Je le fais à plusieurs reprises, mais je ne sais pas pourquoi. il est aussi indiqué que l’on ne peut pas accéder à mon compte. comment régler tout cela ? Merci Read More
text to row function
I have data that is exported from an application that puts mutiple rows of data in a single cell. I need to extact those embedded rows from cell and put into their own rows!! Show me the way please…
I have data that is exported from an application that puts mutiple rows of data in a single cell. I need to extact those embedded rows from cell and put into their own rows!! Show me the way please… Read More
How to create a surface plot having 3 vectors?
I have 3 vectors X, Y, Z and each vector is 1×200.
I need to show the relationship between them on a plot. I used "plot3" which works, but it doesn’t show the relationship that well.
So, I was wondering if there is a way to create a surface plot. I tried to do:
surf(X,Y,Z) but it does not work and Matlab wants Z to be a matrix where Z depends on X and Y which is not the case in my calculations.
So, is there a way to get a surface plot with X, Y, and Z?
P.S.: I looked at other questions like this, but I am still confused how their answers can be applied to my case.I have 3 vectors X, Y, Z and each vector is 1×200.
I need to show the relationship between them on a plot. I used "plot3" which works, but it doesn’t show the relationship that well.
So, I was wondering if there is a way to create a surface plot. I tried to do:
surf(X,Y,Z) but it does not work and Matlab wants Z to be a matrix where Z depends on X and Y which is not the case in my calculations.
So, is there a way to get a surface plot with X, Y, and Z?
P.S.: I looked at other questions like this, but I am still confused how their answers can be applied to my case. I have 3 vectors X, Y, Z and each vector is 1×200.
I need to show the relationship between them on a plot. I used "plot3" which works, but it doesn’t show the relationship that well.
So, I was wondering if there is a way to create a surface plot. I tried to do:
surf(X,Y,Z) but it does not work and Matlab wants Z to be a matrix where Z depends on X and Y which is not the case in my calculations.
So, is there a way to get a surface plot with X, Y, and Z?
P.S.: I looked at other questions like this, but I am still confused how their answers can be applied to my case. surface, plotting, 3d plots MATLAB Answers — New Questions
Converting MATLAB code to AutoCAD
I am new to MATLAB. I have been trying to convert the code to excel, so I can convert that into autocad, but nothing seems to be working. It is possible to do because I need it for school and past students have done it. This is my code:
t = linspace(0, 2*pi, 201); % this is used to create 201 evenly spaced
% points between 0 and 2pi.
r = sqrt(abs(7*sin(5*t))); % 7 controls the size of the shape.
% 5 controls the amount of petals on each
% side.
% abs is used to ignore all imaginary
% values.
% sin and sqrt are used to give a lower
% value.
[x, y] = pol2cart(t, r); % this command transforms corresponding elements of
% the polar coordinate arrays of theta and ro to 2-D
% cartesian coordinates.
z = 3 * (x.^2 + y.^2); % The (x.^2 + y.^2) is used to control how curved
% up the flower is. The (3) controls the size of
% the flower.
% Plotting the 3D surface
figure(1); % this is used to create a new figure window
fill3(x, y, z, ‘c’); % this is used to plot on a 3-D axis.
% the c is used to fill the shape with a cyan color.
grid on; % this is used to show gridlines on the plot.
% Creating a triangulation object
tri = delaunay(x(:), y(:)); % Triangulate the surface
% Save as an STL file
vertices = [x(:), y(:), z(:)]; % Create vertices matrix
stlwrite(tri,’flower.stl’); % Save as an STL file using triangulation objectt = linspace(0, 2*pi, 201); % this is used to create 201 evenly spaced
% points between 0 and 2pi.
r = sqrt(abs(7*sin(5*t))); % 7 controls the size of the shape.
% 5 controls the amount of petals on each
% side.
% abs is used to ignore all imaginary
% values.
% sin and sqrt are used to give a lower
% value.
[x, y] = pol2cart(t, r); % this command transforms corresponding elements of
% the polar coordinate arrays of theta and ro to 2-D
% cartesian coordinates.
z = 3 * (x.^2 + y.^2); % The (x.^2 + y.^2) is used to control how curved
% up the flower is. The (3) controls the size of
% the flower.
% Plotting the 3D surface
figure(1); % this is used to create a new figure window
fill3(x, y, z, ‘c’); % this is used to plot on a 3-D axis.
% the c is used to fill the shape with a cyan color.
grid on; % this is used to show gridlines on the plot.
i have since then produced the following code, but when I try to open it with excel, an error comes up.
t = linspace(0, 2*pi, 201); % 201 evenly spaced points between 0 and 2pi
r = sqrt(abs(7*sin(5*t))); % Polar coordinates
[x, y] = pol2cart(t, r); % Convert polar to Cartesian coordinates
z = 3 * (x.^2 + y.^2); % Calculate z coordinates
data = [x(:), y(:), z(:)]; % Create a matrix where each row is [x, y, z]
filename = ‘flower_data.xlsx’; % Define the filename
writematrix(data, filename); % Write data to Excel
the error is:
excel cannot open the file ‘flower_data.xlsx’ because the file format or file extension is not valid. verify that the file has not been corrupted and that the file extension matches the format of the file
can anyone please help?I am new to MATLAB. I have been trying to convert the code to excel, so I can convert that into autocad, but nothing seems to be working. It is possible to do because I need it for school and past students have done it. This is my code:
t = linspace(0, 2*pi, 201); % this is used to create 201 evenly spaced
% points between 0 and 2pi.
r = sqrt(abs(7*sin(5*t))); % 7 controls the size of the shape.
% 5 controls the amount of petals on each
% side.
% abs is used to ignore all imaginary
% values.
% sin and sqrt are used to give a lower
% value.
[x, y] = pol2cart(t, r); % this command transforms corresponding elements of
% the polar coordinate arrays of theta and ro to 2-D
% cartesian coordinates.
z = 3 * (x.^2 + y.^2); % The (x.^2 + y.^2) is used to control how curved
% up the flower is. The (3) controls the size of
% the flower.
% Plotting the 3D surface
figure(1); % this is used to create a new figure window
fill3(x, y, z, ‘c’); % this is used to plot on a 3-D axis.
% the c is used to fill the shape with a cyan color.
grid on; % this is used to show gridlines on the plot.
% Creating a triangulation object
tri = delaunay(x(:), y(:)); % Triangulate the surface
% Save as an STL file
vertices = [x(:), y(:), z(:)]; % Create vertices matrix
stlwrite(tri,’flower.stl’); % Save as an STL file using triangulation objectt = linspace(0, 2*pi, 201); % this is used to create 201 evenly spaced
% points between 0 and 2pi.
r = sqrt(abs(7*sin(5*t))); % 7 controls the size of the shape.
% 5 controls the amount of petals on each
% side.
% abs is used to ignore all imaginary
% values.
% sin and sqrt are used to give a lower
% value.
[x, y] = pol2cart(t, r); % this command transforms corresponding elements of
% the polar coordinate arrays of theta and ro to 2-D
% cartesian coordinates.
z = 3 * (x.^2 + y.^2); % The (x.^2 + y.^2) is used to control how curved
% up the flower is. The (3) controls the size of
% the flower.
% Plotting the 3D surface
figure(1); % this is used to create a new figure window
fill3(x, y, z, ‘c’); % this is used to plot on a 3-D axis.
% the c is used to fill the shape with a cyan color.
grid on; % this is used to show gridlines on the plot.
i have since then produced the following code, but when I try to open it with excel, an error comes up.
t = linspace(0, 2*pi, 201); % 201 evenly spaced points between 0 and 2pi
r = sqrt(abs(7*sin(5*t))); % Polar coordinates
[x, y] = pol2cart(t, r); % Convert polar to Cartesian coordinates
z = 3 * (x.^2 + y.^2); % Calculate z coordinates
data = [x(:), y(:), z(:)]; % Create a matrix where each row is [x, y, z]
filename = ‘flower_data.xlsx’; % Define the filename
writematrix(data, filename); % Write data to Excel
the error is:
excel cannot open the file ‘flower_data.xlsx’ because the file format or file extension is not valid. verify that the file has not been corrupted and that the file extension matches the format of the file
can anyone please help? I am new to MATLAB. I have been trying to convert the code to excel, so I can convert that into autocad, but nothing seems to be working. It is possible to do because I need it for school and past students have done it. This is my code:
t = linspace(0, 2*pi, 201); % this is used to create 201 evenly spaced
% points between 0 and 2pi.
r = sqrt(abs(7*sin(5*t))); % 7 controls the size of the shape.
% 5 controls the amount of petals on each
% side.
% abs is used to ignore all imaginary
% values.
% sin and sqrt are used to give a lower
% value.
[x, y] = pol2cart(t, r); % this command transforms corresponding elements of
% the polar coordinate arrays of theta and ro to 2-D
% cartesian coordinates.
z = 3 * (x.^2 + y.^2); % The (x.^2 + y.^2) is used to control how curved
% up the flower is. The (3) controls the size of
% the flower.
% Plotting the 3D surface
figure(1); % this is used to create a new figure window
fill3(x, y, z, ‘c’); % this is used to plot on a 3-D axis.
% the c is used to fill the shape with a cyan color.
grid on; % this is used to show gridlines on the plot.
% Creating a triangulation object
tri = delaunay(x(:), y(:)); % Triangulate the surface
% Save as an STL file
vertices = [x(:), y(:), z(:)]; % Create vertices matrix
stlwrite(tri,’flower.stl’); % Save as an STL file using triangulation objectt = linspace(0, 2*pi, 201); % this is used to create 201 evenly spaced
% points between 0 and 2pi.
r = sqrt(abs(7*sin(5*t))); % 7 controls the size of the shape.
% 5 controls the amount of petals on each
% side.
% abs is used to ignore all imaginary
% values.
% sin and sqrt are used to give a lower
% value.
[x, y] = pol2cart(t, r); % this command transforms corresponding elements of
% the polar coordinate arrays of theta and ro to 2-D
% cartesian coordinates.
z = 3 * (x.^2 + y.^2); % The (x.^2 + y.^2) is used to control how curved
% up the flower is. The (3) controls the size of
% the flower.
% Plotting the 3D surface
figure(1); % this is used to create a new figure window
fill3(x, y, z, ‘c’); % this is used to plot on a 3-D axis.
% the c is used to fill the shape with a cyan color.
grid on; % this is used to show gridlines on the plot.
i have since then produced the following code, but when I try to open it with excel, an error comes up.
t = linspace(0, 2*pi, 201); % 201 evenly spaced points between 0 and 2pi
r = sqrt(abs(7*sin(5*t))); % Polar coordinates
[x, y] = pol2cart(t, r); % Convert polar to Cartesian coordinates
z = 3 * (x.^2 + y.^2); % Calculate z coordinates
data = [x(:), y(:), z(:)]; % Create a matrix where each row is [x, y, z]
filename = ‘flower_data.xlsx’; % Define the filename
writematrix(data, filename); % Write data to Excel
the error is:
excel cannot open the file ‘flower_data.xlsx’ because the file format or file extension is not valid. verify that the file has not been corrupted and that the file extension matches the format of the file
can anyone please help? matlab, autocad, excel, convert, .xlsx MATLAB Answers — New Questions
Understanding implicit surface plot behavior
Here is some code that plots an implicit infinite, tilted cylinder.
Q=diag([0,1,1]./3^2);
axis([-5 5 -5 5 -5 5])
h1=fimplicit3(@(x,y,z) quadform(x,y,z,Q) ,’EdgeColor’,’none’,’FaceAlpha’,0.3);
view([-2,11])
xlabel X, ylabel Y, zlabel Z
T=makehgtform(‘axisrotate’,[0 1 0],pi/4);
h1.Parent=hgtransform(‘Matrix’,T);
My first question is, why doesn’t the cylinder, which is infinite, extend to the axis limits?
My second question is, below is the same code again, except at the very end, we double the extent of the axes. Why does the cylinder become invisible when this is done?
figure;
axis([-5 5 -5 5 -5 5])
h2=fimplicit3(@(x,y,z) quadform(x,y,z,Q) ,’EdgeColor’,’none’,’FaceAlpha’,0.3);
view([-2,11])
xlabel X, ylabel Y, zlabel Z
T=makehgtform(‘axisrotate’,[0 1 0],pi/4);
h2.Parent=hgtransform(‘Matrix’,T);
axis([-5 5 -5 5 -5 5]*2) %<—-makes the cylinder disappear!
function d=quadform(x,y,z, Q)
xyz=[x(:).’; y(:).’; z(:).’];
d=reshape( (sum((Q*xyz).*xyz)-1), size(x));
endHere is some code that plots an implicit infinite, tilted cylinder.
Q=diag([0,1,1]./3^2);
axis([-5 5 -5 5 -5 5])
h1=fimplicit3(@(x,y,z) quadform(x,y,z,Q) ,’EdgeColor’,’none’,’FaceAlpha’,0.3);
view([-2,11])
xlabel X, ylabel Y, zlabel Z
T=makehgtform(‘axisrotate’,[0 1 0],pi/4);
h1.Parent=hgtransform(‘Matrix’,T);
My first question is, why doesn’t the cylinder, which is infinite, extend to the axis limits?
My second question is, below is the same code again, except at the very end, we double the extent of the axes. Why does the cylinder become invisible when this is done?
figure;
axis([-5 5 -5 5 -5 5])
h2=fimplicit3(@(x,y,z) quadform(x,y,z,Q) ,’EdgeColor’,’none’,’FaceAlpha’,0.3);
view([-2,11])
xlabel X, ylabel Y, zlabel Z
T=makehgtform(‘axisrotate’,[0 1 0],pi/4);
h2.Parent=hgtransform(‘Matrix’,T);
axis([-5 5 -5 5 -5 5]*2) %<—-makes the cylinder disappear!
function d=quadform(x,y,z, Q)
xyz=[x(:).’; y(:).’; z(:).’];
d=reshape( (sum((Q*xyz).*xyz)-1), size(x));
end Here is some code that plots an implicit infinite, tilted cylinder.
Q=diag([0,1,1]./3^2);
axis([-5 5 -5 5 -5 5])
h1=fimplicit3(@(x,y,z) quadform(x,y,z,Q) ,’EdgeColor’,’none’,’FaceAlpha’,0.3);
view([-2,11])
xlabel X, ylabel Y, zlabel Z
T=makehgtform(‘axisrotate’,[0 1 0],pi/4);
h1.Parent=hgtransform(‘Matrix’,T);
My first question is, why doesn’t the cylinder, which is infinite, extend to the axis limits?
My second question is, below is the same code again, except at the very end, we double the extent of the axes. Why does the cylinder become invisible when this is done?
figure;
axis([-5 5 -5 5 -5 5])
h2=fimplicit3(@(x,y,z) quadform(x,y,z,Q) ,’EdgeColor’,’none’,’FaceAlpha’,0.3);
view([-2,11])
xlabel X, ylabel Y, zlabel Z
T=makehgtform(‘axisrotate’,[0 1 0],pi/4);
h2.Parent=hgtransform(‘Matrix’,T);
axis([-5 5 -5 5 -5 5]*2) %<—-makes the cylinder disappear!
function d=quadform(x,y,z, Q)
xyz=[x(:).’; y(:).’; z(:).’];
d=reshape( (sum((Q*xyz).*xyz)-1), size(x));
end graphics, implicit surface, implicitfunctionsurface, bug? MATLAB Answers — New Questions
Display in the command window
my code looks as follows but i don’t understand why the values of x and z won’t display on the command window. The values are supposed to plot a semicircle.
startUpHeight = 299.07;
startUpValue = 100;
radius = 15;
minConstraintX = 150;
maxConstraintX = 50;
minConstraintZ = 10;
maxConstraintZ = 300;
for x = (startUpValue – radius):0.25:(startUpValue + radius)
if ((maxConstraintX >= x) && (x >= minConstraintX))
z = -1*((sqrt(radius^2)-((x-(3*radius))^2)) – startUpHeight);
if ((maxConstraintZ >= z) && (z >= minConstraintZ))
disp([‘x: ‘, num2str(x), ‘, z: ‘, num2str(z)]);
end
end
endmy code looks as follows but i don’t understand why the values of x and z won’t display on the command window. The values are supposed to plot a semicircle.
startUpHeight = 299.07;
startUpValue = 100;
radius = 15;
minConstraintX = 150;
maxConstraintX = 50;
minConstraintZ = 10;
maxConstraintZ = 300;
for x = (startUpValue – radius):0.25:(startUpValue + radius)
if ((maxConstraintX >= x) && (x >= minConstraintX))
z = -1*((sqrt(radius^2)-((x-(3*radius))^2)) – startUpHeight);
if ((maxConstraintZ >= z) && (z >= minConstraintZ))
disp([‘x: ‘, num2str(x), ‘, z: ‘, num2str(z)]);
end
end
end my code looks as follows but i don’t understand why the values of x and z won’t display on the command window. The values are supposed to plot a semicircle.
startUpHeight = 299.07;
startUpValue = 100;
radius = 15;
minConstraintX = 150;
maxConstraintX = 50;
minConstraintZ = 10;
maxConstraintZ = 300;
for x = (startUpValue – radius):0.25:(startUpValue + radius)
if ((maxConstraintX >= x) && (x >= minConstraintX))
z = -1*((sqrt(radius^2)-((x-(3*radius))^2)) – startUpHeight);
if ((maxConstraintZ >= z) && (z >= minConstraintZ))
disp([‘x: ‘, num2str(x), ‘, z: ‘, num2str(z)]);
end
end
end display MATLAB Answers — New Questions
[AI Search] Minimum RBAC role for AI search when selecting it as data source in AI studio playground
When choosing AI Search as your data source for your AI Studio Playground, ensuring maximum security is crucial. In this article, you will learn how to configure minimum RBAC of AI Search, when using it as a data source for AI Studio Playground.
Please be aware that in this scenario, the minimum requirement is only to read and write access to content in indexes. Therefore, you will be unable to manage the AI Search services.
I. What is RBAC and what roles are there?
Before jumping into the article, if you are not familiar with Azure AI Studio Playground, please check this article first.
RBAC is short for role-based access control. It is an authorization system where you can use to manage access to Azure AI Search and other Azure resources as well. If you are new to this concept, take a look at this document.
There are six roles that can be chosen depending on your needs. Each role has a plane, which is divided into control and data plane. Control would be managing the AI Search service and data would be getting access or writing the Index. For more detailed explanation of the terminology, please check this link to understand what these two plane operations stand for.
II. What role should I assign and how?
Step 1. For minimum access, assign Search Index Contributor role.
In this role, as you will be able to import, refresh, or query the documents collection of an index. However, you are unable to create or manage the index.
Step 2. Go to your AI Search from Azure Portal and click on Access control (IAM) on your left panel.
Step 3. Click on Grant access to this resource, which then you will move to ‘Add role assignment’ page.
From here search, Search Index Contributor
Click on the role and press Next at the bottom of the screen.
Step 4. Select the member whom you would like to grant access to.
Step 5. Go to AI Studio Playground and move to chat to add the data. From there press add your data source.
Choose AI Search as your data source. The RBAC does take a few minutes to be applied.
If you are seeing your AI Search Resource and the Index, then you are all set!
III. What is the limitation?
As previously stated, it’s important to note that the minimal requirement in this context is solely read and write access to index content. Should your needs extend beyond these permissions, it is imperative to review and select the appropriate role. Be advised that with this minimal role, managing AI Search services will not be possible.
IV. Conclusion
Hope this article has helped you configure the minimum RBAC role for your AI Search, when selecting it as your data source in Azure AI Studio Playground. It is crucial to choose a role that aligns with your specific requirements. Always prioritize your security and ensure proper access management via the RBAC (Role-Based Access Control) role. If you have questions or need help, create a support request, or ask Azure community support.
Microsoft Tech Community – Latest Blogs –Read More
Solving Differential Equation by Laplace Transform
Post Content Post Content laplace transform MATLAB Answers — New Questions
Roadrunner opendrive 1.4 import
When I try to load a .xodr file in Roadrunner nothing happens. I dragged my opendrive 1.4 file (generated with sumo netconvert) into the Library Browser Assets, set the projection mode to Full Projection, and set a Custom Projection (Use Tranverse Mercator), just as was shown in the tutorial video. However, when I then try to drag the file to load it nothing happens, no network spawns. How do I resolve this?When I try to load a .xodr file in Roadrunner nothing happens. I dragged my opendrive 1.4 file (generated with sumo netconvert) into the Library Browser Assets, set the projection mode to Full Projection, and set a Custom Projection (Use Tranverse Mercator), just as was shown in the tutorial video. However, when I then try to drag the file to load it nothing happens, no network spawns. How do I resolve this? When I try to load a .xodr file in Roadrunner nothing happens. I dragged my opendrive 1.4 file (generated with sumo netconvert) into the Library Browser Assets, set the projection mode to Full Projection, and set a Custom Projection (Use Tranverse Mercator), just as was shown in the tutorial video. However, when I then try to drag the file to load it nothing happens, no network spawns. How do I resolve this? roadrunner, opendrive MATLAB Answers — New Questions
Save a 3D image to TIFF
Hi everyone,
I made a bwdist transform of some image and I am struggling to export it to the .tiff format. Actually I want to create a 2D image stack representing a 3D volume. I read about imwrite which says it cannot save an image with so many layers, and then about tiff function, but not sure how to you use it.. The original image was created using ImageJ and was in the tiff format, now I need to export the MATLAB’s outcome back to tiff.
I’d appreciate your help.Hi everyone,
I made a bwdist transform of some image and I am struggling to export it to the .tiff format. Actually I want to create a 2D image stack representing a 3D volume. I read about imwrite which says it cannot save an image with so many layers, and then about tiff function, but not sure how to you use it.. The original image was created using ImageJ and was in the tiff format, now I need to export the MATLAB’s outcome back to tiff.
I’d appreciate your help. Hi everyone,
I made a bwdist transform of some image and I am struggling to export it to the .tiff format. Actually I want to create a 2D image stack representing a 3D volume. I read about imwrite which says it cannot save an image with so many layers, and then about tiff function, but not sure how to you use it.. The original image was created using ImageJ and was in the tiff format, now I need to export the MATLAB’s outcome back to tiff.
I’d appreciate your help. image export, save to tiff, image analysis, tiff MATLAB Answers — New Questions
“Empty sym” when solving a system of linear equations with different conditions
I have a system of linear equations with several conditions describing a kinematic analysis of an automatic gearbox. The system is the following:
where all values are positive.
Then the following conditions are applied
These conditions are permanently valid. Thereafter other conditions are going to be applied according to the engaged gear. For example in fifth gear, the further conditions are:
The aim is to obtain a symblic equation expression consisting of parameters , which defines the gear ratio between the output and input. The gear ratio in 5th gear is for instance
Mathematically the system has 12 unknonws and 11 equations, so it gives exactly the expression for the ratio between the output and input as a function of parameters .
The transmission has a total of 10 gears, so it would be pretty difficult to make all manually.
My idea was creating a code as follows:
syms Z1A Z2A Z3A Z4A Z1B Z2B Z3B Z4B positive
syms w1A w2A w3A w4A …
w1B w2B w3B w4B …
w1C w2C w3C w4C i
% System of equations
eqn1 = w1A*Z1A + w1B*Z1B == w1C*(Z1A+Z1B);
eqn2 = w2A*Z2A + w2B*Z2B == w2C*(Z2A+Z2B);
eqn3 = w3A*Z3A + w3B*Z3B == w3C*(Z3A+Z3B);
eqn4 = w4A*Z4A + w4B*Z4B == w4C*(Z4A+Z4B);
% Permanently valid conditions
cond1 = w2A == w1A;
cond2 = w2B == w3A;
cond3 = w1C == w4B;
cond4 = w3B == w4A;
% Fifth gear analysis example
w1B = 0;
cond_gear5_1 = w4C == w3C;
cond_gear5_2 = w2B == w4A;
ratio = i == w4C/w4A;
Sol = solve([eqn1 eqn2 eqn3 eqn4 …
cond1 cond2 cond3 cond4 …
cond_gear5_1 cond_gear5_2 ratio], i)
I was probably too optimistic about getting the desired expression from Matlab. The problem is that I don’t know how to make it work.
Each advice is appreciated.I have a system of linear equations with several conditions describing a kinematic analysis of an automatic gearbox. The system is the following:
where all values are positive.
Then the following conditions are applied
These conditions are permanently valid. Thereafter other conditions are going to be applied according to the engaged gear. For example in fifth gear, the further conditions are:
The aim is to obtain a symblic equation expression consisting of parameters , which defines the gear ratio between the output and input. The gear ratio in 5th gear is for instance
Mathematically the system has 12 unknonws and 11 equations, so it gives exactly the expression for the ratio between the output and input as a function of parameters .
The transmission has a total of 10 gears, so it would be pretty difficult to make all manually.
My idea was creating a code as follows:
syms Z1A Z2A Z3A Z4A Z1B Z2B Z3B Z4B positive
syms w1A w2A w3A w4A …
w1B w2B w3B w4B …
w1C w2C w3C w4C i
% System of equations
eqn1 = w1A*Z1A + w1B*Z1B == w1C*(Z1A+Z1B);
eqn2 = w2A*Z2A + w2B*Z2B == w2C*(Z2A+Z2B);
eqn3 = w3A*Z3A + w3B*Z3B == w3C*(Z3A+Z3B);
eqn4 = w4A*Z4A + w4B*Z4B == w4C*(Z4A+Z4B);
% Permanently valid conditions
cond1 = w2A == w1A;
cond2 = w2B == w3A;
cond3 = w1C == w4B;
cond4 = w3B == w4A;
% Fifth gear analysis example
w1B = 0;
cond_gear5_1 = w4C == w3C;
cond_gear5_2 = w2B == w4A;
ratio = i == w4C/w4A;
Sol = solve([eqn1 eqn2 eqn3 eqn4 …
cond1 cond2 cond3 cond4 …
cond_gear5_1 cond_gear5_2 ratio], i)
I was probably too optimistic about getting the desired expression from Matlab. The problem is that I don’t know how to make it work.
Each advice is appreciated. I have a system of linear equations with several conditions describing a kinematic analysis of an automatic gearbox. The system is the following:
where all values are positive.
Then the following conditions are applied
These conditions are permanently valid. Thereafter other conditions are going to be applied according to the engaged gear. For example in fifth gear, the further conditions are:
The aim is to obtain a symblic equation expression consisting of parameters , which defines the gear ratio between the output and input. The gear ratio in 5th gear is for instance
Mathematically the system has 12 unknonws and 11 equations, so it gives exactly the expression for the ratio between the output and input as a function of parameters .
The transmission has a total of 10 gears, so it would be pretty difficult to make all manually.
My idea was creating a code as follows:
syms Z1A Z2A Z3A Z4A Z1B Z2B Z3B Z4B positive
syms w1A w2A w3A w4A …
w1B w2B w3B w4B …
w1C w2C w3C w4C i
% System of equations
eqn1 = w1A*Z1A + w1B*Z1B == w1C*(Z1A+Z1B);
eqn2 = w2A*Z2A + w2B*Z2B == w2C*(Z2A+Z2B);
eqn3 = w3A*Z3A + w3B*Z3B == w3C*(Z3A+Z3B);
eqn4 = w4A*Z4A + w4B*Z4B == w4C*(Z4A+Z4B);
% Permanently valid conditions
cond1 = w2A == w1A;
cond2 = w2B == w3A;
cond3 = w1C == w4B;
cond4 = w3B == w4A;
% Fifth gear analysis example
w1B = 0;
cond_gear5_1 = w4C == w3C;
cond_gear5_2 = w2B == w4A;
ratio = i == w4C/w4A;
Sol = solve([eqn1 eqn2 eqn3 eqn4 …
cond1 cond2 cond3 cond4 …
cond_gear5_1 cond_gear5_2 ratio], i)
I was probably too optimistic about getting the desired expression from Matlab. The problem is that I don’t know how to make it work.
Each advice is appreciated. symbolic, solve, system of equations MATLAB Answers — New Questions
Passing additional minibatchable quantities to a trainnet() loss function
I am calling trainnet() with the syntax,
netTrained = trainnet(cds,net,lossFcn,options)
where lossFcn=f(Y,T) is a handle to a custom loss function. Here the variable Y is the network prediction based on input X and T is the training target. Both Y and T are S1xS2xC images. During training, the usual operation of trainnet() is to fetch minibatched pairs (X,T) pointed to by the CombinedDataStore cds and to give the pairs (Y(X),T) to the lossFcn.
I would now like to modify the training to have a loss function of the form lossFcn=f(Y,T,W) where W is an additional minibatchable data set of the same dimensions as Y and T containing constant weights. My question is if there is a way to combine 3 datastores instead of 2 datastores to make this happen. In other words, instead of cds reading in minibatched pairs (X,T), is it possible to have it read in minibatched triplets (X,T,W)? Moreover, will trainnet() know the role of each of member of the triplet, i.e., that X are the network inputs and that (T,W) are ‘other stuff’? Or how am I meant to communicate this?I am calling trainnet() with the syntax,
netTrained = trainnet(cds,net,lossFcn,options)
where lossFcn=f(Y,T) is a handle to a custom loss function. Here the variable Y is the network prediction based on input X and T is the training target. Both Y and T are S1xS2xC images. During training, the usual operation of trainnet() is to fetch minibatched pairs (X,T) pointed to by the CombinedDataStore cds and to give the pairs (Y(X),T) to the lossFcn.
I would now like to modify the training to have a loss function of the form lossFcn=f(Y,T,W) where W is an additional minibatchable data set of the same dimensions as Y and T containing constant weights. My question is if there is a way to combine 3 datastores instead of 2 datastores to make this happen. In other words, instead of cds reading in minibatched pairs (X,T), is it possible to have it read in minibatched triplets (X,T,W)? Moreover, will trainnet() know the role of each of member of the triplet, i.e., that X are the network inputs and that (T,W) are ‘other stuff’? Or how am I meant to communicate this? I am calling trainnet() with the syntax,
netTrained = trainnet(cds,net,lossFcn,options)
where lossFcn=f(Y,T) is a handle to a custom loss function. Here the variable Y is the network prediction based on input X and T is the training target. Both Y and T are S1xS2xC images. During training, the usual operation of trainnet() is to fetch minibatched pairs (X,T) pointed to by the CombinedDataStore cds and to give the pairs (Y(X),T) to the lossFcn.
I would now like to modify the training to have a loss function of the form lossFcn=f(Y,T,W) where W is an additional minibatchable data set of the same dimensions as Y and T containing constant weights. My question is if there is a way to combine 3 datastores instead of 2 datastores to make this happen. In other words, instead of cds reading in minibatched pairs (X,T), is it possible to have it read in minibatched triplets (X,T,W)? Moreover, will trainnet() know the role of each of member of the triplet, i.e., that X are the network inputs and that (T,W) are ‘other stuff’? Or how am I meant to communicate this? trainnet, datastore, minibatch, deep learning, ai MATLAB Answers — New Questions
Download text messages from phone link to my phone
Hello.
I uploaded/linked all my calls and text messages to phone link using my microsoft account and Phone Link. I had to factory reset my cell phone, but now I cant figure out how to download the texts back to my phone.
I see all the photos/videos got uploaded to my one drive, but not texts.
I can still see the texts etc in Phone Link, and it is now showing 2 devices linked.
This is the only way for me to get my contacts as well. Please help.
Hello.I uploaded/linked all my calls and text messages to phone link using my microsoft account and Phone Link. I had to factory reset my cell phone, but now I cant figure out how to download the texts back to my phone.I see all the photos/videos got uploaded to my one drive, but not texts.I can still see the texts etc in Phone Link, and it is now showing 2 devices linked.This is the only way for me to get my contacts as well. Please help. Read More
Install chinese language
Hi Community,
I required help in my school related ticket. In the couple of week time exam coming up that we need to install Chinese language around 75 to 80 laptops. Is any easy way to do through Intune or another idea please that will be really helpful someone come in front to guide me for this issue.
Regards,
ITHelp99
Hi Community, I required help in my school related ticket. In the couple of week time exam coming up that we need to install Chinese language around 75 to 80 laptops. Is any easy way to do through Intune or another idea please that will be really helpful someone come in front to guide me for this issue. Regards,ITHelp99 Read More
In React (CRA) project, cannot load azure-maps-geolocation-control.js external Azure Map script
I am working with a CRA React project. In a React component, I have tried to import and load an external Azure Map standalone script like azure-maps-geolocation-control which adds on to the Azure Map namespace (atlas). In this React component I have imported Azure Map SDK like azure-maps-control which works fine to render the map and supplies the namespace.
Under map ready event, I have tried to instantiate GeolocationControl object but seems like the script cannot read the atlas namespace. This external script is placed in public folder and dynamically placed in <head> of index.html .
How to make the script link to Azure Map SDK namespace, in a React component? Thank you
I am working with a CRA React project. In a React component, I have tried to import and load an external Azure Map standalone script like azure-maps-geolocation-control which adds on to the Azure Map namespace (atlas). In this React component I have imported Azure Map SDK like azure-maps-control which works fine to render the map and supplies the namespace. Under map ready event, I have tried to instantiate GeolocationControl object but seems like the script cannot read the atlas namespace. This external script is placed in public folder and dynamically placed in <head> of index.html . How to make the script link to Azure Map SDK namespace, in a React component? Thank youIn React functional component Read More
Windows server 2022 doesnt work with QLE2692
Hi Dear,
I have a new install Windows Server 2022(Im not sure windows update done yet,its offline enviroment),and give a HBA card (QLE2692 )to it.
It is show that works normally in Device Management.But I using Qconverageconsole cli (Offical tool)to show HBA’s WWN found WWN keep a maintenace mode caused my hba doesnt work with my san storage.
Its weird,I have install the newest firmware of HBA Card but system show that unsupported firmware.
I doubt that it may be one of problems.But I get out of clue to deal with .
Hi Dear, I have a new install Windows Server 2022(Im not sure windows update done yet,its offline enviroment),and give a HBA card (QLE2692 )to it.It is show that works normally in Device Management.But I using Qconverageconsole cli (Offical tool)to show HBA’s WWN found WWN keep a maintenace mode caused my hba doesnt work with my san storage.Its weird,I have install the newest firmware of HBA Card but system show that unsupported firmware.I doubt that it may be one of problems.But I get out of clue to deal with . Read More
M365 Front door service
Hi All
Would like to ask, if current M365 front door detail is showing a lot of service is package loss, it is the good idea to connect the VPN to reduce the package loss and improve the network connectivity?
my affected user is at UK and US, but my O365 tenant is at Taiwan region
below picture is a part of the detail request when using the https://connectivity.office.com/ to test it
Hi All Would like to ask, if current M365 front door detail is showing a lot of service is package loss, it is the good idea to connect the VPN to reduce the package loss and improve the network connectivity? my affected user is at UK and US, but my O365 tenant is at Taiwan region below picture is a part of the detail request when using the https://connectivity.office.com/ to test it Read More
Convert 0×1 empty double column vector to zero
I am running a code and some of the parameters are 0×1 empty double column vector. Is there any way to convert these to zero?
I mean isntead of daying empty double, assign zero.I am running a code and some of the parameters are 0×1 empty double column vector. Is there any way to convert these to zero?
I mean isntead of daying empty double, assign zero. I am running a code and some of the parameters are 0×1 empty double column vector. Is there any way to convert these to zero?
I mean isntead of daying empty double, assign zero. double, vector MATLAB Answers — New Questions
Using ’tiledlayout’, is it possible to incorporate a zoomed-in section of the main plot within the main plot itself for each tile?
Hi, I created 3 main plots (black square) using ’tiledlayout’, and i would like to include a zoomed-in area of each main plots (red square) within the same tile. Is this possible to do? The figure below shows, what i would like.Hi, I created 3 main plots (black square) using ’tiledlayout’, and i would like to include a zoomed-in area of each main plots (red square) within the same tile. Is this possible to do? The figure below shows, what i would like. Hi, I created 3 main plots (black square) using ’tiledlayout’, and i would like to include a zoomed-in area of each main plots (red square) within the same tile. Is this possible to do? The figure below shows, what i would like. matlab, tiledlayout MATLAB Answers — New Questions