Community Profile

photo

KSSV


Last seen: Today

8.335 total contributions since 2011

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

Contact

KSSV's Badges

  • MATLAB Central Treasure Hunt Finisher
  • Personal Best Downloads Level 4
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • 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 add hours:minutes in Matlab?
t='10:10'; [Y, M, D, H, MN, S] = datevec(t); H*60+MN

circa 6 ore ago | 0

Answered
Array indices must be positive integers or logical values.
In MATLAB arrays indices cannot be negative/ zeros. Your code: for t = [0:1:10] v(t) = pwmmode (t,T,d); end Should be li...

circa 6 ore ago | 0

Answered
Fitting a parametric function to a dataset
Have a look on this: https://in.mathworks.com/matlabcentral/fileexchange/33610-a-tour-of-parametric-equations

circa 12 ore ago | 0

Answered
How to zero the data points behind the line of figure?
data = ones(100,200); x = (0:1:size(data,2)-1)*0.1; y =(0:1:size(data,1)-1)*0.1; x1 = [2.4;13.9]; y1 = [-0.5;9.8]; p = ...

circa 12 ore ago | 0

Answered
How can I merge my data set based on the time in MATLAB?
data_1_y_axes=[0,1,3,5,4,6,8,9,7] ; time_1_x_axes=[.02,0.03,.05,.06,.07,0.08,0.09,.1,.2] ; data_2_y_axes=[0,2,4,5,2,7,5,7,5] ;...

3 giorni ago | 0

Answered
transpose loop without operator
A = rand(3) ; [m,n] = size(A) ; B = A ; for i = 1:m for j = 1:n B(i,j) = A(j,i) ; end end

3 giorni ago | 0

Answered
how can ı solve without curve fitting?
Read about polyfit. x=0:5; y=[15, 10, 9, 6, 2, 0]; p = polyfit(x,y,4) ; xi = 0:0.1:5 ; plot(x,y,'or',xi,polyval(p,x...

3 giorni ago | 1

| accepted

Answered
Please, how to plot for this code?
Read about element by element operations. k = -2:0.1:2; g = ((2*cos(2*k))-2)./(1i*k); % use ./ plot(k,abs(g)) hold on pl...

4 giorni ago | 0

| accepted

Answered
Randomly concatenating audio files
N = 10 ; C = cell(N,1) ; % C(2:2:end) = insert your silence audio idx = 1:2:N ; % left indices to insert your required ...

4 giorni ago | 0

Answered
How can I plot a circle use given point?
If you have points.....you can find the radius of circle. It depends on how many points you know. Frame the distance formula a...

4 giorni ago | 0

Answered
For Loop range error
t0 = -0.5 ; % initial time t1 = 50 ; % final time dt = 0.5 ; % time step T = t0:dt:t1 ; % create time vector N = le...

4 giorni ago | 0

Answered
read the first 3 lines of a file and extract variables without reading the rest
fid = fopen('file.txt'); tline = fgetl(fid); val = cell(3,1) ; n = 1 ; val{n} = str2double(regexprep(tline, {'\D*([\d\....

4 giorni ago | 0

Answered
how to plot y(t)
Check the expressions thoroughly....not sure did I enter correct. fs=10; Ts = 1/fs; c = 10; t = -1:0.01:1; b=1...

6 giorni ago | 1

Answered
2D interpolation of scattered data
x = [1 2 3 4 5]; y = [1 2 3 4 5]; z = [1 2 1 2 3; 3 4 3 4 5; 5 6 5 6 7; 3 4 3 4 5; 1 2 1 2 3]; [X,Y] = meshgrid(x,y) ; i...

6 giorni ago | 1

| accepted

Answered
How can i count the number of point in each grid?
Get each box coordinates, this box is a polygon and then use the function inpolygon. Run a loop for each box.

8 giorni ago | 0

Answered
how to plot of a infinite series in 2D
Hints: Define x as an array using linspace after defining min and max value of x. Define t as an array using linspace after d...

8 giorni ago | 0

Answered
How to implement the Fourier series method of heat equation?
You shoul dhave a look on symbolic math toolbox. Rfer this answer: https://in.mathworks.com/matlabcentral/answers/413890-the-ex...

8 giorni ago | 0

Answered
I have encountered a problem and would like to ask everyone to help solve it. The problem to be solved is how to close the following two fitted curves. Thank you very much for your enthusiastic answers.
load dataA.mat %x1=dataA(:,1); %y1=dataA(:,2); f1 = fit(xAbove,yAbove,'smoothingspline','SmoothingParam',0.0001);%smoothingsp...

8 giorni ago | 0

| accepted

Answered
3D figure with different faces color
Read about surf, patch, fill, fill3.

9 giorni ago | 0

Answered
Limit Lines/Plane on a 3D Plot
In 3D your (x,y) points remain same on the line and your z coordinate will vary. You can write a small function for you need. ...

9 giorni ago | 0

Answered
Hello everyone, how do you fit two curves into a closed curve?My code is as follows.
load dataA ; load dataB ; C1 = [xAbove yAbove] ; C2 = [xBelow yBelow] ; % MErge them C = [C1 ;C2] ; idx = boundary(C(:,...

9 giorni ago | 0

Answered
Laplace equation, FEM
This is the book for you: https://www.amazon.in/Finite-Element-Mechanical-Aerospace-Engineering/dp/0849300967

9 giorni ago | 0

| accepted

Answered
Hello everyone, how to divide a piece of data into upper and lower parts along the y-axis with C point and D point as the boundary?
Option 1: You should get the indices of C, D in the given points of curve. Read about knnsearch, this will give indices of point...

10 giorni ago | 0

Answered
How to convert 8 Binary images of size 256 x 256 into a Grayscale image of same size, i.e., 256 x 256?
images = dir('*.tiff'); N = length(images) ; iwant = cell(N,1) ; for i = 1:N iwant{i} = imread(images(i).name) ; ...

11 giorni ago | 0

Answered
How to merge data with latitude and longitude?
latitude = [-3.63965:-0.00449:-8.12601]; longitude = [-37.5098:0.00453:-32.9831]; [matrix_latitude, matrix_longitude] = meshg...

11 giorni ago | 0

Answered
finding last column values
Let A be your 12094*3 matrix and P be your 7*2 matrix. idx = inpolygon(A(:,1),A(:,2),P(:,1),P(:,2)) ; iwant = A(idx,:) ;

11 giorni ago | 1

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values. can anyone help me solve the problem?
T_1=tf(num1(1,:),den1); The above line is ridiculous. Points to note: tf is a scalar whose value is 20. Why indexing? num1 h...

11 giorni ago | 0

| accepted

Answered
Counting Specific Number of Consecutive Values in a Matrix
A = [1 0 0 1 1 1 0 1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 0 1]; % First column x =...

12 giorni ago | 1

Answered
pi approximation using a series
x = 0 ; n = 0 ; while ~(abs(pi-x) <= 10^-4 ) x = x+4*(-1)^n/(2*n+1) ; n = n+1 ; end

12 giorni ago | 0

| accepted

Load more