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

Professional Interests: Mathematical Computing

Answered

In Matlab: How to create a 2d map from a 3 columns file

data = [1901 0 1 1901 -10 2 1901 -20 3 1902 0 -1 1902 -10 3.5 1902 -20 1.5 1903 0 5 1903 -10 -3 1903 -20 0 ] ; x = da...

In Matlab: How to create a 2d map from a 3 columns file

data = [1901 0 1 1901 -10 2 1901 -20 3 1902 0 -1 1902 -10 3.5 1902 -20 1.5 1903 0 5 1903 -10 -3 1903 -20 0 ] ; x = da...

3 hours ago | 0

Answered

Apply the finite difference

Replace dy/dt with (y(t+1)-y(t))/dt Simplify it so that y(t+1) is on LHS and rest all on RHS. You will get a equation, RHS has ...

Apply the finite difference

Replace dy/dt with (y(t+1)-y(t))/dt Simplify it so that y(t+1) is on LHS and rest all on RHS. You will get a equation, RHS has ...

4 hours ago | 0

Answered

Difference in Matlab and Excel

Excel fits a striaght line to the data.....to get the same value use polyfit of MATLAB. p = polyfit(X,Y,1) ; p(1)

Difference in Matlab and Excel

Excel fits a striaght line to the data.....to get the same value use polyfit of MATLAB. p = polyfit(X,Y,1) ; p(1)

14 hours ago | 0

Answered

The Code Does not Compute the other elements of Matrix

function P = Prob(A_ax,B_by,rho) d=size(A_ax,1); m=size(A_ax,4); bcount=size(A_ax,3); P = zeros(d,d,bcount,bcount); %%...

The Code Does not Compute the other elements of Matrix

function P = Prob(A_ax,B_by,rho) d=size(A_ax,1); m=size(A_ax,4); bcount=size(A_ax,3); P = zeros(d,d,bcount,bcount); %%...

19 hours ago | 0

Answered

zero crossings with interpolation

https://in.mathworks.com/matlabcentral/answers/563765-how-to-find-out-if-a-curve-passes-through-zero-and-goes-from-positive-to-n...

zero crossings with interpolation

https://in.mathworks.com/matlabcentral/answers/563765-how-to-find-out-if-a-curve-passes-through-zero-and-goes-from-positive-to-n...

19 hours ago | 1

Answered

How to dynamically define limits forplot from user input ?

Read about input. https://in.mathworks.com/help/matlab/ref/input.html

How to dynamically define limits forplot from user input ?

Read about input. https://in.mathworks.com/help/matlab/ref/input.html

24 hours ago | 0

Answered

Exclude some values from the heatmap

Let M be your matrix of size n*n. To replace diagonal values with NaN: M = rand(11) ; M(1:(n+1):end) = NaN ;

Exclude some values from the heatmap

Let M be your matrix of size n*n. To replace diagonal values with NaN: M = rand(11) ; M(1:(n+1):end) = NaN ;

1 day ago | 0

Answered

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

There is a easier netCDF toolbox available. REad about ncdisp, ncread. These two commands are more than enough ti read data from...

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

There is a easier netCDF toolbox available. REad about ncdisp, ncread. These two commands are more than enough ti read data from...

1 day ago | 0

Answered

How can i Find the derivative of Spline Function?

https://in.mathworks.com/matlabcentral/answers/95194-how-do-i-find-the-derivative-of-a-spline-curve-in-matlab-7-9-r2009b http...

How can i Find the derivative of Spline Function?

https://in.mathworks.com/matlabcentral/answers/95194-how-do-i-find-the-derivative-of-a-spline-curve-in-matlab-7-9-r2009b http...

1 day ago | 0

Answered

how to plote a square that rotate around a square

S1 = [1 -1 ; 1 1 ; -1 1 ; -1 -1 ; 1 -1]' ; S2 = 2*S1; for i = 0:0.2:2*pi R = [cos(i) -sin(i) ; sin(i) cos(i) ]...

how to plote a square that rotate around a square

S1 = [1 -1 ; 1 1 ; -1 1 ; -1 -1 ; 1 -1]' ; S2 = 2*S1; for i = 0:0.2:2*pi R = [cos(i) -sin(i) ; sin(i) cos(i) ]...

2 days ago | 0

Answered

Image from RGB to another one

https://in.mathworks.com/matlabcentral/answers/499387-how-can-i-calculate-cmyk-values-from-rgb-in-matlab http://mooring.ucsd....

Image from RGB to another one

https://in.mathworks.com/matlabcentral/answers/499387-how-can-i-calculate-cmyk-values-from-rgb-in-matlab http://mooring.ucsd....

2 days ago | 0

Answered

Interpolating the data given between -pi and pi

You can simply use m = 100 ; % get this value using your ts step size th = linspace(-pi,pi,m) ; Using the time step ts..s...

Interpolating the data given between -pi and pi

You can simply use m = 100 ; % get this value using your ts step size th = linspace(-pi,pi,m) ; Using the time step ts..s...

2 days ago | 0

Answered

correlation analysis of two adjacent pixels

Read about corr2. https://in.mathworks.com/help/images/ref/corr2.html

correlation analysis of two adjacent pixels

Read about corr2. https://in.mathworks.com/help/images/ref/corr2.html

3 days ago | 0

Answered

Polygons with true and false statements

Read about inpolygon. You can define your required polygon vertices, and inpolygon will give you indices lying inside with 1 and...

Polygons with true and false statements

Read about inpolygon. You can define your required polygon vertices, and inpolygon will give you indices lying inside with 1 and...

4 days ago | 0

Answered

load curve daily power consumption

data=[0 2 17; 2 6 12; 6 9 3; 9 12 15; 12 14 12; 14 16 14; 16 18 16; 18 20 18; 20 22 16; 22 23 12; 23 24 6]; power=data(:...

load curve daily power consumption

data=[0 2 17; 2 6 12; 6 9 3; 9 12 15; 12 14 12; 14 16 14; 16 18 16; 18 20 18; 20 22 16; 22 23 12; 23 24 6]; power=data(:...

4 days ago | 0

| accepted

Answered

For loop in matrix

A=1;%dV/dx when x=1,A(0)=1 V=2;%V when x=1,V(0)=1 a=0; b=1; n=100; x=linspace(a,b,n); h = x(2)-x(1) ; V = zeros(size(x)...

For loop in matrix

A=1;%dV/dx when x=1,A(0)=1 V=2;%V when x=1,V(0)=1 a=0; b=1; n=100; x=linspace(a,b,n); h = x(2)-x(1) ; V = zeros(size(x)...

4 days ago | 0

Answered

How to make delaunayTriangulation object from points and connectivity in 3D?

You should use the function triangulation for this. Read about this. https://in.mathworks.com/help/matlab/ref/triangulation.ht...

How to make delaunayTriangulation object from points and connectivity in 3D?

You should use the function triangulation for this. Read about this. https://in.mathworks.com/help/matlab/ref/triangulation.ht...

4 days ago | 0

| accepted

Answered

Matrix from for loop displaying vectors of different length

You need to interpolate them to the same size using interp1. clc clear close all [index, sname] = textscan('filenr.lis','%d...

Matrix from for loop displaying vectors of different length

You need to interpolate them to the same size using interp1. clc clear close all [index, sname] = textscan('filenr.lis','%d...

4 days ago | 0

| accepted

Answered

Dicretization from countour nodes 2D.

Refer this: https://in.mathworks.com/matlabcentral/fileexchange/40681-transfinite-interpolation https://in.mathworks.com/matla...

Dicretization from countour nodes 2D.

Refer this: https://in.mathworks.com/matlabcentral/fileexchange/40681-transfinite-interpolation https://in.mathworks.com/matla...

4 days ago | 0

Answered

how to load an HDF5 file in Matlab?

You should not use load to read your file. You have dedicated functions to read HDF5 files. Refer her: https://in.mathworks.com...

how to load an HDF5 file in Matlab?

You should not use load to read your file. You have dedicated functions to read HDF5 files. Refer her: https://in.mathworks.com...

4 days ago | 0

Answered

Subplot in a for loop with different graphs

for i = 1:5 figure(1) subplot(5,1,i) plot(rand(1,10)) figure(2) subplot(5,1,i) plot(rand(1,10)) endfor

Subplot in a for loop with different graphs

for i = 1:5 figure(1) subplot(5,1,i) plot(rand(1,10)) figure(2) subplot(5,1,i) plot(rand(1,10)) endfor

5 days ago | 0

Answered

How to solve the matrix K ^ -1 * F where the terms have unknowns?

syms a b c K =[14.8482*a+14.8492*c,-14.8482*a+14.8492*c; -14.8482*a+14.8492*c,14.8482*a+42*b+14.8492*c]; F= [34.641; ...

How to solve the matrix K ^ -1 * F where the terms have unknowns?

syms a b c K =[14.8482*a+14.8492*c,-14.8482*a+14.8492*c; -14.8482*a+14.8492*c,14.8482*a+42*b+14.8492*c]; F= [34.641; ...

5 days ago | 0

Answered

How to make algorithm using raster file?

To load the data read about load, importdata, textscan. If your raster data matrix is A, to get your formula use: GDDmax = ma...

How to make algorithm using raster file?

To load the data read about load, importdata, textscan. If your raster data matrix is A, to get your formula use: GDDmax = ma...

5 days ago | 0

Answered

Plotting a pair of linear equations to display a graph showing the solution of a pair of simultaneous equations that my program solves.

Read about input to make the user to enter the results. (I would prefer straight away values) If A is a 2X2 matrix and b is 2*1...

Plotting a pair of linear equations to display a graph showing the solution of a pair of simultaneous equations that my program solves.

Read about input to make the user to enter the results. (I would prefer straight away values) If A is a 2X2 matrix and b is 2*1...

5 days ago | 1

| accepted

Answered

Someone help me. How to plot for this code to obtain figure?

clc clear all close all zeta0 = 1; h = 2; g = 0.0098; vt=sqrt(g*h); c=1; v=c*vt t1 = 50/v; t2=200/v; t=t1; x = 0...

Someone help me. How to plot for this code to obtain figure?

clc clear all close all zeta0 = 1; h = 2; g = 0.0098; vt=sqrt(g*h); c=1; v=c*vt t1 = 50/v; t2=200/v; t=t1; x = 0...

5 days ago | 1

| accepted

Answered

Substitute for eval function

It is not adivsed to use eval. You can reshape your data into what you want. Check below: DATA_FC = rand(1001,13428) ; % rando...

Substitute for eval function

It is not adivsed to use eval. You can reshape your data into what you want. Check below: DATA_FC = rand(1001,13428) ; % rando...

5 days ago | 0

| accepted

Answered

How do I import multiple .dat files from a folder in Matlab?

datFiles = dir("*.dat"); N = length(datFiles) ; % loop for each file for i = 1:N thisFile = datFiles(i).name ; ...

How do I import multiple .dat files from a folder in Matlab?

datFiles = dir("*.dat"); N = length(datFiles) ; % loop for each file for i = 1:N thisFile = datFiles(i).name ; ...

5 days ago | 0

| accepted

Answered

About TRMM Data and extraction it for a particular area?

Refer this link: <https://in.mathworks.com/matlabcentral/answers/407463-how-to-subset-the-matrix-array-with-shape-file#accepted_...

About TRMM Data and extraction it for a particular area?

Refer this link: <https://in.mathworks.com/matlabcentral/answers/407463-how-to-subset-the-matrix-array-with-shape-file#accepted_...

6 days ago | 1

Answered

Visualizing values in a matrix

Read about spy clc; clear all ; m = 10 ; A = zeros(m); % introduce random ones id = randperm(m*m,20) ; A(id) = 1 ; [...

Visualizing values in a matrix

Read about spy clc; clear all ; m = 10 ; A = zeros(m); % introduce random ones id = randperm(m*m,20) ; A(id) = 1 ; [...

6 days ago | 0

| accepted