Community Profile

photo

KSSV


Last seen: Today

8,856 total contributions since 2011

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

Contact

KSSV's Badges

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

View details...

Contributions in
View by

Answered
splitting 2 rows of excel using matlab
T = readtable(myfile) ; % excel file with extension n = height(T) ; for i = 1:n fname = strcat('row',num2str(i),'.xlsx'...

6 hours ago | 0

Answered
Turn off the plot of findpeaks function
You might be simply using the function findpeaks with data as input. Take the output. data = [25 8 15 5 6 10 10 3 1 20 7]; fi...

6 hours ago | 0

| accepted

Answered
How to replace some Number in row matrix with NaN
Y = [5 7 18 16 40 18 9 32 15 4 9 60 40 24 10 13]; Y_new = [5 7 18 16 NaN 18 9 NaN NaN 4 9 NaN NaN NaN 10 13]; dY = diff([...

7 hours ago | 0

Answered
How to do iteration?
Lch=[-22.5971212295960 29.9076428426283 -17.3150512249935 16.1986770081474 -29.0533677411566 39.4388257818327 -23.4478195797575 ...

9 hours ago | 0

Answered
nearest neighbour, bilinear, and bicubic interpolation
There are already inbuilt functions available for this; read about interp2.

11 hours ago | 0

| accepted

Answered
Open and procces multiple images
Img = dir('*.png') ; % give your extension of images N = length(Img) ; for i = 1:N thisImg = Img(i).name ; I = i...

12 hours ago | 0

Answered
Imaginary parts of complex X and/or Y arguments ignored
plot(i, lambda); The above line is not correct. LAst lines should be repalced with. H=B./mu; figure (2) plot (H,B); xlabel...

13 hours ago | 0

Answered
Define time interval for wave of highest peak
Use the function max, it will give maximum value along with the index of the maximum value; using this index you can get the res...

13 hours ago | 0

Answered
What is difference between corrcoef([A B]) and corrcoef(A, B)?
Both are same and result into same answer. A = randn(60,1); B = randn(60,1); R1 = corrcoef(A,B) R2 = corrcoef([A B])

13 hours ago | 0

Answered
Dividing image into grid - imwrite breaks when processing an empty image
Error is clear right..it seems there is no data in ca{r,c} in the case when error pops. Keep a check whether data is empty or no...

14 hours ago | 0

Answered
How to smoothen curves?
load('data') x = data(:,1); y = data(:,2:end); figure(1), plot(x, y,'r'); yi = zeros(size(y)) ; for i = 1:size(y,2) ...

1 day ago | 0

Answered
Get values of workspace with same matrix format.
You can simply use B(:); this will always give the result as column matrix. If you want to use if, else if size(B,1)==1 fp...

1 day ago | 0

Answered
How do I separate negative datas with their row?
Let H be your third column. idx = H<0 ; % get all negative values logical indices lon1 = lon(idx) ; lat1 = lat(idx) ; H1...

1 day ago | 0

| accepted

Answered
Find intersection points between lines
You can consider using this file exchange to find the point of intersections. https://in.mathworks.com/matlabcentral/fileexcha...

1 day ago | 1

| accepted

Answered
Plotting for loop with two outputs
X= 2:1000000; n = length(X) ; L = zeros(1,n) ; for i = 1:n L(i) =HW32P12Function(X(i)); end figure(1) loglog(X,L) ...

1 day ago | 0

| accepted

Answered
How can I draw and descretize(into grids or mesh) this domain in 2D.
You can use transfinite interpolation. Refer the below examples: https://in.mathworks.com/matlabcentral/fileexchange/40618-gri...

4 days ago | 1

| accepted

Answered
Find min and max values in a constant interval.
If A is your complete matrix. t = A(:,1) ; % this is seconds column iwant = A(t==30,:) ; % extract chunk which is for 30 ...

4 days ago | 0

Answered
How to fix the Dot indexing is not supported for variables of this type error?
Replace (i.j) with (i,j). There is . (dot) between i and j; replace it with comma. it seems a typo error.

4 days ago | 1

Answered
Plot3 to import data from Excel
T = xlsread('calculations.xlsx') ; plot(T(:,1),T(:,2:end))

4 days ago | 0

Answered
How to save the values of (x,C) in file 1 and (x,y) in file 2 to plot them in file 3.. the description in the code below
% file 1 clc; clear; x=[1 3 2 5 8] ; C = zeros(10,length(x)) ; for i=1:10 C(i,:)=i*x; end writematrix(C,'file1.txt...

4 days ago | 0

| accepted

Answered
how to find specific value in a table?
idx = hsl.clusternya==3 ; % logical indexing T(idx,:)

4 days ago | 1

| accepted

Answered
If statement to target certain area of f(i,j)?
% Subroutine function k=X(x,y,dx) if (x <=5 && y <=2) || (x >= 10 && y >= 10) constant = 85; % beta else constant ...

4 days ago | 0

| accepted

Answered
help --- symbolic expression or function
syms x y z one = 3*x +2*y - z == 10; two = -x + 3*y + 2*z == 5; three = x -y - z == -1 ; s = solve({one,two,three},x,y,z) ; ...

5 days ago | 1

Answered
How to add (combine) together two structures with the same fields?
clc; clear ; s1.name = 'Tom' ; s1.sex = 'm'; s1.age = 25 ; s2.name = 'Harry' ; s2.sex = 'f'; s2.age = 26 ; % Structur...

5 days ago | 0

| accepted

Answered
I'm plotting a solution to a PDE using surf but the graph turns out wrong?
MAy be you are looking for this: n=1:10 ; tRange = 0:0.05:1; [n,t] = meshgrid(n,tRange); u = (4./(n.^3*pi^3)+(4...

5 days ago | 0

Answered
Adding elements in column vectors
MAke a and b of equal dimension using linspace. and then add. Read about linspace.,

5 days ago | 0

Answered
Plot data with date and time
thedates = datetime(datestr((x))); y = str2double(y) ; plot(thedates,y)

5 days ago | 1

| accepted

Answered
load a folder of excel files
excelFiles = dir('*.xlsx') ; N = length(excelFiles) ; for i = 1:N file = excelFiles(i).name ; T = readtable(file) ;...

5 days ago | 1

| accepted

Answered
Calculate differences between all values elements in a vector and increase max diff by one
A = [2 3 1 4] ; B =[4 4 2 4]; AB = B-A ; [val,idx] = max(AB) ; A(idx) = A(idx)+1

5 days ago | 1

Answered
merge duplicate entries and take average associated columns
A=[1 1 1 2 2 3 3 3 4 4 4 2 2 2 3 ]; % B = [ 1 2 3 4 2 3] B= A(diff([0 A])~=0)

5 days ago | 0

Load more