Answered
Why switch in the attached simulink file not working?
This seems right. The open switch behaves as a large resistor, so voltage should be (almost) the same as the DC voltage supply, ...

6 years ago | 0

| accepted

Answered
No action when using Simulink ROS Publish block
In the Simulink-ROS interface, all arrays are treated like C arrays. You need both the content and the length of the array to su...

6 years ago | 0

| accepted

Answered
ROS Gazebo vision.BlobAnalysis Error
Are you trying this in a version earlier than R2016b, by any chance? If so, replace the problematic line with: [centroid...

6 years ago | 1

| accepted

Answered
matlab guide to operate turtlebot 3
TurtleBot3 just uses ROS, so if you're not familiar with ROS you can look at some "getting started" content on MATLAB and ROS. ...

6 years ago | 0

Answered
How to estimate the Euler Angles (or the corresponding homogeneous 4x4 tform) by use of a known 3x3 projective tform?
Assuming the projective2d transform is doing a rotation about Z and translation about XY, you can probably do the following: ...

6 years ago | 0

Answered
Read OctoMap file with Robotics System Toolbox
I don't think there's a direct way to read unless you parse the file yourself. As you said, you can either create your own file ...

6 years ago | 1

| accepted

Answered
What 'Signal name must resolve to Simulink object' checkbox actually does, and when to use it?
Normally, the input/output data to a MATLAB Function block, Stateflow chart, etc. has all these properties you can define. For e...

6 years ago | 5

| accepted

Answered
simulink connecting capacitor problem
That Capacitor block belongs to a different library (Simscape, and not Simscape Power Systems). If you want a capacitor that ...

6 years ago | 3

Answered
a Simulink model for vehicle in order to generate, the aerodynamic, grading, rolling resistance and tractive force
Check out this blog post! Simulink offers a lot of different ways to model a vehicle and get all these forces and more. <http...

6 years ago | 0

Answered
Parse String Data ROS topic in Simulink
You can use a <https://www.mathworks.com/help/simulink/ug/creating-an-example-model-that-uses-a-matlab-function-block.html MATLA...

6 years ago | 0

Answered
'Domain error. To compute complex results from real x, use 'acos(complex(x))' error in matlab?
Hi Najmeh, If you supply a value greater than 1 or smaller than -1 to the |acos| function, you get a complex number. Simulink...

6 years ago | 5

| accepted

Answered
Can fast restart be set programmatically?
Unfortunately, Fast Restart can't be used programmatically in its initial R2015a release. In R2015b and later, you can enter...

6 years ago | 0

| accepted

Answered
Error using GA in MATLAB for nonlinear constrained optimization
Pretty sure it's because |hinfnorm| can return an |Inf| value if the input system is unstable... So you're going to have to h...

6 years ago | 0

Answered
how to read 16UC1 encoded uint8 depth data
While Walter's approach is correct, there is a Robotics System Toolbox function called "readImage" which already operates on the...

6 years ago | 0

Answered
Simulink: Output argument is not assigned on some execution paths
As the error message states, there are some conditions that could make |g| never be assigned. I can think of a few days to ad...

7 years ago | 0

Answered
How to get transfer function from any simulink model ?
Simulink Control Design has a linearization functionality which will give you a state-space (or transfer function) representatio...

7 years ago | 4

Answered
Code Coverage with Simulink Test
*EDIT: This answer is from October 2015. Please see Paul Urban's comments below for the most updated answer.* Simulink Verifi...

7 years ago | 0

Answered
for loop with linspace
I see 2 things here First, the for-loop should start from the first index and stop at the length of x. Right now, your code i...

7 years ago | 1

Answered
MATLAB support package for arduino hardware
It is not directly possible... but if you have a pre-existing MATLAB function or you're more comfortable with text-based program...

7 years ago | 0

Answered
Why doesn't my sample time change?
If you go to *Simulation > Model Configuration Parameters*, the "Solver" pane should have a sample time setting in there set to ...

7 years ago | 0

| accepted

Answered
Comment out block vs grounding signal
As far as I know, I don't think there is a difference. In both cases, any block optimizations at code generation will remove...

7 years ago | 0

Answered
Define State space in simulink for pendulum inverted
Two different things! The 4-state system you provided are the system equations for the inverted pendulum on a cart. In the mo...

7 years ago | 0

| accepted

Answered
modeling friction in translational mechanical system
You should think of Simscape mechanical blocks as operating on the relative position/velocity between the R and C ports. In t...

7 years ago | 1

| accepted

Answered
Rigidly connected port error with Simscape Multibody Contact Forces Library
This error is due to a default setting with new Simulink models, which is incompatible with the Contact Forces Library. To r...

7 years ago | 18

| accepted

Question


Rigidly connected port error with Simscape Multibody Contact Forces Library
Adding blocks from the <https://www.mathworks.com/matlabcentral/fileexchange/47417-simscape-multibody-contact-forces-library Sim...

7 years ago | 5 answers | 4

5

answers

Answered
How to form a simulink block for MATLAB code ?
There is a MATLAB Function block you can use to insert your code in there: <https://www.mathworks.com/help/simulink/ug/creati...

7 years ago | 0

Answered
CAN bus unpack Big Endian Format
Hi Kyriakos, If you look at the <https://www.mathworks.com/help/vnt/ug/canpack.html block documentation>, you will see a diag...

7 years ago | 1

| accepted

Answered
How to create time varying inertia with Simscape Multibody?
EDIT: Variable solid blocks have been released in R2017b. _OLD ANSWER BELOW_ That object has fixed moments of inertia, so ...

7 years ago | 0

| accepted

Answered
Algebraic loop: PID control DC motor in Simscape
Check out this blog post -- I think it sums up pretty well how to address algebraic loops with continuous dynamics (like that PI...

7 years ago | 1

| accepted

Answered
How to translate a body in +Y direction?
You can use a Rigid Transform block to re-orient the Z axis before the Prismatic Joint block, so it is in the direction you want...

7 years ago | 0

| accepted

Load more