已回答
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...

1 year 前 | 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...

1 year 前 | 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...

1 year 前 | 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...

1 year 前 | 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 ...

1 year 前 | 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' ...

1 year 前 | 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...

1 year 前 | 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 ...

1 year 前 | 0

已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 1

已回答
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...

1 year 前 | 0

| 已接受

已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 0

已回答
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 ...

1 year 前 | 0

| 已接受

已回答
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...

1 year 前 | 0

| 已接受

已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 1

已回答
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...

1 year 前 | 0

已回答
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...

2 years 前 | 2

已回答
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) = [...

2 years 前 | 8

已回答
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)

2 years 前 | 0

已回答
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 ...

3 years 前 | 0

| 已接受

已回答
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-...

3 years 前 | 0

已回答
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...

3 years 前 | 0

提问


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

3 years 前 | 1 个回答 | 0

1

个回答

已回答
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...

3 years 前 | 1

已回答
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...

3 years 前 | 1

已回答
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...

4 years 前 | 0