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

Professional Interests: Mathematical Computing

Answered

Entering file directory as an input

Multiple options: 1. You can use _uigetfile_ to browse to the location via mouse. 2. Give the input of file with path....

Entering file directory as an input

Multiple options: 1. You can use _uigetfile_ to browse to the location via mouse. 2. Give the input of file with path....

7 hours ago | 0

Answered

How to export the workspace variable INFORMATION, such as Name, Value, Bytes, Class.

S = whos ; S = struct2cell(S) xlswrite('myfile.xlsx',S)

How to export the workspace variable INFORMATION, such as Name, Value, Bytes, Class.

S = whos ; S = struct2cell(S) xlswrite('myfile.xlsx',S)

8 hours ago | 1

Answered

How to plot two column vector on the same scale

data = [1.22 1.01 2.31 2.31 4.12 4.13 1.74 1.78 1.30 1.04 3.13 3.13 3.76 3.76 4.12 4.11];...

How to plot two column vector on the same scale

data = [1.22 1.01 2.31 2.31 4.12 4.13 1.74 1.78 1.30 1.04 3.13 3.13 3.76 3.76 4.12 4.11];...

8 hours ago | 1

| accepted

Answered

sphere - increase granularity

n = 100 ; % you may change n [x,y,z] = sphere(n); surf(x,y,z)

sphere - increase granularity

n = 100 ; % you may change n [x,y,z] = sphere(n); surf(x,y,z)

8 hours ago | 1

| accepted

Answered

Passing function with parameters to another function

f1 = @(x,y) x(y) ; f2 = @(y) sin(y) ; f1(f2,pi/2)

Passing function with parameters to another function

f1 = @(x,y) x(y) ; f2 = @(y) sin(y) ; f1(f2,pi/2)

8 hours ago | 0

Answered

calculation variable x besselj

eqn = @(x) (x.*besselj(1, x))./besselj(0, x)-5 ; x0 = [1 4 7 10 12 15] ; x = fsolve(eqn,x0)

calculation variable x besselj

eqn = @(x) (x.*besselj(1, x))./besselj(0, x)-5 ; x0 = [1 4 7 10 12 15] ; x = fsolve(eqn,x0)

8 hours ago | 1

| accepted

Answered

how to encode a low pass filter to an image

You can do this using _blocproc_. Read about _blocproc_.

how to encode a low pass filter to an image

You can do this using _blocproc_. Read about _blocproc_.

9 hours ago | 0

| accepted

Answered

Show all decimal places

doc _format_. Read about _*format*_. format long should show what you want.

Show all decimal places

doc _format_. Read about _*format*_. format long should show what you want.

9 hours ago | 0

| accepted

Answered

remove elements from a matrix

If _A_ is your matrix: A(A(:,end)==1,end)=0 ;

remove elements from a matrix

If _A_ is your matrix: A(A(:,end)==1,end)=0 ;

9 hours ago | 0

Answered

How can I plot several graphs with slightly different name in a loop?

for i = 1:3 figure(i) ; h(i) = plot(rand(10,1)); end set(h(1),'linewidth',10)

How can I plot several graphs with slightly different name in a loop?

for i = 1:3 figure(i) ; h(i) = plot(rand(10,1)); end set(h(1),'linewidth',10)

10 hours ago | 0

Answered

find orientation associated with the edge in delaunay triangulation

You have vertices of triangle in hand...use this function: <https://in.mathworks.com/matlabcentral/fileexchange/37389-find-a...

find orientation associated with the edge in delaunay triangulation

You have vertices of triangle in hand...use this function: <https://in.mathworks.com/matlabcentral/fileexchange/37389-find-a...

10 hours ago | 1

| accepted

Answered

how do I plot data from two columns referring to all the unique value of a different column?

Let X, Y and cod_stif be your data [cod_stif,ia,ic] = unique(cod_stif) plot(X(ia),Y(ia))

how do I plot data from two columns referring to all the unique value of a different column?

Let X, Y and cod_stif be your data [cod_stif,ia,ic] = unique(cod_stif) plot(X(ia),Y(ia))

10 hours ago | 0

| accepted

Answered

How to rename files for many folders

This question is dicussed to death. Few useful links: <https://in.mathworks.com/matlabcentral/answers/1760-how-to-rename-a-b...

How to rename files for many folders

This question is dicussed to death. Few useful links: <https://in.mathworks.com/matlabcentral/answers/1760-how-to-rename-a-b...

10 hours ago | 0

| accepted

Answered

find the vertices from delaunay triangulation

x = rand(10,1) ; % a randoms data y = rand(10,1) ; dt = delaunayTriangulation(x,y) ; % delaunay triangulation ...

find the vertices from delaunay triangulation

x = rand(10,1) ; % a randoms data y = rand(10,1) ; dt = delaunayTriangulation(x,y) ; % delaunay triangulation ...

11 hours ago | 1

| accepted

Answered

huffman algoritm in matlab

prob = [0.49, 0.26, 0.12, 0.04,0.04, 0.03, 0.02] ; symbols = 1:length(prob); dict = huffmandict(symbols,prob) ...

huffman algoritm in matlab

prob = [0.49, 0.26, 0.12, 0.04,0.04, 0.03, 0.02] ; symbols = 1:length(prob); dict = huffmandict(symbols,prob) ...

12 hours ago | 1

Answered

Why I cannot type the path to the licence file?

You need to enter numbers there......you should be getting a serial key with certain number of digits while purchase.

Why I cannot type the path to the licence file?

You need to enter numbers there......you should be getting a serial key with certain number of digits while purchase.

13 hours ago | 0

Answered

Reverse character array using recursion

You can either use _fliplr_ or give indices in reverse. str = 'py' ; fliplr(str) str(end:-1:1)

Reverse character array using recursion

You can either use _fliplr_ or give indices in reverse. str = 'py' ; fliplr(str) str(end:-1:1)

13 hours ago | 0

Answered

Compute polynomial coefficient with unequal vector?

%% a random data x = rand(10,1) ; y = rand(7,1) ; % sort x in ascending order and pick first seven x = x(1:7)...

Compute polynomial coefficient with unequal vector?

%% a random data x = rand(10,1) ; y = rand(7,1) ; % sort x in ascending order and pick first seven x = x(1:7)...

13 hours ago | 0

| accepted

Answered

How to check if a point lies in the sector of a circle?

YOu should be having a set of points for *sector* and the points for *circle*. Use _inpolygon_ to know whether these points lie ...

How to check if a point lies in the sector of a circle?

YOu should be having a set of points for *sector* and the points for *circle*. Use _inpolygon_ to know whether these points lie ...

13 hours ago | 0

| accepted

Answered

How to Plot large Excel data in contour graphs format?

load the data from excel into matlab using _xlsread_ and then use _contour_ to plot contours and _surf_ to plot a surface. Read ...

How to Plot large Excel data in contour graphs format?

load the data from excel into matlab using _xlsread_ and then use _contour_ to plot contours and _surf_ to plot a surface. Read ...

13 hours ago | 0

Answered

How to write image

doc _imwrite_ <https://in.mathworks.com/help/matlab/ref/imwrite.html>

How to write image

doc _imwrite_ <https://in.mathworks.com/help/matlab/ref/imwrite.html>

13 hours ago | 1

Answered

Question re: making interior nodes

For meshing a rectangular/ square region with node numbers, you can have a look on this link: <https://in.mathworks.com/matlabce...

Question re: making interior nodes

For meshing a rectangular/ square region with node numbers, you can have a look on this link: <https://in.mathworks.com/matlabce...

14 hours ago | 0

Answered

How can i Break a sampled signal up into 4 sections to use for 4 seperate fft calculations

doc _reshape_. YOu can split the signal into four using reshape. But see to it that the signal length is divisible by 4. ...

How can i Break a sampled signal up into 4 sections to use for 4 seperate fft calculations

doc _reshape_. YOu can split the signal into four using reshape. But see to it that the signal length is divisible by 4. ...

15 hours ago | 0

Answered

A code for a vector that doubles the elements that are positive and are divisible by 2 or 5, and raise to the power 4 the elements that are negative but greater than -3.

This time you got help, next time we are not going to answer your HomeWork question. I advice you to learn MATLAB. V=[...

A code for a vector that doubles the elements that are positive and are divisible by 2 or 5, and raise to the power 4 the elements that are negative but greater than -3.

This time you got help, next time we are not going to answer your HomeWork question. I advice you to learn MATLAB. V=[...

15 hours ago | 0

Answered

How to calculate the low and the high value of the threshold (histogram) ?

doc _min_ and _max_. Also see this code by *Image Analyst* [pixelCounts, grayLevels] = imhist(grayImage); minGrayLev...

How to calculate the low and the high value of the threshold (histogram) ?

doc _min_ and _max_. Also see this code by *Image Analyst* [pixelCounts, grayLevels] = imhist(grayImage); minGrayLev...

15 hours ago | 0

Answered

Calculate the volume of a concave object.

Try this: <http://in.mathworks.com/matlabcentral/fileexchange/26982-volume-of-a-surface-triangulation>

Calculate the volume of a concave object.

Try this: <http://in.mathworks.com/matlabcentral/fileexchange/26982-volume-of-a-surface-triangulation>

15 hours ago | 0

Answered

Figure with 2 different x-axes

Refer this: <https://in.mathworks.com/help/matlab/creating_plots/graph-with-multiple-x-axes-and-y-axes.html>

Figure with 2 different x-axes

Refer this: <https://in.mathworks.com/help/matlab/creating_plots/graph-with-multiple-x-axes-and-y-axes.html>

15 hours ago | 0

Answered

not sure how to answer this question, class has no matlab book and is only 40 min a week.

SGfun = @(API) 141.5/(API+131.5) ; Mfun = @(Tb,SG) 42.965*exp(2.097*10^-4*Tb-7.78712*SG+2.08476*10^-3 *Tb*SG)*Tb^1.26007*SG...

not sure how to answer this question, class has no matlab book and is only 40 min a week.

SGfun = @(API) 141.5/(API+131.5) ; Mfun = @(Tb,SG) 42.965*exp(2.097*10^-4*Tb-7.78712*SG+2.08476*10^-3 *Tb*SG)*Tb^1.26007*SG...

15 hours ago | 0

Answered

How to use gradient or diff function as fitness function for fmincon

Note that your _deriv2_ is only function of x. (deriv2 = 6*x), so you have to supply only _x_ bounds. Check the below code. ...

How to use gradient or diff function as fitness function for fmincon

Note that your _deriv2_ is only function of x. (deriv2 = 6*x), so you have to supply only _x_ bounds. Check the below code. ...

16 hours ago | 1