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

Professional Interests: Mathematical Computing

Answered

How do I separate negative datas with their row?

Let H be your third column. idx = H<0 ; % get all negative values logical indices lon1 = lon(idx) ; lat1 = lat(idx) ; H1...

How do I separate negative datas with their row?

Let H be your third column. idx = H<0 ; % get all negative values logical indices lon1 = lon(idx) ; lat1 = lat(idx) ; H1...

28 minutes ago | 0

Answered

Find intersection points between lines

You can consider using this file exchange to find the point of intersections. https://in.mathworks.com/matlabcentral/fileexcha...

Find intersection points between lines

You can consider using this file exchange to find the point of intersections. https://in.mathworks.com/matlabcentral/fileexcha...

2 hours ago | 0

Answered

Plotting for loop with two outputs

X= 2:1000000; n = length(X) ; L = zeros(1,n) ; for i = 1:n L=HW32P12Function(X(i)); end figure(1) loglog(X,L) gri...

Plotting for loop with two outputs

X= 2:1000000; n = length(X) ; L = zeros(1,n) ; for i = 1:n L=HW32P12Function(X(i)); end figure(1) loglog(X,L) gri...

4 hours ago | 0

Answered

How can I draw and descretize(into grids or mesh) this domain in 2D.

You can use transfinite interpolation. Refer the below examples: https://in.mathworks.com/matlabcentral/fileexchange/40618-gri...

How can I draw and descretize(into grids or mesh) this domain in 2D.

You can use transfinite interpolation. Refer the below examples: https://in.mathworks.com/matlabcentral/fileexchange/40618-gri...

3 days ago | 1

| accepted

Answered

Find min and max values in a constant interval.

If A is your complete matrix. t = A(:,1) ; % this is seconds column iwant = A(t==30,:) ; % extract chunk which is for 30 ...

Find min and max values in a constant interval.

If A is your complete matrix. t = A(:,1) ; % this is seconds column iwant = A(t==30,:) ; % extract chunk which is for 30 ...

3 days ago | 0

Answered

How to fix the Dot indexing is not supported for variables of this type error?

Replace (i.j) with (i,j). There is . (dot) between i and j; replace it with comma. it seems a typo error.

How to fix the Dot indexing is not supported for variables of this type error?

Replace (i.j) with (i,j). There is . (dot) between i and j; replace it with comma. it seems a typo error.

3 days ago | 1

Answered

Plot3 to import data from Excel

T = xlsread('calculations.xlsx') ; plot(T(:,1),T(:,2:end))

Plot3 to import data from Excel

T = xlsread('calculations.xlsx') ; plot(T(:,1),T(:,2:end))

3 days ago | 0

Answered

How to save the values of (x,C) in file 1 and (x,y) in file 2 to plot them in file 3.. the description in the code below

% file 1 clc; clear; x=[1 3 2 5 8] ; C = zeros(10,length(x)) ; for i=1:10 C(i,:)=i*x; end writematrix(C,'file1.txt...

How to save the values of (x,C) in file 1 and (x,y) in file 2 to plot them in file 3.. the description in the code below

% file 1 clc; clear; x=[1 3 2 5 8] ; C = zeros(10,length(x)) ; for i=1:10 C(i,:)=i*x; end writematrix(C,'file1.txt...

3 days ago | 0

| accepted

Answered

how to find specific value in a table?

idx = hsl.clusternya==3 ; % logical indexing T(idx,:)

how to find specific value in a table?

idx = hsl.clusternya==3 ; % logical indexing T(idx,:)

3 days ago | 1

| accepted

Answered

If statement to target certain area of f(i,j)?

% Subroutine function k=X(x,y,dx) if (x <=5 && y <=2) || (x >= 10 && y >= 10) constant = 85; % beta else constant ...

If statement to target certain area of f(i,j)?

% Subroutine function k=X(x,y,dx) if (x <=5 && y <=2) || (x >= 10 && y >= 10) constant = 85; % beta else constant ...

3 days ago | 0

| accepted

Answered

help --- symbolic expression or function

syms x y z one = 3*x +2*y - z == 10; two = -x + 3*y + 2*z == 5; three = x -y - z == -1 ; s = solve({one,two,three},x,y,z) ; ...

help --- symbolic expression or function

syms x y z one = 3*x +2*y - z == 10; two = -x + 3*y + 2*z == 5; three = x -y - z == -1 ; s = solve({one,two,three},x,y,z) ; ...

3 days ago | 1

Answered

How to add (combine) together two structures with the same fields?

clc; clear ; s1.name = 'Tom' ; s1.sex = 'm'; s1.age = 25 ; s2.name = 'Harry' ; s2.sex = 'f'; s2.age = 26 ; % Structur...

How to add (combine) together two structures with the same fields?

clc; clear ; s1.name = 'Tom' ; s1.sex = 'm'; s1.age = 25 ; s2.name = 'Harry' ; s2.sex = 'f'; s2.age = 26 ; % Structur...

3 days ago | 0

| accepted

Answered

I'm plotting a solution to a PDE using surf but the graph turns out wrong?

MAy be you are looking for this: n=1:10 ; tRange = 0:0.05:1; [n,t] = meshgrid(n,tRange); u = (4./(n.^3*pi^3)+(4...

I'm plotting a solution to a PDE using surf but the graph turns out wrong?

MAy be you are looking for this: n=1:10 ; tRange = 0:0.05:1; [n,t] = meshgrid(n,tRange); u = (4./(n.^3*pi^3)+(4...

4 days ago | 0

Answered

Adding elements in column vectors

MAke a and b of equal dimension using linspace. and then add. Read about linspace.,

Adding elements in column vectors

MAke a and b of equal dimension using linspace. and then add. Read about linspace.,

4 days ago | 0

Answered

Plot data with date and time

thedates = datetime(datestr((x))); y = str2double(y) ; plot(thedates,y)

Plot data with date and time

thedates = datetime(datestr((x))); y = str2double(y) ; plot(thedates,y)

4 days ago | 1

| accepted

Answered

load a folder of excel files

excelFiles = dir('*.xlsx') ; N = length(excelFiles) ; for i = 1:N file = excelFiles(i).name ; T = readtable(file) ;...

load a folder of excel files

excelFiles = dir('*.xlsx') ; N = length(excelFiles) ; for i = 1:N file = excelFiles(i).name ; T = readtable(file) ;...

4 days ago | 1

| accepted

Answered

Calculate differences between all values elements in a vector and increase max diff by one

A = [2 3 1 4] ; B =[4 4 2 4]; AB = B-A ; [val,idx] = max(AB) ; A(idx) = A(idx)+1

Calculate differences between all values elements in a vector and increase max diff by one

A = [2 3 1 4] ; B =[4 4 2 4]; AB = B-A ; [val,idx] = max(AB) ; A(idx) = A(idx)+1

4 days ago | 1

Answered

merge duplicate entries and take average associated columns

A=[1 1 1 2 2 3 3 3 4 4 4 2 2 2 3 ]; % B = [ 1 2 3 4 2 3] B= A(diff([0 A])~=0)

merge duplicate entries and take average associated columns

A=[1 1 1 2 2 3 3 3 4 4 4 2 2 2 3 ]; % B = [ 1 2 3 4 2 3] B= A(diff([0 A])~=0)

4 days ago | 0

Answered

discrete line plot in matlab 2015?

Replace those values with NaN and plot: A =[1 0.122 0.05 0.093 0.113 6 0.18 0.071 0.135 0.168 10 NaN NaN NaN NaN ...

discrete line plot in matlab 2015?

Replace those values with NaN and plot: A =[1 0.122 0.05 0.093 0.113 6 0.18 0.071 0.135 0.168 10 NaN NaN NaN NaN ...

4 days ago | 0

| accepted

Answered

Hello everyone, how to record and save the coordinates of each image centroid point in a matrix in 'for loop'. Thank you very much. The code is as follows:

centroids = cell(numberOfFrames ,1) ; for i = 1:numberOfFrames centroids{i} = s.Centroid; end

Hello everyone, how to record and save the coordinates of each image centroid point in a matrix in 'for loop'. Thank you very much. The code is as follows:

centroids = cell(numberOfFrames ,1) ; for i = 1:numberOfFrames centroids{i} = s.Centroid; end

4 days ago | 0

| accepted

Answered

my code is not working

Increase the marker size and see. scatter3(xyz(:,1),xyz(:,3),xyz(:,2),10000,rgb,'.');

my code is not working

Increase the marker size and see. scatter3(xyz(:,1),xyz(:,3),xyz(:,2),10000,rgb,'.');

4 days ago | 0

Answered

How to omit zeros while using mean at varfun?

Convert zero's to NaN and use nanmean.

How to omit zeros while using mean at varfun?

Convert zero's to NaN and use nanmean.

4 days ago | 0

Answered

Apply image position data to an image (Excel data)

You can check that visually by plotting the dots on the image. I = imread(myimage) ; T = readtable(myexcelfile) ; % assumi...

Apply image position data to an image (Excel data)

You can check that visually by plotting the dots on the image. I = imread(myimage) ; T = readtable(myexcelfile) ; % assumi...

4 days ago | 0

| accepted

Answered

Extract data from a cell contains of alphabet and number

idx = loc+1 ; iwant = cell2mat(C{idx})

Extract data from a cell contains of alphabet and number

idx = loc+1 ; iwant = cell2mat(C{idx})

4 days ago | 0

Answered

how to concatenate multiple columns in one column of cell array?

files = dir('*.txt') ; % you are in the folder of files N = length(files) ; T = cell(N,1); for i = 1:N filename ...

how to concatenate multiple columns in one column of cell array?

files = dir('*.txt') ; % you are in the folder of files N = length(files) ; T = cell(N,1); for i = 1:N filename ...

4 days ago | 0

| accepted

Answered

Accessing multiple columns in cell array

A = cat(3,Data{:}) ; % convert cell array to 3D matrix m = cell2mat(mean(A(:,end,:))) % mean of last column

Accessing multiple columns in cell array

A = cat(3,Data{:}) ; % convert cell array to 3D matrix m = cell2mat(mean(A(:,end,:))) % mean of last column

5 days ago | 0

Answered

how to write 2 summations

thesum = 0 ; for i = 1:p for j = 1:m thesum = thesum+n(i,j) ; end end

how to write 2 summations

thesum = 0 ; for i = 1:p for j = 1:m thesum = thesum+n(i,j) ; end end

5 days ago | 0

Answered

Is there any way I can access all the surface coordinates of an imported .stl file?

gm = importGeometry(myfile); gm Check the LHS gm it has all the data you want.

Is there any way I can access all the surface coordinates of an imported .stl file?

gm = importGeometry(myfile); gm Check the LHS gm it has all the data you want.

5 days ago | 0

Answered

Geoplot with more data than Lat and Lon

Read about scatter. Have a look on mapping toolbox. https://in.mathworks.com/products/mapping.html

Geoplot with more data than Lat and Lon

Read about scatter. Have a look on mapping toolbox. https://in.mathworks.com/products/mapping.html

5 days ago | 0

Answered

How to find position (indices) of minimum element on each page of 4 dimensional matrix?

You can use the function min to achieve this. Read about it. % demo data using 3D matrix A(:,:,1) = [2 4; -2 1]; A(:,:,2) =...

How to find position (indices) of minimum element on each page of 4 dimensional matrix?

You can use the function min to achieve this. Read about it. % demo data using 3D matrix A(:,:,1) = [2 4; -2 1]; A(:,:,2) =...

5 days ago | 0