4,015 total contributions since 2011

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

Professional Interests: Mathematical Computing

Answered

How to take an average by date

You have dates in hand.......convert the dates into _datevec_. From these you can sort them. Read about _datevec_.

How to take an average by date

You have dates in hand.......convert the dates into _datevec_. From these you can sort them. Read about _datevec_.

17 minutes ago | 0

Answered

How to make a matlab code decrease the values step by step and plot a graph?

t0 = sqrt((5*9)*(5*9)+(60.^2)) t1 = sqrt((4*9)*(4*9)+(60.^2)) t2 = sqrt((3*9)*(3*9)+(60.^2)) t3 = sqrt...

How to make a matlab code decrease the values step by step and plot a graph?

t0 = sqrt((5*9)*(5*9)+(60.^2)) t1 = sqrt((4*9)*(4*9)+(60.^2)) t2 = sqrt((3*9)*(3*9)+(60.^2)) t3 = sqrt...

22 hours ago | 0

Answered

Using a vector in an If statement for comet plot

Read about _mod_,,this will help you to know whether the given number is even or odd.

Using a vector in an If statement for comet plot

Read about _mod_,,this will help you to know whether the given number is even or odd.

1 day ago | 1

Answered

Why won't this loop populate my array ?

You need not to run a loop to get averages...read about _mean_. It can calculate averages along row and columns by sppecifying d...

Why won't this loop populate my array ?

You need not to run a loop to get averages...read about _mean_. It can calculate averages along row and columns by sppecifying d...

1 day ago | 0

Answered

how to plot a contour map using a matrix for X, Y and Z values?

x = M(1,2:end); y = M(2:end,1); [X,Y]=meshgrid(x,y); Z=M(2:end,2:end) ; Now use _contour_ on X,Y and Z.

how to plot a contour map using a matrix for X, Y and Z values?

x = M(1,2:end); y = M(2:end,1); [X,Y]=meshgrid(x,y); Z=M(2:end,2:end) ; Now use _contour_ on X,Y and Z.

1 day ago | 0

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...

4 days 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]; ...

4 days 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... :)

4 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...

4 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...

4 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...

4 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...

5 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...

5 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_

5 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 ...

5 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 =...

5 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} =...

5 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.

5 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>

5 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...

5 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 ...

5 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...

6 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.

6 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{...

6 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...

6 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) =...

6 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 ...

6 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...

6 days ago | 0

| accepted