Community Profile

photo

Amrtanshu Raj


Last seen: Today

MathWorks

76 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

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

View details...

Contributions in
View by

Answered
How to design PWPF in Simulink
Hi, You can use the switch block to get the functionality. You can change the condition to =30 and that would get the desired r...

1 month ago | 0

Answered
Data modeling and visualizing in matlab
Hi, You can find all the functions supported by MATLAB related to graphics here. Hope this helps.

1 month ago | 0

Answered
charging station electrical system modelling
Hi, You can use check this documentation which shows modelling of charger in Simulink and Simscape Electrical. Also refer to ad...

1 month ago | 0

Answered
2d projecti basic; It is not letting me plot x,y,t and the input was working now it only takes inital velocity
Hi, I have updated the code and it is working now. You should also note that you are plotting y vs x and not position vs time....

1 month ago | 0

Answered
How to create a RLC Circuit using Simulink?
Hi, You can check this documentation. This Implements a RC circuit in Simulink and then measures voltage across the capacitor, ...

1 month ago | 0

Answered
Is it possible to control/read Arduino pins at different frequencies?
Hi, Parallel computation or multithreading is not supported by Arduino so flashing the LED and reading the Photo Resistor at di...

2 months ago | 0

| accepted

Answered
How to convert a macro model (.mod) to Simscape block?
Hi, I was able to get the conversion using the command. subcircuit2ssc('TSV99x_macromode.mod','+mylibrary'); You can refer to...

2 months ago | 0

Answered
Acceleration measurement simscape mechanics
Hi, By default the rotational and translational position sensor provide only angular/translational position and velocity. You c...

2 months ago | 0

Answered
two phase FEM parametrized motor
Hi, You can use a FEM-Parameterized Rotary Actuator block to implement the 2 phase motor. You can pass the values for torque an...

2 months ago | 0

Answered
How can I animate a robot CAD model corresponding to my MATLAB code?
Hi, You can use Simulink 3D Animation to animate your robot arm. You can find relevant functions here to load your robot. You ...

2 months ago | 0

| accepted

Answered
Implement three-phase delta connection to Induction Motor
Hi, There is no direct block to implement 3 phase delta source in Simscape. However, you can find here a method here to implem...

2 months ago | 0

Answered
Four coupled inductors in Simscape.
Hi, There is no direct model for Four-Winding coupled inductor in Simscape. However, you can use the custom block in Simcape a...

2 months ago | 0

Answered
Loading a occupancy grid into a function block in simulink
Hi, You can refer to this documentation for implementation of Occupancy map in Simulink(check the planning block). Here a bina...

2 months ago | 0

Answered
I want to use a comparator to compare a sine wave and a triangle wave in simscape. I can't get the components to connect.
Hi, You need to use a controlled voltage source block to convert a physical signal to a Electrical Signal. I have attached a s...

2 months ago | 0

Answered
How can I control a pneumatic robot with Arduino and Matlab?
Hi, There is no direct way to control a pneumatic value or actuator directly from matlab. However you can build your logic usin...

2 months ago | 0

Answered
Help in simulating Alternator Tests in determining the synchronous impedance of an alternator
Hi, You can model a synchronous alternator using Simscape in Simulink. Here is the a example which will give you a basic idea. ...

2 months ago | 0

Answered
How to prevent Simulink Pacer from resetting ROS time?
Hi, So the objective of the Gazebo Cosim feature is to design your logic in Simulink and the use Gazebo as a physics engine to ...

2 months ago | 0

Answered
How to generate 3D Trajectory Heatmap?
Hi, You can achieve the required workflow using occupancyMap3D. You can initialize the map initially with cell size as per your...

2 months ago | 0

Answered
webread won't read everything
Hi, The data on this webpage is dynamically generated using javascript and not static data as mentioned in the examples. Thus s...

2 months ago | 1

| accepted

Answered
Using findpeaks collapses the size of my array, how do i stop this happening?
Hi, Based on your requirement, this snippet should solve your problem. [peaks,locations] = findpeaks(spectrum); %find the peak...

2 months ago | 0

Answered
Read values from jpg images
Hi, The easiest way to read out the value will be using OCR. You can use it to read the values from the chart and then plot the...

2 months ago | 0

Answered
Spline/interp trajectory
Hi, Assuming that you want to perform interpolation on the waypoints, you can use the interp1 function to achieve interpolation...

2 months ago | 0

Answered
Gazebo Pacer setup issue
Hi, Based on what I understand from your question here is my answer in points. libGazeboCoSimPlugin enables the Gazebo size of...

2 months ago | 1

Answered
IMU mpu 6050 matlab code
Hi, There is direct interface available in MATLAB for mpu6050. You can find the documentation here. Hope this helps !!

2 months ago | 0

| accepted

Answered
Remove&reproduce node for path planning
Hi, You can use the uavScenerio feature in MATLAB to generate multi UAV as well as dynamic Obstacles. uavScenerio is the recomm...

2 months ago | 0

Answered
Sensitivity Analysis Tool for Pre-Gathered Discrete Data Sets?
Hi, you can refer to this example which involves external data while doing senstivity analysis. You can also refer to additiona...

4 months ago | 0

Answered
rostime call is slow
Hi, The difference in computation time is because of the implementation difference between the MATLAB and Python version of the...

4 months ago | 0

Answered
Find intersection between two 2D meshes
Hi, Your task can be performed by Using collisionMesh to create a collision geometry. using checkCollision to check if the ge...

4 months ago | 0

Answered
Camera Calibration with AprilTags not working with png image datafile
Hi, I have brought this issue to the notice of our developers. They will investigate the matter further.

4 months ago | 0

Answered
How can I get distance data output from driving designer scneario ? otherwise how can I get distance so that it will be input for ACC model
Hi, Here is an example that has a similar implementation of ACC in Driving Scenerio. You can aslo refer to this documentation...

4 months ago | 0

| accepted

Load more