Community Profile

photo

KSSV


Last seen: 1 day ago

8,312 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 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) ; ...

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

1 day 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,:) ;

1 day ago | 0

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

1 day 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 =...

1 day ago | 0

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

2 days ago | 0

| accepted

Answered
MATLAB code by using nested loop
Read about for loop. Read about fprintf.

2 days ago | 0

Answered
Matlab interpolation between two surfaces
Have a look on slice.

3 days ago | 0

Answered
solve non linear equations
Replace the first line: lear all with clear all Also terminate the output of each line using ;

3 days ago | 0

Answered
Concatenate arrays in MATLAB and Change Column name of Table
t = [10 20 30; 40 50 60]; A = t(:,1) ; B = t(:,2) ; C = t(:,3) ; T = table(A,B,C)

3 days ago | 0

Answered
Function problem in loop
function out=fns1(X) x1=X(:,1); x2=X(:,2); x3=X(:,3); x4=X(:,4); x5=X(:,5); x6=X(:,6); x7=X(:,7); x8=X(:,8); x9=X(:,9);...

3 days ago | 1

Answered
How to set Reallyl Basic iterative sum
% f = n*sin(n*x) ; thesum = 0 ; for n = 1:10 thesum = thesum+n*sin(n*x); end

3 days ago | 0

| accepted

Answered
How to make a file size smaller when export as a netcdf?
Convert the variables to single and then write to nc file. Read about Single.

3 days ago | 0

| accepted

Answered
Contour plot for the external data
simData = importdata('eField_sample.txt'); % import data x_val = simData.data(:,1); % x-coordinate y_val = simData.data(:,2); ...

3 days ago | 0

| accepted

Answered
Create equations in a loop
% K*t = F t = K\F ; Refer more: https://in.mathworks.com/help/matlab/ref/mldivide.html

3 days ago | 1

Answered
Correlation of rows of matrix B with rows of reference matrix A
[r,c]=size(matA); x = zeros(length(r),1) ; for i=1:r x(i) = corr(matA(i,:)',matB(i,:)') ; end [val,idx] = max(x)

3 days ago | 0

Answered
Hello everyone, I would like to ask a question. How to plot only the (-pi:+pi) range of the following curve.
load jizuobiao2.mat THETA12 = linspace(-pi,+pi,length(RHO12)) ; f2 = fit(THETA12,RHO12,'smoothingspline','SmoothingParam',0.99...

4 days ago | 0

| accepted

Answered
Calculate the Gradient of a given function using the forward and central quotients.
function f1x = vordiff(f,x,h,y,z) %Vorwärtsdifferenzenquotienten syms x y z ; f = (4*x+3*y+2*z)*e^(-3*x^2)-4*y^2-8*x*y-2*z^2 ...

5 days ago | 0

Answered
How to select a range of data in matrix
Let A be your column matrix. idx = A <= 44.1 ; % get indices using logical indexing iwant = A(idx) ; % Extract those elemen...

5 days ago | 1

| accepted

Answered
Loop for contour a 3 inputs function
x = linspace(-1,1) ; y = linspace(-1,1) ; z = linspace(-1,1) ; [x,y,z] = meshgrid(x,y,z) ; s = x.^2+2*x.*y.*z+y.^3+y.^...

6 days ago | 1

Answered
How can i use symbolic variables which were created as a vector?
What you have shown will not work and it is meaning less. You have to use: x = [1 2 3 4 5 6 7 8 9]; Where veer you have x1, x...

6 days ago | 0

Answered
How can I plot 4-dimensional plot?
Have a look on slice. T = readtable('Book1.xlsx') ; l1 = T.l1 ; l2 = T.l2 ; l3 = T.l3 ; Lz = T.Lz ; nx = length(un...

6 days ago | 0

Answered
How to identify biggest location plot of random plotting
You need to sort the distance and pick the required number of points you want, to get the points from A close to BS. n = 50; ...

6 days ago | 0

| accepted

Answered
How to generate video file from animated plot in Matlab?
It is because, you are writitng only the last frame into video...you need to keep the video writer code into a loop. x = linsp...

6 days ago | 0

| accepted

Answered
Creating a matrix of all possible combinations given multiple vectors
REad about perms and nchoosek.

6 days ago | 0

Answered
How can we generate random numbers between two negative values.
a = -5 ; b = -1.670000000000000 ; r = (b-a).*rand(1000,1) + a;

7 days ago | 2

| accepted

Answered
Find the under condition min or max of a row vector
a = [ 1 3 5 2 5 7 8 3 6 4 9 ] ; a(a<3) = NaN ; % Replace values <3 to NaN [val,idx] = min(a)

7 days ago | 0

| accepted

Answered
How to use for loop
user_input = fprintf('%.1f\n', input('Enter a positive real number')); count = 0 ; while count <= 10 if user_input >= 0 ...

7 days ago | 1

Load more