Answered

Simulink - Constant as an argument to a MATLAB function block

Unfortunately, this is a documented limitation: <https://www.mathworks.com/help/signal/ref/upfirdn.html#d120e192101> (expand ...

Simulink - Constant as an argument to a MATLAB function block

Unfortunately, this is a documented limitation: <https://www.mathworks.com/help/signal/ref/upfirdn.html#d120e192101> (expand ...

7 months ago | 0

Answered

Error in determining the root folder

If you want the name of the current folder >> folderName = pwd; If you want the name of the file containing the MATLAB s...

Error in determining the root folder

If you want the name of the current folder >> folderName = pwd; If you want the name of the file containing the MATLAB s...

7 months ago | 0

Answered

What to use for Semantic Segmentation

You can start with premade neural network architectures. The following example does this with the VGG-16 architecture: <https...

What to use for Semantic Segmentation

You can start with premade neural network architectures. The following example does this with the VGG-16 architecture: <https...

7 months ago | 0

| accepted

Answered

Defining time on Ev3 Robot in matlab

If you're using the MATLAB - LEGO interface, then you're not really deploying any code, right? If so, then I would recommend usi...

Defining time on Ev3 Robot in matlab

If you're using the MATLAB - LEGO interface, then you're not really deploying any code, right? If so, then I would recommend usi...

7 months ago | 0

Answered

Measurement data as source for Simulink model

Try a "From Workspace" block: <https://www.mathworks.com/help/simulink/slref/fromworkspace.html> Or in general, you can e...

Measurement data as source for Simulink model

Try a "From Workspace" block: <https://www.mathworks.com/help/simulink/slref/fromworkspace.html> Or in general, you can e...

7 months ago | 0

Answered

Is it possible to pass outputs from one model to be the inputs of another model using simulink?

You could try model referencing to connect these two models inside one bigger "parent" model. It's a very common thing when you ...

Is it possible to pass outputs from one model to be the inputs of another model using simulink?

You could try model referencing to connect these two models inside one bigger "parent" model. It's a very common thing when you ...

7 months ago | 1

| accepted

Answered

please what are the names of the different types of neural network available in matlab?

There are for sure Convolutional and Recurrent Neural Networks in release 2018b of MATLAB. * Convolutional: <https://www.math...

please what are the names of the different types of neural network available in matlab?

There are for sure Convolutional and Recurrent Neural Networks in release 2018b of MATLAB. * Convolutional: <https://www.math...

7 months ago | 0

Answered

This function does not fully set the dimensions of output port 2 error in matlab?

Hi Najmeh Eskandari, I would highly recommend running this code in MATLAB and debugging it yourself. I just did the same and ...

This function does not fully set the dimensions of output port 2 error in matlab?

Hi Najmeh Eskandari, I would highly recommend running this code in MATLAB and debugging it yourself. I just did the same and ...

7 months ago | 0

| accepted

Answered

i made a quarter car suspension using simulink . but the output is always 0. why? i need help!

You either need a forcing function or some nonzero initial conditions in the Integrator blocks... otherwise, you should expect t...

i made a quarter car suspension using simulink . but the output is always 0. why? i need help!

You either need a forcing function or some nonzero initial conditions in the Integrator blocks... otherwise, you should expect t...

7 months ago | 1

| accepted

Answered

Converting double array to struct array for generalized inverse kinematics

Instead of converting back and forth, it's easier to stick to a consistent format -- either all structs or all numeric. If yo...

Converting double array to struct array for generalized inverse kinematics

Instead of converting back and forth, it's easier to stick to a consistent format -- either all structs or all numeric. If yo...

7 months ago | 0

Answered

show command from robotics

Yes -- you have to disable the |PreservePlot| property as follows: show(robot,qWaypoints(k,:)','PreservePlot',false); - ...

show command from robotics

Yes -- you have to disable the |PreservePlot| property as follows: show(robot,qWaypoints(k,:)','PreservePlot',false); - ...

7 months ago | 0

Answered

How can i send image using UDP in Matlab code ?

If you have Instrument Control Toolbox, you can use this functionality: <https://www.mathworks.com/help/instrument/tcp-ip-and...

How can i send image using UDP in Matlab code ?

If you have Instrument Control Toolbox, you can use this functionality: <https://www.mathworks.com/help/instrument/tcp-ip-and...

7 months ago | 0

| accepted

Answered

how to create topic ?

With |rospublisher|: <https://www.mathworks.com/help/robotics/ref/robotics.publisher.html> - Sebastian

how to create topic ?

With |rospublisher|: <https://www.mathworks.com/help/robotics/ref/robotics.publisher.html> - Sebastian

7 months ago | 2

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

7 months ago | 8

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

7 months ago | 0

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

8 months 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; ...

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

8 months ago | 0

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

8 months 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. * ...

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

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

8 months ago | 0

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

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

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

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

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

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

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

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

9 months ago | 2

| accepted