Community Profile

photo

KSSV


INCOIS

6,151 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
"Index in position 1 exceeds array bounds (must not exceed 1)." Error
Problem is with your BIP. It shoule be cXc matrix i.e it shoule be 2X2 for your inputs. You have entered it as 1X2, so the error...

1 hour ago | 0

Answered
how can I convert cell to double
load temp.mat ; iwant = cell2mat(temp')

1 hour ago | 0

| accepted

Answered
How measure distance from center of the image to the object
YOu can measure the distance from center of the object to center of the image as below: I = imread('object_with problem.png'...

1 hour ago | 0

Answered
Match each element of one array with each element of other array without loops
Read about ismember, ismembertol and knnsearch.

2 hours ago | 0

Answered
Converting a mat grid file to xyz
A = rand( [180,360,117) ; for i = 1:117 T = A(:,:,i) ; iwant = T(:) end

4 hours ago | 0

Answered
How to connect dots on graph?
E1=[0.229711113281264;0.244475859375016;0.261230097656256;0.283730156249987;0.311849589843713;0.344379609374935;0.37915166015615...

4 hours ago | 0

| accepted

Answered
Find overlap from two scatter plots
This problem can be solved with ease using knnsearch. Read about this function. YOu can get the nearest points in A for each poi...

4 hours ago | 1

| accepted

Answered
creating an column vector of value which is obtained from 3rd position of multiple text files
A = rand(5) ; B = sort(A) ; iwant = B(3,:)

4 hours ago | 0

Answered
combining different csv files from a folder into one matrix
csvfiles = dir('*.csv') ; iwant = zeros(1554,801) ; for i = 1:length(csvfiles) data = csvread(csvfiles(i).name) ; ...

7 hours ago | 0

Answered
Delete rows in cell arrays
load CellBdS.mat ; s = rawPortData{1}.INDX_MWEIGHT_HIST ; s = s{1} ; c1 = s(:,1) ; % delete first row c1(1) = [] ; % a...

23 hours ago | 0

Answered
Simple Monte Carlo Taking Too Long
Don't print the result in workspace. Terminate the output using ; Initialize the arrays which are getting filled in loop. i...

24 hours ago | 0

| accepted

Answered
How can i extract and store colums from my data
data = importdata('data.txt') ; id = data(:,1) ; [c,ia,ib] = unique(id) ; N = length(c) ; iwant = cell(N,1) ; for i ...

1 day ago | 0

| accepted

Answered
3d Animation of a point
[num,txt,raw] = xlsread(myfile) ; x = num(:,1) ; y = num(:,2) ; z = num(:,3) ; comet3(x,y,z)

1 day ago | 0

| accepted

Answered
Merging Multiple text files
txtfiles = dir('*.txt') ; ncfile = 'myfile.nc' ; N = length(txtfiles) ; nx = 455 ; ny = 455 ; % number of lat, lon for ...

1 day ago | 1

| accepted

Answered
Why is subtracting different sized matrices not giving me an error? What is matlab calculating?
What you are doing is not correct. Note that fft_x - sxx will be a matrix of size 1000X3328. It will subtract the respective ...

1 day ago | 0

Answered
Plotting Latitude, Longitude and a variable
[num,txt,raw] = xlsread('sample_data.xlsx') ; lat = num(:,1) ; lon = num(:,2) ; z = num(:,3) ; z(z>500) = NaN ; s...

1 day ago | 0

| accepted

Answered
Reading in an Entire Video
vidObj = VideoReader('C:\Users\Public\Videos\Sample Videos\Wildlife.wmv'); numFrames = 0; iwant = cell([],1) ; while hasFram...

1 day ago | 0

Answered
how to interpolate 2d curves together in 3d
Read about griddata.

2 days ago | 0

Answered
Index of point in matlab plot
x = rand(10,3); y = rand(10,3); hold on plot3(x(:,1),x(:,2),x(:,3),'R.') plot3(y(:,1),y(:,2),y(:,3),'B.') idx = knnsear...

2 days ago | 0

Answered
Index of individual points of two data set in matlab plot
Read about knnsearch to get the indices of multiple points.

2 days ago | 0

Answered
How to set ranges for 2 different variables in the same loop?
while ((x < 40) && (x > 15) && (y < 25) && (y > 5)) deltaLdeltax = ((-(40 - x))/sqrt(((40-x)^2)+((y-10)^2)))+((x-15)/sqrt((...

2 days ago | 0

Answered
Tell me when count of occurrences in a rolling 7-day range exceeds a certain value.
T = readtable('data.txt') ; S = T.(2) ; on = contains(S,'ON') ; off = contains(S,'OFF') ; % Count ON A = on' ; ii = z...

5 days ago | 0

Answered
Problems with an integral
alpha1 = 1.8; kappa1 = 25; alpha2 = 2.2; kappa2 = 27; syms x z; f = alpha1 * alpha2 * kappa1 * kappa2 * (x-z)^(kappa1-1)...

5 days ago | 0

Answered
Can I add units to the table?
It is not allowed...may be you can use something like this: varNames = {'Name', 'Age_in_Years'} ; varTypes = {'string','do...

5 days ago | 0

Answered
How to store output for each input.
inputNames = {"mat1.mat", "mat2.mat", "mat3.mat"} length(inputNames) for i = 1:length(inputNames) load(inputNames{i}) ...

5 days ago | 0

Answered
Split a matrix into separate matrices and find centroid of each smaller matrix
A = rand(50,2) ; k = 10 ; [r,c] = size(A); nlay = r/k ; out = permute(reshape(A',[c,r/nlay,nlay]),[2,1,3]); % Ge...

5 days ago | 1

| accepted

Answered
Linear Regression, line of best fit
Read about polyfit https://in.mathworks.com/help/matlab/ref/polyfit.html To fit a line use n=1.

5 days ago | 0

Answered
Creation of 3X3 window
REad this https://in.mathworks.com/matlabcentral/answers/362262-i-have-a-32-32-matrix-i-want-to-take-mean-of-each-4-4-so-that-th...

5 days ago | 0

Answered
How to avoid inf value while feature extracting in Matlab?
Fill this inf's either using fillgaps or fillmissing. REad about those functions. Or, remove them getting the indices of inf usi...

5 days ago | 0

| accepted

Answered
Read large dat file without intermediate text lines
As the number of text lines are fixed i.e 5. We can take advantage of this. We can skip the text lines and read the numeric data...

5 days ago | 0

Load more