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

Professional Interests: Mathematical Computing

Answered

interpolation of 3d data

data = importdata('slice1_grid1.txt') ; x = data(:,1) ; y = data(:,2) ; z = data(:,3) ; %% Make grid m = 5000 ; n = 5...

interpolation of 3d data

data = importdata('slice1_grid1.txt') ; x = data(:,1) ; y = data(:,2) ; z = data(:,3) ; %% Make grid m = 5000 ; n = 5...

21 hours ago | 0

Answered

Plot function over two intervals

m = 500 ; x = linspace(-1,3,m) ; f = zeros(size(x)) ; f(x>=-1 & x <=0) = 1 ; f(x>=0 & x <2) = -1 ; plot(x,f)

Plot function over two intervals

m = 500 ; x = linspace(-1,3,m) ; f = zeros(size(x)) ; f(x>=-1 & x <=0) = 1 ; f(x>=0 & x <2) = -1 ; plot(x,f)

22 hours ago | 0

Answered

Merging multiple csv files into one mat file

csvfiles = dir('*.csv') ; N = length(csvfiles) ; A = cell(N,1) ; for i = 1:N A{i} = csvread(csvfiles(i).name) end

Merging multiple csv files into one mat file

csvfiles = dir('*.csv') ; N = length(csvfiles) ; A = cell(N,1) ; for i = 1:N A{i} = csvread(csvfiles(i).name) end

23 hours ago | 0

| accepted

Answered

how do i adjust the alignment of the columns?

I would suggest this: a = [1 0.74 0.56 0.66]; b = (1:25)'; c = b * a; T = table(c(:,1),c(:,2),c(:,3),c(:,4),'VariableNames...

how do i adjust the alignment of the columns?

I would suggest this: a = [1 0.74 0.56 0.66]; b = (1:25)'; c = b * a; T = table(c(:,1),c(:,2),c(:,3),c(:,4),'VariableNames...

23 hours ago | 0

Answered

How to retrieve pixel coordinates from sentinel lat/lon arrays for a given location?

Read about scatteredInterpolant if you want to do by intpolation......Read about knnsearch if you want a neasrest value.

How to retrieve pixel coordinates from sentinel lat/lon arrays for a given location?

Read about scatteredInterpolant if you want to do by intpolation......Read about knnsearch if you want a neasrest value.

23 hours ago | 0

Answered

Deleting data from a graphics

x = rand(10,1) ; y = rand(10,1) ; figure hold on for i = 1:10 h = plot(x(i),y(i),'.r') ; end title('delete some ...

Deleting data from a graphics

x = rand(10,1) ; y = rand(10,1) ; figure hold on for i = 1:10 h = plot(x(i),y(i),'.r') ; end title('delete some ...

1 day ago | 0

| accepted

Answered

How to compare each element of matrix having binary numbers?

idx = a ==b

How to compare each element of matrix having binary numbers?

idx = a ==b

1 day ago | 0

| accepted

Answered

How to get distinct markers for scatter plot while reading data from excel?

x = rand(100,1) ; y = rand(100,1) ; G = 4 ; % four groups idx = kmeans([x y],4) ; figure hold on M ={'+','*','s','...

How to get distinct markers for scatter plot while reading data from excel?

x = rand(100,1) ; y = rand(100,1) ; G = 4 ; % four groups idx = kmeans([x y],4) ; figure hold on M ={'+','*','s','...

1 day ago | 0

| accepted

Answered

Asking about resolution of coast.mat dataset

It is not uniform...it keeps changing......you may check it on your own..... load coast.mat unique(diff(long)) unique(diff...

Asking about resolution of coast.mat dataset

It is not uniform...it keeps changing......you may check it on your own..... load coast.mat unique(diff(long)) unique(diff...

2 days ago | 0

| accepted

Answered

How to rotate an image and its coordinate around a point in it?

Refer here: https://stackoverflow.com/questions/19684617/image-rotation-by-matlab-without-using-imrotate

How to rotate an image and its coordinate around a point in it?

Refer here: https://stackoverflow.com/questions/19684617/image-rotation-by-matlab-without-using-imrotate

2 days ago | 0

Answered

The radii of my binary pattern in respect to its boundaries

I = imread('Image.bmp'); % Remove white background around corners grayImage = min(I, [], 3); binaryImage = grayImage < 200; ...

The radii of my binary pattern in respect to its boundaries

I = imread('Image.bmp'); % Remove white background around corners grayImage = min(I, [], 3); binaryImage = grayImage < 200; ...

2 days ago | 0

Answered

Find at least 5 consecutive values above a certain threshold in a vector?

N(N>4)

Find at least 5 consecutive values above a certain threshold in a vector?

N(N>4)

2 days ago | 0

Answered

Finding arrays above threshold value

% Make some random data for demo A = cell(10,1) ; for i = 1:10 N = randperm(1000,1) ; A{i} = rand(N,1) ; end % ...

Finding arrays above threshold value

% Make some random data for demo A = cell(10,1) ; for i = 1:10 N = randperm(1000,1) ; A{i} = rand(N,1) ; end % ...

3 days ago | 1

Answered

how to know the column numbers of a matrix which contains values less than 50.

Let A be your row matrix. idx = A<50 ; idx = find(idx)

how to know the column numbers of a matrix which contains values less than 50.

Let A be your row matrix. idx = A<50 ; idx = find(idx)

3 days ago | 0

Answered

using nchoosek to gather possible combinations of data

N = length(x) ; idx = nchoosek(1:N,2) ; xi = x(idx) ; yi = y(idx) ; zi = z(idx) ;

using nchoosek to gather possible combinations of data

N = length(x) ; idx = nchoosek(1:N,2) ; xi = x(idx) ; yi = y(idx) ; zi = z(idx) ;

3 days ago | 0

| accepted

Answered

How can I represent a map with different with color value

Read about plot.....it takes input (x,y) and color vector 1*3. figure hold on for i = 1:10 x = rand ; y = rand ;...

How can I represent a map with different with color value

Read about plot.....it takes input (x,y) and color vector 1*3. figure hold on for i = 1:10 x = rand ; y = rand ;...

3 days ago | 0

Answered

compute iterations to calculate pairs of data that do not repeat

Read about nchoosek https://in.mathworks.com/help/matlab/ref/nchoosek.html

compute iterations to calculate pairs of data that do not repeat

Read about nchoosek https://in.mathworks.com/help/matlab/ref/nchoosek.html

3 days ago | 0

| accepted

Answered

could anyone help me to solve the issue for the following code.

Why you want to use a loop? i = 1:3 ; iwant = sum(i+1)

could anyone help me to solve the issue for the following code.

Why you want to use a loop? i = 1:3 ; iwant = sum(i+1)

3 days ago | 0

Answered

function as arguement in matlab

function c = test(fun,a,b) c = fun(a,b) Call a = rand ; b = rand ; c = test(@tan2d,a,b)

function as arguement in matlab

function c = test(fun,a,b) c = fun(a,b) Call a = rand ; b = rand ; c = test(@tan2d,a,b)

3 days ago | 0

Answered

Assigning values from small grid into larger grid using nearest coordinates

Read about knnsearch. This will give you indices and you can easily replace the values.

Assigning values from small grid into larger grid using nearest coordinates

Read about knnsearch. This will give you indices and you can easily replace the values.

3 days ago | 0

Answered

cell2mat error

C = [{'1 1 3 2' } {'2 3 5 2' } {'3 4 5 3' } {'4 1 4 3 '}] ; C = cell2mat(cellfun(@str2num,C,'UniformOutput',fa...

cell2mat error

C = [{'1 1 3 2' } {'2 3 5 2' } {'3 4 5 3' } {'4 1 4 3 '}] ; C = cell2mat(cellfun(@str2num,C,'UniformOutput',fa...

3 days ago | 0

| accepted

Answered

How do i convert my text file into a column array with the same format as it is in the text file ?

fid = fopen('TestLists.txt','r') ; S = textscan(fid,'%s','delimiter','\n') ; fclose(fid) ; S = S{1} ; S{1} % first line ...

How do i convert my text file into a column array with the same format as it is in the text file ?

fid = fopen('TestLists.txt','r') ; S = textscan(fid,'%s','delimiter','\n') ; fclose(fid) ; S = S{1} ; S{1} % first line ...

3 days ago | 0

| accepted

Answered

Display results from t-test after loop

YOu can make them a matrix...why structure? p_value_A = zeros(10,3) ; p_value_B = zeros(10,3) ; for subject = 1:10 ...

Display results from t-test after loop

YOu can make them a matrix...why structure? p_value_A = zeros(10,3) ; p_value_B = zeros(10,3) ; for subject = 1:10 ...

3 days ago | 0

Answered

How to Convert a column with Char in Cell matrice to Number?

A = {'Time' 'Name' 'Location' 'Duration' 'Remarks' '100' 'John' 'Abc' '1000' 'Nill' '101' ...

How to Convert a column with Char in Cell matrice to Number?

A = {'Time' 'Name' 'Location' 'Duration' 'Remarks' '100' 'John' 'Abc' '1000' 'Nill' '101' ...

3 days ago | 0

Answered

create an image from intensity value per pixel.

A = rand(512,512); imwrite(A,'myimage.png') ; figure imshow(A) figure imshow(imread('myimage.png'))

create an image from intensity value per pixel.

A = rand(512,512); imwrite(A,'myimage.png') ; figure imshow(A) figure imshow(imread('myimage.png'))

3 days ago | 0

Answered

temperature and gray level

I hope this demo code might help you: N = 100 ; x = rand(N,1) ; y = rand(N,1) ; s = rand(N,1) ; % Say intensity % A...

temperature and gray level

I hope this demo code might help you: N = 100 ; x = rand(N,1) ; y = rand(N,1) ; s = rand(N,1) ; % Say intensity % A...

3 days ago | 0

Answered

How to read and visualize my lidar data?

Is this fine? fid = fopen('n008-2018-08-01-15-16-36-0400__LIDAR_TOP__1533151061547455.pcd.bin', 'r'); data = fread(fid,'singl...

How to read and visualize my lidar data?

Is this fine? fid = fopen('n008-2018-08-01-15-16-36-0400__LIDAR_TOP__1533151061547455.pcd.bin', 'r'); data = fread(fid,'singl...

3 days ago | 0

Answered

Find row index of first 'True' value in column of table

Let T be your table. idx = contains(T.active,'True') ; iwant = find(idx) T(idx,:)

Find row index of first 'True' value in column of table

Let T be your table. idx = contains(T.active,'True') ; iwant = find(idx) T(idx,:)

3 days ago | 2

Answered

How to draw a 3D surface plot with some disordering points?

load data.mat ; xi = unique(x) ; yi = unique(y) ; [X,Y] = meshgrid(xi,yi) ; Z = griddata(x,y,z,X,Y) ; surf(X,Y,Z)

How to draw a 3D surface plot with some disordering points?

load data.mat ; xi = unique(x) ; yi = unique(y) ; [X,Y] = meshgrid(xi,yi) ; Z = griddata(x,y,z,X,Y) ; surf(X,Y,Z)

3 days ago | 0

| accepted

Answered

Create a 20x24 matrix with each individual column with random integers without duplicate

iwant = zeros(20,24) ; for i = 1:24 iwant(:,i) = randperm(20,20); end

Create a 20x24 matrix with each individual column with random integers without duplicate

iwant = zeros(20,24) ; for i = 1:24 iwant(:,i) = randperm(20,20); end

3 days ago | 1

| accepted