Community Profile

photo

KSSV


Last seen: Today

8.486 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
Slow for loop string comparison
Obviously what you have shown will be dead slow and also may not work. You can striaght aways use strcmp, contains. Read about...

alrededor de 3 horas ago | 0

Answered
How can I get operating the code vector computing with different size matrix
Read about logical indexing. Pick the points or x which are not zeros and do the operations on only those points ignoring the po...

alrededor de 8 horas ago | 0

Answered
How to remove NaNs from an array between points
Read about isnan. idx = isnan(example); idr = diff(find([1;diff(idx);1])); D = mat2cell(example,idr(:),size(example,2)); cel...

alrededor de 8 horas ago | 0

| accepted

Answered
Lagrange Interpolation Code Error/Help
You can evaluate polyval using: deg = length(p)-1 ; % degree of he polynomial % get powers of x till deg X = xs'.^(deg:-1:0...

alrededor de 8 horas ago | 1

| accepted

Answered
Find how many times a line of code is run
count = 0 ; for j = 1:2:8 count = count+1 ; calcA = calcA+x ; end Check the value of count, it should have run ...

1 día ago | 0

| accepted

Answered
One dimensional interpolation of a two dimensional matrix
Let A be your 24*365 data matrix. t = (60:60:24*60)' ; ti = (1:1:24*60)' ; B = zeros(1440,365) ; for i = 1:365 B(:,i)...

2 días ago | 0

Answered
how to use two while and for loops?
if x < 1 statement1 elseif x >= 1 statement2 end

2 días ago | 0

Answered
join 2 strings together to 1
Read about join, strcat. You can also achieve the same using: str = ['Biegung_35_' ,'Evaluation.txt'] ;

4 días ago | 0

Answered
Check for missing argument or incorrect argument data type in call to function 'solve'.
syms x1 x2 x3 x4 eqn{1} = 4.4*x1-2.5*x2+19.2*x3-10.8*x4-4.3==0 ; eqn{2} = 5.5*x1-9.3*x2-14.2*x3+13.2*x4-6.8==0 ; eqn{3} = 7.1...

4 días ago | 1

Answered
roots of non linear periodic function
syms x p = pi/4 ; L = 2 ; eqn = x*L*tan(x*L)-p==0 ; s = vpasolve(eqn,x)

4 días ago | 0

Answered
12 x 12 matrix
A = rand(12) ; B = A(2:10,2:9)

4 días ago | 0

| accepted

Answered
Plotting Multiple Functions on the same graph
z = 0:0.001:1; figure hold on for n = 1:5:15 ysin = fsin(z,n); plot(z,ysin) end grid xlabel('z'),ylabel('sin fun...

5 días ago | 1

| accepted

Answered
Nested For Loop Value Appended to Overall Matrix
lim = 12; count = 0 ; A = zeros([],5) ; for a = 0:lim for b = 0:(lim - a) for c = 0:(lim - a - b) ...

5 días ago | 0

Answered
How can I use decreasing x-data using findpeaks?
May be you should try: [pks, LOCS] = findpeaks(GlucoseS3{:,1}, GlucoseS3{:,4});

6 días ago | 0

Answered
Autmating a matlab script
matFiles = dir('*.mat') ; N = length(matFiles) ; for i = 1:N load(matFiles(i).name) ; % you need to see how the varia...

6 días ago | 1

| accepted

Answered
not getting line in my plot? why
Vc=0.1:0.1:0.5 ; V_tip=180 ; rho=1.225 ; w=180 ; sigma=0.047193 ; Cd_avg=0.01 ; R=2.235 ; Rv=80.529 ; A=pi*R.^2 ; Vh=s...

6 días ago | 0

Answered
how to use curve fitting without using curve fitting toolbox?
Refer this: https://in.mathworks.com/help/curvefit/curve-fitting.html

6 días ago | 0

Answered
How to save a sequence of images into a specific folder
ImageFolder ='C:\Users\person\Desktop\ Project\Matlab\Image Saving Test'; for i=1:5 % this loop will take 5 pictures and save t...

6 días ago | 0

| accepted

Answered
how to write a code second order diffrentiation code in MTLAB
st = -1; inc=0.001; en =1; t=st:inc:en; y= t.^3; x=zeros(1,(length(i)-2)); for i=1:(length(t)-2) x(i)=(y(i+2)-2*y(i+1...

6 días ago | 0

| accepted

Answered
Element subtraction of same matrix
A = [2,5; 3,8]; B = [2-2, 2-5, 2-3, 2-8; 5-2, 5-5, 5-3, 5-8; 3-2, 3-5, 3-3, 3-8; 8-2, 8-5, 8-3, 8-8]; A1 = A' ; ...

7 días ago | 2

Answered
Finding the maximum value in a specific row of a matrix
M = [3 6 1 -2; 3 0 -2 -4; 8 -3 5 4; -2 -3 -2 5]; [val1,idx1] = max(M(4,:)) % maximum in the row 4 [val2,idx2] = max(M(:,3))...

7 días ago | 0

Answered
how to animate two plots at the same time?
Put this line: comet3(xv,yv,zv) %xv yv zv are the values I get from solving the 2-body problem which I didn't include here int...

7 días ago | 0

| accepted

Answered
index exceeds the number of array elements (1).
This error occurs when you try to extract more number of elements than present in the array. EXample: A = rand(1,10) ; A(1) ...

7 días ago | 0

| accepted

Answered
Plot will not show lines
x = -0.923 : 0.01 : -0.633 ; f = 16*x.^3 - 13*x.^2 + 12*x + 15 ; g = -7*x.^3 - 6*x.^2 + 4*x - 6 ; plot(x,f, x,g) ylabel('...

7 días ago | 0

| accepted

Answered
drawing a best fit graph
I = imread('image.png') ; I = rgb2gray(I) ; [y,x] = find(~I) ; % Get center idx = boundary(x,y) ; x = x(idx) ; y = y(id...

7 días ago | 0

Answered
Find all values between 2 index columns
for i = 1:size(c,1) value = dataset(C(i,1):C(i,2)); end

7 días ago | 0

| accepted

Answered
I'm trying to create three curves, but my plot is blank
Code looks meaning less though. mi = [2814 1000 19781]; c(1) = 2080; c(2) = 1580; c(3) = 2580; v = c*log(19781/2814); figu...

7 días ago | 0

| accepted

Answered
How to find the point of intersection of two level curves?
The best function for you: https://www.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections

8 días ago | 0

Answered
How to plot in command window
If your data is 2D, use plot plot(x0,yo) If your data is 3D use plot3. plot3(xo,yo,r) ; Note that to use plot command x0,y0...

8 días ago | 0

| accepted

Answered
For loop gives error: Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
This error occurs, when you try to save more number of elements than you initialized. Example: A = rand(10,5) ; % initialize ...

8 días ago | 0

Load more