Answered

Why should I choose matlab deep learning toolbox over other opensource frameworks like caffe, onnx, pytorch, torch etc?

This is a fun and tough question... *DISCLAIMER: Even though I currently work at MathWorks, I am answering with my personal o...

Why should I choose matlab deep learning toolbox over other opensource frameworks like caffe, onnx, pytorch, torch etc?

This is a fun and tough question... *DISCLAIMER: Even though I currently work at MathWorks, I am answering with my personal o...

3 years ago | 21

Answered

import robot as a rigidbody tree from simscape model

Actually, if you look at the Robotics System Toolbox release notes, the ability to use |importrobot| on a model is only out in R...

import robot as a rigidbody tree from simscape model

Actually, if you look at the Robotics System Toolbox release notes, the ability to use |importrobot| on a model is only out in R...

3 years ago | 1

| accepted

Answered

Trouble Coding Kinematics Problem

You probably want to convert from degrees to radians, since the |sin| and |cos| functions accept radians. That, or you can us...

Trouble Coding Kinematics Problem

You probably want to convert from degrees to radians, since the |sin| and |cos| functions accept radians. That, or you can us...

3 years ago | 0

| accepted

Answered

Plotting quadratic f(t) = t^3

Yes. % 1001 samples from -2pi to 2pi t = linspace(-2*pi, 2*pi, 1001); % Element-wise multiplication f = t.^3; ...

Plotting quadratic f(t) = t^3

Yes. % 1001 samples from -2pi to 2pi t = linspace(-2*pi, 2*pi, 1001); % Element-wise multiplication f = t.^3; ...

3 years ago | 1

| accepted

Answered

How do I import XACRO files as Rigid Body Trees in Robotics System Toolbox?

You can use the ROS |xacro| utility to convert your XACRO files to URDF before importing into MATLAB. In a ROS enabled termin...

How do I import XACRO files as Rigid Body Trees in Robotics System Toolbox?

You can use the ROS |xacro| utility to convert your XACRO files to URDF before importing into MATLAB. In a ROS enabled termin...

3 years ago | 1

| accepted

Question

How do I import XACRO files as Rigid Body Trees in Robotics System Toolbox?

I am trying to import a robot description model from a XACRO file as a Rigid Body Tree from Robotics System Toolbox. robot ...

3 years ago | 1 answer | 0

Answered

How can i use color image segmentation using threshold base edge detection improving through weiner filter and hormonic filter?

Hi Muhammad, Without knowing the exact problem you're facing, here are some general resources to help you get started. * ...

How can i use color image segmentation using threshold base edge detection improving through weiner filter and hormonic filter?

Hi Muhammad, Without knowing the exact problem you're facing, here are some general resources to help you get started. * ...

3 years ago | 0

| accepted

Answered

How can I choose spring stiffness and damping coefficient of the motor for walking robot?

The email answer here for reference, in case others run into this question: There are actually two sources of stiffness and d...

How can I choose spring stiffness and damping coefficient of the motor for walking robot?

The email answer here for reference, in case others run into this question: There are actually two sources of stiffness and d...

3 years ago | 0

Answered

Linearization problem in Simulink

Do you also have the "Known" checkbox enabled in the "Inputs" tab? Because if so, you should uncheck either that one or the outp...

Linearization problem in Simulink

Do you also have the "Known" checkbox enabled in the "Inputs" tab? Because if so, you should uncheck either that one or the outp...

3 years ago | 0

| accepted

Answered

How to limit the revolute joint

The solution you presented is correct -- if you use the Simscape Multibody Multiphysics Library, you can apply a penalty torque ...

How to limit the revolute joint

The solution you presented is correct -- if you use the Simscape Multibody Multiphysics Library, you can apply a penalty torque ...

3 years ago | 1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

3 years ago | 3

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

simulink connecting capacitor problem

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

3 years ago | 2

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

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

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

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

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

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

3 years ago | 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

4 years ago | 0

| accepted