Community Profile

# Nathan Hardenberg

2020 年からアクティブ

Programming Languages:
Python, C, MATLAB, Arduino, Visual Basic
Spoken Languages:
English, German
Pronouns:
He/him

All

バッジを表示

#### Content Feed

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...

4日 前 | 0

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...

5日 前 | 0

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...

5日 前 | 0

| 採用済み

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...

5日 前 | 0

| 採用済み

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...

5日 前 | 0

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...

5日 前 | 0

"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...

5日 前 | 0

| 採用済み

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; ...

6日 前 | 1

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...

10日 前 | 1

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...

10日 前 | 1

| 採用済み

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...

15日 前 | 0

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...

16日 前 | 0

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

16日 前 | 0

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...

17日 前 | 0

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...

18日 前 | 0

| 採用済み

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...

18日 前 | 1

| 採用済み

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...

18日 前 | 2

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 ...

19日 前 | 1

| 採用済み

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' ...

19日 前 | 0

| 採用済み

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...

19日 前 | 0

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 ...

Simscape animation of Mass-spring-damper system
Yes this can be done, but there are multiple ways of doing this. For once you can use the Block "Spring and Damper Force". Ther...

Pyramid shape solid in Simscape Multibody
No this is not possible. Creating a Pyramid in CAD and using this is the way to go here. In a rudimentary use case it could be...

why matlab slow on more good spec PC
It seems that you went from a desktop PC to a notebook. Your "new" i9 processor is actually about 20% slower than your "older" i...

Access Simulink logging data during a simulation run
This is possible. The Code below shows a possibility to do this with one signal. Obviously you have to replace 'my_model' and 'm...

| 採用済み

Is 'Arduino Nano 33 BLE Sense Rev2' hardware board compatible with Simulink?

You can give the positions of the corresponding values as the second function argument. In your case the lattitude for each temp...

How to simulate grabbing an object on Simscape Multibody?
I made a very simple example for you (see attachment). In general a "spatial contact force"-block has to be between all bodies ...

| 採用済み

Bar3 crahes by plotting a cell array in a loop
I think it is not quite clear what your result should be. One of your "doubles"-matrecies is already enough to plot a 3D-Bar plo...

| 採用済み

How to test MPU6050 with arduino Uno in simulink?
I wrote a pretty detailed answer regarding this Question on the follwing forum post: https://de.mathworks.com/matlabcentral/ans...

4ヶ月 前 | 0