Community Profile

photo

KSSV


INCOIS

4,619 total contributions since 2011

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

Contact

KSSV's Badges

  • Revival Level 3
  • 24 Month Streak
  • Thankful Level 2
  • Ace
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
Plot multiple matrices in the same graph
figure hold on for i = 1:length(Delays_Array) plot(Delays_Arrays{i}(:,1),Delays_Arrays{i}(:,2)) end

8 hours ago | 0

Answered
Displaying fitting parameters on the graph?
If you want to put as a title have a look on _title_. If you want at any location have a look on _text_

9 hours ago | 0

Answered
Subtracting previous cell?
TSC = cell(1,103) ; for i = 1:103 TSC{i} = SC{1,1,i}-SC{1,1,i+1} ; end

15 hours ago | 0

Answered
Opening all .txt files in a folder and importing/saving columns of data separately which may be called upon and graphed.
files = dir('*.txt') ; % you are in the folder of files N = length(files) ; % loop for each file for i = 1:N ...

16 hours ago | 0

Answered
How to use the break in a loop?
N = 10 ; % This number to be guessed Fail = 0 ; for i = 1:10 S = input('Guess the Number:','s') ; ...

16 hours ago | 0

Answered
Issue with matrix dimensions
TE1 = load('TransmissionA1.mat'); Check TE1 will be a structure. You cannot access it like you did. Try: S = loa...

1 day ago | 0

| accepted

Answered
Removing Rows Based on Repeated Values in a Single Column of Matlab Table
data = [1 2 3 4 5 3 2 5 3 2 3 4 6 7 3 4 2 6 7 9.] ; a = data(:,1) ; b = data(:,2) ; c = data(:,3) ; d = data(:...

1 day ago | 0

Answered
how to find a value from a timeseries?
Go for logical indexing: S = load('soc.mat') ; t = S.soc.Time ; y = S.soc.Data ; idx = abs(y-70)<10^-5 ; ...

2 days ago | 1

| accepted

Answered
How can i change the timestep of my data set and reduce the number of data?
Read about _interp1_. Let _t_ be your time data, and F be your force data. ti = linspace(min(t),max(t),186) ; Fi = inte...

2 days ago | 1

| accepted

Answered
How to get number of peaks and locs from different graphs that are plotted using a single for loop?
Have a look on functions _max_ and _findpeaks_.

3 days ago | 0

Answered
Mark vertical lines at a specific position on the plot.
N = 100 ; x = 1:N ; y = rand(1,N) ; plot(x,y,'r') hold on plot(x(y<=0.5),y(y<=0.5),'+b') plot(x(y>0.5),y...

3 days ago | 0

Answered
how to calculate hyperbolic cosine
syms k a = rand ; b = rand ; y = rand ; eqn = y^2==(cosh(a*k)/cosh(b*k))

3 days ago | 0

Answered
constructing file identifier from string?
You can initialize file identifiers as an array, and use them in loop. fullfileKBDR = strcat('/Users/jkoval/Documents/MATL...

3 days ago | 0

| accepted

Answered
How do I find the points on the edge of a convex hull enclosing points in 3D?
This should help: <https://in.mathworks.com/matlabcentral/answers/101396-is-there-a-function-in-matlab-for-detecting-points-insi...

6 days ago | 0

Answered
Fill missing NaN values with Interpolation
a = rand(100,1) ; % put some NaN's a(randsample(100,20)) = NaN ; %% interpolate x = 1:length(a) ; a(isnan(a)) ...

6 days ago | 0

| accepted

Answered
How can I calculate the mean of a vector ?
mean(V_freq1) If your data has NaN's..have a look on _nanmean_. % mean with inbuilt command a = rand(100,1) ; ...

6 days ago | 0

| accepted

Answered
find a number of set for each element
[a,b,c,d]=deal(1,2,4,4.3)

7 days ago | 0

| accepted

Answered
How do I interpolate a set of data and change the timestamp to specific points in time?
Read about _interp1_. With this you can get all the data into same time stamps. An example: t1 = (0:10:100) ; y1 = ...

7 days ago | 0

Answered
Drawing rectangles around binary image objects from region props
info = regionprops(img2,'Boundingbox') ; imshow(img2) hold on for k = 1 : length(info) BB = info(k).Boundin...

7 days ago | 0

| accepted

Answered
Error using svm classifier
_svm_ will work on only two classes or groups. You need to send only two groups data to train it. Check the below example: ...

7 days ago | 0

Answered
What difference if we deleted the semi-colon (;) in while loop?
Simple...every time the output will be printed on the screen. It will be annoying and your code spents extra time to print it. ;...

7 days ago | 1

Answered
Read .GRIB2 files in Matlab
Check this link in file exchange.... <https://in.mathworks.com/matlabcentral/fileexchange/21579-netcdf-grib-reader>

7 days ago | 0

Answered
how can we know that which cluster has which data points after applying k-means clustering ?
_kmean_ gives you classes of each cluster, from here it is easy to access the group/ class you want. Check the below code for de...

7 days ago | 0

Answered
How to replaced image in folder?
Let your image name be _myimage_. if exist(myimage,'file') error('this image exists in the folder, please choose d...

7 days ago | 0

Answered
How to use Matlab function 'coeff' in cross-correction (xcorr(a,b)) if two matrix have different length of size?
Do interpolation to get the data into same dimensions. Read about _interp1_.

7 days ago | 0

Answered
How to divide 3-5 group dataset?
Decide the number of elements in each group. G1 = 10; G2 = 10 ; G3 = 30 ; % three groups N = 50 ; % 50 images i...

8 days ago | 0

| accepted

Answered
Hi guys. How can I have display a color from RGB coordinates?
Red = [255 0 0] ; Lime = [0 255 0] ; x = [0 1 1 0] ; y = [0 0 1 1] ; figure fill(x,y,Red/255) figur...

8 days ago | 0

| accepted

Answered
different size cells plotting
file = 'neg 20_1_Mnalyzed.mat' ; S = load(file) ; A = S.nfkbX ; figure hold on for i = 1:size(A,1) ...

8 days ago | 0

| accepted

Answered
I have a 10x6x5 matrix, I want to convert it into 6x50 matrix. How to do this?
A = rand(10,6,5) ; C = permute(A,[1 3 2]); C = reshape(C,[],size(A,2),1) ;

8 days ago | 0

| accepted

Answered
How can i save a contour and read it again without change in its value in matlab?
[X,Y,Z] = peaks(100) ; [c,h] = contour(X,Y,Z) ; YOur required values are saved in c and h.

8 days ago | 0

Load more