# Shubham Rawat

### MathWorks

I am an Application Support Engineer at MathWorks.

DISCLAIMER: Any advice or opinions here are my own and in no way reflect that of MathWorks.

**Statistics**

RANK**466**

of 239,749

REPUTATION**122**

CONTRIBUTIONS

**0** Questions

**104** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**5**

RANK

of 16,833

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

How to plot test error for different hyper parameter settings?

Hi Israt, As per my understanding, You may want to combine plots into a single graph. For this you may use hold on. You may loo...

4 months ago | 0

Multiple 2D contour plots in a single 3D plot

Hi, As per my understanding, you will not be able to do this. There is no Property as such. You are plotting contour on XY axi...

4 months ago | 0

Failed to Call Regression Learner's Testing Function

Hi Abhinav, In the picture I can clearly see that error is bacause of unrecognized table variable: For this please check the f...

4 months ago | 0

Plotting two networks in the same layer using "graph"

Hi Nelson, You may do like this: %creating first graph s = [1 1 2 3 3 3 4 4 5 6 7 7 8]; t = [2 3 6 4 6 8 5 8 9 7 8 9 9]; G ...

4 months ago | 0

| accepted

Can someone please help me with this matrix question that I cant answer?

Hi John, You can do like this, but first I will suggest you to watch basic MATLAB from here MATLAB Onramp - MATLAB & Simulink T...

5 months ago | 0

| accepted

How to plot derivative vectors on a parabolic trajectory?

Hi Alexander, You may look at this code. I have created tangents at some points of the curve. %at these point of time creating...

5 months ago | 0

Regression Learner Application Testing

Hi Nicholas, There is no option of testing in Regression Learning App. You have to first export the model and save it as mentio...

5 months ago | 0

How to extract powers of a symbolic polynomial?

Hi Alina, You may first find coefficients of all variables like this: coef = sym2poly(y); Then you can find all the index of ...

5 months ago | 1

How to merge overlapping rectangles ?

Hi Rajeshwar, There is no as such function which can remove inscribed rectancles. But you may write a similar code like this ...

5 months ago | 0

Trying to plot contourf onto hgtransform is now blank

Hi, I had found that we cannot use makehgtform in non-square matrices. So, you are not able to produce results. HG.Matrix = ma...

5 months ago | 0

| accepted

for loop reference solution (from coursera) question

Hi Sara, Comment is correct only inside for loop the variable n is instantiated. You may look into this documentation for furt...

5 months ago | 0

Expected one output from a curly brace or dot indexing expression, but there were 2 results, when re-initialize an object array

Hi Cheng-Hung, You had done spelling mistake inside the clearArr() function in the following line: obj.obj1_arr = classObj1.em...

5 months ago | 0

| accepted

How can I export Ground Truth in KITTI format (.txt) using Ground Truth Labeler App

Hi Arghya, Here what are you exporting as '.mat' file is of groundTruthLidar object. You can export only content of Labels and ...

5 months ago | 0

Comparing two matrices, as fast as possible

Hi Altemur, I have written a code and I had done intersction of both the matrices column wise without using the for loop. %loa...

5 months ago | 0

How to save multiple outputs of segmented in a different folder

Hi Srinidhi, For saving a particular file in different folder you may use this: save(['C:\Users\Abinaya Giri\OneDrive\Desktop\...

5 months ago | 0

| accepted

Finding critical/equilibrium Points of a nonlinear System

Hi Anthony, I assume equilibrium occurs when Dx1 and Dx2 are equal to zero. Now you may calculate the values of x1 and x2 by u...

5 months ago | 0

find the global optimum

Hi, You may use this code for your reference: %initializing variables x = optimvar('x'); y = optimvar('y'); prob = optimpro...

6 months ago | 0

How to auto tune the PID controller using fuzzy logic?

Hi Snehashis, You may look into the similar question here: How can I tune PID controller using Fuzzy logic .......???? - MATLA...

6 months ago | 0

how to Integral function with two independent variables ?

Hi, You are using variables and but your limits are on . So I am not able to figure out who are the variables which you want ...

6 months ago | 0

how to do background modelling using for a video using gray relational analysis?

Hi, You may use this file exchange links: https://www.mathworks.com/matlabcentral/fileexchange/41033-background-frame-extracti...

6 months ago | 0

R2020b Embedded Coder uses De Morgan's laws for NAND and NOR blocks

Hi Martin, In my information we cannot change this behaviour to old version. Even if we use basic AND and OR gates and create ...

6 months ago | 0

| accepted

Does Xcode version 12.4 works as compiler?

Hi, You may look into these documentation for this query: Is MATLAB compatible with Mac OS X 10.11 (El Capitan)? - MATLAB Answ...

6 months ago | 0

Unrecognized function or variable 'ResetParamButton_Callback' one the buttons I initially created in GUI

Hi Shirley, Looks like you are accessing old finalWar.m in which there is no function called ResetParamButton_Callback. You may...

6 months ago | 0

Simulation 3D Lidar Z-coordinate is wrong

Hi, I have used an example Lidar SLAM in 3D Simulation and I have found that minimum value of Z axis -1.5938. You may run this ...

6 months ago | 0

symbolic integer, Why doesn't it work?

Hi Katalin, You may try this: syms k t evalin(symengine,'assume(n,Type::Integer)'); n = 3; %taking input from workspace ...

6 months ago | 0

Did not start the server

Hi Shweta, You may look into the following asked question, which has some of the workarounds: Did not start the server. Desire...

6 months ago | 0

The units of the eig function

Hi Johannes, In my point of view eigenvalues should be unit less. As it comes from following equation: So, if Identity matri...

6 months ago | 0

How to set a general ylabel in the right side of a figure composed of various tiles?

Hi Gerardo, You may use this code snippet to label Xlabel with left label and right label at a time: for i=1:2 set( get(subpl...

6 months ago | 0

how to store more than one value in same cell array when we loop

Hi, Yes we can create a cell array with elements in it having different lengths. You may look at the code: Cell_array = cell(3...

6 months ago | 0

How to solve equation AX=B where A is symmetric like matrix ?

Hi Phanindra, You may look use this code for your reference: syms b1 b2 x1 x2 A = magic(4); %random 4*4 matrix x = [x1;x2;4;...

6 months ago | 1