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

Professional Interests: Mathematical Computing

Answered

How do I add a colormap to a series of 3D lines?

Read about waterfall.

How do I add a colormap to a series of 3D lines?

Read about waterfall.

environ une heure ago | 0

Answered

Increment change For loop

val = [1:2:19,23:4:200] ; N = length(val) ; iwant = zeros(1,N) ; for i = 1:N iwant(i) = val(i) % In case you want to...

Increment change For loop

val = [1:2:19,23:4:200] ; N = length(val) ; iwant = zeros(1,N) ; for i = 1:N iwant(i) = val(i) % In case you want to...

environ 2 heures ago | 0

Answered

Possible to contour at specific z planes to give the x,y coords?

You can use contour to do this. You need to specify the level as 0 to get your coordinates (x,y) where Z = 0. C = contour(X,Y,...

Possible to contour at specific z planes to give the x,y coords?

You can use contour to do this. You need to specify the level as 0 to get your coordinates (x,y) where Z = 0. C = contour(X,Y,...

environ 15 heures ago | 0

Answered

How to draw a position vector on a 3D plot

You can use the file exchange: https://in.mathworks.com/matlabcentral/fileexchange/278-arrow You can also use annotation h=a...

How to draw a position vector on a 3D plot

You can use the file exchange: https://in.mathworks.com/matlabcentral/fileexchange/278-arrow You can also use annotation h=a...

environ 15 heures ago | 0

Answered

How can I display the sum of the digits of a number entered by a user?

n = 3434; digits = dec2base(N,10) - '0' ; iwant = sum(digits)

How can I display the sum of the digits of a number entered by a user?

n = 3434; digits = dec2base(N,10) - '0' ; iwant = sum(digits)

1 jour ago | 0

Answered

convert a 3D matrix to a 2D matrix

iwant = X2 ; iwant(1:2:end,:) = X2(1:3,:) ; iwant(2:2:end,:) = X2(4:end,:) ;

convert a 3D matrix to a 2D matrix

iwant = X2 ; iwant(1:2:end,:) = X2(1:3,:) ; iwant(2:2:end,:) = X2(4:end,:) ;

1 jour ago | 0

Answered

Reshape a multidimensional matrix

iwant = reshape(144,[]) ; Wont this work for you?

Reshape a multidimensional matrix

iwant = reshape(144,[]) ; Wont this work for you?

1 jour ago | 0

Answered

How to plot coast and fill the land with gray without m_map

To fill the land use patch/ area/ fill. Read about those functions. To simply plot the coastline use plot.

How to plot coast and fill the land with gray without m_map

To fill the land use patch/ area/ fill. Read about those functions. To simply plot the coastline use plot.

1 jour ago | 0

Answered

error using cross (A and B must have at least one dimension of length 3.)

https://in.mathworks.com/matlabcentral/fileexchange/55021-n-dimensional-cross-product

error using cross (A and B must have at least one dimension of length 3.)

https://in.mathworks.com/matlabcentral/fileexchange/55021-n-dimensional-cross-product

1 jour ago | 0

Answered

Error vertcat not using vertcat

Your matrix is 10*10 Kx = [407 -169 0 0 0 0 0 0 0 0; -169 331 -162 0 0 0 0 0 0 0; -162 320 -158 0 0 0 0 0 0; % <-----...

Error vertcat not using vertcat

Your matrix is 10*10 Kx = [407 -169 0 0 0 0 0 0 0 0; -169 331 -162 0 0 0 0 0 0 0; -162 320 -158 0 0 0 0 0 0; % <-----...

1 jour ago | 0

| accepted

Answered

need help convertig 10 min data interval to 1 minute data interval

You need to do interpolation. Read about interp1 https://in.mathworks.com/help/matlab/ref/interp1.html

need help convertig 10 min data interval to 1 minute data interval

You need to do interpolation. Read about interp1 https://in.mathworks.com/help/matlab/ref/interp1.html

1 jour ago | 0

Answered

How to change certain values in a 3 layer matrix and fill in another matrix?

Let NDVI be your 7971*7851*3 matrix. R = NDVI(:,:,1) ; G = NDVI(:,:,2) ; B = NDVI(:,:,3) ; % replace values % repalce each ...

How to change certain values in a 3 layer matrix and fill in another matrix?

Let NDVI be your 7971*7851*3 matrix. R = NDVI(:,:,1) ; G = NDVI(:,:,2) ; B = NDVI(:,:,3) ; % replace values % repalce each ...

3 jours ago | 0

Answered

A loop to extract and plot data from a table

Let A be your 10*11 data. x = 0:1:10 ; plot(x,A)

A loop to extract and plot data from a table

Let A be your 10*11 data. x = 0:1:10 ; plot(x,A)

3 jours ago | 0

Answered

Selecting only half a row of an array

Read about MATLAB array indexing, instead of asking very simple basic questions. If a is an narray of size 1x5. a(1:2) % gi...

Selecting only half a row of an array

Read about MATLAB array indexing, instead of asking very simple basic questions. If a is an narray of size 1x5. a(1:2) % gi...

4 jours ago | 0

| accepted

Answered

Why won't my graph show?

Read about element by element operations. You need to use ./ in the line which shows error. %all of the variables except R0 ar...

Why won't my graph show?

Read about element by element operations. You need to use ./ in the line which shows error. %all of the variables except R0 ar...

4 jours ago | 0

| accepted

Answered

error using fprintf function

You have to specify a format specifier. A = 1000000000; B = A / 512; fprintf('%f\n',B); % %f is for floating point numbe...

error using fprintf function

You have to specify a format specifier. A = 1000000000; B = A / 512; fprintf('%f\n',B); % %f is for floating point numbe...

4 jours ago | 0

| accepted

Answered

why i get this error

Your image seems to be a RGB image. You have to use imhist on a 2D matrix. Not 3D image. R = i(:,:,1) ; G = i(:,:,2) ; B = i...

why i get this error

Your image seems to be a RGB image. You have to use imhist on a 2D matrix. Not 3D image. R = i(:,:,1) ; G = i(:,:,2) ; B = i...

5 jours ago | 0

Answered

To store Output of a user defined function in an array

If you want to call function n times and if function gives on output, to store the utput in array: B = zeros(n,1) ; for i= 1:...

To store Output of a user defined function in an array

If you want to call function n times and if function gives on output, to store the utput in array: B = zeros(n,1) ; for i= 1:...

5 jours ago | 0

Answered

Can I assign elements of one cell array to multiple elements of another cell array without a loop?

myArray = {'One', 1000; 'Two', 2000; 'Three', 3000; 'Four', 4000; 'One', 5000; 'Five', 6000}; anotherArray = [({'One', 'Two', '...

Can I assign elements of one cell array to multiple elements of another cell array without a loop?

myArray = {'One', 1000; 'Two', 2000; 'Three', 3000; 'Four', 4000; 'One', 5000; 'Five', 6000}; anotherArray = [({'One', 'Two', '...

5 jours ago | 0

| accepted

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

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

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

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

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

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

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

6 jours 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,[]) ;

6 jours ago | 1

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)

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

6 jours ago | 0

| accepted