Community Profile

photo

KSSV


INCOIS

5,242 total contributions since 2011

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

Contact

KSSV's Badges

  • Master
  • Revival Level 3
  • 24 Month Streak
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
Find value (z) based on look up of coordinates (x,y)
Read about scatteredInterpolant Let (x,y,z) be you data. F = scatteredInterpolant(x,y,z,'nearest','none') ; iwant = F(...

19 hours ago | 1

| accepted

Answered
Equal area Delaunay-triangulated sphere
[x,y,z] = sphere; x = x(11:end,:); y = y(11:end,:); z = z(11:end,:); r = 1; % tri = delaunay(x,y); dt = delaunayTriangulat...

19 hours ago | 0

Answered
How can I change axes without changing the image plotted?
I = imread('peppers.png') ; image([0 1],[0 1],I) % fix the limits axis([0 0.8 0.5 1]) % limit the range

20 hours ago | 0

Answered
How to only show the last 10 iterations inside of this For Loop
Check this exmple code: N = 100 ; % loop count i = 1:N ; last10 = i(end:-1:end-10) ; for i = 1:N if any(ismember(i,...

20 hours ago | 0

Answered
replace one matrix with the positon indicated in another matrix
A = [1 3 3 4]; B = [1 2 3 4 ; 5 6 7 8 ; 9 10 11 12 ; 13 14 15 16 ] ; B(:,2) = B(:,2)+1 ;

1 day ago | 0

Answered
Draw 3D object.write code in 2016a version. Help me,thanks!
x = linspace(0,3) ; y = linspace(0,3) ; [X,Y] = meshgrid(x,y) ; Z = 1-X.^2 ; surf(X,Y,Z) shading interp

1 day ago | 0

| accepted

Answered
Using polyfit to fit 5 individual lines that intersect the y-axis
A = importdata('VERY_EXPENSIVE.txt'); x = A(:,1); y = A(:,2) ; % xi = 0:50:250 ; xi(1) = min(x) ; xi(end) = max(x) ; yi...

2 days ago | 1

| accepted

Answered
How can I fit a curve to x, y points and obtain the regression?
Yes polyfit is the function you need. x = linspace(0,4*pi,50); y = sin(x); % Use polyfit to fit a 4th-degree polynomial to...

2 days ago | 1

Answered
Please help me to rewrite the following codes
YOu need not to use a loop for your code. YOu can achieve it by simple matrix multiplication. Check the below code. a11 = ai(...

2 days ago | 0

Answered
how to remove some lines of a file?
fid = fopen('Job-1.inp','r') ; S = textscan(fid,'%s','delimiter','\n') ; fclose(fid) ; S = S{1} ; % lines to be removed str...

4 days ago | 0

Answered
For loop: Odd numbers turn 0 when checked if even
integers = randi([1 100], 1, 20); evens = zeros([],1) ; odds = zeros([],1) ; c1 = 0 ;c2 = 0 ; for k = 1:length(integers) ...

4 days ago | 1

| accepted

Answered
How do I write a program using MATLAB to find the circumference of a area (white) using the unit as a pixcel (i ever Used to command g = regionprops (label, 'Area');)
I = imread(image) ; I = rgb2gray(I) ; % If gray alredy not needed [y,x] = find(I) ; idx = boundary(x,y) ; imshow(I) hold...

4 days ago | 1

| accepted

Answered
Why am I getting this incorrect dimensions error if the matrices are 3x3 and 3x1?
X{i}*D should be D*X{i} M = [m1, 0, 0; 0, m2, 0; 0, 0, m3]; C = [c1, 0, 0; 0, c2, -c2; 0, -c2, c2]; K = [k1+k2+k4, -k2, -k4; ...

4 days ago | 0

| accepted

Answered
Show only XGrid on Heatmap plot?
[X,Y,Z] = peaks(100) ; pcolor(X,Y,Z) shading interp hold on plot(X',Y','k')

4 days ago | 0

Answered
Want a random matrix which has a negative eigenvalues
C = randi(10,3,3) ; C = C'+C eig(C)

4 days ago | 0

Answered
Function‘round’. Numerical calculation question
if your number is less than 0.5.._round_ acts like floor function. For number greater than or equla to 0.5 it acts like ceil. YO...

4 days ago | 0

Answered
what is wrong with my code?
YOu have defined your function as fa and you are calling it as f. Theere is typo error. fa=@(x) (2.*x.^3+3.*x.^2-6.*x+19)./(7....

4 days ago | 0

Answered
Reading an array from excel sheet
[num,txt,raw] = xlsreadmyfile) ; The txt/ raw variable from the above should be hjaving your required data.....you can run a lo...

4 days ago | 0

Answered
Curve Fitting - X &Y data
Take this as a demo example. In T and mu, you have to enter your data. Read about plot and polyfit. T = linspace(0,4*pi,10); ...

4 days ago | 0

| accepted

Answered
How to add the rows in a for loop
Should be something like this to solve error. labels = 1:100; element_positions = zeros(length(labels-10),4) for i = [1:9,11...

4 days ago | 0

Answered
How to get only one white dot in place of many scattered neighboring white dots
Get the locations of the points using find..group them and use mean to each group. YOu will get a single point.

5 days ago | 0

| accepted

Answered
Error with code?
YOu for got to add one bracket.Check the below lines.....the braces are added properly. C = 13.9 + (58.056*((x(1)).^-0.3017)) ...

5 days ago | 0

Answered
Resize specific dimensions of images
Read about imresize I = rand(256,256, 36, 99) ; I = imresize(I,[100,100]) ;

5 days ago | 0

Answered
Intersection of two Lines,which are passing through different slopes and two different points
m1 = rand ; %slope of line1 P1 = rand(2,1) ; % line1 passes through this point % m2 = rand ; % slope of line 2 P2 = rand...

5 days ago | 1

| accepted

Answered
How do I find the mean and standard deviation of each set of data given below?
Repeated question....Read about functions mean, std . If T is your table. % mean of column 1 m1 = mean(T.(1)) ; std1 = std...

5 days ago | 1

| accepted

Answered
Why vector don't equal when differentiating sin(pi*x)
YOu need not to use sums actually. Using syms is useless in your case. x= linspace(0,4); s= sin(pi*x); subplot(2,1,1); pl...

5 days ago | 0

Answered
I have a 29*3 table. Column 1 is for height (cm), Column 2 is for mass (kg), Column 3 is for body fat (kg). How can I divide body fat by mass to find out bf as a % of total body mass?
If T is your table with three columns..you can access respective columns using T.(1), T.(2) and T.(3).

5 days ago | 1

Answered
How many times does a pair of value occur in a row?
Read about ismember dat = [1,3,2,4,1,1,2,4,1,4,4,4,3; 2,1,4,3,2,2,2,4,1,1,1,2,3] ; dat = dat'; p = [1 2] ; [idx,...

5 days ago | 0

Answered
How to detect bright spot on image?
I = imread('11.JPG') ; I1 = rgb2gray(I) ; [y,x] = find(I1==255) ; %% Fit circle to the data (x,y) n=length(x); xx=x.*x; y...

5 days ago | 0

Load more