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

Professional Interests: Mathematical Computing

All

RANK**9**

REPUTATION**19 521**

CONTRIBUTIONS

**19** Questions

**8 848** Answers

ANSWER ACCEPTANCE **
57.89%
**

VOTES RECEIVED**2 305**

RANK**110**

REPUTATION**9 396**

AVERAGE RATING**4.60**

CONTRIBUTIONS**30** Files

DOWNLOADS **533**

ALL TIME DOWNLOADS**87597**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

Answered

2D vector plot from three Euler angles

u = cos(theta) ; v = sin(theta) ; quiver(x,y,u,v)

2D vector plot from three Euler angles

u = cos(theta) ; v = sin(theta) ; quiver(x,y,u,v)

ungefär 21 timmar ago | 0

Answered

how to sort the values of each rows in the cell array

If A is your cell array. B = cellfun(@sort,A,'UniformOutput',false)

how to sort the values of each rows in the cell array

If A is your cell array. B = cellfun(@sort,A,'UniformOutput',false)

ungefär 21 timmar ago | 0

Answered

Anonymous function or for loop?

Off course, you can achieve the same without using anonymous function. t = 0 : 0.1 : 20; c1 = 53; % (0 <= t <= 10) c2 = 6...

Anonymous function or for loop?

Off course, you can achieve the same without using anonymous function. t = 0 : 0.1 : 20; c1 = 53; % (0 <= t <= 10) c2 = 6...

ungefär 21 timmar ago | 0

| accepted

Answered

Attempted to access G(2305,1,3); index out of bounds because size(G)=[2304,4096,3

You see the error is clear. You are trying to extracting more number of elements than present in the matrix. Example: A = ran...

Attempted to access G(2305,1,3); index out of bounds because size(G)=[2304,4096,3

You see the error is clear. You are trying to extracting more number of elements than present in the matrix. Example: A = ran...

ungefär 21 timmar ago | 0

Answered

Loading a random file from a directory

matFiles = dir('*.mat') ; N = length(matFiles) ; thisFile = matFiles(randperm(N,1)).name

Loading a random file from a directory

matFiles = dir('*.mat') ; N = length(matFiles) ; thisFile = matFiles(randperm(N,1)).name

ungefär 23 timmar ago | 0

Answered

Anonymous function or for loop?

The second version is a vectorised version and this will be fast compared to loop. Your loop is implemented. You check the f...

Anonymous function or for loop?

The second version is a vectorised version and this will be fast compared to loop. Your loop is implemented. You check the f...

ungefär 23 timmar ago | 0

Answered

How can I Draw a Line on a 3D plot?

[X,Y,Z] = peaks(100) ; % DRaw a line at origin x = linspace(-3,3) ; y = repelem(0,1,length(x)) ; z = interp2(X,Y,Z,x,...

How can I Draw a Line on a 3D plot?

[X,Y,Z] = peaks(100) ; % DRaw a line at origin x = linspace(-3,3) ; y = repelem(0,1,length(x)) ; z = interp2(X,Y,Z,x,...

en dag ago | 0

Answered

I want to simplify a equation in matlab that has terms of sin(t) and cos(t). When i run it it shows unrecognised variable. What should i do?

syms t Op1 = [1 0 0 0; 0 1 0 0;0 0 1 0; 0 0 0 1] ; Op1*cos(t)

I want to simplify a equation in matlab that has terms of sin(t) and cos(t). When i run it it shows unrecognised variable. What should i do?

syms t Op1 = [1 0 0 0; 0 1 0 0;0 0 1 0; 0 0 0 1] ; Op1*cos(t)

en dag ago | 0

Answered

graph wont display on a simple code

As you are plotting a point, you need to use marker. m=input("input mass "); n=0; figure hold on while n<10 P=12.3432...

graph wont display on a simple code

As you are plotting a point, you need to use marker. m=input("input mass "); n=0; figure hold on while n<10 P=12.3432...

en dag ago | 0

Answered

How do I solve this equation in MatLab?

Why worry the final answer is same right? syms x eq = 3*sqrt(x^2-4) ; A1 = int(eq,2,3) ; A2 = (9/2)*sqrt(5) - 6*log((3 +...

How do I solve this equation in MatLab?

Why worry the final answer is same right? syms x eq = 3*sqrt(x^2-4) ; A1 = int(eq,2,3) ; A2 = (9/2)*sqrt(5) - 6*log((3 +...

en dag ago | 0

Answered

I want to ask what wrong with my codes . please help me out

You should not name a variable starting with a number. Variable name should start with a character. Replace the variable 1p =...

I want to ask what wrong with my codes . please help me out

You should not name a variable starting with a number. Variable name should start with a character. Replace the variable 1p =...

en dag ago | 0

Answered

Saving data after each iteration

C_pulse = cell(N,1) ; D_pulse = cell(N,1) ; files = importdata('name_files2.txt'); for i = 1:length(files) [C_pulse{i}, ...

Saving data after each iteration

C_pulse = cell(N,1) ; D_pulse = cell(N,1) ; files = importdata('name_files2.txt'); for i = 1:length(files) [C_pulse{i}, ...

en dag ago | 0

| accepted

Answered

How to extract area using inpolygon

Check your polygon coordinates. They are not up to the mark as shown in the first figure. xv= [104.61, 102.98, 109.37, 109.52];...

How to extract area using inpolygon

Check your polygon coordinates. They are not up to the mark as shown in the first figure. xv= [104.61, 102.98, 109.37, 109.52];...

en dag ago | 0

| accepted

Answered

time series interpolation of irregular data

data = [ 2012 105683 2013 1108498 2014 1177810 2015 1271872 2016 1351970 2017 1433392 ...

time series interpolation of irregular data

data = [ 2012 105683 2013 1108498 2014 1177810 2015 1271872 2016 1351970 2017 1433392 ...

2 dagar ago | 1

| accepted

Answered

how to plot column vs column from csv file using readmatrix?

You need to specify the column which you want. Read about MATLAB indexing. array=readmatrix('data.csv'); plot(array(:,1),ar...

how to plot column vs column from csv file using readmatrix?

You need to specify the column which you want. Read about MATLAB indexing. array=readmatrix('data.csv'); plot(array(:,1),ar...

2 dagar ago | 1

| accepted

Answered

What is the problem in my for loops?

function tabulatedata() m = input('Enter m: '); n = input('Enter n: '); p = input('Enter p: '); fprintf('\nColumn 1\Colu...

What is the problem in my for loops?

function tabulatedata() m = input('Enter m: '); n = input('Enter n: '); p = input('Enter p: '); fprintf('\nColumn 1\Colu...

2 dagar ago | 0

Answered

How to plot longitude, latitude and time on a map

Convert the data into .kml file. And draw on google map.

How to plot longitude, latitude and time on a map

Convert the data into .kml file. And draw on google map.

2 dagar ago | 0

| accepted

Answered

How to extract the features of each cluster in the k means clustering?

If idx are the indices obtained from kmeans. You can plot the data using gscatter. Read about it. If A is your data, you can pic...

How to extract the features of each cluster in the k means clustering?

If idx are the indices obtained from kmeans. You can plot the data using gscatter. Read about it. If A is your data, you can pic...

2 dagar ago | 0

Answered

how to save values for changing number of columns using "for loop "

r=[10 50 100] ; n = length(r) ; X_telda = cell(n,1) ; for i = 1:n X_telda{i} = (U(:,1:r(i))*(U(:,1:r(i))'*X)); end ...

how to save values for changing number of columns using "for loop "

r=[10 50 100] ; n = length(r) ; X_telda = cell(n,1) ; for i = 1:n X_telda{i} = (U(:,1:r(i))*(U(:,1:r(i))'*X)); end ...

2 dagar ago | 0

| accepted

Answered

Prod giving a different answer than repeated multiplication

prod gives you element by element multiplication. Check: A = rand(2,2,3) ; X = prod(A,3) ; Y = A(:,:,1).*A(:,:,2).*A(:,:,...

Prod giving a different answer than repeated multiplication

prod gives you element by element multiplication. Check: A = rand(2,2,3) ; X = prod(A,3) ; Y = A(:,:,1).*A(:,:,2).*A(:,:,...

2 dagar ago | 0

| accepted

Answered

looping for a function

This is what you are looking for? [m,n,p] = size(b) ; % b is matrix of size 80x30x400 iwant = zeros(p,2); for i = 1:p ...

looping for a function

This is what you are looking for? [m,n,p] = size(b) ; % b is matrix of size 80x30x400 iwant = zeros(p,2); for i = 1:p ...

2 dagar ago | 0

Answered

How to Calculate The Full Wave Half Maximum.

Let (n.counts) be your data. [max_counts,idx] = max(counts) ; half_max_counts = max_counts/2 ; idx = knnsearch(counts,half...

How to Calculate The Full Wave Half Maximum.

Let (n.counts) be your data. [max_counts,idx] = max(counts) ; half_max_counts = max_counts/2 ; idx = knnsearch(counts,half...

2 dagar ago | 0

| accepted

Answered

Plot3 interpolation 3D plot

If NaN's are present, it will effetct the interpolation. Fill the NaN's using fillmissing.

Plot3 interpolation 3D plot

If NaN's are present, it will effetct the interpolation. Fill the NaN's using fillmissing.

2 dagar ago | 0

Answered

convert hours to days on y-axis

A = [1 0 2 0 3 0 4 0.199999999999996 5 0 6 0 7 0 8 0.199999999999996 9 0 10 0 11 0 12 0]; t0 = datetime('10/10/201...

convert hours to days on y-axis

A = [1 0 2 0 3 0 4 0.199999999999996 5 0 6 0 7 0 8 0.199999999999996 9 0 10 0 11 0 12 0]; t0 = datetime('10/10/201...

2 dagar ago | 1

Answered

How to find area with trapezoidal method on matlab?

Read about the function trapz.

How to find area with trapezoidal method on matlab?

Read about the function trapz.

3 dagar ago | 0

Answered

Creating a grid from a 2D scatter plot of vectors

Let x, y, xvel, yvel be your data. m = 100 ; n = 100; x = linspace(min(x),max(x),m) ; y = linspace(min(y),max(y),n) ; [X,...

Creating a grid from a 2D scatter plot of vectors

Let x, y, xvel, yvel be your data. m = 100 ; n = 100; x = linspace(min(x),max(x),m) ; y = linspace(min(y),max(y),n) ; [X,...

3 dagar ago | 1

| accepted

Answered

help with slope field in matlab

Create x, y vectors using linspace Creat X, Y matrices using meshgrid with x, y vectors as input. Substitute X, Y in your for...

help with slope field in matlab

Create x, y vectors using linspace Creat X, Y matrices using meshgrid with x, y vectors as input. Substitute X, Y in your for...

3 dagar ago | 0

Answered

Mapping a matrix to another matrix

A=[3;7;8;9;2;10]; B=[4,6;1,2;3,5]; C = A(B)

Mapping a matrix to another matrix

A=[3;7;8;9;2;10]; B=[4,6;1,2;3,5]; C = A(B)

3 dagar ago | 0

| accepted

Answered

Relationship between (i & j) of a nested for loop and (x & y) coordinates?

It moves from bottom to top and left to right. Check with below: nx = 10 ; ny = 10 ; figure hold on for i = 1:nx for j...

Relationship between (i & j) of a nested for loop and (x & y) coordinates?

It moves from bottom to top and left to right. Check with below: nx = 10 ; ny = 10 ; figure hold on for i = 1:nx for j...

3 dagar ago | 0

| accepted

Answered

Plotting contours in matlab

You have to increase the number of points while using linspace. Now defualt it is 100. n = 500 ; % change this value xv = li...

Plotting contours in matlab

You have to increase the number of points while using linspace. Now defualt it is 100. n = 500 ; % change this value xv = li...

3 dagar ago | 0