Community Profile

photo

Amrtanshu Raj


Last seen: 10 days ago

MathWorks

39 total contributions since 2020

I am Application Support Engineer at Mathworks.
My major area of interest is Robotics, Automation, Autonomous Driving and Image Processing.
Disclaimer: Any articles /ideas/opinions here are my own and in no way reflect that of Mathworks.

Amrtanshu Raj's Badges

  • 3 Month Streak
  • Knowledgeable Level 2
  • Revival Level 2
  • First Answer

View details...

Contributions in
View by

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

4 months ago | 0

Load more