Community Profile

photo

KSSV


INCOIS

5.838 total contributions since 2011

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

Contact

KSSV's Badges

  • 36 Month Streak
  • Master
  • Revival Level 3
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
how to find the minimum value of the function of two variables with contour plot?
[c,h] = contour(X,Y,Z,'showtext','on'); min(h.LevelList)

etwa 7 Stunden ago | 0

Answered
How can I convert cell contents to a matrix?
Read about readtable. This is the best function to use for your case.

etwa 10 Stunden ago | 0

Answered
Removing overlapping pixels in black and white images
I = imread('image.jpeg') ; R = I(:,:,1) ; G = I(:,:,2) ; B = I(:,:,3) ; % Get black region I1 = rgb2gray(I) ; id...

etwa 12 Stunden ago | 0

Answered
Selecting a Range of Rows in An Array Based off a Certain Value.
Let A be your 1796990 x 4 matrix. % To pick rows which has 1 in column 3 B = A(A(:,3)==1,:) ; % % To pick rows which prec...

etwa 13 Stunden ago | 0

Answered
Problems with empty cell in a large matrix
Read about readtable. It will insert NaN's where ver values are missing. T = readtable('sample.txt') ;

ein Tag ago | 0

Answered
different parts of a matrix
A = rand(900,15) ; A(3,1) % entire first column from line 3 A(33:58,1) % first column 33 to line 58 Read about MATLAB in...

ein Tag ago | 0

| accepted

Answered
select a circular region of data and find the average value in that region
Read about inpolygon. nx = 100 ; ny = 150 ; x = linspace(0,1,nx) ; y = linspace(0,1,ny) ; [X,Y] = meshgrid(x,y) ; Z ...

ein Tag ago | 1

Answered
Sort struct fields by their length
% MAke structure for demo S = struct ; for i = 1:10 S(i).val = rand(randsample(100,1),1) ; end %% Gt lengths of each...

ein Tag ago | 0

Answered
How to extract two equal maximum values at different index
A = [8,5,6,7,8] maxval = max(A); lia = ismember(A,maxval); idx = find(lia);

ein Tag ago | 0

Answered
I want to select one column of an array at a time every time a for loop starts
A = rand(3) ; for i = 1:3 A(:,i) end

ein Tag ago | 0

| accepted

Answered
Taking average of 3 rows from a matrix
A = rand(369,10) ; idx = repmat(3,1,369/3) ; % arrange data B = mat2cell(A,idx) ; % get mean M = cellfun(@mean,B,'un',0...

ein Tag ago | 0

Answered
How do I find closest values between 2 matrices?
Read about knnsearch true_ang = [-40 -20]; all_angs = [ 30.803049614608504 30.803049614608490 -21.481431164796401 ...

ein Tag ago | 0

| accepted

Answered
how can i stitch different images)
Check the below demo code which stitches (joins) all the RGB images given inbuit in matlab tool boxes. You may take your own dir...

ein Tag ago | 0

Answered
find in cell array
A={[1,2,3,4,5],[1,3],[1],[1,3,4,5,6,7,89,0],[1,3],[1,3,4,5],[4,6]}; N = cellfun(@length,A) ; A(N==2) = []

ein Tag ago | 1

| accepted

Answered
How to draw and connect three points
x = rand(1,3) ; y = rand(1,3) ; plot(x,y) ; n = 1:3 ; text(x,y,num2str(n'))

2 Tage ago | 0

Answered
how to find intersection point of these graph??
Read about size.

2 Tage ago | 0

Answered
how to find intersection point of these graph??
Use this file exchange function: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138...

2 Tage ago | 0

| accepted

Answered
How can I connect my connected-components?
I = imread('QQ20190319105427.png') ; I1 = rgb2gray(I) ; imshow(I) hold on [c,h] = contour(I1) ;

3 Tage ago | 0

Answered
infinity in an inequality for input in a function?
x = 0:0.05:1 ; % x = linspace(0,1,100) ; y = 0:-0.05:1 ; % y = linspace(0,1,150) ; [X,Y] = meshgrid(x,y) ; mesh(X,Y)

3 Tage ago | 0

Answered
Select groups of data with a specific size
Let x,y be your data points A = [1 1 1 1 2 2 2 3 3 3 3]'; for i = 1:max(X) idx = A==i ; if nnz(idx)<3 plo...

3 Tage ago | 0

Answered
split a diagonal matrix
v = [2 1 4]; nx = length(v) ; M = zeros(nx,nx,nx) ; for i = 1:nx M(i,i,i) = v(i) ; end

3 Tage ago | 1

| accepted

Answered
Using two colormaps on the same image (no subplots)
Refer here: https://in.mathworks.com/matlabcentral/answers/194554-how-can-i-use-and-display-two-different-colormaps-on-the-same-...

3 Tage ago | 0

Answered
Help! i'm new
Read about fprintf for i = 1:6 fprintf('Here we go the loop %d\n',i) end

3 Tage ago | 0

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
function [images, labels, imageFiles] = readDataset(dirPath) imageFiles = ''; % Get a list of all files and folders in this fo...

3 Tage ago | 0

Answered
what is causing this error?
Note that in matlab the indexing shoul dbe always a posittive integer or a logical. You are suing negative number, so error. ...

3 Tage ago | 0

Answered
How to make overlaped 3 rectangle fill in color RGB (255/ make white)
R = [0 0 ; 1 0 ; 1 1 ; 0 1] ; figure hold on patch(R(:,1),R(:,2),'r') patch(R(:,1)+rand,R(:,2)+rand,'b') patch(R(:,1)+rand,...

3 Tage ago | 0

Answered
plot a snake graph
Play around with this: x = 1:100 ; y = 1:100 ; ind1 = reshape(y,5,[])' ; y(ind1(1:2:end,:)) = -0.5 ; y(ind1(2:2:end,:)) =...

3 Tage ago | 0

Answered
element mean of matrices
A = rand(5,5,7) ; % some random data for demo iwant = zeros(7,1) ; % initialize the required for i = 1:7 Ai = A(:,:,i...

4 Tage ago | 0

Answered
save result in while loop
index_A=cell([],1); while (ibd <= max_it) i=i+1; index_A{i}= t ;% save what you want ; end index_A = cell2mat(i...

4 Tage ago | 1

Answered
How to combine string and numbers before using xlswrite to export data into an Excel file?
cruise = {'SE_01', 'SE_01','SE_01'}' ; Longitude = [-126 -123 -121]' ; Latitude = [35 31 27]' ; Year = [2017 2017 2017]' ; M...

4 Tage ago | 0

| accepted

Load more