# KSSV

https://sites.google.com/site/kolukulasivasrinivas/ Professional Interests: Mathematical Computing

**Programming Languages:**

Python, MATLAB, Fortran

**Spoken Languages:**

English, Hindi, Telugu

**Professional Interests:**

**Statistics**

RANK**7**

of 271,451

REPUTATION**25,179**

CONTRIBUTIONS

**19** Questions

**10,997** Answers

ANSWER ACCEPTANCE **
78.95%
**

VOTES RECEIVED**3,163**

RANK**104** of 18,304

REPUTATION**10,053**

AVERAGE RATING**4.60**

CONTRIBUTIONS**30** Files

DOWNLOADS **449**

ALL TIME DOWNLOADS**93938**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Show only two y values in a plot

tol = 10^-3 ; % fix your tolerance idx = abs(wavelength-0.02)<=tol | abs(wavelength-0.04)<=tol ; plot(time(idx),wavelength(...

2 days ago | 0

How to identify negative slope from plot data?

t = linspace(0,2*pi) ; y = sin(t) ; m = [0 diff(y)./diff(t)] ; plot(t,y) ; hold on plot(t(m<0),y(m<0),'+r') plot(t(m...

2 days ago | 0

How to replace 0 value with 3 in Matlab

c5 = Dataset(:,5) ; % Find the number of 0, 1, 2 idx = c5 == 0 | c5 == 1 | c5 == 2 ; % gives logical indices nnz(idx) ...

2 days ago | 0

How to multiply each term in a n*n matrix with elements in a column matrix

A=[ 0.34005, 1.15985, -1.42862; 0.45204, -0.12963, -0.07851; 0.18586, -0.49792, 0.56187; 0.20188, 0.19786, -0.54699] ; B=[0; 0;...

3 days ago | 0

I want help solving differential equations

syms x y(x); eqn = diff(y,x)==exp(x)/(2*y) sol = dsolve(eqn)

3 days ago | 0

| accepted

Which approach is useful here to get a plot?

Check and then use. I have quickly typed it without much thought. n1 = linspace(0,1) ; n2 = linspace(0,1) ; n = cat(3,n1,n2...

3 days ago | 0

| accepted

image storage with index type 0000

for i = 1:10 name = ['ortophoto_',sprintf('%.4d',i),'.bmp'] end

4 days ago | 0

How to return the coordinates of the specified point in the scatter image to the main function

REad about ginput, getpts

5 days ago | 0

How do I make my circle display in pink and background in white color?

[m,n] = deal(500) ; % side of image I = ones(m,n,3) ; % initialize image with white background % GEt cirlce on the image...

6 days ago | 0

| accepted

Can anyone explain this step:? Contour function

[X,Y,Z] = peaks(50) ; c = contour(X,Y,Z) ; hold on plot(c(1,:),c(2,:),'*r') axis([-3 3 -3 3]) It gives you the (x,y) coord...

8 days ago | 0

How to extract multiple location data from a netCDF file

To know the variables in ncfile use ncdisp, ncinfo. To load variables from nc to matlab use ncread. To load data from excel ...

9 days ago | 0

how to solve error using horzcat dimensions of array being concatenated are not consistent

% running function_simulasi clear clc x0 = 0.02; %g/L tspan = (0:2:80); [t, x]=ode23('function_simulasi',tspan,x0); plot(t...

9 days ago | 0

Generate inner values of y for each x based on n

clc; clear all ; clear all clc n = 4; % number of divisions on the boundary x1 = linspace(0,2,n); y1_x1 = sqrt(1-( (x1.^2)/...

9 days ago | 0

| accepted

Help for engineering equations

The logic sounds simple. LHS (theta) can be any physical property like critical temperature, critical pressure, boiling point te...

10 days ago | 1

| accepted

How will change the scale value in the figure?

Read about ylim ylim([0 6*10^6])

12 days ago | 0

| accepted

Make 3 dimensional matrix

[r,c] = size(val); nlay = 10 ; iwant = permute(reshape(val',[c,r/nlay,nlay]),[2,1,3]);

12 days ago | 0

I wanna make a .mat file

A = rand(10) ; str = 'The above is matrix' ; save test.mat ; % save A, str into mat file load test.mat ; % load the mat file...

13 days ago | 0

Basic 'for loop' problem: it stops after several iterations

I don't know why you are doing this, but the elow should work. c = zeros(11); for a = 0:0.1:1 b = 10*a + 1; c (1, f...

13 days ago | 0

How can I read my jpeg file in matlab as .mat file

REad about imread. I = imread(myjpeg) ; save data.mat

13 days ago | 0

| accepted

How to create a chloropleth map using the mean of the shapefiles sub-fields from a raster file?

https://in.mathworks.com/matlabcentral/answers/407463-how-to-subset-the-matrix-array-with-shape-file https://in.mathworks.com/...

13 days ago | 0

how to Solve the ordinary differential equation (ODE) in matlab? dx/dt=5x−3

syms x(t) eqn = diff(x,t)==5*x-3; s = dsolve(eqn)

14 days ago | 1

Matlab Array indixing error

In MATLAB the indices should be posittive integers or logicals. If not it will throw the error which you have shown. % EXample ...

16 days ago | 1

| accepted

How to assign data to dynamic variable

c = 1:10 ; a = cell(length(c),1) ; for i = 1:length(c) a{i} = 2*[1:i] ; end celldisp(a) You can access cell a by...

16 days ago | 1

| accepted

Check dates if palindrome

t = datetime(2023,3,20) ; t.Format = 'Mddyy' ; if isPalindrome(char(t)) fprintf('%s is a Palindrome\n',char(t)) end ...

16 days ago | 0

matlab generated.stl file

https://in.mathworks.com/matlabcentral/fileexchange/4512-surf2stl

16 days ago | 0

Partial derivative with respect to x^2

syms x y z f= (x^5*y^3+ z^2*x^2+y*x) / (x^3*y+x*y) dfdx = diff(f,x) dfdx2 = diff(dfdx,x)

16 days ago | 0

How to to interpolate missing data (two peaks) on 3D graph on MATLAB?

T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1198108/data2.csv') ; data = table2array(T) ; ...

16 days ago | 0

| accepted

How to find the y from given x on fit line?

Yes very much it is possible. Read about interp1. Also have a look on polyfit and polyval.

22 days ago | 0

Area plot matlab colors

figure hold on area(array1,'EdgeColor','none','FaceColor','r'); area(array2,'EdgeColor','none','FaceColor','b'); area(arra...

22 days ago | 0