Community Profile

photo

KSSV


Last seen: Today Active since 2011

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

Programming Languages:
Python, MATLAB, Fortran
Spoken Languages:
English, Hindi, Telugu

Statistics

All
  • MATLAB Mini Hack 2nd Place
  • Treasure Hunt Participant
  • Most Accepted 2021
  • 36 Month Streak
  • Solver
  • Personal Best Downloads Level 4
  • First Review
  • MATLAB Central Treasure Hunt Finisher
  • 5-Star Galaxy Level 5
  • First Submission
  • Master
  • Revival Level 3

View badges

Content Feed

Answered
Enter a string and print it backwards
str = 'MATLAB' ; % Option 1 flip(str) % option 2 str(end:-1:1) For printing, you can use fprintf fprintf('%s\n',str)

3 hours ago | 0

Answered
Constructing a 3D model out of 2D image slices
Read about slice

4 hours ago | 0

Answered
For loop for read xls
xlFiles = dir('*.xls') ; % give extension of your files N = length(xlFiles) ; % loop for each file for i = 1:N xlFile =...

2 days ago | 0

Answered
How to implement the output matrix without if conditions
n = 5 ; A = zeros(n) ; for i = 1:n for j = 1:i A(i,j) = i+j-1 ; end end A You cannot remove zeros, if yo...

3 days ago | 1

| accepted

Answered
Apply 'findpeaks' in every column
ncol=size(Pilant_Vy_env,2); MAX = zeros(ncol,3) ; for k = 1:ncol [PKS,locs,~,prm] = findpeaks(Pilant_Vy_env(:,k)); ...

5 days ago | 0

Answered
Calculating a distance between a point and a contour along an axis
Let O(x,y) be your red point. You can get the blue line intersecting the contour using knnsearch. If you want to draw a line...

5 days ago | 1

| accepted

Answered
I want to apply a different color to the bar in yyaxis.
figure(2), grid on, hold on ...

5 days ago | 1

Answered
issue while concatenating the matrix
[file_list, path_n] = uigetfile('final*.mat', 'Grab all the files', 'MultiSelect','on'); if ischar(file_list); file_list = {f...

5 days ago | 1

| accepted

Answered
Can you explain ?
Thats is simple.... min(b)--> this takes minimum value from b max(c)--> this picks maximum from c a:b--> this will gnerate...

5 days ago | 1

| accepted

Answered
Extracting along a dimension in a 4D array
YEs, it is correct. When you extract you will get 1x121x121 array. You may remove the extra dimension using squeeze. na = 11; n...

5 days ago | 0

Answered
For loops for printing pattern in matlab
str = '#' ; for i = 5:-1:1 s = repmat(str,1,i) ; fprintf('%s\n',s) ; fprintf('\n') end

5 days ago | 0

Answered
How to save data in csv format as output data?
Read about writetable, csvwrite

6 days ago | 0

Answered
How to extract only certain points contained in a segment?
Read about knnsearch

6 days ago | 0

Answered
adding variable in the name of table for while loop
i=4; while i<37 Alq_i_t.Properties.VariableNames{i} = 'mz'; i=i+1; end

6 days ago | 0

Answered
Creating a 2D grid with evenly spaced points
Read about meshgrid x = linspace(0,1,10) ; y = linspace(0,1,10) ; [X,Y] = meshgrid(x,y) ; plot(X,Y,'.r')

6 days ago | 0

| accepted

Answered
How do i get multiple values all at once from cell array?
Let A be your cell array of size 7365x60 where each cell has 1x7 array. B = cell2mat(A) ; iwant = B(:,2:7:end) ;

6 days ago | 0

Answered
define color range in scatter plot
Read about clim, caxis.

6 days ago | 0

Answered
Cascading sort order that restarts count at each subsequent column
DAT = array2table([ "A" "a" "1" "A" "a" "2" "B" "a" "3" "C" "a" "3" "C" "b" "5" "C" "a" "4" "...

6 days ago | 0

Answered
Unable to perform assignment because the left and right sides have a different number of elements.
Error is simple.... you are trying to save more number of elements in an array then it is initialized for. Example: A = zeros...

7 days ago | 1

| accepted

Answered
The distance of a point from a set
Read about pdist, pdist2

7 days ago | 0

Answered
Interpolating with 3 variables
REad about griddata. scatteredInterpolant. If not attach your data.

7 days ago | 0

| accepted

Answered
how to make a patch on geoplot?
x = [126.509 126.508 126.511 126.512] ; y = [37.403 37.4063 37.4048 37.4081] ; patch(x,y,'r') In case, you looking for: [val...

7 days ago | 0

Answered
Find Intersection between curves
This should not dissappoint you. https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections

7 days ago | 0

Answered
How to plot two parameter bifurcation diagram
One of the option: https://in.mathworks.com/matlabcentral/fileexchange/35355-stability-chart

7 days ago | 0

Answered
change histogram to PDF
x = randn(10000,1) ; histogram(x) pd = fitdist(x,'kernel'); x_values = min(x):0.01:max(x) ; y_values = pdf(pd,x_values);...

7 days ago | 0

Answered
plot using user custumized legend lines
K = [100;200;400;600;800;1000;1200;1400;1600;1800;2000]; a = 1; B=0.2; r = radius_cal (K,B) ; c = {'r','g','b','c','m','y'...

7 days ago | 1

Answered
Plotting Inequalities in Matlab
x = -10:0.1:10 ; y = -10:0.1:10 ; [X,Y] = meshgrid(x,y); ineq = (X > 0) & (Y > 5./X) & (Y > (X.^(2)-25)./(5*X)); h = pcolo...

7 days ago | 0

| accepted

Answered
a single line of code that will take complex variables x and y and define a variable z as the phase of the product of x and y.
x = rand+1i*rand ; y = rand+1i*rand ; p = x*y ; iwant = atan(imag(p)/real(p))

7 days ago | 0

Answered
How to plot surf for 3D images.
dicom will be a 3D matrix..you cannot use surf straight away. h = dicomread('h.dcm'); [m,n,p] = size(h) ; figure hold on f...

8 days ago | 0

| accepted

Answered
How to shift the graph?
Read about montage

8 days ago | 0

Load more