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

mer än 3 år ago | 1

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

mer än 3 år 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 ...

mer än 3 år 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...

mer än 3 år 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...

mer än 3 år 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...

mer än 3 år 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...

mer än 3 år 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...

mer än 3 år 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...

mer än 3 år 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...

mer än 3 år 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 ...

mer än 3 år 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 ...

mer än 3 år 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 ...

mer än 3 år 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 ...

mer än 3 år 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...

mer än 3 år 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...

mer än 3 år 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 ...

mer än 3 år 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...

mer än 3 år 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...

mer än 3 år ago | 0

Answered

Rotate line about a point

Hi, You can simply translate the vector to the origin Multiply the point by the rotation Matrix and then again translate the ...

Rotate line about a point

Hi, You can simply translate the vector to the origin Multiply the point by the rotation Matrix and then again translate the ...

mer än 3 år ago | 0

Answered

Hello! I am trying to append an element into a 5x5 empty cell called 'punnettSquare'. How can I append the first element of a1 and the first element b1 into row 2 column 1 of punnettSquare? Thank you!

Hi, Adding this line to the end of the code will get you the desired results. punnettSquare{2,1}={a1{1},b1{1}}; % if you wa...

Hello! I am trying to append an element into a 5x5 empty cell called 'punnettSquare'. How can I append the first element of a1 and the first element b1 into row 2 column 1 of punnettSquare? Thank you!

Hi, Adding this line to the end of the code will get you the desired results. punnettSquare{2,1}={a1{1},b1{1}}; % if you wa...

mer än 3 år ago | 0

Answered

Target Interception in 2D

Hi, Here is an example of modelling a guidance system in MATLAB and Simulink. Here is another similar question which has be...

Target Interception in 2D

Hi, Here is an example of modelling a guidance system in MATLAB and Simulink. Here is another similar question which has be...

mer än 3 år ago | 0

| accepted

Answered

Can I implement Extended Kalman Filter for a linear sensor fusion?

Hi, The major difference between the Kalman Filter and Extended Kalman Filter is that Kalman Filter is applicable for a discr...

Can I implement Extended Kalman Filter for a linear sensor fusion?

Hi, The major difference between the Kalman Filter and Extended Kalman Filter is that Kalman Filter is applicable for a discr...

mer än 3 år ago | 0

Answered

Simulating multiple robots in Gazebo through MATLAB/Simulink

Hi, You can use gazebo co-simulation to get the desired Implementation. This document explains how to setup gazebo co-sim. Th...

Simulating multiple robots in Gazebo through MATLAB/Simulink

Hi, You can use gazebo co-simulation to get the desired Implementation. This document explains how to setup gazebo co-sim. Th...

mer än 3 år ago | 0

Answered

How to reduce the length of a vector?

Hi, I am assuming that you are trying to reduce the number of points in a signal while keeping the overall characteristics unc...

How to reduce the length of a vector?

Hi, I am assuming that you are trying to reduce the number of points in a signal while keeping the overall characteristics unc...

nästan 4 år ago | 0

Answered

Simulink For iterator , to output every loop result, not only the last cycle

Hi, You can refer to this guide to export values out of Simulink at every step into output variable. You can use an outport ...

Simulink For iterator , to output every loop result, not only the last cycle

Hi, You can refer to this guide to export values out of Simulink at every step into output variable. You can use an outport ...

nästan 4 år ago | 0

Answered

Plotting frequency with different vector error

Hi, To get the desired shift so that the graph is symmetric about the origin, you can make the following changes in your code ...

Plotting frequency with different vector error

Hi, To get the desired shift so that the graph is symmetric about the origin, you can make the following changes in your code ...

nästan 4 år ago | 0

Answered

Creating and Writing in an MDL file

Hi, A .mdl file is used to store models in Simulink using ASCII and not code, Code is stored using a .m file. You can refer...

Creating and Writing in an MDL file

Hi, A .mdl file is used to store models in Simulink using ASCII and not code, Code is stored using a .m file. You can refer...

nästan 4 år ago | 1

Answered

Could i use mpu9250 in to the IMUFusionSimulinkModel?

Hi, You can interface the MPU-9250 in Simulink via Arduino Hardware Support Package. The steps for the implementation will b...

Could i use mpu9250 in to the IMUFusionSimulinkModel?

Hi, You can interface the MPU-9250 in Simulink via Arduino Hardware Support Package. The steps for the implementation will b...

nästan 4 år ago | 0

Answered

Convert live colour video into gray scale video?

Hi, You can modify your code like this to get the desired results. CODE : imaqreset; %warning('off','all'); %.... diable...

Convert live colour video into gray scale video?

Hi, You can modify your code like this to get the desired results. CODE : imaqreset; %warning('off','all'); %.... diable...

nästan 4 år ago | 0

| accepted