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

2 years ago | 0

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

2 years ago | 0

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

2 years ago | 1

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

2 years ago | 0

| accepted

Answered
Is 'Arduino Nano 33 BLE Sense Rev2' hardware board compatible with Simulink?
Maybe you can check the steps provided in this thread: https://de.mathworks.com/matlabcentral/answers/1603060-can-not-connect-ha...

2 years ago | 0

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

2 years ago | 0

Solved


Find The area of the square
Given that the length of the side of a square is x, find the area.

2 years ago

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

2 years ago | 0

| accepted

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

2 years ago | 0

| accepted

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

3 years ago | 0

Answered
MPU6050 Arduino Uno Simulink
You need the "Simulink Support Package for Arduino Hardware" (Can be installed as Add-On) Use the "MPU6050 IMU Sensor"-Block fr...

3 years ago | 1

Answered
SENSOR_INIT_ERROR: MPU6050 IMU Sensor for Arduino Mega 2560 in Simulink
I tried the same thing and got the same problem. I tested with an Arduino Mega and UNO. Both had the same problem! With the MATL...

3 years ago | 0

Answered
How do I troubleshoot issues with disabling the Windows Hyper-V feature for Simulink Desktop Real-Time?
The accepted solution did not work for me. I found the solution for my problem here: https://superuser.com/a/1702614/1218362 "G...

3 years ago | 2

Answered
How to call element of matrix of symbolic variables
Since the code answer is a bit hidden in the comments I'm posting the solution as full code here: syms th1(t) Lc1 tc1(t) = [...

3 years ago | 8

Answered
Symbolic vectors 'invalid variable name'
In my R2021b version your code works without an error. And the output is like one would expect: syms a [1 4] display(a)

3 years ago | 0

Answered
How do I create a UDP Server in Simulink?
At the moment (28.10.2021) Simulink has no functionality to read out sender/client ip and port. I got this functionality with a ...

4 years ago | 0

| accepted

Answered
How to create array of linearly spaced values from starting and ending points
I want to add the same function/functionality for Simulink. Since the given answer does not seem to work with a Simulink Matlab-...

4 years ago | 0

Answered
Error when import urdf file into simulink.
This error happens if no robot name is defined in the urdf file! The first line of the urdf file should look something like thi...

4 years ago | 0

Question


How do I create a UDP Server in Simulink?
Question I'm trying to create an UDP-Server with Simulink. I found many differend UDP-Send and UDP-Receive/UDP-Read Blocks in S...

4 years ago | 1 answer | 0

1

answer

Answered
I am making a UDP server using Matlab to communicate with UDP client using Tiva C (by code composer) through ethernet cable , the client and server are on the same laptop but the tiva c IP address is 192.168.1.200
Here is an example using udpport() since udp() will be removed in a future release! Here PORT is the port of the server the dat...

4 years ago | 1

Answered
Error reading VRML file: ***.wrl: Can't open file for reading.
For me the problem was the path. One folder contained a #-symbol which caused the error. Even if the path is relative a # in the...

4 years ago | 1

Answered
Macaulay functions in MUPad
Not quite the solution you are looking for, but it is certainly possible to use the heaviside function. The heaviside function i...

5 years ago | 0