I am an Associate Application Support Engineer at MathWorks.

My areas of interest are Deep Learning and Computer Vision.

DISCLAIMER: The advice and opinions here are my own and not in any way that of MathWorks.

Answered

How to plot confusion matrix for 2 classes (genuine or fraud)

Hi Tam, First, you may set aside some of your data as test data. With this test dataset, obtain Y_Actual as the labels and X...

How to plot confusion matrix for 2 classes (genuine or fraud)

Hi Tam, First, you may set aside some of your data as test data. With this test dataset, obtain Y_Actual as the labels and X...

10 dagen ago | 0

Answered

How do I create a simulator to scan a matrix and switch some of the elements in it?

Hi Eason, Using a filter along with conv2 should work, for example.. % It may be easier to store a logical array inp = (ra...

How do I create a simulator to scan a matrix and switch some of the elements in it?

Hi Eason, Using a filter along with conv2 should work, for example.. % It may be easier to store a logical array inp = (ra...

29 dagen ago | 0

Answered

Reducing script repetitiveness and length

Hi Daniel, Your code doesn't seem extra complicated. Writing each plot after each calculation is one way to keep things simple...

Reducing script repetitiveness and length

Hi Daniel, Your code doesn't seem extra complicated. Writing each plot after each calculation is one way to keep things simple...

29 dagen ago | 0

Answered

.MAT FILES AND WRITING CODE TO ANALYSE THE .MAT FILES

Hi Caroline, You may consider using struct arrays to group your data, and save everything to one file as a simplification. % C...

.MAT FILES AND WRITING CODE TO ANALYSE THE .MAT FILES

Hi Caroline, You may consider using struct arrays to group your data, and save everything to one file as a simplification. % C...

ongeveer een maand ago | 0

| accepted

Answered

How to extract rows and columns of matrix that will not equal to 0.

Hey Teb. When programming in MATLAB, it is best to avoid for loops and vectorize the code as far as possible. If you have F=A...

How to extract rows and columns of matrix that will not equal to 0.

Hey Teb. When programming in MATLAB, it is best to avoid for loops and vectorize the code as far as possible. If you have F=A...

ongeveer een maand ago | 0

Answered

How can I know if the repeated numbers of array A appear in B , and if so count their repetition (for A and B ) and divide their countings? A and B have different dimensions.

Hi Ana, You may extract the common elements of the array using intersect() function. common = intersect(mag_a, mag_b); Then...

How can I know if the repeated numbers of array A appear in B , and if so count their repetition (for A and B ) and divide their countings? A and B have different dimensions.

Hi Ana, You may extract the common elements of the array using intersect() function. common = intersect(mag_a, mag_b); Then...

ongeveer een maand ago | 0

| accepted

Answered

Householder Algorithm finding Q

Hi Frederick, You may prefer the MATLAB built-in qr() function. [Q,R] = qr(M); See this documentation: https://in.mathwo...

Householder Algorithm finding Q

Hi Frederick, You may prefer the MATLAB built-in qr() function. [Q,R] = qr(M); See this documentation: https://in.mathwo...

ongeveer een maand ago | 0

Answered

BSXFUN Vectorizing. How can I vectorize the function?

Hi Iman, bsxfun intends to apply @plus to elements of same index across the two input arrays. So in your call to bsxfun, the di...

BSXFUN Vectorizing. How can I vectorize the function?

Hi Iman, bsxfun intends to apply @plus to elements of same index across the two input arrays. So in your call to bsxfun, the di...

ongeveer een maand ago | 0

Answered

How do I weight input data when training a neural network?

Hi Cai, I can think of a few ideas, you may need to experiment with these to find what works.. Once the network is trained ...

How do I weight input data when training a neural network?

Hi Cai, I can think of a few ideas, you may need to experiment with these to find what works.. Once the network is trained ...

3 maanden ago | 0

Answered

Reading data from large .CSV files

Hi there, The use of a datastore is what comes to mind at first - you could try using read to obtain a chunk of data at once a...

Reading data from large .CSV files

Hi there, The use of a datastore is what comes to mind at first - you could try using read to obtain a chunk of data at once a...

3 maanden ago | 0

| accepted

Answered

How To Find the Euler Angles(Roll,Pitch,Yaw) of a Plane in 3D?

Hi Ercan, You mentioned that you have a plane equation of the form and wish to calculate the Euler angles. I presume you are r...

How To Find the Euler Angles(Roll,Pitch,Yaw) of a Plane in 3D?

Hi Ercan, You mentioned that you have a plane equation of the form and wish to calculate the Euler angles. I presume you are r...

3 maanden ago | 1

Answered

Create the following Matrix typing one command

Hi Jens, In MATLAB for entering matrix values, commas and spaces can be used (interchangeably) to separate values left to right...

Create the following Matrix typing one command

Hi Jens, In MATLAB for entering matrix values, commas and spaces can be used (interchangeably) to separate values left to right...

3 maanden ago | 0

Answered

Please write the c-code below in matlab.

Hey Attcharapan, I presume that you're trying to do somethign similar to the Sieve of Erastosthenes alrogithm and find prime nu...

Please write the c-code below in matlab.

Hey Attcharapan, I presume that you're trying to do somethign similar to the Sieve of Erastosthenes alrogithm and find prime nu...

3 maanden ago | 0

Answered

feature vector of NN

You can extract the network and inputs from the 'results' struct using.. net = results.net inputs = results.inputs I found ...

feature vector of NN

You can extract the network and inputs from the 'results' struct using.. net = results.net inputs = results.inputs I found ...

3 maanden ago | 0

| accepted

Answered

Response must not contain any NaNs??

Hi Sho, NaN is a special floating-point value which is used as a placeholder in cases where a 'double' type number was expected...

Response must not contain any NaNs??

Hi Sho, NaN is a special floating-point value which is used as a placeholder in cases where a 'double' type number was expected...

3 maanden ago | 1

| accepted

Answered

Importing EEG edf to matlab

Hi Mubeen, I presume you're using the pro_biosig.m file found here: https://github.com/donnchadh/biosig/blob/master/biosig/eegl...

Importing EEG edf to matlab

Hi Mubeen, I presume you're using the pro_biosig.m file found here: https://github.com/donnchadh/biosig/blob/master/biosig/eegl...

3 maanden ago | 0

Answered

Terminating function call with CTRL-C but keep the main function working

Hi Adrian, I can't think of a straightforward solution, since MATLAB doesn't allow you to programmatically trigger a Ctrl+C ; n...

Terminating function call with CTRL-C but keep the main function working

Hi Adrian, I can't think of a straightforward solution, since MATLAB doesn't allow you to programmatically trigger a Ctrl+C ; n...

4 maanden ago | 0

Answered

How can i solve this? Subscripted assignment dimension mismatch

The error message indicates that you may be assigning an array of values but the sizes of the arrays on the left and right of '=...

How can i solve this? Subscripted assignment dimension mismatch

The error message indicates that you may be assigning an array of values but the sizes of the arrays on the left and right of '=...

5 maanden ago | 0

| accepted

Answered

Plot Results of objective function in fmincon

Hi Amanuel, @optimplotfval is designed to plot the output of the Objective Function against the number of iterations. In you...

Plot Results of objective function in fmincon

Hi Amanuel, @optimplotfval is designed to plot the output of the Objective Function against the number of iterations. In you...

5 maanden ago | 2

Answered

How to use IF with @(block_struct) function

Hi Saud, Since blockproc uses anonymous functions, you may save your multi-line function into a script, say myFunc.m and then p...

How to use IF with @(block_struct) function

Hi Saud, Since blockproc uses anonymous functions, you may save your multi-line function into a script, say myFunc.m and then p...

5 maanden ago | 0

| accepted

Answered

How do I find the given eigenvectors

I presume that you've obtained these eigenvalues by calling the 'eig' function in MATLAB. You may try calling the same with a se...

How do I find the given eigenvectors

I presume that you've obtained these eigenvalues by calling the 'eig' function in MATLAB. You may try calling the same with a se...

5 maanden ago | 0

Answered

Row index exceeds table dimensions.

If you could attach the input file, others users may actually run the code with that data and witness the exact error themselves...

Row index exceeds table dimensions.

If you could attach the input file, others users may actually run the code with that data and witness the exact error themselves...

5 maanden ago | 0

Answered

Looping vector values into functions

Saving multiple variables with names 'n1', 'n2', etc may be a bad practice, I would recommend using a vector 'n' with indices 1-...

Looping vector values into functions

Saving multiple variables with names 'n1', 'n2', etc may be a bad practice, I would recommend using a vector 'n' with indices 1-...

5 maanden ago | 0

Answered

Help with simple ANN for data prediction

If you're looking to pick up how Neural Networks are handled in Matlab, I would suggest going through some of the examples in th...

Help with simple ANN for data prediction

If you're looking to pick up how Neural Networks are handled in Matlab, I would suggest going through some of the examples in th...

5 maanden ago | 0

Answered

Array not positive real value?

As others have pointed out, this error message typically occurs when you're indexing an array with incompatible values (usually ...

Array not positive real value?

As others have pointed out, this error message typically occurs when you're indexing an array with incompatible values (usually ...

5 maanden ago | 0

Answered

How to add a column in MATLAB after sorting an array

Hi Sukalyan, Looking at your figure, I assume that the data is a table existing in the workspace and that you've already sorted...

How to add a column in MATLAB after sorting an array

Hi Sukalyan, Looking at your figure, I assume that the data is a table existing in the workspace and that you've already sorted...

5 maanden ago | 0

Answered

Combinations of values in vectors

Hi Davide, To answer both your questions.. a) I'm assuming that you don't want to specify 'lam' in the code (along with the i...

Combinations of values in vectors

Hi Davide, To answer both your questions.. a) I'm assuming that you don't want to specify 'lam' in the code (along with the i...

5 maanden ago | 0

Answered

Include several folders into path using Matlab Engine for Python

Hi Davide, If you're in MATLAB at the command line, you may use genpath and addpath as follows to add a folder 'myOuterFolder'...

Include several folders into path using Matlab Engine for Python

Hi Davide, If you're in MATLAB at the command line, you may use genpath and addpath as follows to add a folder 'myOuterFolder'...

6 maanden ago | 0

Solved

Find relatively common elements in matrix rows

You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

6 maanden ago

Solved

QWERTY coordinates

Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...

6 maanden ago