A répondu
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, ...

plus de 5 ans il y a | 0

| A accepté

A répondu
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...

plus de 5 ans il y a | 0

| A accepté

A répondu
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...

plus de 5 ans il y a | 1

| A accepté

A répondu
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. ...

plus de 5 ans il y a | 0

A répondu
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: ...

plus de 5 ans il y a | 0

A répondu
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 ...

plus de 5 ans il y a | 1

| A accepté

A répondu
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...

plus de 5 ans il y a | 4

| A accepté

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

plus de 5 ans il y a | 2

A répondu
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...

plus de 5 ans il y a | 0

A répondu
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...

plus de 5 ans il y a | 0

A répondu
'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...

plus de 5 ans il y a | 5

| A accepté

A répondu
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...

presque 6 ans il y a | 0

| A accepté

A répondu
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...

environ 6 ans il y a | 0

A répondu
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...

environ 6 ans il y a | 0

A répondu
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...

environ 6 ans il y a | 0

A répondu
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...

environ 6 ans il y a | 4

A répondu
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...

environ 6 ans il y a | 0

A répondu
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...

environ 6 ans il y a | 1

A répondu
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...

environ 6 ans il y a | 0

A répondu
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 ...

environ 6 ans il y a | 0

| A accepté

A répondu
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...

environ 6 ans il y a | 0

A répondu
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...

environ 6 ans il y a | 0

| A accepté

A répondu
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...

environ 6 ans il y a | 1

| A accepté

A répondu
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...

environ 6 ans il y a | 17

| A accepté

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

environ 6 ans il y a | 5 réponses | 4

5

réponses

A répondu
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...

plus de 6 ans il y a | 0

A répondu
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...

plus de 6 ans il y a | 1

| A accepté

A répondu
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 ...

plus de 6 ans il y a | 0

| A accepté

A répondu
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...

plus de 6 ans il y a | 1

| A accepté

A répondu
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...

plus de 6 ans il y a | 0

| A accepté

Charger plus