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

Professional Interests: Mathematical Computing

Answered

Error using Quiver function

You cannot use like that. You need to take all data in double i.e in numbers to plot the arrows.Something like below: [X,Y] = m...

Error using Quiver function

You cannot use like that. You need to take all data in double i.e in numbers to plot the arrows.Something like below: [X,Y] = m...

ongeveer 4 uur ago | 0

Answered

Write a MATLAB algorithm takes as input the vector x and computes C rowwise

Read about circshift.

Write a MATLAB algorithm takes as input the vector x and computes C rowwise

Read about circshift.

ongeveer 14 uur ago | 0

Answered

Assign different symbols to my scatter3 plot.

REad about gscatter. Or You have to assign different markers based on Z and plot.

Assign different symbols to my scatter3 plot.

REad about gscatter. Or You have to assign different markers based on Z and plot.

ongeveer 15 uur ago | 0

Answered

intersection of circle arc and a line

Use this functions: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections

intersection of circle arc and a line

Use this functions: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections

ongeveer 15 uur ago | 0

Answered

How to go through each element of a vector without a for loop

If P is an array of coefficients and x is the value n = length(p)-1 ; iwant = sum(p.*x.^(n:-1:0)) If x is an column array i...

How to go through each element of a vector without a for loop

If P is an array of coefficients and x is the value n = length(p)-1 ; iwant = sum(p.*x.^(n:-1:0)) If x is an column array i...

ongeveer 15 uur ago | 0

| accepted

Answered

how to stop overwriting results of a for loop in an array

clear,clc load LAnkle_tracking.mat plot(LAnkle(:,1),LAnkle(:,4),'k.') y=zeros(1,length(LAnkle)); for i=2:length(LAnkle)-1 ...

how to stop overwriting results of a for loop in an array

clear,clc load LAnkle_tracking.mat plot(LAnkle(:,1),LAnkle(:,4),'k.') y=zeros(1,length(LAnkle)); for i=2:length(LAnkle)-1 ...

ongeveer 16 uur ago | 0

Answered

Compare experimental and simulated image to estimate error

Let I1 be your experimental image, I2 be your simulated image. [m,n,p] = size(I1) ; I2_resize = imresize(I2,[m n]) ; dI = ...

Compare experimental and simulated image to estimate error

Let I1 be your experimental image, I2 be your simulated image. [m,n,p] = size(I1) ; I2_resize = imresize(I2,[m n]) ; dI = ...

ongeveer 18 uur ago | 1

Answered

Element-wise multiplication of a 3D matrix KxLxM by a 1D vector M

Anew = reshape(A,K*L,[]) ; Cnew = Anew.*B' ; Cnew = reshape(Cnew,K,L,[]) ;

Element-wise multiplication of a 3D matrix KxLxM by a 1D vector M

Anew = reshape(A,K*L,[]) ; Cnew = Anew.*B' ; Cnew = reshape(Cnew,K,L,[]) ;

ongeveer 18 uur ago | 0

Answered

how to generate 10 random numbers ( 0 to 1)

Read about rand. iwant = rand(1,10)

how to generate 10 random numbers ( 0 to 1)

Read about rand. iwant = rand(1,10)

ongeveer 21 uur ago | 0

Answered

Use inpolygon command for multiple polygon areas

Refer this: https://in.mathworks.com/matlabcentral/answers/592294-data-picking-from-grid?s_tid=srchtitle

Use inpolygon command for multiple polygon areas

Refer this: https://in.mathworks.com/matlabcentral/answers/592294-data-picking-from-grid?s_tid=srchtitle

ongeveer 22 uur ago | 0

Answered

How can I apply a condition on a culumn?

Let A be your array. idx = A>360 ; A(idx) = A(idx)-360 ; idx = A<360 ; A(idx) = A(idx)+360 ;

How can I apply a condition on a culumn?

Let A be your array. idx = A>360 ; A(idx) = A(idx)-360 ; idx = A<360 ; A(idx) = A(idx)+360 ;

ongeveer 23 uur ago | 0

Answered

Index exceeds the number of array elements (1).

Repalce with this the for loop. for i=2:length(x_rec) xhat(i)= d1+d2*x_rec(i-1)+d3*y_rec(i-1)+d4*x_rec(i-1)*y_rec(i-1)+d5...

Index exceeds the number of array elements (1).

Repalce with this the for loop. for i=2:length(x_rec) xhat(i)= d1+d2*x_rec(i-1)+d3*y_rec(i-1)+d4*x_rec(i-1)*y_rec(i-1)+d5...

1 dag ago | 0

| accepted

Answered

elemental subtraction indices of initial vector

A = [1 2 1 2 2 3 4 5] ; T = A-A.' ; x = 0 ; idx = T == x ; % get logical indices [r,c] = ind2sub(size(T),find(idx)) % ge...

elemental subtraction indices of initial vector

A = [1 2 1 2 2 3 4 5] ; T = A-A.' ; x = 0 ; idx = T == x ; % get logical indices [r,c] = ind2sub(size(T),find(idx)) % ge...

1 dag ago | 0

| accepted

Answered

How to plot different matrices in a cell with different marker styles

S = {'-*r', '-ok','-dr','-.b'} ; for i = 1:4 C{i} = rand(10,1) ; end % plot figure hold on for i = 1:4 plot(C{i},S{...

How to plot different matrices in a cell with different marker styles

S = {'-*r', '-ok','-dr','-.b'} ; for i = 1:4 C{i} = rand(10,1) ; end % plot figure hold on for i = 1:4 plot(C{i},S{...

1 dag ago | 0

Answered

Value of time on Zero crossing

https://in.mathworks.com/matlabcentral/answers/267222-easy-way-of-finding-zero-crossing-of-a-function

Value of time on Zero crossing

https://in.mathworks.com/matlabcentral/answers/267222-easy-way-of-finding-zero-crossing-of-a-function

1 dag ago | 0

Answered

i want to write a code where equation is y=x*x. if y=100 what is the value of x?

z = 100 ; x = 1:20 ; y = x.^2 ; y(x==z)

i want to write a code where equation is y=x*x. if y=100 what is the value of x?

z = 100 ; x = 1:20 ; y = x.^2 ; y(x==z)

1 dag ago | 0

Answered

How to save X, Y coordinates from different cells in multiples files

Let SX and SY be your cells. iwant = [ [SX{:}] [SY{:}]] ; Also read about Cell2mat, cat.

How to save X, Y coordinates from different cells in multiples files

Let SX and SY be your cells. iwant = [ [SX{:}] [SY{:}]] ; Also read about Cell2mat, cat.

1 dag ago | 0

Answered

Error using Polyfit: The first two inputs must have the same number of elements. The x can have multiple inputs as columns?

Your x is a m*6 array and y is a m*1..It is not allowed. That is why you got error. Run a loop and use polyfit for each column...

Error using Polyfit: The first two inputs must have the same number of elements. The x can have multiple inputs as columns?

Your x is a m*6 array and y is a m*1..It is not allowed. That is why you got error. Run a loop and use polyfit for each column...

2 dagen ago | 1

Answered

Plotting multiple 2D metrices

Two options: % If each matrix has two curves figure plot(A') hold on plot(B') % If each matrix has (x,y) coordinates fig...

Plotting multiple 2D metrices

Two options: % If each matrix has two curves figure plot(A') hold on plot(B') % If each matrix has (x,y) coordinates fig...

2 dagen ago | 1

Answered

Help Needed with looping commands

Just use: E = d(:,1)-c(:,2) ; You need not to use a loop.

Help Needed with looping commands

Just use: E = d(:,1)-c(:,2) ; You need not to use a loop.

2 dagen ago | 0

Answered

Finding minima in data as well as values near it

Read about min. Let A be your array. [val,idx] = min(A) ; iwant = [A(idx-1) A(idx+1)]

Finding minima in data as well as values near it

Read about min. Let A be your array. [val,idx] = min(A) ; iwant = [A(idx-1) A(idx+1)]

3 dagen ago | 0

Answered

Storing output into a matrix for plotting

I expect rho is bein gused in the lines which are not shown...so repalce rho inside the loop with rho(i). N = 5000; Rmax = 50;...

Storing output into a matrix for plotting

I expect rho is bein gused in the lines which are not shown...so repalce rho inside the loop with rho(i). N = 5000; Rmax = 50;...

3 dagen ago | 1

| accepted

Answered

How to interpolate the matrix A ?

If you want to go ahead with NaN's itself...use intepr2, imresize. If you want to fill NaN's first, then use fillmissing and t...

How to interpolate the matrix A ?

If you want to go ahead with NaN's itself...use intepr2, imresize. If you want to fill NaN's first, then use fillmissing and t...

3 dagen ago | 0

| accepted

Answered

how can i call and plot function of two variables ?

Define x1 and x2 using linspace. Make x1, x2 matrices, using meshgrid. Make your caclulation. You need to use element by ele...

how can i call and plot function of two variables ?

Define x1 and x2 using linspace. Make x1, x2 matrices, using meshgrid. Make your caclulation. You need to use element by ele...

3 dagen ago | 1

Answered

image smoothing by a given a high resolution image

Read about interpolation. Check interp2.

image smoothing by a given a high resolution image

Read about interpolation. Check interp2.

3 dagen ago | 0

Answered

How to plot contour with constraints

Cpe=-0.6; lamdan=0.5; lamdad=0.5952; lamda12=0.84; nd=0.9; n12=0.9; nn=0.7; si1 = linspace(0,1) ; si2 = linspace(0,1) ; ...

How to plot contour with constraints

Cpe=-0.6; lamdan=0.5; lamdad=0.5952; lamda12=0.84; nd=0.9; n12=0.9; nn=0.7; si1 = linspace(0,1) ; si2 = linspace(0,1) ; ...

3 dagen ago | 0

Answered

Cant run a function

You must define one function in a single file and save it in the name of the function. function x = rot1(p) % define your for...

Cant run a function

You must define one function in a single file and save it in the name of the function. function x = rot1(p) % define your for...

3 dagen ago | 0

| accepted

Answered

Identify polygons enclosing a point in a shapefile

To get the locations/ points lying inside the polygon use inpolygon. To get the intersection points use InterX. https://in.mat...

Identify polygons enclosing a point in a shapefile

To get the locations/ points lying inside the polygon use inpolygon. To get the intersection points use InterX. https://in.mat...

3 dagen ago | 0

| accepted

Answered

How to compare an integer to the elements of a vector?

idx = find(u<C) ; idx(1) Read about find, you should have an option of getting first index striaght away.

How to compare an integer to the elements of a vector?

idx = find(u<C) ; idx(1) Read about find, you should have an option of getting first index striaght away.

3 dagen ago | 0