Community Profile

photo

Amrtanshu Raj


Last seen: 8 días ago

MathWorks

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

14 días ago | 0

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

14 días 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...

14 días 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...

14 días 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 ...

14 días 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...

15 días 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...

15 días 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...

16 días 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...

17 días 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...

17 días 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. ...

17 días 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 ...

17 días 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...

17 días 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...

18 días 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...

18 días 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...

18 días 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...

18 días 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...

18 días 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 !!

18 días 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...

18 días 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...

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

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

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

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

3 meses ago | 0

| accepted

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

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

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

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

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

3 meses ago | 0

Load more