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

Professional Interests: Mathematical Computing

Answered

How do I call to function from other function?

You need to save both the function files in the same folder and yes call the other function in the required function. It is very...

How do I call to function from other function?

You need to save both the function files in the same folder and yes call the other function in the required function. It is very...

11 hours ago | 1

| accepted

Answered

How to set different marker for some different values?

fmt = {'*','o','^','.','+','x','s','p','h'}; % different markers x = 1:9 ; y = rand(size(x)) ; figure hold on for i = 1:...

How to set different marker for some different values?

fmt = {'*','o','^','.','+','x','s','p','h'}; % different markers x = 1:9 ; y = rand(size(x)) ; figure hold on for i = 1:...

11 hours ago | 0

| accepted

Answered

Sum the values of one column based on another column in Table

Let T be your table. R = T.Range ; val = 862.33 ; count = nnz(abs(R-val)<=10^-5)

Sum the values of one column based on another column in Table

Let T be your table. R = T.Range ; val = 862.33 ; count = nnz(abs(R-val)<=10^-5)

15 hours ago | 0

Answered

Recover matrix Z from XZX', Z es symmetric and n-by-n, while X is k-by-n where n>>k

Does this match your criteria? k = 8 ; n = 5 ; % create dummy data X = rand(n,k) ; Z = rand(n) ; Z = Z+Z' ; % make ...

Recover matrix Z from XZX', Z es symmetric and n-by-n, while X is k-by-n where n>>k

Does this match your criteria? k = 8 ; n = 5 ; % create dummy data X = rand(n,k) ; Z = rand(n) ; Z = Z+Z' ; % make ...

19 hours ago | 0

Answered

How to find convolution of three functions.

Read about conv2. s1 = conv2(conv2(f1,f2),f3) s2 = conv2(conv2(f2,f3),f1) s3 = conv2(conv2(f1,f3),f2) All the abve three a...

How to find convolution of three functions.

Read about conv2. s1 = conv2(conv2(f1,f2),f3) s2 = conv2(conv2(f2,f3),f1) s3 = conv2(conv2(f1,f3),f2) All the abve three a...

1 day ago | 0

| accepted

Answered

Error using sym/subsindex

Initialize the cell first. Q =cell(length(a),length(ttt)) ; % initialize USe this in the loop. Q{i,j} = %% your formul...

Error using sym/subsindex

Initialize the cell first. Q =cell(length(a),length(ttt)) ; % initialize USe this in the loop. Q{i,j} = %% your formul...

3 days ago | 0

Answered

How to cut area or some part of image ?

How about using this? https://www.mathworks.com/help/images/ref/imfreehand.html

How to cut area or some part of image ?

How about using this? https://www.mathworks.com/help/images/ref/imfreehand.html

3 days ago | 0

Answered

How to avoid patch color being included in legend ?

clc; clear all; close all; x = linspace(-10,10,200); y = sin(4*x); y1 = sin(x); figure; hold on patch([2 5 5 2], [[1 1]...

How to avoid patch color being included in legend ?

clc; clear all; close all; x = linspace(-10,10,200); y = sin(4*x); y1 = sin(x); figure; hold on patch([2 5 5 2], [[1 1]...

3 days ago | 1

Answered

Change resolution of .xyz file in matlab

You need to interpolate your data. Read about interp2. Also if you have Z data, you can use imresize. Read about this as well....

Change resolution of .xyz file in matlab

You need to interpolate your data. Read about interp2. Also if you have Z data, you can use imresize. Read about this as well....

3 days ago | 0

Answered

Create stl. file with [F,V,N] data

USe this: https://www.mathworks.com/help/matlab/ref/stlwrite.html#d120e1182467

Create stl. file with [F,V,N] data

USe this: https://www.mathworks.com/help/matlab/ref/stlwrite.html#d120e1182467

3 days ago | 0

Answered

Index exceeds the number of arrays

Try to clear the variables, before using your code. There is no error in your code. It should work. clc; clear all; A = 4; W...

Index exceeds the number of arrays

Try to clear the variables, before using your code. There is no error in your code. It should work. clc; clear all; A = 4; W...

3 days ago | 0

| accepted

Answered

Adding Number using for loop

Let A be your n*2 array. t = A(:,1) ; s = A(:,2) ; [C,ia,ib] = unique(t) ; N = length(C) ; iwant = zeros(N,1) ; for ...

Adding Number using for loop

Let A be your n*2 array. t = A(:,1) ; s = A(:,2) ; [C,ia,ib] = unique(t) ; N = length(C) ; iwant = zeros(N,1) ; for ...

3 days ago | 0

Answered

peak Value of a spike in graph at a particular time

You reshape your array and use min and max. Read about reshape, min, max.

peak Value of a spike in graph at a particular time

You reshape your array and use min and max. Read about reshape, min, max.

3 days ago | 0

Answered

dynamic allocation of arrays

You can initiate it to a cell. resultPolygon = cell(720,1); for i = 1:720 newShaper = homogeneousTransformMatrix(phi(i))...

dynamic allocation of arrays

You can initiate it to a cell. resultPolygon = cell(720,1); for i = 1:720 newShaper = homogeneousTransformMatrix(phi(i))...

4 days ago | 0

| accepted

Answered

How can I save multiple matrix and index them?

txtFiles = dir("*.txt") ; N = length(txtFiles) ; themax = zeros(N,1) ; % loop for each file for i = 1:N data = import...

How can I save multiple matrix and index them?

txtFiles = dir("*.txt") ; N = length(txtFiles) ; themax = zeros(N,1) ; % loop for each file for i = 1:N data = import...

4 days ago | 0

Answered

Crop out a section of the image in imshow, how?

Read about imcrop. Let I be your image. rect = [234 355 (1678-234) (764-355)] iwant = imcrop(I,rect) imshow(iwant)

Crop out a section of the image in imshow, how?

Read about imcrop. Let I be your image. rect = [234 355 (1678-234) (764-355)] iwant = imcrop(I,rect) imshow(iwant)

4 days ago | 0

| accepted

Answered

Plot multiples time series

Let A be your 365*40 data. Multiple options. plot(A) The above options plots 40 curves in one graph. It will be confusing. ...

Plot multiples time series

Let A be your 365*40 data. Multiple options. plot(A) The above options plots 40 curves in one graph. It will be confusing. ...

4 days ago | 0

Answered

Removing Missing Data from Corresponding Matrix

POCtotal(index,:)=[];

Removing Missing Data from Corresponding Matrix

POCtotal(index,:)=[];

5 days ago | 0

| accepted

Answered

Draw the trail of a moving marker on an animated 2D plot

A = rand(1800,1); B = rand(1800,1); % I'm just using dummy values here but my actual program has similar outputs (1800 x 1 dou...

Draw the trail of a moving marker on an animated 2D plot

A = rand(1800,1); B = rand(1800,1); % I'm just using dummy values here but my actual program has similar outputs (1800 x 1 dou...

5 days ago | 1

| accepted

Answered

Adding zeros to matrix

Let A be your 100*100 matrix. B = zeros(300) ; B(1:100,1:100) = A ;

Adding zeros to matrix

Let A be your 100*100 matrix. B = zeros(300) ; B(1:100,1:100) = A ;

5 days ago | 1

Answered

Obtain the mean angle (circle mean of a file)

num = xlsread(myfile) ; % better use readtable iwant = mean(num,2) ;

Obtain the mean angle (circle mean of a file)

num = xlsread(myfile) ; % better use readtable iwant = mean(num,2) ;

5 days ago | 0

Answered

How do I turn of thr grid of a surface but keep the edge line on?

[X,Y] = meshgrid(1:10) ; Z = sqrt(X.^2+Y.^2) ; % plot the outer line X1 = X ; X1(2:end-1,2:end-1) = NaN ; Y1 = Y ; Y1(...

How do I turn of thr grid of a surface but keep the edge line on?

[X,Y] = meshgrid(1:10) ; Z = sqrt(X.^2+Y.^2) ; % plot the outer line X1 = X ; X1(2:end-1,2:end-1) = NaN ; Y1 = Y ; Y1(...

6 days ago | 0

| accepted

Answered

How do I subplot multiple tiles that I divided from a satellite image in one figure?

count = 0 ; for m=1:16 for n=1:16 count = count+1 ; subplot(16,16,count); imshow(tiles{m,n}); ...

How do I subplot multiple tiles that I divided from a satellite image in one figure?

count = 0 ; for m=1:16 for n=1:16 count = count+1 ; subplot(16,16,count); imshow(tiles{m,n}); ...

6 days ago | 1

Answered

Changing the color of a 3D plot

This command: h = plot( fitresult); You specify a marker/ different color for both the functions. h = plot( fitresult,'b'); ...

Changing the color of a 3D plot

This command: h = plot( fitresult); You specify a marker/ different color for both the functions. h = plot( fitresult,'b'); ...

6 days ago | 0

Answered

Select points inside a polygon

You can use the previous questions answer..with a slight change while saving the points. clc; clear all ; load("polygon1_x.ma...

Select points inside a polygon

You can use the previous questions answer..with a slight change while saving the points. clc; clear all ; load("polygon1_x.ma...

6 days ago | 1

Answered

Velocity potential with quiver command

You should use gradient. [u,v] = gradient(StreamFunction) ; quiver(x,y,u,v)

Velocity potential with quiver command

You should use gradient. [u,v] = gradient(StreamFunction) ; quiver(x,y,u,v)

6 days ago | 0

Answered

Plot a box around set of points

This question can be solved from your previous question which was answered. If (x,y) is your point and you want points around ...

Plot a box around set of points

This question can be solved from your previous question which was answered. If (x,y) is your point and you want points around ...

6 days ago | 2

| accepted

Answered

how can i plot positive magnitude only of a sine wave

% get the index of only positive values idx = DC_Voltage>=0 ; plot(DC_Voltage(idx))

how can i plot positive magnitude only of a sine wave

% get the index of only positive values idx = DC_Voltage>=0 ; plot(DC_Voltage(idx))

6 days ago | 1