Community Profile

photo

KSSV


INCOIS

5,864 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
Split vector A into smaller vectors based on vector B
data = [1.2 1 1.3 1 1.4 1 1.5 2 1.6 2 ...

약 1시간 ago | 0

Answered
logical index replace values
Read about logical indexing. idx = 0 < output5 & output5 < 1 ; output = output5(idx);

약 2시간 ago | 0

Answered
Adding a polyshape to a 3D plot (a la patch)
load('example.mat') Hpgon = plot(pgon); axis equal vertices3D=pgon.Vertices; vertices3D(:,3)=0; faces3D=1:size(vertices3D,1)...

약 4시간 ago | 0

Answered
Spline to optimize the curve
c = [ 2.0000 2.0000 2.2703 1.6902 4.7244 7.6318 12.0984 9.1030 12.0000 10.0000 ] ; x = c(:,1) ; y = c(:,2...

약 21시간 ago | 0

Answered
plot coordinates in the center of grid
xy = [ 11.2871990000000 75.8008150000000 11.2826320000000 75.8033060000000 11.2648170000000 75.8115220000000 11.287192000000...

1일 ago | 1

| accepted

Answered
How can I generate an .stl file from a symbolically generated 3D surface?
syms u v x = (-2/15)*cos(u)* (3*cos(v) - 30*sin(u) + 90*(cos(u))^4*sin(u) - 60*(cos(u))^6*sin(u) + 5*cos(u)*cos(v)*sin(u)) y =...

1일 ago | 0

| accepted

Answered
Finding the angle between lines that Ive plotted
YOu have multiple ways to do this. Refer below: https://in.mathworks.com/matlabcentral/answers/78195-how-to-measure-angle-be...

1일 ago | 0

| accepted

Answered
Stop the execution with a certain number of second
t1 = tic ; while t1 t2 = toc(t1) ; if t2 > 10 fprintf('loop breaked because 10 seconds passed\n') ...

4일 ago | 0

Answered
index exceeds matrix dimension,Subscript indices must either be real positive integers or logicals
v1(1,t+dt1)=((((-a1)^2)*v1(2,t+dt1))/(h1(2,t+dt1)-h1(1,t+dt1))*g-a1^2) In the above I could say that dt1 is a fraction...and yo...

4일 ago | 0

| accepted

Answered
How can I interactively add info to plots, e.g. name of a curve?
x = rand(10,1) ; y = rand(10,1) ; plot(x,y,'.r') ; [px,py] = getpts() ; % double click on a point when prompts text...

4일 ago | 0

Answered
How to filter the required coordinates which consist with same elevation?
filename = 'elevations.nc'; elev = ncread(filename, 'elevation')'; lon = ncread(filename, 'lon')'; lat = ncread(filename, '...

4일 ago | 1

| accepted

Answered
Reading all the .wav files from a particular folder
files = dir('*.wav') ; N = length(files) ; for i = 1:N thisfile = files(i).name ; % do what you want end

4일 ago | 1

Answered
griddata not creating a smooth interpolation
Try scatteredinterpolant. Tmod=[50 100 150 175 200 240 245 245 245 245 245 245 245 245 230 200 150 125 110...

4일 ago | 0

Answered
How to put hat over a greek symbol express its value in legend of a plot?
Read here: https://in.mathworks.com/help/matlab/creating_plots/greek-letters-and-special-characters-in-graph-text.html

4일 ago | 0

Answered
How can I create a 2D plot using a parfor loop?
YOu cannot see the plot..but you can save it and late access it. L1 = 10; L2 = 5; L3 = 3; theta1 = (0:5:90); theta2 = (0...

4일 ago | 0

Answered
how to check whether a particular file is there in the datastore or not?
Read about exist, contains , strcmp

4일 ago | 0

Answered
Array indices must be positive integers or logical values (image processing)
I=x(i,j); % here I will be pixel value of image, it cannot be a index x(i,j)=xL(I)+( L(I)*lambda(i,j) ); Note that in MAT...

4일 ago | 0

| accepted

Answered
problem in writing code
YOu have typed lambda wrong...typo error. delta=0.02; lambda=[0.01: 0.001 : 0.1]; p= lambda./delta; q1=delta-lambda+lam...

4일 ago | 1

| accepted

Answered
Check if vector is increasing monotonely or just increasing
Refer here: http://matlabtricks.com/post-29/pattern-search-example-monotonically-increasing-or-decreasing-subset YOu should re...

4일 ago | 0

| accepted

Answered
Check if element in array are square of each other
a = [7 5 49] ; b = [49 5 7] ; idx = a.^2==b In idx if 1 , true, if zero false.

4일 ago | 0

Answered
Change sign of every second element of a vector
A = rand(10,1) ; A(2:2:end) = -A(2:2:end) If you wat to your function, you should use like this: function newVector = cha...

4일 ago | 0

| accepted

Answered
How can I read a text file and store its data inside a matrix?
clc; clear all ; fid = fopen ('40_8deg_HL_Both.txt', 'r'); data = textscan(fid, '%s %s %f %f %f %f %f %f %f %s', 'HeaderLine...

4일 ago | 0

| accepted

Answered
Interpolating a 3D Matrix using interp1
A = rand(14,14,221) ; % interpolation along row N = 100 ; [m,n,p] = size(A) ; iwant = zeros(m,N,p) ; xi = linspace(1,...

4일 ago | 0

Answered
How to plot a subset of x,y with group g according to fourth column
Let day, bottle, species, finalC be your data. I assume them to be columns and bottle is a cell array of strings. % GEt indi...

4일 ago | 0

Answered
Determining the appropriate range for the given number.
x = 1:120 ; y = linspace(0.,6,120) ; xi = 1.5 ; yi = floor(interp1(y,x,xi)) ; fprintf('%f should be placed between %f ...

4일 ago | 0

| accepted

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)

5일 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.

5일 ago | 1

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...

5일 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...

5일 ago | 0

Load more