# KSSV

https://sites.google.com/site/kolukulasivasrinivas/

Professional Interests: Mathematical Computing

**Statistics**

RANK**7**

of 257.847

REPUTATION**23.427**

CONTRIBUTIONS

**19** Questions

**10.397** Answers

ANSWER ACCEPTANCE **
57.89%
**

VOTES RECEIVED**2.862**

RANK**105** of 17.769

REPUTATION**9.832**

AVERAGE RATING**4.60**

CONTRIBUTIONS**30** Files

DOWNLOADS **478**

ALL TIME DOWNLOADS**91819**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Multiple color bar graph in Matlab

x=[1 2 3] ; y=[10 20 30] ; c = {'r','g','b'} ; figure hold on for i = 1:3 bar(x(i),y(i),c{i}) end

23 minuten ago | 0

plotting a 2D truss

Refer this: https://in.mathworks.com/matlabcentral/fileexchange/86548-matlab-truss-finite-element-analysis If not attach your ...

ongeveer 4 uur ago | 0

Index in position 2 exceeds array bounds. Index must not exceed 1. Error in FYP2 (line 154) h = plot (f ,Range(:,c));

Your RANGE is a array of size 991x1 and you are trying to extract more number of elements from it. May be you need to replace Ra...

ongeveer 21 uur ago | 0

Addition of two different sized arrays

You may resize them to same size using imresize.

ongeveer 22 uur ago | 1

| accepted

How to calculate differential equation with trigonometric function?

f = @(x,y) -1./((2./y).*x+x.^2*y.^2.*cos(y)) ; xspan = [0.1 2] ; x0 = 1 ; [x,y] = ode45(f, xspan, x0); plot(x,y)

ongeveer 23 uur ago | 0

Use a for-loop for multiply colums of two arrays

A = rand(4,8) ; B = rand(4,1) ; iwant = A.*B ;

ongeveer 23 uur ago | 1

Three columns (x,y,z) in table, Loop through table for each X plot Y vs Z

Let data be your three column matrix. x = data(:,1) ; y = data(:,2) ; z = data(:,3) ; xi = unique(x) ; yi = unique(y)...

ongeveer 23 uur ago | 0

How to interpolate pressure

load('matlab_Pressure.mat') L = linspace(5,700,length(PP)) ; Li = min(L):max(L) ; PPi = interp1(L,PP,Li) ; plot(L,PP,'....

1 dag ago | 0

| accepted

Using arrays, x and y coordinates, to calculate values for each pair of x and y

What I can understand is, you can make use of knnsearch, rangesearch

1 dag ago | 0

What does .Metric do?

These lines: matchedPoints1 = valid_points1(indexPairs(:,1),:); matchedPoints2 = valid_points2(indexPairs(:,2),:); The result...

1 dag ago | 0

| accepted

Image file saving location

thepath = 'C:\Users\leehj\Desktop\aaa\' ; for i = 1:5 h = imagesc(X, Y, Z(:,:,i)); xlim([-2 2]); ylim([-1 1]); fnam...

1 dag ago | 0

Is there a way to add a global subtitle over a group of subplots?

figure subplot(221) title('First Subplot') subplot(222) title('Second Subplot') subplot(223) title('Third Subplot') subpl...

1 dag ago | 1

| accepted

plot textdata with NaN

Read about readtable. T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1002155/owid-covid-data_202...

2 dagen ago | 0

Performing calculations for specific values in a table defined by certain values from another column (Date)

Let T be your table. [c,ia,ib] = unique(T.Date) ; N = length(c) ; theduration = duration(nan(N,3)) ; for i = 1:N Ex...

2 dagen ago | 1

| accepted

Convert daily data to monthly data with missing values.

You can fill the missing values using fillmissing. You can resample the data using retime

2 dagen ago | 0

| accepted

Histogram Not Plotting Correctly

n = 100; x = zeros(1,n) ; for k = 1:n x(k) = randi(5) ; end hist(x,10) Loop is not required. n = 100; x = randi(5,1,...

2 dagen ago | 0

Error using legend (line 263) Element 1 is not a string scalar or character array. All elements of cell input must be string scalars or character arrays.

There is a problem in creating the legend string. I have modififed the code, now error is rectified. But your code is messy. You...

2 dagen ago | 0

| accepted

Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.

The error is simple, you are trying to save wrong number of elements then the LHS is intialized for. A = zeros(5,5) ; % A is ...

2 dagen ago | 0

| accepted

How to plot 2D location vs corresponding data in MATLAB

REad abour kmeans T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/999455/MATLAB.xlsx') x = T.(1) ...

2 dagen ago | 0

| accepted

Error in T12 (line 35) surf(X, Y, fplot) and I have no idea what I was wrong

clc clear close all syms x y f = @(x,y)(x.^2+y.^2+x.*y-12*log(x)-10*log(y)); fx = diff(f,x); fy = diff(f,y); [xc,yc] = so...

3 dagen ago | 0

| accepted

Too many input arguments using square

Code is working fine. It seems you have introduced a variable named square. Clear it and then run the function. REad about clear...

3 dagen ago | 0

| accepted

How to calculate inverse of 3d array matrices with size 3*3*18 ?

A = rand(3,3,18) ; [m,n,p] = size(A) ; B = zeros(m,n,p) ; for i = 1:p B(:,:,i) = inv(A(:,:,i)) ; end

3 dagen ago | 0

| accepted

How can I filter an entire row using a date?

You have varities of cunction to do that. Cnvert the required datetime column into class datetime. This class has the informatio...

3 dagen ago | 0

Draw 3D elliptic cylinder with given parameters

You may proceed like this: a = 4.5368 ; b = 5.6885 ; C = [0.5351, -5.2359] ; L = 21.98 ; u = linspace(0,2*pi) ; v = lins...

3 dagen ago | 1

Merge rows based on conditions in the coulmns

data = importdata('dmp.txt') ; [c,ia,ib]= unique(data(:,[1 end]),'rows','stable') ; N = length(c) ; iwant = cell(N,1) ; f...

3 dagen ago | 0

Apply a color map to a 2d line

Read about patch x = linspace(1,10,15); y = sin(x); y(end) = NaN; c = y; figure patch(x,y,c,'EdgeColor','interp'); colo...

3 dagen ago | 0

| accepted

What do I have to do if I want to derivative and continue multiplying?

A = [1 2;3 4;5 6]; B = [7 8;9 10;11 12]; D = A'*gradient(B)

3 dagen ago | 0