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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

3 years ago | 0

| accepted

Load more