I am Ganesh Regoti. I am an Associate Application Engineer in EDG at MathWorks. My areas of interest are Machine Learning and Data Science.

Disclaimer: Any advice or opinions here are my own, and in no way effect that of MathWorks..

Answered

Calculating mean squared error or maybe MISE

Refer KSdensity which might serve your purpose. Here is the link https://www.mathworks.com/help/stats/ksdensity.html

Calculating mean squared error or maybe MISE

Refer KSdensity which might serve your purpose. Here is the link https://www.mathworks.com/help/stats/ksdensity.html

etwa ein Monat ago | 0

Answered

Custom colormap for a contourf plot?

See the following code which may help you %% Colorbar ranges crange = [-3 -2; -2 0; 0 2; 2 10; 10 100;100 10^4;10^4 10^8; 10^...

Custom colormap for a contourf plot?

See the following code which may help you %% Colorbar ranges crange = [-3 -2; -2 0; 0 2; 2 10; 10 100;100 10^4;10^4 10^8; 10^...

etwa 2 Monate ago | 0

Answered

How to create 3D plot in Matlab? How to set up the Matrix of the points?

meshgrid function will work for your case. I have presumed the data and tried the following code and it works fine. permutation...

How to create 3D plot in Matlab? How to set up the Matrix of the points?

meshgrid function will work for your case. I have presumed the data and tried the following code and it works fine. permutation...

etwa 2 Monate ago | 0

Answered

using hist3 to plot 2 different categories of data with two different colorbars

I think axesm function of Mapping Toolboxwould be helpful. You need to plot the data separately based on the categories and over...

using hist3 to plot 2 different categories of data with two different colorbars

I think axesm function of Mapping Toolboxwould be helpful. You need to plot the data separately based on the categories and over...

etwa 2 Monate ago | 0

Answered

'radix_sort: failed to get memory buffer' when executing accumarray on gpuArrays of certain size

I have run the code on TitanV and it works fine. The array of larger size is working fine. So, I think there is no memory issue ...

'radix_sort: failed to get memory buffer' when executing accumarray on gpuArrays of certain size

I have run the code on TitanV and it works fine. The array of larger size is working fine. So, I think there is no memory issue ...

etwa 2 Monate ago | 0

Answered

cumprod 11 period return,and require nan number in no more than 2.

After the calculation of cumulative product use isnan function to check count of the valid data. count = sum (isnan(A(end,: ...

cumprod 11 period return,and require nan number in no more than 2.

After the calculation of cumulative product use isnan function to check count of the valid data. count = sum (isnan(A(end,: ...

etwa 2 Monate ago | 0

Answered

'ga' function - change in feasibility check of linear constraint > R2016b

There was a bug fix between 14a and 16b related to ga function. Refer this https://www.mathworks.com/support/bugreports/details...

'ga' function - change in feasibility check of linear constraint > R2016b

There was a bug fix between 14a and 16b related to ga function. Refer this https://www.mathworks.com/support/bugreports/details...

etwa 2 Monate ago | 0

Answered

Why is there NaN in the weights of Convolutional layer in the deeplab V3+ semantic segmentation network

Assuming that you are using resnet18 pretrained network, the model is trained with a layer size of 3 and it expects 3 channeled ...

Why is there NaN in the weights of Convolutional layer in the deeplab V3+ semantic segmentation network

Assuming that you are using resnet18 pretrained network, the model is trained with a layer size of 3 and it expects 3 channeled ...

etwa 2 Monate ago | 0

Answered

About parallel computing toolbox

The reason for different results with sim and parsim might be the inter-dependency of variables in the model. Make sure there ar...

About parallel computing toolbox

The reason for different results with sim and parsim might be the inter-dependency of variables in the model. Make sure there ar...

etwa 2 Monate ago | 0

Answered

Why is variance high for high K value in this KNN code?

In KNN-classification, variance need not be decreasing as the K value increases. Usually it is ‘U’- shape and we find out the op...

Why is variance high for high K value in this KNN code?

In KNN-classification, variance need not be decreasing as the K value increases. Usually it is ‘U’- shape and we find out the op...

etwa 2 Monate ago | 0

Answered

Custom Object using plot toolbar

The PLOTS gallery shows the built-in plots that are suitable for the selected variables from the workspace. But a class object e...

Custom Object using plot toolbar

The PLOTS gallery shows the built-in plots that are suitable for the selected variables from the workspace. But a class object e...

etwa 2 Monate ago | 0

Answered

ROS Toolbox / Code Generation / MW_BASERATE_PERIOD

From your question, I understand that there are two sections to be answered 1. MW_BASERATE_PERIOD set to 0.2: It is...

ROS Toolbox / Code Generation / MW_BASERATE_PERIOD

From your question, I understand that there are two sections to be answered 1. MW_BASERATE_PERIOD set to 0.2: It is...

etwa 2 Monate ago | 0

Answered

what to use for capital pi when using coordinated from an image

Prod function reflects the functionality of capital Pi. You can refer the following link https://www.mathworks.com/help/matlab...

what to use for capital pi when using coordinated from an image

Prod function reflects the functionality of capital Pi. You can refer the following link https://www.mathworks.com/help/matlab...

2 Monate ago | 0

Answered

PID Tuning in Simulink

There are multiple ways to tune the PID controller. I would suggest the following method Open the PID Controller dialog box of...

PID Tuning in Simulink

There are multiple ways to tune the PID controller. I would suggest the following method Open the PID Controller dialog box of...

2 Monate ago | 0

Answered

How to convert raw FLIR thermal images(.jpg) into .txt files?

Assuming that you need the meta data of the file into the text format. You can do the following k = imfinfo('flir.jpg'); ...

How to convert raw FLIR thermal images(.jpg) into .txt files?

Assuming that you need the meta data of the file into the text format. You can do the following k = imfinfo('flir.jpg'); ...

2 Monate ago | 0

Answered

How can I count the number of circles with particular radius and center which overlap, without a loop? (I need to speed it up)

From your question, you need an alternative which works as for loop and more optimized. The concept of vectorization works w...

How can I count the number of circles with particular radius and center which overlap, without a loop? (I need to speed it up)

From your question, you need an alternative which works as for loop and more optimized. The concept of vectorization works w...

2 Monate ago | 0

Answered

legend not showing proper titles for the legend just stuck on one

Hey Christopher, From your question, I understand that the legend is not reciprocating appropriate markers. Since you are t...

legend not showing proper titles for the legend just stuck on one

Hey Christopher, From your question, I understand that the legend is not reciprocating appropriate markers. Since you are t...

2 Monate ago | 0

Solved

Reverse Run-Length Encoder

Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

5 Monate ago

Solved

Which values occur exactly three times?

Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

5 Monate ago

Solved

Return a list sorted by number of occurrences

Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

5 Monate ago

Solved

Most nonzero elements in row

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

5 Monate ago

Solved

Balanced number

Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

5 Monate ago

Solved

Binary numbers

Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

5 Monate ago

Solved

Nearest Numbers

Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

5 Monate ago

Solved

Counting Money

Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

5 Monate ago

Solved

Pangrams!

A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

5 Monate ago

Solved

Counting in Finnish

Sort a vector of single digit whole numbers alphabetically by their name, in Finnish. See the Wikipedia page for <http://en.wik...

5 Monate ago

Solved

Elapsed Time

Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...

5 Monate ago

Solved

Alphabetize by last name

Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

5 Monate ago

Solved

Interpolator

You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

5 Monate ago