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

Professional Interests: Mathematical Computing

Answered

How can I create a random matrix with no duplicate value in the line

doc rand.. K = rand(10,7);

How can I create a random matrix with no duplicate value in the line

doc rand.. K = rand(10,7);

17 hours ago | 0

Answered

Replace matrix elements by the difference with the highest alternative in the same row

clc; clear all; A = [1 6 13 3 9 2 7 11 20] ; iwant = zeros(size(A)) ; for i = 1:size(A,1) ...

Replace matrix elements by the difference with the highest alternative in the same row

clc; clear all; A = [1 6 13 3 9 2 7 11 20] ; iwant = zeros(size(A)) ; for i = 1:size(A,1) ...

18 hours ago | 0

| accepted

Answered

Undefined function 'quorem' for input arguments of type 'double'

use [q, r] = quorem(sym(nRowh),sym(20)) _quorem_ works on symbolic variables. Convert your double to sym using ...

Undefined function 'quorem' for input arguments of type 'double'

use [q, r] = quorem(sym(nRowh),sym(20)) _quorem_ works on symbolic variables. Convert your double to sym using ...

20 hours ago | 0

| accepted

Answered

How to process a large file

You can specify the range in _csvread_. You can read it by chunks. Read the documentation. You can read the file using _xlsr...

How to process a large file

You can specify the range in _csvread_. You can read it by chunks. Read the documentation. You can read the file using _xlsr...

21 hours ago | 0

Answered

Numeric vs matrix array multiplication and division

\ this is mldivide. solves the system of linear equations A*x = B. / this is mrdivide. perform right-matrix division, which...

Numeric vs matrix array multiplication and division

\ this is mldivide. solves the system of linear equations A*x = B. / this is mrdivide. perform right-matrix division, which...

22 hours ago | 0

| accepted

Answered

find out which point is clicked in axes

You can use _knnsearch_ to get the closest point.

find out which point is clicked in axes

You can use _knnsearch_ to get the closest point.

23 hours ago | 0

Answered

hi i want to read a folder of images and i have to store their properties in a matrix...i.e, first image properties in first column and second image properties in second colum likewise..help me

clc; clear all ; F = dir('*.jpg'); % your images extension and you are in the present directory of images nimage = len...

hi i want to read a folder of images and i have to store their properties in a matrix...i.e, first image properties in first column and second image properties in second colum likewise..help me

clc; clear all ; F = dir('*.jpg'); % your images extension and you are in the present directory of images nimage = len...

23 hours ago | 0

| accepted

Answered

I want to compute the distance matrix for a set of latitude and longitude points that are each indexed with an ID number. so i have ID number 5 relates to Location (58.232, -83.948)

N = 10 ; % number of cities ids = 1:N ; % city id's x = rand(N,1) ; % random x data (lon) y = rand(N,1) ; % random...

I want to compute the distance matrix for a set of latitude and longitude points that are each indexed with an ID number. so i have ID number 5 relates to Location (58.232, -83.948)

N = 10 ; % number of cities ids = 1:N ; % city id's x = rand(N,1) ; % random x data (lon) y = rand(N,1) ; % random...

1 day ago | 0

Answered

Unable to plot 2 columns of a matrix against each other

Try n = 1 ; % play around with n plot(antenna1(1:end-n,1),antenna1(1:end-n,2))

Unable to plot 2 columns of a matrix against each other

Try n = 1 ; % play around with n plot(antenna1(1:end-n,1),antenna1(1:end-n,2))

1 day ago | 0

| accepted

Answered

How can i compare these two protein sequences?

Try W{ii,jj}=strcmp(Prot_H_cell(ii),Prot_M_cell(jj)) ;

How can i compare these two protein sequences?

Try W{ii,jj}=strcmp(Prot_H_cell(ii),Prot_M_cell(jj)) ;

1 day ago | 0

Answered

Returning error messages if input criteria not met

pt = [1,2] ; % change pt accordingly m = pt(1) ; n = pt(2) ; % check dimensions if ~(1<=m && m<=9) || ~...

Returning error messages if input criteria not met

pt = [1,2] ; % change pt accordingly m = pt(1) ; n = pt(2) ; % check dimensions if ~(1<=m && m<=9) || ~...

1 day ago | 0

Answered

How to permute the columns in a matrix in random way?

k = rand(100) ; ny =size(k,2) ; shuffle = randsample(1:ny,ny) ; k_shuffle = k(:,shuffle) ;

How to permute the columns in a matrix in random way?

k = rand(100) ; ny =size(k,2) ; shuffle = randsample(1:ny,ny) ; k_shuffle = k(:,shuffle) ;

1 day ago | 1

| accepted

Answered

How to read a line in atxt file with different formats?

data = importdata('yourfile.txt') ; num = data.data ;

How to read a line in atxt file with different formats?

data = importdata('yourfile.txt') ; num = data.data ;

1 day ago | 0

Answered

How to display axis on the image ?

Normal axis imshow('yourimage') ; axis on As shown on image imshow('image.png') pts = [ 4 67 ...

How to display axis on the image ?

Normal axis imshow('yourimage') ; axis on As shown on image imshow('image.png') pts = [ 4 67 ...

1 day ago | 0

Answered

Here is array file i am attaching, i want to plot only non-zero values without deleting zeros,

load array2 ; idx = 1:length(n1) ; plot(idx(n1~=0),n1(n1~=0),'r')

Here is array file i am attaching, i want to plot only non-zero values without deleting zeros,

load array2 ; idx = 1:length(n1) ; plot(idx(n1~=0),n1(n1~=0),'r')

2 days ago | 0

Answered

3D Matrix interpolate values and plot

Robo = [2 4 4] ; dx = 0.5 ; dy = 0.5 ; dz = 0.5 ;% you can pick your desired resolution (10mm in m) x = 0:dx:Robo(1)...

3D Matrix interpolate values and plot

Robo = [2 4 4] ; dx = 0.5 ; dy = 0.5 ; dz = 0.5 ;% you can pick your desired resolution (10mm in m) x = 0:dx:Robo(1)...

2 days ago | 0

Answered

Cropping a particular location of my input

YOu have to save the image first....let the image saved be 'test.jpg'. Then follow the below lines. It can be saved. What versio...

Cropping a particular location of my input

YOu have to save the image first....let the image saved be 'test.jpg'. Then follow the below lines. It can be saved. What versio...

2 days ago | 0

Answered

how to remove a column from a character matrix?

x= '1001 1001' ; idx = strfind(x,' ') ; % get space position x(idx-1) = [] ; x(end) = []

how to remove a column from a character matrix?

x= '1001 1001' ; idx = strfind(x,' ') ; % get space position x(idx-1) = [] ; x(end) = []

2 days ago | 0

| accepted

Answered

How do you fill a given geometry with the zig-zag lines or spiral lines ?

doc _patch_, _fill_ t = linspace(0,2*pi) ; x = sin(t) ; patch(t,x,'r')

How do you fill a given geometry with the zig-zag lines or spiral lines ?

doc _patch_, _fill_ t = linspace(0,2*pi) ; x = sin(t) ; patch(t,x,'r')

2 days ago | 0

Answered

Linking one column to two different columns?

K = rand(100,10) ; % some random data B = K ; % The result which I want % now pick two 5, 37 th row 7th, 9th c...

Linking one column to two different columns?

K = rand(100,10) ; % some random data B = K ; % The result which I want % now pick two 5, 37 th row 7th, 9th c...

2 days ago | 0

| accepted

Answered

Use these values and Matlab to find the sum of the 161st and 271st values of x

Home work...You have to do it on your own. Read about matrix/ vector indexing. If you have a amtrix _A_, you can access (i,j) el...

Use these values and Matlab to find the sum of the 161st and 271st values of x

Home work...You have to do it on your own. Read about matrix/ vector indexing. If you have a amtrix _A_, you can access (i,j) el...

2 days ago | 1

Answered

Banana Leaf Disease Identification Technique using

<http://ijaers.com/uploads/issue_files/1466598705-21%20IJAERS-JUN-2016-7-Banana%20Leaf%20Disease%20Identification%20Technique.pd...

Banana Leaf Disease Identification Technique using

<http://ijaers.com/uploads/issue_files/1466598705-21%20IJAERS-JUN-2016-7-Banana%20Leaf%20Disease%20Identification%20Technique.pd...

2 days ago | 0

Answered

Concatenate and extract elements of cell array to a non-cell array

A = {[1 3],[],[2 3 7 8];[2 4 5 7],[4 7 8],[];[],[],[]} ; A = A(:) ; B = zeros(size(A)) ; for i = 1:numel(A) i...

Concatenate and extract elements of cell array to a non-cell array

A = {[1 3],[],[2 3 7 8];[2 4 5 7],[4 7 8],[];[],[],[]} ; A = A(:) ; B = zeros(size(A)) ; for i = 1:numel(A) i...

2 days ago | 1

| accepted

Answered

How to figure out which rows I delete and record them?

You may follow something like below: V =[ 1 9 0 8; 7 2 NaN 13; 4 2 10 0; 1 Inf 14 7 ] ; Vnew = [ 1 9 0 8; 4 2 10 0; ]; ...

How to figure out which rows I delete and record them?

You may follow something like below: V =[ 1 9 0 8; 7 2 NaN 13; 4 2 10 0; 1 Inf 14 7 ] ; Vnew = [ 1 9 0 8; 4 2 10 0; ]; ...

2 days ago | 0

Answered

In MATLAB Plots, how can I add Circles, Crosses, Diamonds symbols to long data curves?

You can follow some thing like this: x = test(:,1); x=x'; y1 = test(:,2); y1 = y1'; y2 = test(:,3); y2 = y2'; y3 =...

In MATLAB Plots, how can I add Circles, Crosses, Diamonds symbols to long data curves?

You can follow some thing like this: x = test(:,1); x=x'; y1 = test(:,2); y1 = y1'; y2 = test(:,3); y2 = y2'; y3 =...

2 days ago | 0

Answered

Hi, Guyz i need a help, i have an array that contain both zero and non-zero elemnts ,but i want to plot only non-zero elements without deleting zeros?

idx = length(data); plot(idx(data~=0),data(data~=0)) where data is your array.

Hi, Guyz i need a help, i have an array that contain both zero and non-zero elemnts ,but i want to plot only non-zero elements without deleting zeros?

idx = length(data); plot(idx(data~=0),data(data~=0)) where data is your array.

3 days ago | 0

Answered

matlab code to find the next highest integer

a=[1 2 3 4 8 10 24] ; b = a(a>6) ; iwant = b(1)

matlab code to find the next highest integer

a=[1 2 3 4 8 10 24] ; b = a(a>6) ; iwant = b(1)

3 days ago | 0

Answered

How can I extract multiple rows from large data table in matlab that meet a certain condition to then be saved as new data table ? Note: the condition is extract an one row from each ten rows till end.

Use xlsread to read the data into matlab. [num,txt,raw] = xlsread('your excel.xlsx'); num will be your 1000*10 data. You...

How can I extract multiple rows from large data table in matlab that meet a certain condition to then be saved as new data table ? Note: the condition is extract an one row from each ten rows till end.

Use xlsread to read the data into matlab. [num,txt,raw] = xlsread('your excel.xlsx'); num will be your 1000*10 data. You...

3 days ago | 0

Answered

Visualize many figures in one

If you want all plots on one...use _hold on_. Try to put _legend_ too. If you want in different plots and in one figure, you nee...

Visualize many figures in one

If you want all plots on one...use _hold on_. Try to put _legend_ too. If you want in different plots and in one figure, you nee...

3 days ago | 0