Community Profile

photo

KSSV


Last seen: en dag ago Active since 2011

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

Statistics

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

View badges

Content Feed

Answered
Extract Tables from within a cell
load('Tables.mat'); T = cellfun(@table2array,Tables,'UniformOutput',false) ; iwant = cell2mat(T') ;

en dag ago | 0

Answered
How can I find the index of a specific element in an array
R = 5000; T = [0 8 39.3 103 236.5 511.7 1026.1 1906.9 3148.7 4293 4011.9 2628.4 1037.4 203.7 28.6 9.4 4.2 1.4 1....

en dag ago | 0

Answered
How do I have different colours for each plot even having a different option in the popupmenu
x = (1:10)' ; A = rand(10,3) ; figure plot(x,A(:,1),'r',x,A(:,2),'b',x,A(:,3),'g') figure plot(x,A) figure hold on plo...

en dag ago | 0

Answered
Detecting Contour of bubble
I = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/814649/image.jpeg') ; % Remove boundary/ crop I = ...

en dag ago | 0

Answered
how to change the orientation of an extrapolated image?
Let (X,Y) be your original grid data coordinates. lon0 = min(X(:)) ; lon1 = max(X(:)) ; lat0 = min(Y(:)) ; lat1 = max(Y(:)) ...

2 dagar ago | 0

| accepted

Answered
How to convert the complex number as a 2D vector to train a neural network
To get real and imaginary part of the complex number, use real and imag. For other part use reshape.

2 dagar ago | 0

Answered
finding number of centroids of a binary image
REad about regionprops. You can also try kmeans. Read about it.

3 dagar ago | 0

Answered
Is there any way that indexing(subscript) 0 can be permitted. As these should be positive integer or logicals.
Note that a logical is 0 / 1 idx = logical(0)

3 dagar ago | 2

| accepted

Answered
Geotif image appears darker
Use geotiffread / readgeoraster and the plot the data. Read about pcolor to plot.

3 dagar ago | 0

Answered
ODE45/ODE15 inquiry about nonlinear spring
You may refer the following links to understand what to do. https://in.mathworks.com/matlabcentral/fileexchange/33168-springpe...

3 dagar ago | 0

Answered
how to remove the NaN values from a dataset?
Read about isnan, A = [1 2 NaN 2 NaN rand] ; idx = isnan(A) ; A(idx) = [] % remove NaNs If you try to remove NaN's from...

4 dagar ago | 1

| accepted

Answered
I need to repeat a sequence 33 times
Read about repmat. A = [1 2 3] ; B = repmat(A,1,3)

4 dagar ago | 0

Answered
How to muliply non equal vectors with slicing?
A = 1:12; B = 1:4; A = reshape(A,4,[])' ; iwant = A.*B

4 dagar ago | 0

Answered
Extracting closed contours of streamfunction
Did you try this? https://in.mathworks.com/help/matlab/ref/streamline.html

4 dagar ago | 0

Answered
how to save variable as txt in a specified location with variable value appearing in the file name
path='c:/users/user/desktop'; filename = [path,filesep,'Gauss',num2str(width),'.txt']; fid = fopen(filename,'w') ; fprintf(fi...

4 dagar ago | 0

Answered
How to plot 3D filled contour ?
You can plot one level at a time: for i = 1:18 plot(lon,lat,levels(:,:,i)') shading interp drawnow end If you ...

4 dagar ago | 0

Answered
Index exceeds the number of array elements. Index must not exceed 3.
This error occurs when you try to extract more number of elements then present in the array. A = rand(1,4) ; % 1x4 array A...

4 dagar ago | 0

Answered
How to downsize image in x and y direction?
Read about imresize. img = imread('img') new_img2 = imresize(img, 1/2); imshow(new_img2)

4 dagar ago | 0

Answered
How do I refer to the next y point in a function?
You need to define x as an array, when you sustitue x in the function f, you will get output array y which is of same dimension ...

4 dagar ago | 1

| accepted

Answered
How to make 3d plot to model logistic regression?
a0 = -3.936212854; a1 = 0.140718658; a2 = -0.102108952; m = 100 ; n = 100 ; C = linspace(0, 320,m); P = linspace(0, 0.58,n...

4 dagar ago | 1

Answered
How do I plot this beam, given the coordinates, distances between the nodes, and the connections, and the lengths of each segment?
Read about delaunayTriangulation. This would be easy to use to plot the shown. https://in.mathworks.com/help/matlab/ref/delaun...

4 dagar ago | 0

Answered
Making all Elements in Matrix Even.
a=[53, 59, 61, 87] ; iwant = a+mod(a,2)

5 dagar ago | 0

Answered
Retain all initial even value elements, add all odd values with 1
Hint: Read about mod. If mod(x,2) is 1 then x is odd. mod(4,2) % even number mod(5,2) % odd number

5 dagar ago | 0

Answered
Find position of the maximum value and then convert the row zeros and the position of the maximum value should become 1. just like in the image attach
A = rand(4) ; [m,n] = size(A) ; B = zeros(m,n) ; [val,i] = max(A,[],2) ; idx = sub2ind(size(A),(1:m)',i) ; B(idx) = ...

5 dagar ago | 0

| accepted

Answered
Size of Q is undefined
You need to define the input variables and then call the function. It seems you are striaght away hitting the f5/ run button so ...

5 dagar ago | 0

| accepted

Answered
How to find the contigous coordinate points between two varaibles datasets and do regression
idx = knnsearch(A(:,1:2),B(:,1:2)) ; B = B(idx,:) ;

5 dagar ago | 0

| accepted

Answered
Simple logical conditional flag column
Simple, Let C1 , C2 be your two columns. C2(C1==1)=1 ; C2(C1==-1)=0 ;

5 dagar ago | 1

Answered
Problem for doing Monte Carlo Integration
Your y in the ocde is a anonymous function: function_handle with value: @(x)sin(x) You need to input some value into ...

5 dagar ago | 1

| accepted

Answered
How to draw multiple plots in one picture?
subplot(411) plot(rand(100,1)) subplot(412) plot(rand(100,1)) subplot(413) plot(rand(100,1)) subplot(414) plot(rand(100,1...

5 dagar ago | 1

| accepted

Load more