# KSSV

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

Professional Interests: Mathematical Computing

**Statistics**

RANK**8**

of 242,471

REPUTATION**20,557**

CONTRIBUTIONS

**19** Questions

**9,296** Answers

ANSWER ACCEPTANCE **
57.89%
**

VOTES RECEIVED**2,451**

RANK**109** of 16,991

REPUTATION**9,496**

AVERAGE RATING**4.60**

CONTRIBUTIONS**30** Files

DOWNLOADS **321**

ALL TIME DOWNLOADS**88546**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Contour Plot gives error

You cannot use contour with column data. You can use scatter to plot data or if your data is gridded consider using griddata or ...

3 hours ago | 0

Using epsilon in legend

plot(rand(1,10)) legend('\epsilon_2_1/\epsilon_1_1');

19 hours ago | 0

Incorrect dimensions for raising a matrix to a power

x=0:0.01:4 y=1./(sqrt((1-x.^2).^2+(4*0.01^2*x.^2)))

1 day ago | 0

Replace stale / repeating data with NaN in a table

Var1 = [ 3 , 2, 5, 4, 4 , 4, 4, 6, 2, 3 , 5, 5 ,5 ,5 ] ; % Var1 = [ 3 , 2, 5, 4, NaN , NaN, NaN, 6, 2, 3 , 5, NaN , NaN ,NaN ] ...

1 day ago | 0

How to loop through multiple text files and make plot for each one in a single script?

txtFiles = dir('*.txt') ; N = length(txtFiles) ; figure hold on for i = 1:N %Open and read txt file fid = fopen(t...

1 day ago | 0

| accepted

Replace number with text

Instead of a string, you can try replacing it with NaN. % finding positions of number 5 from table A. [i1,k1]=find(A==5); %...

2 days ago | 0

| accepted

Import multiple excel with different column size

xlFiles = dir('*.xlsx') ; % you are in the folder of files N = length(xlFiles) ; % Total number of files iwant = cell(N,1)...

2 days ago | 0

How to remove rows in table that have empty values

Let T be your table. idx = ismepty(T.(2)) ; T(idx,:) = [] ;

2 days ago | 0

Can you help me with the MATLAB code?

LEt a, b, c be your coefficients and (x,y) be your data. y0 = y ; % given data y1 = a+b*x+c*(x.^2-1) ; % approximated...

2 days ago | 0

How can I convert .mat file to .shp file?

Read about shapewrite. Refer this as an example: https://in.mathworks.com/matlabcentral/answers/419530-creating-a-shapefile-fr...

2 days ago | 0

How to substitute one value in vector by vector?

x=[-1 1 -1 1] ; iwant = cell(1,length(x)) ; for i = 1:length(x) if x(i) == -1 iwant{i} = [1 2 3 ]; ...

2 days ago | 0

| accepted

how to set legend in matlab

% Auto A = rand(10,2) ; plot(A) legend % Manually plot(A) legend('first','second')

2 days ago | 1

How to split a certain class of images in folder(image dataset contains more than 10,000 images) having different classes into separate folder or location.

T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/747179/FETAL_PLANES_DB_data.xlsx') Now you can ex...

2 days ago | 1

row of a random size matrix

A = rand(5,4) ; a = num2cell(A',1) ; A(1,:) a{1}

3 days ago | 0

Finding the mean at each interval

T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/746119/Data.xlsx') ; Temp = T.Temp ; V = T.V ; ...

3 days ago | 0

Using while loop in normalized matrix

x = 0 ; y = 0 ; a = 0.2; b = 0.3; while ~(x == 1 && y == 1) c = rand ; d = rand ; m = [a c; b d]; d=nor...

3 days ago | 1

| accepted

extract data in specific interval

Let thedates be your datetime array. [y,m,d,h,m,s] = datevec(thedates) ; iwant = thedates(y==2020) You can also use inequal...

4 days ago | 0

I have a 2 dimensional array. I want to view it.

x = trajectories(:,1) ; y = trajectories(:,2) ; plot(x,y)

4 days ago | 0

I need help about the imbalanced data

Read about readtable. After reading you can access the rspective columns using T.T1, T.T2 etc... or T.(1), T.(2) etc. T = re...

4 days ago | 0

| accepted

how to read images from subfolder of a data base and train svm cllasification

https://in.mathworks.com/matlabcentral/answers/437494-how-to-loop-through-all-files-in-subfolders-in-a-main-folder https://in....

4 days ago | 0

Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.

emat = cell([],1) ; % INPUT OF INITIAL MATERIAL DISTRIBUTION % ONLY in 1st ITERATION if (a==1) fid = fopen(...

4 days ago | 0

| accepted

Create a 95% confidence circle

Yes you can use... the change would be a == b i.e. horizontal and vertical radii should be same.

4 days ago | 1

| accepted

How to show difference equation on the command line?

fprintf('y(n) = 0.25\n') fprintf('y(n-2) = 2*x(n)+0.5*x(n-2)\n')

4 days ago | 0

How to read the variables from a file

https://in.mathworks.com/matlabcentral/answers/251731-how-to-take-text-files-and-turn-the-data-into-variables

4 days ago | 0

How do I enter f(x) = sin((π/2) x) + sin((2/5)πx) over the interval [0,40]

x = linspace(0,40,100) ; f = sin(pi/2*x)+sin(2/5*pi*x) ; plot(x,f)

4 days ago | 0

How to combine 2 tables with different variables into 1 table?

Convert both the tables into arrays using table2array. And then you need to use below: T1 = [1 2 3 4 5; 10 20 30 40 50]' ; T2 ...

4 days ago | 0

| accepted

How to plot a graph?

You can striaght away use plot on 50*6 matrix. plot(A) ; % A is 50*6 matrix legend

5 days ago | 0

Finding 8 points on an ellipse

Find the major, minor axes of ellipse i.e. (a,b). Once these are known, the paraetric equation of ellipse are: Take phi = 0:p...

5 days ago | 1

i have an error using plot function with syms engine

You need to substitue the value of a into K1 using the function subs, convers the output into double and then plot. y = double...

5 days ago | 0