Community Profile

photo

Jalaj Gambhir

MathWorks

Last seen: 2 years ago Active since 2019

I am an Engineer at Engineering Development Group at Mathworks.
My area of interests include MATLAB and Simulink.

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

Statistics

  • Revival Level 2
  • 12 Month Streak
  • Knowledgeable Level 4
  • First Answer

View badges

Content Feed

View by

Answered
How to select certain columns of a matrix only when the first two rows always show 1 and the other two rows a 0?
Hi, Use: col = find(all(matrix(1:4,:)==[1;1;0;0])) This will give you all the columns that satisfy this condition. You can th...

3 years ago | 0

| accepted

Answered
How to avoid a Table (in report generator) to be split into 2 pages?
Hi, Have a look here. Hope this helps!

3 years ago | 0

Answered
add ons instasllation problem
Hi, Have a look at the answer here. Hope this helps!

3 years ago | 0

Answered
imfindcircles does not detect obvious circles
Hi, I think it is probably because the circle you want to detect is almost a semi circle (like only half of the circle is visib...

3 years ago | 0

Answered
simulink user defined matlab function outputs zero irrespective of input
Hi, Please have a look at the model examples given here. Hope this helps!

3 years ago | 0

Answered
How to set coordinates of bounding box?
Hi, A bounding box in MATLAB consists of a 1x4 row vector with the following notation [xmin, ymin, width, height]. In the code ...

3 years ago | 0

Answered
how to output data into a text file
Hi, As it is not very obvious what exactly you would like to write in your text file, I am assuming you want to write the state...

3 years ago | 0

| accepted

Answered
How to add a cell array inside another cell array in a nested for loop?
Hi, As you have not mentioned what the variables exactly are, it is not easy to figure out the issue. Though, it looks like i/j...

3 years ago | 0

Answered
How do I compare the MSER features of two images?
Hi, You can try matchFeatures. Hope this helps!

3 years ago | 0

Answered
Alignment for column names in uitables in App Designer
Hi, I have heard that this issue is known and the concerned parties may be investigating further. Meanwhile an indirect worka...

3 years ago | 0

Answered
why should i subtract mean of image when searching for position of sub-image in image?
Hi, I am not sure the complete process that you are following, but subtraction with mean Image is generally done to center the ...

3 years ago | 0

Answered
How to create a uitable from extracted data from a struct in app designer?
Hi, The issue is occuring because you are passing cell arguments to the function. As you are converting from struct, the input ...

3 years ago | 0

Answered
Using format specifiers for extracting data from sqlite database file
Hi, Have a look at the answer here. You have to create a string using square brackets to concatenate the variable with the rema...

3 years ago | 0

Answered
Adding an extra propoerty/field in a predefined toolbox class
Hi, As mentioned in the link, you will have to define waypoints and have different velocities at each waypoint as a workaround ...

3 years ago | 0

Answered
Fill date gap and fill missing data wit NaN
Hi, As already pointed out, startTime = datetime(2019,4,30,20,10,0); endTime = datetime(2019,4,30,23,55,0); allRange = start...

3 years ago | 1

| accepted

Answered
How can i convert this flowchart to write matlab code? and how can i call an excel data (for prices example)to code
Hi, I am assuming you want to know how to read data from excel files in your code. You can do so using readtable. You might fin...

3 years ago | 0

Answered
What is the fastest way to load many large files and then reuse that data
Hi, Have a look here. You can probably use textscan.

3 years ago | 0

Answered
Plot Decision boundary and Support vectors in SVM
Hi, You can export the model from the Classification Learner App, you will get a ClassificationSVM model. This object can be us...

3 years ago | 0

Answered
Failed to show the accuracy of testing data (Classification Learner's Testing Function)
Hi, The Classification learner App splits the data that you have provided into Training Data and Validation Data It will show t...

3 years ago | 0

Answered
Rand(1,1) generates identical numbers for different blocks of simulink
Hi, Have a look at the answer here.

3 years ago | 0

Answered
open figure stored in workspace
Hi, This is because when you close the figure, the object handle is deleted. Read documentation link for more details. You can...

3 years ago | 0

| accepted

Answered
Sort structure by datetime
Hi, Please provide the struct for us to give you the exact solution. Kindly refer to this link for suggested solutions. Hope th...

3 years ago | 0

| accepted

Answered
How to plot a ROC curve for CNN?
Hi, Have a look at the solution given in this post: https://www.mathworks.com/matlabcentral/answers/373849-roc-curve-alexnet-...

4 years ago | 0

Answered
Filtering data in a struct
Hi, You can convert the struct to table, and then use findgroups to identify the groups based on Altitude and Sensor. After the...

4 years ago | 0

| accepted

Answered
Does setting "prior" in the classification play a role in the classification algorithm or it just modifies observations in the prior classification step?
No, Prior Probabilities do affect the classification process. The step mentioned in the algorithm section only removes the trai...

4 years ago | 1

Answered
listener behavior for axes in uifigure vs. figure
Hi, The visible difference is because of the way the interactions are implemented differently for figure and uifigure. The conc...

4 years ago | 0

Answered
datatips in editor won't turn off
Hi, Please refer to the bug report: https://www.mathworks.com/support/bugreports/1584013?s_tid=answers_rc2-1_p4_MLT And relate...

4 years ago | 0

| accepted

Answered
Store value from text file
Hi, To read the sampling rates mentioned in the text file 'regexp' is your best bet. You can do so by: s = fileread('test.tx...

4 years ago | 1

| accepted

Answered
Removing close datetimes from datetime array
Hi, The following is one of the way in which you can achieve your task, as pointed out in the comment, "remove all datetimes wi...

4 years ago | 0

Answered
How to display files with specific strings for selection in uigetfile()
Hi, You can specify the default path and filename when you are using uigetfile. Look at an example here ("specify default file ...

4 years ago | 0

Load more