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

Professional Interests: Mathematical Computing

Answered

How to apply the laplacian filter on a color image in Matlab?

https://in.mathworks.com/help/images/ref/locallapfilt.html

How to apply the laplacian filter on a color image in Matlab?

https://in.mathworks.com/help/images/ref/locallapfilt.html

1 dag ago | 0

| accepted

Answered

How can I compute spectrogram for data vector containing NaN values?

Multiple options: Discard NaN's Fill the NaN's using interpolation (interp1, spline) Fill the NaN's using fillmissing Fill t...

How can I compute spectrogram for data vector containing NaN values?

Multiple options: Discard NaN's Fill the NaN's using interpolation (interp1, spline) Fill the NaN's using fillmissing Fill t...

1 dag ago | 0

Answered

How to select points on a scattered plot with mouse?

Read about ginput

How to select points on a scattered plot with mouse?

Read about ginput

1 dag ago | 0

| accepted

Answered

Linear indices from row and column indices for a rectangular region of interest.

YOu need to consider the size of matrix a. %this works a = rand(5,5); row_indices = 1:5; col_indices = 1:5; [X,Y] = meshgr...

Linear indices from row and column indices for a rectangular region of interest.

YOu need to consider the size of matrix a. %this works a = rand(5,5); row_indices = 1:5; col_indices = 1:5; [X,Y] = meshgr...

1 dag ago | 0

Answered

how to plot random points in airfoil wing

Check this demo example. I have coded it keeping in mind how your data is. It is like you are provided with upper and lower curv...

how to plot random points in airfoil wing

Check this demo example. I have coded it keeping in mind how your data is. It is like you are provided with upper and lower curv...

1 dag ago | 0

Answered

3d plot help

data=[1,1,1 ; 2,2,2 ; 3,3,3; 4,4,4] x=data(:,1); y=data(:,2); z=data(:,3); figure scatter3(x,y,z,100,z,'filled')

3d plot help

data=[1,1,1 ; 2,2,2 ; 3,3,3; 4,4,4] x=data(:,1); y=data(:,2); z=data(:,3); figure scatter3(x,y,z,100,z,'filled')

1 dag ago | 0

Answered

filter a matix column values

Let X,Y,D,V be your (x,y) locations, distance and velocity respectively. figure hold on plot(X,Y,'r') plot(X(D>1.5),Y(D>1...

filter a matix column values

Let X,Y,D,V be your (x,y) locations, distance and velocity respectively. figure hold on plot(X,Y,'r') plot(X(D>1.5),Y(D>1...

2 dagen ago | 1

| accepted

Answered

Select 100 points either side from mouse click cooradinates

x = linspace(0,1) ; y = sqrt(x) ; % Mid point M = [mean(x) mean(y)] ; % points left side idx1 = x<M(1) ; % % points...

Select 100 points either side from mouse click cooradinates

x = linspace(0,1) ; y = sqrt(x) ; % Mid point M = [mean(x) mean(y)] ; % points left side idx1 = x<M(1) ; % % points...

2 dagen ago | 0

Answered

find missing points on a graph

a=[1,3,4,6,7,9] b=[2,12,24,32,41,49] plot(a,b,'r-') hold on plot(a,b,'ko','LineWidth',2,'DisplayName','KnownCorrespondence')...

find missing points on a graph

a=[1,3,4,6,7,9] b=[2,12,24,32,41,49] plot(a,b,'r-') hold on plot(a,b,'ko','LineWidth',2,'DisplayName','KnownCorrespondence')...

3 dagen ago | 0

| accepted

Answered

How to eliminate certain columns from a matrix

Let A be matrix A(:,1:2:end) = [] % remove odd columns A(:,3) = [] % remove third column idx = [1 2 5 7] ; A(:,i...

How to eliminate certain columns from a matrix

Let A be matrix A(:,1:2:end) = [] % remove odd columns A(:,3) = [] % remove third column idx = [1 2 5 7] ; A(:,i...

3 dagen ago | 1

| accepted

Answered

Matlab coding and workspace

A = zeros(100,1) ; % initilaize for i = 1:100 A(i) = rand ; % update the value in loop end

Matlab coding and workspace

A = zeros(100,1) ; % initilaize for i = 1:100 A(i) = rand ; % update the value in loop end

3 dagen ago | 0

Answered

How can I draw separating lines between colors in a 3D volume plot?

Remove the shading interp line after plotting. LV_S3_LAT; %load the data V = Vertices(:,2:4); T = Triangles(:,2:4)+1; sV ...

How can I draw separating lines between colors in a 3D volume plot?

Remove the shading interp line after plotting. LV_S3_LAT; %load the data V = Vertices(:,2:4); T = Triangles(:,2:4)+1; sV ...

3 dagen ago | 0

Answered

How to remove small connected parts in the image without smoothing the others?

Read the image Get the locations of black pixels Fit the ellipse for the data Plot the ellipse on the image Use inpolygon a...

How to remove small connected parts in the image without smoothing the others?

Read the image Get the locations of black pixels Fit the ellipse for the data Plot the ellipse on the image Use inpolygon a...

3 dagen ago | 0

Answered

RGB map into numerical data

I = imread('IMG_2830.jpeg') ; I1 = imcrop(I) ; % Exactly crop the required borders/ exclude axis [nx,ny] = size(I1) ; x ...

RGB map into numerical data

I = imread('IMG_2830.jpeg') ; I1 = imcrop(I) ; % Exactly crop the required borders/ exclude axis [nx,ny] = size(I1) ; x ...

3 dagen ago | 0

Answered

How to use result in each iteration in a for loop and then use it in next loop?

for i = 1:10 a = rand+rand ; % this is the result in first loop for j = 1:3 b = a+rand ; % result of first...

How to use result in each iteration in a for loop and then use it in next loop?

for i = 1:10 a = rand+rand ; % this is the result in first loop for j = 1:3 b = a+rand ; % result of first...

3 dagen ago | 0

Answered

Filling in matrix for strain map

Read about fillgaps and fillmissing

Filling in matrix for strain map

Read about fillgaps and fillmissing

3 dagen ago | 0

| accepted

Answered

Surface Plot Excel Data

num = xlsread(myfile) ; x = num(:,1) ; y = num(1,:) ; Z = num(2:end,2:end) ; surf(x,y,Z) % if throws error trnspose Z

Surface Plot Excel Data

num = xlsread(myfile) ; x = num(:,1) ; y = num(1,:) ; Z = num(2:end,2:end) ; surf(x,y,Z) % if throws error trnspose Z

4 dagen ago | 0

Answered

How to check a triangle surface mesh is closed?

Just a wild guess.......give a try and let me know. Find the mean of the points and check whether this mean lies inside or outsi...

How to check a triangle surface mesh is closed?

Just a wild guess.......give a try and let me know. Find the mean of the points and check whether this mean lies inside or outsi...

5 dagen ago | 0

| accepted

Answered

Display radius on the plot

YOu can display radius of the circle like below: th = linspace(0,2*pi) ; R = 1. ; % REadius of Circle C = [0. 0.] ; ...

Display radius on the plot

YOu can display radius of the circle like below: th = linspace(0,2*pi) ; R = 1. ; % REadius of Circle C = [0. 0.] ; ...

5 dagen ago | 0

Answered

Create data set according to a plot ?

t = [0 10 15 30 40 50 60] ; vel = [20 20 30 30 10 5 5] ; plot(t,vel) ylim([0 35])

Create data set according to a plot ?

t = [0 10 15 30 40 50 60] ; vel = [20 20 30 30 10 5 5] ; plot(t,vel) ylim([0 35])

6 dagen ago | 0

| accepted

Answered

How to plot two columns when another column has a specified value

idx1 = contains(type,'dipslip') ; idx2 = contains(type,'strikeslip') ; figure hold on plot(moment(idx1),Area(idx1),'Or') pl...

How to plot two columns when another column has a specified value

idx1 = contains(type,'dipslip') ; idx2 = contains(type,'strikeslip') ; figure hold on plot(moment(idx1),Area(idx1),'Or') pl...

6 dagen ago | 0

| accepted

Answered

Ctrl+Enter running the entire program

YOu should use %% this at the start and at the end to run a section.

Ctrl+Enter running the entire program

YOu should use %% this at the start and at the end to run a section.

6 dagen ago | 0

Answered

How to find the Statistical Properties(Mean, Standard Deviation, Skwness and Kurtosis) of image?

Mean: https://in.mathworks.com/help/images/ref/mean2.html std: https://in.mathworks.com/help/images/ref/std2.html skew...

How to find the Statistical Properties(Mean, Standard Deviation, Skwness and Kurtosis) of image?

Mean: https://in.mathworks.com/help/images/ref/mean2.html std: https://in.mathworks.com/help/images/ref/std2.html skew...

6 dagen ago | 0

| accepted

Answered

Finding the tangent line of an ellipse

https://in.mathworks.com/matlabcentral/answers/89306-tangent-line-to-a-curve-at-a-given-point

Finding the tangent line of an ellipse

https://in.mathworks.com/matlabcentral/answers/89306-tangent-line-to-a-curve-at-a-given-point

6 dagen ago | 0

Answered

Function ontput missed or not assigned

function [y1 y2]=xxx(u) if u<10 y1=1 ; y2= [] ; else y1 = [] ; y2=1 ; end end

Function ontput missed or not assigned

function [y1 y2]=xxx(u) if u<10 y1=1 ; y2= [] ; else y1 = [] ; y2=1 ; end end

6 dagen ago | 0

Answered

using for loop in alignsignal function

[m,n] = size(X) ; Xa = zeros([],m) ; Ya = zeros([],n) ; for i = 1:n [xa,ya] = alignsignals(X(:,i),Y(:,i)) ; Xa(:...

using for loop in alignsignal function

[m,n] = size(X) ; Xa = zeros([],m) ; Ya = zeros([],n) ; for i = 1:n [xa,ya] = alignsignals(X(:,i),Y(:,i)) ; Xa(:...

6 dagen ago | 0

Answered

Triangulation within specified region

Read about delaunayTriangulation , you can provide edge constraints. On providing these constraints; you can avoid such triangle...

Triangulation within specified region

Read about delaunayTriangulation , you can provide edge constraints. On providing these constraints; you can avoid such triangle...

8 dagen ago | 1

| accepted

Answered

How to read a .txt file and convert to an image in MATLAB?

A = load('USER-1-1-1.txt') ; imagesc(A)

How to read a .txt file and convert to an image in MATLAB?

A = load('USER-1-1-1.txt') ; imagesc(A)

9 dagen ago | 0