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

Professional Interests: Mathematical Computing

Answered

Not enough input arguments

YOu have to define/ give values of f,ea,xl,xu to the function. I think you are running the function directly. f = your value...

Not enough input arguments

YOu have to define/ give values of f,ea,xl,xu to the function. I think you are running the function directly. f = your value...

4 jours ago | 0

Answered

How to stop a simple harmonic oscillator after one period

Knowing mass and spring constant of the pendulum, you can calculate the frequency, time period. Once time period is known, you c...

How to stop a simple harmonic oscillator after one period

Knowing mass and spring constant of the pendulum, you can calculate the frequency, time period. Once time period is known, you c...

4 jours ago | 0

Answered

How to display two animation in one plot?

https://in.mathworks.com/matlabcentral/answers/301358-how-do-i-do-multi-animated-lines-in-one-axes

How to display two animation in one plot?

https://in.mathworks.com/matlabcentral/answers/301358-how-do-i-do-multi-animated-lines-in-one-axes

4 jours ago | 0

Answered

how to remove NAN from a double inside a cell array?

You can fill the nans using fillmissing. Also you can do interpolation ang the values at the places of nan. Read about interp1. ...

how to remove NAN from a double inside a cell array?

You can fill the nans using fillmissing. Also you can do interpolation ang the values at the places of nan. Read about interp1. ...

4 jours ago | 0

Answered

How to plot an ellipse?

https://in.mathworks.com/matlabcentral/fileexchange/289-ellipse-m

How to plot an ellipse?

https://in.mathworks.com/matlabcentral/fileexchange/289-ellipse-m

5 jours ago | 0

Answered

Undefined function 'diff' for input arguments of type 'function_handle'.

function [Val1, Val2] = nonlinear1(x0) syms x; f = exp(2*sin(x)) - x; Val1 = f(x0); g = diff(f); Val2 =...

Undefined function 'diff' for input arguments of type 'function_handle'.

function [Val1, Val2] = nonlinear1(x0) syms x; f = exp(2*sin(x)) - x; Val1 = f(x0); g = diff(f); Val2 =...

5 jours ago | 0

Answered

For loop with decimal increment not seen as integer or logical value

lindex = 0:0.01:4 ; linc = zeros(3,10,401); for i = 1:length(lindex) linc(:,:,i) = W >= lindex(i) ; end Please note ...

For loop with decimal increment not seen as integer or logical value

lindex = 0:0.01:4 ; linc = zeros(3,10,401); for i = 1:length(lindex) linc(:,:,i) = W >= lindex(i) ; end Please note ...

5 jours ago | 0

| accepted

Answered

Find the intersecting points

If you have the image in hand. Get the locations/ positions i.e (x,y) for both the regions using logical indexing. Get the b...

Find the intersecting points

If you have the image in hand. Get the locations/ positions i.e (x,y) for both the regions using logical indexing. Get the b...

6 jours ago | 0

Answered

Plot non-continuous lines with markers

x = [1 2 3 4]; y = [2 3 2 1]; figure; plot(x, y, '-bo', 'LineWidth', 3, 'MarkerSize', 20, 'MarkerFaceColor', 'w', 'MarkerEdge...

Plot non-continuous lines with markers

x = [1 2 3 4]; y = [2 3 2 1]; figure; plot(x, y, '-bo', 'LineWidth', 3, 'MarkerSize', 20, 'MarkerFaceColor', 'w', 'MarkerEdge...

6 jours ago | 3

| accepted

Answered

How do I receive the touching points of a circle with given radius inside a curve?

Use this: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138&tab=function Also y...

How do I receive the touching points of a circle with given radius inside a curve?

Use this: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138&tab=function Also y...

8 jours ago | 0

Answered

define x and y for interpolation of scattered data

Let A be the matrix, which is of size m*n x = 1:n ; y = 1:m ; [X,Y] = meshgrid(x,y) ; xq = 1:0.5:n ; yq = 1:0.5:m ; ...

define x and y for interpolation of scattered data

Let A be the matrix, which is of size m*n x = 1:n ; y = 1:m ; [X,Y] = meshgrid(x,y) ; xq = 1:0.5:n ; yq = 1:0.5:m ; ...

8 jours ago | 0

Answered

How can I save data in a multidimensional array

As you have Table T in your hand. You have what you want in hand already. You can access your required array suing. T.Vego ...

How can I save data in a multidimensional array

As you have Table T in your hand. You have what you want in hand already. You can access your required array suing. T.Vego ...

8 jours ago | 0

| accepted

Answered

using a vector to represent three coefficients.

function [quadRoots,disc] = Q1_19000046(coeff) %[quadRoots,disc] = Q1_19000046(coeff); %Compute quadRoots and disc of quadrati...

using a vector to represent three coefficients.

function [quadRoots,disc] = Q1_19000046(coeff) %[quadRoots,disc] = Q1_19000046(coeff); %Compute quadRoots and disc of quadrati...

8 jours ago | 0

| accepted

Answered

Getting the max value of a certain column, fetching the entire row from a 3D matrix and write those in a new matrix

A = rand(68,8,30) ; % randmom data for demo col = 3 ; % third column from which max to be seeked [m,n,p] =size(A) ; ...

Getting the max value of a certain column, fetching the entire row from a 3D matrix and write those in a new matrix

A = rand(68,8,30) ; % randmom data for demo col = 3 ; % third column from which max to be seeked [m,n,p] =size(A) ; ...

8 jours ago | 0

Answered

How to smooth out a surf plot

surf(z_vec, v2in_vec, all_v2.') Increase the dimensions of z_vec and v2in_vec. Make the difference/ step size small to increase...

How to smooth out a surf plot

surf(z_vec, v2in_vec, all_v2.') Increase the dimensions of z_vec and v2in_vec. Make the difference/ step size small to increase...

8 jours ago | 0

Answered

Classification learner app input issue

Two options: Merge all the csv files into single csv file and load the data through csv file. Load each file data into works...

Classification learner app input issue

Two options: Merge all the csv files into single csv file and load the data through csv file. Load each file data into works...

8 jours ago | 0

Answered

How to make visualization of multi-vehicle motion?

Use interpolation and get all the vehicles to the same time vector. Read about interp1. When you do this, your position of each ...

How to make visualization of multi-vehicle motion?

Use interpolation and get all the vehicles to the same time vector. Read about interp1. When you do this, your position of each ...

11 jours ago | 0

| accepted

Answered

How to sum columns of a matrix in MATLAB in specified number of columns?

A = rand(2500,500) ; B = reshape(A,2500,10,[]) ; iwant = squeeze(B,2) ;

How to sum columns of a matrix in MATLAB in specified number of columns?

A = rand(2500,500) ; B = reshape(A,2500,10,[]) ; iwant = squeeze(B,2) ;

11 jours ago | 0

Answered

How to make every element in the form of isoparametric, Lagrangian quadratic element?

nodes = [nodes(:,1) nodes(:,5) nodes(:,2) nodes(:,6) nodes(:,3) nodes(:,7) nodes(:,4) nodes(:,8) nodes(:,9)] ;

How to make every element in the form of isoparametric, Lagrangian quadratic element?

nodes = [nodes(:,1) nodes(:,5) nodes(:,2) nodes(:,6) nodes(:,3) nodes(:,7) nodes(:,4) nodes(:,8) nodes(:,9)] ;

11 jours ago | 0

Answered

Obtaining the pixel values within an ROI

As you have the coordinates for the boundary, use inpolygon and get the locations of the points lying inside the clsoed region.....

Obtaining the pixel values within an ROI

As you have the coordinates for the boundary, use inpolygon and get the locations of the points lying inside the clsoed region.....

11 jours ago | 0

Answered

contour plot for 3d data with x, y, z and c in matlab

Read abouit contour3, slice.

contour plot for 3d data with x, y, z and c in matlab

Read abouit contour3, slice.

12 jours ago | 0

Answered

How to use a shapefile to extract regions outside the shapefile?

Read the shape file using shaperead. This has single/ multiple regions. Pick one closed region fromt he shape file Take the ...

How to use a shapefile to extract regions outside the shapefile?

Read the shape file using shaperead. This has single/ multiple regions. Pick one closed region fromt he shape file Take the ...

18 jours ago | 0

Answered

Choose n points randomly from a circle, how to calculate the probability that all the points are in one semicircle?

% Generate circle r = 1. ; % radius th = linspace(0,2*pi) ; x = r*cos(th) ; y = r*sin(th) ; % Geenrate random points...

Choose n points randomly from a circle, how to calculate the probability that all the points are in one semicircle?

% Generate circle r = 1. ; % radius th = linspace(0,2*pi) ; x = r*cos(th) ; y = r*sin(th) ; % Geenrate random points...

18 jours ago | 0

Answered

Generate (X,Y) grid coordinates from within contour boundary

Use boundary to get the boundary of your required region. Use inpolygon with the generated grid and boundary points to get the...

Generate (X,Y) grid coordinates from within contour boundary

Use boundary to get the boundary of your required region. Use inpolygon with the generated grid and boundary points to get the...

18 jours ago | 0

| accepted

Answered

I want to read image name to be an string

imgNames = dir('*.jpg') ; N = length(imgNames) ; for i = 1:N img = imgNames(i).name end

I want to read image name to be an string

imgNames = dir('*.jpg') ; N = length(imgNames) ; for i = 1:N img = imgNames(i).name end

20 jours ago | 0

Answered

How to draw three graphs together to make a composite figure

C = [0 0 ; 1 0 ; 1 1 ; 0 1 ; 0 0 ] ; A = [0 1 ; 0 1.25 ; 1 1.25 ; 1 1 ; 0 1] ; B = [1 0 ; 1 1 ; 1.25 1 ; 1.25 0 ; 1 0] ; ...

How to draw three graphs together to make a composite figure

C = [0 0 ; 1 0 ; 1 1 ; 0 1 ; 0 0 ] ; A = [0 1 ; 0 1.25 ; 1 1.25 ; 1 1 ; 0 1] ; B = [1 0 ; 1 1 ; 1.25 1 ; 1.25 0 ; 1 0] ; ...

20 jours ago | 1

| accepted

Answered

Converting output from 'find' into a logical

Read about ind2vec. By the way you can straightaway logical, there is no need to use find.

Converting output from 'find' into a logical

Read about ind2vec. By the way you can straightaway logical, there is no need to use find.

20 jours ago | 0

Answered

Find the surface area of an object using stereo vision.

After using delaunayTriangulation, you have vertices and nodal connectivity in hand. Then you can use this function to get the a...

Find the surface area of an object using stereo vision.

After using delaunayTriangulation, you have vertices and nodal connectivity in hand. Then you can use this function to get the a...

21 jours ago | 0