4,010 total contributions since 2011

https://sites.google.com/site/kolukulasivasrinivas/

Professional Interests: Mathematical Computing

Answered

How do i use divideblock to split my Datasets (5,749 images) in 80-20 split to obtain training and test datasets only?

N = 5749; % number of images idx = 1:N ; PD = 0.80 ; train_idx = idx(1:round(PD*N) ; % training indices tes...

How do i use divideblock to split my Datasets (5,749 images) in 80-20 split to obtain training and test datasets only?

N = 5749; % number of images idx = 1:N ; PD = 0.80 ; train_idx = idx(1:round(PD*N) ; % training indices tes...

1 day ago | 0

| accepted

Answered

How to make the balls in this program organize and settle at the top of the box instead of leaving it

function y = atoms() n = 25; % no. of atoms dt = 0.1; % time ma=1; mb=1; x0=[0 0 0 0]; ...

How to make the balls in this program organize and settle at the top of the box instead of leaving it

function y = atoms() n = 25; % no. of atoms dt = 0.1; % time ma=1; mb=1; x0=[0 0 0 0]; ...

1 day ago | 1

Answered

How to plot satellite orbits around the Earth? (combining plots)

Use _hold on_ and then plot both on the same figure. Simple... :)

How to plot satellite orbits around the Earth? (combining plots)

Use _hold on_ and then plot both on the same figure. Simple... :)

2 days ago | 1

Answered

how to convert data from minute to hourly average

YOu can load the text file using _load_ or _importdata_. To egt hourly mean check the below example code. t = 1:24...

how to convert data from minute to hourly average

YOu can load the text file using _load_ or _importdata_. To egt hourly mean check the below example code. t = 1:24...

2 days ago | 0

Answered

appending to a list or an array

You need not to run a loop for this. Read about element by element operations in matlab. <https://in.mathworks.com/help/fixe...

appending to a list or an array

You need not to run a loop for this. Read about element by element operations in matlab. <https://in.mathworks.com/help/fixe...

2 days ago | 0

Answered

How to extract data from .nc file based on latitude, longitude, time?

There are very easy functions available to deal netCDF files in MATLAB. It is a very straight forward and simple job. Only you n...

How to extract data from .nc file based on latitude, longitude, time?

There are very easy functions available to deal netCDF files in MATLAB. It is a very straight forward and simple job. Only you n...

2 days ago | 0

Answered

How to write the Netcdf file including latitude, longitude and time.

MATLAB has very simple netcdf interface......you need to know read about _nccreate_, _ncwrite_ and _ncwriteatt_. Just with these...

How to write the Netcdf file including latitude, longitude and time.

MATLAB has very simple netcdf interface......you need to know read about _nccreate_, _ncwrite_ and _ncwriteatt_. Just with these...

3 days ago | 0

Answered

generating an equispaced vector using a variable

This would be more apt: B(1:50,5)=linspace(aNumber , aNumber*50,50) then B(1:50,5)=(aNumber : aNumber*50) Your...

generating an equispaced vector using a variable

This would be more apt: B(1:50,5)=linspace(aNumber , aNumber*50,50) then B(1:50,5)=(aNumber : aNumber*50) Your...

3 days ago | 1

| accepted

Answered

I want to print the result in a table format. How do I do this?

fprintf('%f %f %f %f %f %f %f\n',t, ER, Yco, Yco2, Ych4, Yh2, LHV) Read about _fprintf_

I want to print the result in a table format. How do I do this?

fprintf('%f %f %f %f %f %f %f\n',t, ER, Yco, Yco2, Ych4, Yh2, LHV) Read about _fprintf_

3 days ago | 0

Answered

Surface Roughness of 3D Scatter Plot

Read about _delaunayTriangulation_. This will help you to get what you want. Check the below example code. N = 100 ; x ...

Surface Roughness of 3D Scatter Plot

Read about _delaunayTriangulation_. This will help you to get what you want. Check the below example code. N = 100 ; x ...

3 days ago | 0

Answered

Contourf with loops and making movie from contourf

h = figure; axis tight manual % this ensures that getframe() returns a consistent size filename = 'test.gif'; for n =...

Contourf with loops and making movie from contourf

h = figure; axis tight manual % this ensures that getframe() returns a consistent size filename = 'test.gif'; for n =...

3 days ago | 1

Answered

How can I process an image 100 times as explained below?

Let I be your image. iwant = cell(100,1) ; % do first process and save, let I1 be the precessed image iwant{i} =...

How can I process an image 100 times as explained below?

Let I be your image. iwant = cell(100,1) ; % do first process and save, let I1 be the precessed image iwant{i} =...

3 days ago | 0

Answered

I want to cycle average an excel data (36000*5) which repeats every 720 deg and make a separate excel file

Read about _reshape_. You can reshape your data into 3D matrices and then write into excel sheet.

I want to cycle average an excel data (36000*5) which repeats every 720 deg and make a separate excel file

Read about _reshape_. You can reshape your data into 3D matrices and then write into excel sheet.

3 days ago | 0

| accepted

Answered

How to assemble matrices?

This is helpful; go through: <https://in.mathworks.com/matlabcentral/fileexchange/32029-plate-bending>

How to assemble matrices?

This is helpful; go through: <https://in.mathworks.com/matlabcentral/fileexchange/32029-plate-bending>

3 days ago | 0

Answered

sir, i generate the list of cluster-heads and corresponding there energy but now i want to extract the energy with corresponding cluster-id according to lower energy cluster-heads, medium energy cluster-heads,higher energy groups, how do it..?

E = [ 12 1.2 14 5.5 25 2.5] ; idx = E<2.6 ; The above gives logical indices where energy is less then 2.6. If you want...

sir, i generate the list of cluster-heads and corresponding there energy but now i want to extract the energy with corresponding cluster-id according to lower energy cluster-heads, medium energy cluster-heads,higher energy groups, how do it..?

E = [ 12 1.2 14 5.5 25 2.5] ; idx = E<2.6 ; The above gives logical indices where energy is less then 2.6. If you want...

3 days ago | 0

Answered

How can I do a 80-20 split on datasets to obtain training and test datasets?

Let P and T be your input and target sets. PD = 0.80 ; % percentage 80% Ptrain = P(1:round(PD*length(T)),:) ; Ttrain ...

How can I do a 80-20 split on datasets to obtain training and test datasets?

Let P and T be your input and target sets. PD = 0.80 ; % percentage 80% Ptrain = P(1:round(PD*length(T)),:) ; Ttrain ...

3 days ago | 0

| accepted

Answered

Extracting certain months from an array

Read about _datevec_. This splits your dates into years, months, days and time. From this you can get the index of the months yo...

Extracting certain months from an array

Read about _datevec_. This splits your dates into years, months, days and time. From this you can get the index of the months yo...

4 days ago | 0

Answered

find the identification of similar binary image from a colour image?

Use _imread_ to read the image. _rgb2gray_ converts RGB image to gray. _im2bw_ converts RGB image to binary image.

find the identification of similar binary image from a colour image?

Use _imread_ to read the image. _rgb2gray_ converts RGB image to gray. _im2bw_ converts RGB image to binary image.

4 days ago | 0

| accepted

Answered

how to recombine subimages from cell2mat which is divided into blocks of 8x8?What is mistake in the code? Actually after splitting into window size of 8x8 by using mat2cell() .

Try like this: GG = cell(8,1) ; for k=1:1*8 o=1:1*8 ; G=cell2mat(C(k,o)'); GG{...

how to recombine subimages from cell2mat which is divided into blocks of 8x8?What is mistake in the code? Actually after splitting into window size of 8x8 by using mat2cell() .

Try like this: GG = cell(8,1) ; for k=1:1*8 o=1:1*8 ; G=cell2mat(C(k,o)'); GG{...

4 days ago | 0

Answered

read number from file name leaving special characters

matfiles = dir('*.mat') ; % you are in the folder of mat files N = length(matfiles) ; % total number of files % loo...

read number from file name leaving special characters

matfiles = dir('*.mat') ; % you are in the folder of mat files N = length(matfiles) ; % total number of files % loo...

4 days ago | 0

| accepted

Answered

I want to remove zeroes from an array. The array more zero per row. For example: a = [200.03 303.56 0 0 0; 155.23 0 0] Should be turned into a = [200.03 303.56; 155.23]

a = [1 4 3 0 0 0 1 5 0 0 0 1 8 1 0 0 5 4 4 0 0 1 5 2 0 0] % b = [1 4 3 1 5 5 1 8 1 5 4 4 1 ] ; b = a ; b(a==0) =...

I want to remove zeroes from an array. The array more zero per row. For example: a = [200.03 303.56 0 0 0; 155.23 0 0] Should be turned into a = [200.03 303.56; 155.23]

a = [1 4 3 0 0 0 1 5 0 0 0 1 8 1 0 0 5 4 4 0 0 1 5 2 0 0] % b = [1 4 3 1 5 5 1 8 1 5 4 4 1 ] ; b = a ; b(a==0) =...

4 days ago | 0

Answered

How to add results into a matrix?

Ma = 0.5:0.2:0.9; x = pi/9:0.01:pi/2; M = length(Ma) ; N = length(x) ; Y = zeros(M,N) ; for i = 1:M ...

How to add results into a matrix?

Ma = 0.5:0.2:0.9; x = pi/9:0.01:pi/2; M = length(Ma) ; N = length(x) ; Y = zeros(M,N) ; for i = 1:M ...

4 days ago | 1

| accepted

Answered

How to get Lat/Lon from vec2mtx

You have two options: 1. You can generate points inside in a scattered way...i.e generate a unstructured mesh, and you wil...

How to get Lat/Lon from vec2mtx

You have two options: 1. You can generate points inside in a scattered way...i.e generate a unstructured mesh, and you wil...

4 days ago | 0

| accepted

Answered

How to to create timestamp from imported data when time data is sperated in three different columns (Month ,Day, Hour)

Read about _datestr_ d = [2018 03 14 12 0 0] ; datestr(d)

How to to create timestamp from imported data when time data is sperated in three different columns (Month ,Day, Hour)

Read about _datestr_ d = [2018 03 14 12 0 0] ; datestr(d)

4 days ago | 0

Answered

How to calculate the mean values in this case?

Read about _mean_ it gives you option of specifying the dimension to calculate the mean. If you think you need to arrange your m...

How to calculate the mean values in this case?

Read about _mean_ it gives you option of specifying the dimension to calculate the mean. If you think you need to arrange your m...

4 days ago | 0

Answered

''Conversion to logical from sym is not possible.'' Please help

You cannot use _rat_ on the class _sym_. Use _simplify_ instead.

''Conversion to logical from sym is not possible.'' Please help

You cannot use _rat_ on the class _sym_. Use _simplify_ instead.

5 days ago | 0

| accepted

Answered

We have 1D vector say DS of size 1X100, How to apply k-means cluster or c-means cluster and How to find number of clusters,iteration number, standard deviation of each cluster. we tried below code but it is not what we expected answer.

A = randi([1 10],1,100) ; N = 5 ; idx = kmeans(A',N) ; B = cell(N,1) ; figure hold on for i = 1:5 ...

We have 1D vector say DS of size 1X100, How to apply k-means cluster or c-means cluster and How to find number of clusters,iteration number, standard deviation of each cluster. we tried below code but it is not what we expected answer.

A = randi([1 10],1,100) ; N = 5 ; idx = kmeans(A',N) ; B = cell(N,1) ; figure hold on for i = 1:5 ...

5 days ago | 0

| accepted

Answered

Is there a function to draw the cie chromaticity diagram ?

<https://in.mathworks.com/matlabcentral/fileexchange/29620-cie-coordinate-calculator>

Is there a function to draw the cie chromaticity diagram ?

<https://in.mathworks.com/matlabcentral/fileexchange/29620-cie-coordinate-calculator>

5 days ago | 1