Answered

Automated Driving Toolbox motion models

Hi, Here is a matlab example that models the motion of a tractor trailer system. This example uses simulink and the vehicle dyn...

Automated Driving Toolbox motion models

Hi, Here is a matlab example that models the motion of a tractor trailer system. This example uses simulink and the vehicle dyn...

5 meses ago | 0

Answered

How can I unzip("MerchData.zip"); - permission denied to create file

Hi, You should try to change the current directory (using cd) to some other directory like Desktop or Home and then try. You c...

How can I unzip("MerchData.zip"); - permission denied to create file

Hi, You should try to change the current directory (using cd) to some other directory like Desktop or Home and then try. You c...

5 meses ago | 0

Answered

Heatmap colors in districts of a map

Hi, The colormap can be used to change the colors in the plots. The colors are not random but taken from a set scheme as you ca...

Heatmap colors in districts of a map

Hi, The colormap can be used to change the colors in the plots. The colors are not random but taken from a set scheme as you ca...

5 meses ago | 0

Answered

How does Simscape derive the state of charge, temperature, and terminal voltage from an input current in the battery models?

Hi, The Documentation for battery model mentions the equtations used in the model. You can also refer to the refrences attached...

How does Simscape derive the state of charge, temperature, and terminal voltage from an input current in the battery models?

Hi, The Documentation for battery model mentions the equtations used in the model. You can also refer to the refrences attached...

5 meses ago | 1

Answered

Curve Extraction from Binary Image

Hi, In the image there are only 2 labels generated by bwlabeln, Assuming that you wish to generate a polynomial and plot it fo...

Curve Extraction from Binary Image

Hi, In the image there are only 2 labels generated by bwlabeln, Assuming that you wish to generate a polynomial and plot it fo...

5 meses ago | 0

Answered

swarm simulation using mobile robotics simulation toolbox

Hi, Here is an example for swarm robots simulation. This will help you to simulate multiple Ware house robots using Robotics Sy...

swarm simulation using mobile robotics simulation toolbox

Hi, Here is an example for swarm robots simulation. This will help you to simulate multiple Ware house robots using Robotics Sy...

5 meses ago | 0

Answered

send mavlink message to px4 by udp

Hi, As mentioned by @Ankur Bose you can use the Path Planning Protocol to send a TRAJECTORY_REPRESNTATION_WAYPOINTS message to...

send mavlink message to px4 by udp

Hi, As mentioned by @Ankur Bose you can use the Path Planning Protocol to send a TRAJECTORY_REPRESNTATION_WAYPOINTS message to...

5 meses ago | 0

Answered

matchScansLine() gives poor match hypotheses

Hi, I have made modifications to your code that give better match and position estimates. I advise you to go through the refren...

matchScansLine() gives poor match hypotheses

Hi, I have made modifications to your code that give better match and position estimates. I advise you to go through the refren...

6 meses ago | 0

Answered

How to make MATLAB find all roots of the equation?

Hi, There is currently no method to include the required condition in the solve function to get the roots. I have brought this ...

How to make MATLAB find all roots of the equation?

Hi, There is currently no method to include the required condition in the solve function to get the roots. I have brought this ...

6 meses ago | 0

Answered

How to reduce the computation time for adding 3D-array?

Hi, You can use the parfor loop to use parallel processing and get higher computation speeds. However you will have to modify y...

How to reduce the computation time for adding 3D-array?

Hi, You can use the parfor loop to use parallel processing and get higher computation speeds. However you will have to modify y...

6 meses ago | 0

Answered

Errors after converting project from 2019b to 2017a

Hi, The reason you are facing this issue is because the 'KeepCollinearPoints' Parameter for polyshape function was introduced a...

Errors after converting project from 2019b to 2017a

Hi, The reason you are facing this issue is because the 'KeepCollinearPoints' Parameter for polyshape function was introduced a...

6 meses ago | 1

| accepted

Answered

generating periodic trapezoidal waves with ramps

Hi, The pulstran function allows you to input custom function handles to generate custom waveforms. You can use this equation t...

generating periodic trapezoidal waves with ramps

Hi, The pulstran function allows you to input custom function handles to generate custom waveforms. You can use this equation t...

6 meses ago | 0

Answered

Find spectrum of part of the signal

Hi, You can consider dividing your signal into small parts of 100 samples as you mentioned and then doing an FFT analysis on ea...

Find spectrum of part of the signal

Hi, You can consider dividing your signal into small parts of 100 samples as you mentioned and then doing an FFT analysis on ea...

6 meses ago | 0

Answered

Quaternion rotation around only two axes.

Hi, You can convert the quaternion to euler angles and then set the yaw(z axis) to zero and then convert it back to quaternion ...

Quaternion rotation around only two axes.

Hi, You can convert the quaternion to euler angles and then set the yaw(z axis) to zero and then convert it back to quaternion ...

6 meses ago | 0

Answered

simply trajectory generation for a ground robot

Hi, The waypoint Trajectory Generator will be able to generate a "S" shape trajectory. You can give waypoints along the "S" Sha...

simply trajectory generation for a ground robot

Hi, The waypoint Trajectory Generator will be able to generate a "S" shape trajectory. You can give waypoints along the "S" Sha...

6 meses ago | 0

Answered

How to connect a PID signal to a H-bridge driver

Hi, The simplest way to convert between simulink and Simscape electrical Voltage is use a Controlled Voltage source block. In t...

How to connect a PID signal to a H-bridge driver

Hi, The simplest way to convert between simulink and Simscape electrical Voltage is use a Controlled Voltage source block. In t...

6 meses ago | 0

Answered

Trajectory for an aerial vehicle

Hi, You can use the waypointTrajectory Generator to get a 6DOF trajectory in MATLAB. There are other methods also to generate T...

Trajectory for an aerial vehicle

Hi, You can use the waypointTrajectory Generator to get a 6DOF trajectory in MATLAB. There are other methods also to generate T...

7 meses ago | 0

Answered

Rotary encoder simulation in Simulink

Hi, You can refer to this docuement for simulating the Hall effect Rotary Encoder in Simscape. You can also find the details of...

Rotary encoder simulation in Simulink

Hi, You can refer to this docuement for simulating the Hall effect Rotary Encoder in Simscape. You can also find the details of...

7 meses ago | 0

Answered

Is there a pipe bend or elbow bock for thermal fluid?

Hi, You can refer to this example of a cooling system using a thermal Fluid in Simscape. You can also edit the parameters of th...

Is there a pipe bend or elbow bock for thermal fluid?

Hi, You can refer to this example of a cooling system using a thermal Fluid in Simscape. You can also edit the parameters of th...

7 meses ago | 0

Answered

How can I connect matlab mobile with my android smartphone

Hi, Directly interfacing the Matlab Mobile with Arduino Hardware is not supported yet. However a similar functionality can be a...

How can I connect matlab mobile with my android smartphone

Hi, Directly interfacing the Matlab Mobile with Arduino Hardware is not supported yet. However a similar functionality can be a...

7 meses ago | 0

Answered

Graphing Same color every iteration in stacked bar chart

Hi, You can edit your code with the help of attached code. Also you can refer to bar for documentation. barchart = bar(1,[stic...

Graphing Same color every iteration in stacked bar chart

Hi, You can edit your code with the help of attached code. Also you can refer to bar for documentation. barchart = bar(1,[stic...

7 meses ago | 0

| accepted

Answered

Can I extract XY data from a figure and sort it by the color of the datapoints?

Hi, Since you have a .fig file, the following code will help you get back the datapoints. This is the basic structure, you may ...

Can I extract XY data from a figure and sort it by the color of the datapoints?

Hi, Since you have a .fig file, the following code will help you get back the datapoints. This is the basic structure, you may ...

7 meses ago | 0

Answered

How to find where certain groups of zeros are located in a cell

Hi, Assuming you want to find the first index of all the groups of 4 zeros in a array. Here is the code - arr = [1 0 1 0 0 1 ...

How to find where certain groups of zeros are located in a cell

Hi, Assuming you want to find the first index of all the groups of 4 zeros in a array. Here is the code - arr = [1 0 1 0 0 1 ...

7 meses ago | 0

| accepted

Answered

odomerty motion models without non-holonomic constraints for monteCarloLocalization object

Hi, Currently the option to change or add a custom motion model is unavailable for monteCarloLocalisation. I have brought this ...

odomerty motion models without non-holonomic constraints for monteCarloLocalization object

Hi, Currently the option to change or add a custom motion model is unavailable for monteCarloLocalisation. I have brought this ...

8 meses ago | 0

| accepted

Answered

How to store continuous serial data from COM port

Hi, You can achieve the required function using a global variable. They allow you to share variables across multiple functions ...

How to store continuous serial data from COM port

Hi, You can achieve the required function using a global variable. They allow you to share variables across multiple functions ...

8 meses ago | 0

Answered

Using Occupancy Grid/Map in Simulink

Hi, You can refer to this documentation for implementation pathplanner in Simulink using occupancy map(check the planning block...

Using Occupancy Grid/Map in Simulink

Hi, You can refer to this documentation for implementation pathplanner in Simulink using occupancy map(check the planning block...

8 meses ago | 0

| accepted

Answered

Algebraic loop problem in attitude control

Hi, You can refer to this to understand the execution order of the simulink blocks and edit your model so that you no longer ge...

Algebraic loop problem in attitude control

Hi, You can refer to this to understand the execution order of the simulink blocks and edit your model so that you no longer ge...

8 meses ago | 1

Answered

RP lidar data plotting

Hi, The problem is not in the plotting/visualisation part. We advise implementing the equations first to get proper values and ...

RP lidar data plotting

Hi, The problem is not in the plotting/visualisation part. We advise implementing the equations first to get proper values and ...

9 meses ago | 0

| accepted

Answered

How can I know and apply underlying pose graph information for lidarSLAM

Hi, A posegraph is an underlying graph that the LidarSlam uses to store all the scanned data and compute state estimate and o...

How can I know and apply underlying pose graph information for lidarSLAM

Hi, A posegraph is an underlying graph that the LidarSlam uses to store all the scanned data and compute state estimate and o...

9 meses ago | 0

Answered

ROHS Step motor 28BYJ-48

Hi, There can be 3 ways to control a stepper motor in MATLAB. Adafruit Motor Sheild. You can refer to this example for the...

ROHS Step motor 28BYJ-48

Hi, There can be 3 ways to control a stepper motor in MATLAB. Adafruit Motor Sheild. You can refer to this example for the...

9 meses ago | 0