Application Support Engineer in Engineering Development Group at Mathworks.

Disclaimer: Any advice and opinions here are my own and in no ways reflect that of Mathworks.

Answered

How to draw a second order cone relaxation using matlab?

patch() function can be used to create a polynomial fitting to the open end of the cone and putting it over it. Following code ...

How to draw a second order cone relaxation using matlab?

patch() function can be used to create a polynomial fitting to the open end of the cone and putting it over it. Following code ...

7 hours ago | 0

Answered

How can I extract sets of data (coordinates for each plot) from multiple plots in one figure??

Refer the Following links for extracting data from MATLAB figures and multiple plots. https://www.mathworks.com/matlabcentral/a...

How can I extract sets of data (coordinates for each plot) from multiple plots in one figure??

Refer the Following links for extracting data from MATLAB figures and multiple plots. https://www.mathworks.com/matlabcentral/a...

7 hours ago | 0

Answered

Tilde character underneath a letter in Matlab charts

The following code may be able to help you. ylabel('$\stackrel{a}{\tilde{}}$','Interpreter','latex');

Tilde character underneath a letter in Matlab charts

The following code may be able to help you. ylabel('$\stackrel{a}{\tilde{}}$','Interpreter','latex');

7 hours ago | 0

Answered

GA optimization within constraints

Maximization can be achieved by multiplying the desired function with -1 and then using the minimization approach using Genetic ...

GA optimization within constraints

Maximization can be achieved by multiplying the desired function with -1 and then using the minimization approach using Genetic ...

1 day ago | 0

Answered

How to create a simple Agent Based Model with Simulink

SimEvents toolbox can be used for modelling the proposed scenario. Refer SimEvents Examples to see illustrations of various scen...

How to create a simple Agent Based Model with Simulink

SimEvents toolbox can be used for modelling the proposed scenario. Refer SimEvents Examples to see illustrations of various scen...

1 day ago | 0

Answered

Points to STL file

stlwrite user a triangulation object has one its parameter. Refer triangulation for making a triangulation object from the dat...

Points to STL file

stlwrite user a triangulation object has one its parameter. Refer triangulation for making a triangulation object from the dat...

3 days ago | 0

Answered

Extract multiple tables of different lengths from word document

Extraction of data from a table in word document can be done using Text Analytics Toolbox. Refer the following links for readin...

Extract multiple tables of different lengths from word document

Extraction of data from a table in word document can be done using Text Analytics Toolbox. Refer the following links for readin...

27 days ago | 0

Answered

Trajectory input manipulation for Simulink model

Driving Scenario Designer can be used to simulate driving systems. Set the waypoints to specify the desired path. To dynamically...

Trajectory input manipulation for Simulink model

Driving Scenario Designer can be used to simulate driving systems. Set the waypoints to specify the desired path. To dynamically...

28 days ago | 0

Answered

How to log a block in simulink-model programmatically?

Simulink doesn’t support block logging. Rather one can log the signals coming out of the blocks for all required purposes.

How to log a block in simulink-model programmatically?

Simulink doesn’t support block logging. Rather one can log the signals coming out of the blocks for all required purposes.

28 days ago | 0

| accepted

Answered

Are SimScape models idealistic or realistic?

Realistic models can be created using Symscape by setting appropriate Block parameters, initial conditions and understanding the...

Are SimScape models idealistic or realistic?

Realistic models can be created using Symscape by setting appropriate Block parameters, initial conditions and understanding the...

28 days ago | 0

| accepted

Answered

Testmanager, How is it possible to sort testcases within testsuite?

Test case can be rearragned inside a test suite. Following code sorts the test cases in descending and random order. s = matl...

Testmanager, How is it possible to sort testcases within testsuite?

Test case can be rearragned inside a test suite. Following code sorts the test cases in descending and random order. s = matl...

29 days ago | 0

Answered

Processing of LiDAR point cloud data

Use pcread to read point cloud from PLY or PCD file. And extract the selected portion of data points using findPointsInROI. An t...

Processing of LiDAR point cloud data

Use pcread to read point cloud from PLY or PCD file. And extract the selected portion of data points using findPointsInROI. An t...

29 days ago | 0

| accepted

Answered

Matlab Mobile: Plot a walking path in cartesian

The entire code looks fine.Just a minor mistake in using geodeticenu function. Use geodetic2enu instead for getting the desired ...

Matlab Mobile: Plot a walking path in cartesian

The entire code looks fine.Just a minor mistake in using geodeticenu function. Use geodetic2enu instead for getting the desired ...

2 months ago | 1

| accepted

Answered

How to warp texture onto a part of an object (for example the cylinder) ?

One possible workaround will be to rotate the image using imrotate and then use warp function for wrapping around the cylinder...

How to warp texture onto a part of an object (for example the cylinder) ?

One possible workaround will be to rotate the image using imrotate and then use warp function for wrapping around the cylinder...

2 months ago | 0

| accepted

Answered

How to plot a time series contour with several unequal matrix?

A simple way will be to concatenate all the matrixes vertically as all of them have the same number of columns. This can be done...

How to plot a time series contour with several unequal matrix?

A simple way will be to concatenate all the matrixes vertically as all of them have the same number of columns. This can be done...

2 months ago | 0

Answered

I have trouble in using Driving Scenario Designer.

I have heard that this issue is known and the concerned parties may be looking into it.

I have trouble in using Driving Scenario Designer.

I have heard that this issue is known and the concerned parties may be looking into it.

2 months ago | 0

Answered

So i wanted a dynamic way to read 3 files from these folders with extensions .w1 , .w2 and .hdr into variables.

One possible way is to store all the targeted folders inside the directory in a variable using dir function. Loop in each folder...

So i wanted a dynamic way to read 3 files from these folders with extensions .w1 , .w2 and .hdr into variables.

One possible way is to store all the targeted folders inside the directory in a variable using dir function. Loop in each folder...

2 months ago | 0

Answered

Make an app using GUIDE and for loops

Following link has an example related to getting a GUI updated on running of a loop: https://www.mathworks.com/matlabcentral/a...

Make an app using GUIDE and for loops

Following link has an example related to getting a GUI updated on running of a loop: https://www.mathworks.com/matlabcentral/a...

2 months ago | 0

Answered

simulate stock prices using standard normal distribution

Following link illustrate a method to simulate equity prices. https://www.mathworks.com/help/finance/example-simulating-equity...

simulate stock prices using standard normal distribution

Following link illustrate a method to simulate equity prices. https://www.mathworks.com/help/finance/example-simulating-equity...

2 months ago | 0

Answered

How to get detect if something is moving in a live webcam preview and get the distance moved every 3 seconds?

Computer Vision Toolbox can be used for detecting and tracking objects. Any specific object can be detected by training a class...

How to get detect if something is moving in a live webcam preview and get the distance moved every 3 seconds?

Computer Vision Toolbox can be used for detecting and tracking objects. Any specific object can be detected by training a class...

2 months ago | 0

| accepted

Answered

Replace code for subsystem

A custom subsystem can be made into an atomic subsystem. Check Treat as atomic unit in Block Parameters of the atomic unit for e...

Replace code for subsystem

A custom subsystem can be made into an atomic subsystem. Check Treat as atomic unit in Block Parameters of the atomic unit for e...

2 months ago | 0

Answered

Power fit with 3 parameters

As per the code from a given value of X, we get three values of Y, this can be done by using fit function for all three correspo...

Power fit with 3 parameters

As per the code from a given value of X, we get three values of Y, this can be done by using fit function for all three correspo...

2 months ago | 0

Answered

Reading a video in MATLAB and plotting the trajectory of robot in each frame

A possible work around would be to get frames of the video using VideoReader Object and reading the Video. v = VideoReader('fil...

Reading a video in MATLAB and plotting the trajectory of robot in each frame

A possible work around would be to get frames of the video using VideoReader Object and reading the Video. v = VideoReader('fil...

2 months ago | 0

Answered

Fitness function for GA flowshop optimization problem

Following link may help you in solving the question. https://www.mathworks.com/matlabcentral/fileexchange/62653-flowshop-sched...

Fitness function for GA flowshop optimization problem

Following link may help you in solving the question. https://www.mathworks.com/matlabcentral/fileexchange/62653-flowshop-sched...

2 months ago | 0

Answered

How to send data to Arduino MKR1010 via wifi In Simulink

WiFi UDP Send and WiFi UDP Receive Blocks in Simulink Support Package for Arduino Hardware ( Supported on MKR 1010 ) can be used...

How to send data to Arduino MKR1010 via wifi In Simulink

WiFi UDP Send and WiFi UDP Receive Blocks in Simulink Support Package for Arduino Hardware ( Supported on MKR 1010 ) can be used...

2 months ago | 0

Answered

How to create Phasor Matlab/Simulink model of the smart inverter (DC to AC)

Inverter( Three-Phase ) and Inverter( Five-Phase ) in Simscape can be used for the stated purpose. Use PS-Simulink and Simulink...

How to create Phasor Matlab/Simulink model of the smart inverter (DC to AC)

Inverter( Three-Phase ) and Inverter( Five-Phase ) in Simscape can be used for the stated purpose. Use PS-Simulink and Simulink...

2 months ago | 0

Answered

Draw partial spheroid include a spheroid

Following code may be used as an alternative to draw a sphere. Theta and Phi can be varied to get the desired result. R=10; P...

Draw partial spheroid include a spheroid

Following code may be used as an alternative to draw a sphere. Theta and Phi can be varied to get the desired result. R=10; P...

2 months ago | 0

Answered

Data Acquisition Tool Box App with Analog Discovery 2

Refer https://www.mathworks.com/matlabcentral/answers/329184-cannt-find-analog-discovery2-daq-device?s_tid=answers_rc1-1_p1_BOTH...

Data Acquisition Tool Box App with Analog Discovery 2

Refer https://www.mathworks.com/matlabcentral/answers/329184-cannt-find-analog-discovery2-daq-device?s_tid=answers_rc1-1_p1_BOTH...

2 months ago | 0

Answered

Does any one know how to incoporate regen braking into an electric vehicle model

In regenerative braking kinetic energy of driving electric vehicle is transferred to the motor, achieving the energy regenerativ...

Does any one know how to incoporate regen braking into an electric vehicle model

In regenerative braking kinetic energy of driving electric vehicle is transferred to the motor, achieving the energy regenerativ...

2 months ago | 0

Answered

How do I integrate a circuit with the multibody toolbox in Simscape?

Simulink-PS Converter should be used before feeding the output of the circuit to the magnets in case the circuit output is not a...

How do I integrate a circuit with the multibody toolbox in Simscape?

Simulink-PS Converter should be used before feeding the output of the circuit to the magnets in case the circuit output is not a...

2 months ago | 0