Risposto

MATLAB code error, LQR

I do not know the exact working behind the "Riccati Solution", but I have had this error before. For me it helped to adjust Q an...

MATLAB code error, LQR

I do not know the exact working behind the "Riccati Solution", but I have had this error before. For me it helped to adjust Q an...

oltre un anno fa | 0

Risposto

simulink not running with no error showing

How do you know that the simulation did not run? In your Model you have not really a good way to see that, since it will simulat...

simulink not running with no error showing

How do you know that the simulation did not run? In your Model you have not really a good way to see that, since it will simulat...

oltre un anno fa | 0

Risposto

F28035 XCP Connection Error

I had this Problem with the Piccolo F280049C Launchpad and had to change the COM-Port (which is COM4 in your case): Model Setti...

F28035 XCP Connection Error

I had this Problem with the Piccolo F280049C Launchpad and had to change the COM-Port (which is COM4 in your case): Model Setti...

oltre un anno fa | 0

| accettato

Risposto

Simscape MultiBody_6-DOF Joint_Restrict All Prismatic Primitive

You should use a "Spherical Joint". It has no gimbal lock and is only able to rotate. (If you, for some reason, still want to u...

Simscape MultiBody_6-DOF Joint_Restrict All Prismatic Primitive

You should use a "Spherical Joint". It has no gimbal lock and is only able to rotate. (If you, for some reason, still want to u...

oltre un anno fa | 0

Risposto

How to sense the torque with the revolute joint?

I tought about it a bit more: The torque is just dependent on the deviation to the natual position. The damper creates a torque ...

How to sense the torque with the revolute joint?

I tought about it a bit more: The torque is just dependent on the deviation to the natual position. The damper creates a torque ...

oltre un anno fa | 0

Risposto

Why is HR here giving me NaN as an answer

As @John D'Errico suggests, your data is most likely the problem here. You have to have at least two peaks in you data. Otherwis...

Why is HR here giving me NaN as an answer

As @John D'Errico suggests, your data is most likely the problem here. You have to have at least two peaks in you data. Otherwis...

oltre un anno fa | 0

| accettato

Risposto

How to connect Harmonic Drive in Simscape?

I made an example on how the harmonic drive could be used. Hope this can help someone. Notes: The "Harmonic Drive" is connec...

How to connect Harmonic Drive in Simscape?

I made an example on how the harmonic drive could be used. Hope this can help someone. Notes: The "Harmonic Drive" is connec...

oltre un anno fa | 0

Risposto

Add a Common Gear constraint to my simscape ,but the the positions of gears and shafts are changed. How to solve it?

It seems like your solidworks model is not fully defined/connected. This allows the model to move. Under normal circumstances an...

Add a Common Gear constraint to my simscape ,but the the positions of gears and shafts are changed. How to solve it?

It seems like your solidworks model is not fully defined/connected. This allows the model to move. Under normal circumstances an...

oltre un anno fa | 0

Risposto

What solver need to be used to run the simscape model?

You always need a "Solver Configuration"-Block connected to your circuit/physical diagram (see below). In there you can make a f...

What solver need to be used to run the simscape model?

You always need a "Solver Configuration"-Block connected to your circuit/physical diagram (see below). In there you can make a f...

oltre un anno fa | 0

| accettato

Risposto

Why my graph only contain 4 lines instead of 6 lines

Check if your err-array for "left-hand" and "right-hand" has values in it. If thy are NaN, it does not plot a line, but no error...

Why my graph only contain 4 lines instead of 6 lines

Check if your err-array for "left-hand" and "right-hand" has values in it. If thy are NaN, it does not plot a line, but no error...

oltre un anno fa | 0

| accettato

Risposto

how to model stairs in simscape multibody?

Depending on the usecase two options come to mind: Creating a staircase in a CAD-program and using the "File Solid"-Block to us...

how to model stairs in simscape multibody?

Depending on the usecase two options come to mind: Creating a staircase in a CAD-program and using the "File Solid"-Block to us...

oltre un anno fa | 1

Risposto

How to make the diagonal legs of the quadruped robot have the same step height when walking?

For me it looks like the legs are moving the same! But what happens, is that the robotdog tilts. Thats why the front legs are fa...

How to make the diagonal legs of the quadruped robot have the same step height when walking?

For me it looks like the legs are moving the same! But what happens, is that the robotdog tilts. Thats why the front legs are fa...

oltre un anno fa | 0

Risposto

"y-direction of the coordinate system should be reverted"

Normally the coordinate system starts at the top left of the image. Right is the positive x-axis and down is the positive y-axis...

"y-direction of the coordinate system should be reverted"

Normally the coordinate system starts at the top left of the image. Right is the positive x-axis and down is the positive y-axis...

oltre un anno fa | 0

| accettato

Risposto

Plot data and keep the maximum values

Maybe using the islocalmax-function is appropriate. But looking at your desired line this might get to many points: x = 1:30; ...

Plot data and keep the maximum values

Maybe using the islocalmax-function is appropriate. But looking at your desired line this might get to many points: x = 1:30; ...

oltre un anno fa | 1

Risposto

Getting error in Inverse Kinematic block using robotics system toolbox for 2 DOF planner robot

Your error seems to indicate, that you want to run a script as a function. While your setup looks good, it could be that you hav...

Getting error in Inverse Kinematic block using robotics system toolbox for 2 DOF planner robot

Your error seems to indicate, that you want to run a script as a function. While your setup looks good, it could be that you hav...

oltre un anno fa | 1

Risposto

Solving for all missing terms at once with "solve" doesn't work

The reason, your solve does not work in the function is most likely that there are more equations than variables. This is no pro...

Solving for all missing terms at once with "solve" doesn't work

The reason, your solve does not work in the function is most likely that there are more equations than variables. This is no pro...

oltre un anno fa | 1

| accettato

Risposto

Solving symbolic Matlab equations in term of two variables (Vo/Vi)

From my experience trying to solve transfer-function with this approach did not work. If someone knows a better way please comme...

Solving symbolic Matlab equations in term of two variables (Vo/Vi)

From my experience trying to solve transfer-function with this approach did not work. If someone knows a better way please comme...

oltre un anno fa | 0

Risposto

Help with a script that calculates bending moment of cantilever beam.

I think writing a script to solve only this exact beam setup is not really to usefull. The aproach of dividing the beam into app...

Help with a script that calculates bending moment of cantilever beam.

I think writing a script to solve only this exact beam setup is not really to usefull. The aproach of dividing the beam into app...

oltre un anno fa | 0

Risposto

Finding Shear Force and Bending Moment

Here is how I would approach this problem: BeamLength = 10; % N m PointLoads = [200 0 -100 3; ...

Finding Shear Force and Bending Moment

Here is how I would approach this problem: BeamLength = 10; % N m PointLoads = [200 0 -100 3; ...

oltre un anno fa | 0

Risolto

Pizza!

Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

oltre un anno fa

Risposto

How can fix this error ?

This error occurs when you want to compare to cells, which you can't do. What you probably want is to compare the contents of th...

How can fix this error ?

This error occurs when you want to compare to cells, which you can't do. What you probably want is to compare the contents of th...

oltre un anno fa | 0

Risposto

save several plots in seperate files within a live script

"the 2nd solution" works fine for me. You have probably edited the code wich resulted in an error. Note that you can copy and pa...

save several plots in seperate files within a live script

"the 2nd solution" works fine for me. You have probably edited the code wich resulted in an error. Note that you can copy and pa...

oltre un anno fa | 0

| accettato

Risposto

Skipping part of code

You could do it with a while loop. This does not produce a warning. And don't forget to put in the break statement at the end of...

Skipping part of code

You could do it with a while loop. This does not produce a warning. And don't forget to put in the break statement at the end of...

oltre un anno fa | 1

| accettato

Risposto

Number of dark stripe in a image

I would extract one line of pixels in the image and then use the islocalmin() or islocalmax()-function. This searches for local...

Number of dark stripe in a image

I would extract one line of pixels in the image and then use the islocalmin() or islocalmax()-function. This searches for local...

oltre un anno fa | 2

Risolto

Bullseye Matrix

Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

oltre un anno fa

Risolto

Replace NaNs with the number that appears to its left in the row.

Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...

oltre un anno fa

Risposto

How to calculate the area under a curve in km^2?

Check out the trapz-function (https://de.mathworks.com/help/matlab/ref/trapz.html). This is exactly what you need. You have to ...

How to calculate the area under a curve in km^2?

Check out the trapz-function (https://de.mathworks.com/help/matlab/ref/trapz.html). This is exactly what you need. You have to ...

oltre un anno fa | 1

| accettato

Risposto

legend line color same

Your Code should work. I simplified it and ran it here (see below). You can try the following: clear % run this clear 'all' ...

legend line color same

Your Code should work. I simplified it and ran it here (see below). You can try the following: clear % run this clear 'all' ...

oltre un anno fa | 0

| accettato

Risposto

How to Generate 3d Plot from 2 2d graphs?

To plot a 3D-Surface/mesh you need a function that is dependent on two variables (https://de.mathworks.com/help/matlab/ref/meshg...

How to Generate 3d Plot from 2 2d graphs?

To plot a 3D-Surface/mesh you need a function that is dependent on two variables (https://de.mathworks.com/help/matlab/ref/meshg...

oltre un anno fa | 0

Risposto

Gmake error 2 while deploying simulink model into arduino mega 2560

I am guessing a bit here, but it seems that you hit the hardware limitations of the arduino. The following error, which occours ...

Gmake error 2 while deploying simulink model into arduino mega 2560

I am guessing a bit here, but it seems that you hit the hardware limitations of the arduino. The following error, which occours ...

oltre un anno fa | 0