Community Profile

photo

KSSV


Last seen: Today Active since 2011

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

Statistics

All
  • Treasure Hunt Participant
  • MATLAB Central Treasure Hunt Finisher
  • 36 Month Streak
  • Master
  • Solver
  • Personal Best Downloads Level 4
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Revival Level 3
  • Thankful Level 2
  • Knowledgeable Level 4

View badges

Content Feed

Answered
Plotting lines on the same graph
x1 = 0 ; y1 = 0 ; x2 = 1:10 ; y2 = zeros(size(x2)) ; x3 = zeros(1,10) ; y3 = 1:10 ; figure hold on plot(x1,y1,'-*b') ; ...

ongeveer 16 uur ago | 0

Answered
Load mat files matching specific string inclusive of different strings
matFiles = dir('*.mat') ; matFiles_name = {matFiles.name} ; idx = find(~cellfun(@isempty,strfind(matFiles_name,'2015'))) ; ...

1 dag ago | 0

Answered
Is it posible to change the number of digits Matlab works with?
You can convert them from double to single. Read about the function single. Also have a look on the function format.

1 dag ago | 0

Answered
how to change value in element
Let P be your 10000x1 array. p0 = p ; % To change data from 4901 to 4949 for i = 4901:4949 p(i) = (p(i)+p(i+1))/2 ; e...

1 dag ago | 0

| accepted

Answered
How can I operate a matrix by a vector?
A = [2 3 ; 1 -2 ; 4 1]; b = [2,4, -5]'; syms x1 x2 x = [x1 ; x2]; f = (sqrt ((A * x-b) .^ 2)) .^ 2

1 dag ago | 0

Answered
assigning of multiple arrays
Read about deal. [ss1, ss2] = size(0:1:38); zitaa = ones(ss2,121); [rhoo,thetaa,thetaa1,thetaa2] = deal(zeros(ss2,121)) ;

1 dag ago | 0

| accepted

Answered
How do I make two vectors of different length equal in length
A=[1 2 3 4 5 6 7 8] B=[5 6 8 1 2 3 7 4 55 66 88] ; B = B(1:length(A))

2 dagen ago | 0

| accepted

Answered
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 dagen ago | 0

Answered
Using epsilon in legend
plot(rand(1,10)) legend('\epsilon_2_1/\epsilon_1_1');

3 dagen ago | 0

| accepted

Answered
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)))

4 dagen ago | 0

Answered
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 ] ...

4 dagen ago | 0

| accepted

Answered
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...

4 dagen ago | 0

| accepted

Answered
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); %...

4 dagen ago | 0

| accepted

Answered
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)...

4 dagen ago | 0

Answered
How to remove rows in table that have empty values
Let T be your table. idx = ismepty(T.(2)) ; T(idx,:) = [] ;

4 dagen ago | 0

Answered
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...

4 dagen ago | 0

Answered
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...

5 dagen ago | 0

Answered
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 ]; ...

5 dagen ago | 0

| accepted

Answered
how to set legend in matlab
% Auto A = rand(10,2) ; plot(A) legend % Manually plot(A) legend('first','second')

5 dagen ago | 1

Answered
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...

5 dagen ago | 1

Answered
row of a random size matrix
A = rand(5,4) ; a = num2cell(A',1) ; A(1,:) a{1}

5 dagen ago | 0

Answered
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 ; ...

6 dagen ago | 0

Answered
How to extract data of a region using shapefile?
Read about inpoly.

6 dagen ago | 0

Answered
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...

6 dagen ago | 1

| accepted

Answered
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...

6 dagen ago | 0

Answered
I have a 2 dimensional array. I want to view it.
x = trajectories(:,1) ; y = trajectories(:,2) ; plot(x,y)

6 dagen ago | 0

Answered
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...

6 dagen ago | 0

| accepted

Answered
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....

6 dagen ago | 0

Answered
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(...

6 dagen ago | 0

| accepted

Answered
Create a 95% confidence circle
Yes you can use... the change would be a == b i.e. horizontal and vertical radii should be same.

7 dagen ago | 1

| accepted

Load more