# KSSV

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

**Programming Languages:**

Python, MATLAB, Fortran

**Spoken Languages:**

English, Hindi, Telugu

**Statistics**

RANK**7**

of 287,709

REPUTATION**26,067**

CONTRIBUTIONS

**19** Questions

**11,271** Answers

ANSWER ACCEPTANCE **
78.95%
**

VOTES RECEIVED**3,361**

RANK**97** of 19,424

REPUTATION**10,571**

AVERAGE RATING**4.60**

CONTRIBUTIONS**30** Files

DOWNLOADS **329**

ALL TIME DOWNLOADS**99073**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Error using surf Z must be a matrix, not a scalar or vector.

You have to use X and Y i.e matrix in the calculation Z. x=(0:0.1:pi); y=(0:0.1:pi); [X, Y]= meshgrid(x,y); Z=(sin(0.3*X)+(...

8 days ago | 0

| accepted

How to fill/interpolate missing data to nearest geospatial coordinate?

% Prepare dummy data [X,Y] = meshgrid(1:10,1:10) ; Z = rand(size(X)) ; % Make random nan's idx = sort(randsample(numel(X...

21 days ago | 0

Loading a .fig file in MATLAB without losing information

h1 = openfig('test1.fig','reuse'); % open existing/ saved figure ax1 = gca; % get handle to axes of figure h2 = figure; % cr...

1 month ago | 1

| accepted

How to get the plot x&y when a user clicks on a point I have plotted

REad about getpts

1 month ago | 0

I wonder how to make the lines thicker in rlocus graph

sys = tf([2 5 1],[1 2 3]); rlocus(sys) set(findall(gca, 'Type', 'Line'),'LineWidth',5);

2 months ago | 0

How to get output of multiple variables in xls

Let the variables be x, y, z. T = table(x,y,z) ; writetable(T,'text.xlsx')

2 months ago | 0

FE triangle mesh without the mesh node connections visible

h1 = trisurf(meshConnections, X, Y, Z, permittivity); h1.EdgeColor = 'none' ;

2 months ago | 0

| accepted

Searching a string on a table to get time

You may try using functions like contains, strcmp T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/...

3 months ago | 0

Why dot indexing is not supported for variables of this type using EMD method in MATLAB R2019a version ? What can I do?

It seems IMF is not a sturcutre. Check class(IMF) If it is double. Try max(IMF)

3 months ago | 0

| accepted

How to plot the graph from the data table as attached.

load matlab.mat ; x = LineProfile.(1) ; y = LineProfile.(2) ; plot(X,y,'r') hold on plot(x,smooth(y),'b')

4 months ago | 0

| accepted

Matlab Error (Z must be a matrix, not a scalar or vector.)?

P_air = .1:.1:4; alpha = .0125:.0125:.5; [alpha,P_air] = meshgrid(alpha,P_air); T_air_dry = (1/0.0408)*log((0.42*P_air.*(1-al...

4 months ago | 1

| accepted

I am having a problem using corelation with table variables.

M(k,p) = corr(data_array1.(1),data_array2.(1)) OR M(k,p) = corr(table2array(data_array1),table2array(data_array2))

4 months ago | 1

| accepted

How to assign a mean of a variable to every year ?

T = readtable(myfile) ; [c,ia,ib] = unique(T.(1)) ; % gewt unique values of years N = length(c) ; iwant = zeros(N,2) ; ...

4 months ago | 1

Finding the roots for an equation

syms x a eqn = x^4+5*a*x^2+6*a==0 ; s = solve(eqn,x)

4 months ago | 0

| accepted

Right hand side of an assignment into a table must be another table or a cell array.

bias = table('Size',[1,11], 'VariableTypes', {'datetime', 'string', 'double', 'double', 'double', 'double', 'double', 'double', ...

4 months ago | 0

Filtering Values in Matlab in the Same Matrix Size

A = [2 5 8; 2 6 7; 1 9 5] ; A(A<=5) = 0

4 months ago | 0

| accepted

How do you plot a line on a function defined by colors?

[X,Y,Z] = peaks(100) ; contourf(X,Y,Z)

4 months ago | 0

Plotting a cartesian equation with an imaginary component of 0*1i

c = 4+1i*0 ; plot(real(c),imag(c),'*r')

4 months ago | 0

| accepted

How can I generate a 3D torus taking a function as the torus shape?

R1 = 3 ; R2 = 1 ; u = linspace(0,2*pi-eps) ; v = linspace(0,2*pi-eps) ; [u,v] = meshgrid(u,v) ; X = (R1+R2*cos(v)...

5 months ago | 0

Interpolate MATLAB geoscatter/geoplot data to estimate average wind speeds in the Gulf of Mexico?

REad about scatteredInterpolant, griddata.

5 months ago | 0

Plotting my own validation and loss graph while training a CNN

[net,info] = traiNetwork() ; % you need to train the network rmse = info.TrainingRMSE ; % get the RMSE curve from info ep...

5 months ago | 0

Why won't my plot start 0 and increase to 0.005 like my Ld

clc; clear all ; % url = 'https://www.ioc-sealevelmonitoring.org/list.php?operator=&showall=all&output=contacts#' ; % T = we...

5 months ago | 0

Writing into excel sheet from matlab

N = 10 ; iwant = zeros(N,1) ; for i = 1:N iwant(i) = i ; end T = table(iwant) ; writetable(T,'Test.xlsx')

5 months ago | 0

I am trying to read xlsx file data into MATLAB environment, not able to read xlsx variables more than 10.

Don't use xlsread, it is obselete. Use readtable.

5 months ago | 0

Select images from a folder based on their similarity.

Read about ssim.

5 months ago | 0

| accepted

Plotting a time series e^(-at) cos((bt) u_s (t)) for two cases, first for a=3 and b=50, then for a=-3 and b=50.

clc; clear ; a1=3; b1=50; a2 = -3; b2= 50; t = linspace(0,1) ; f1 = exp(-a1*t).*cos(b1*t) ; f2 = exp(-a2*t).*cos...

5 months ago | 0

How can i calculate max correlation and time delay between two signals?

REad about crosscorr.

5 months ago | 0

how to remove a particular season values from monthly time series?

thedates = (datetime(2003,1,1):days(30):datetime(2023,12,31))' ; idx = thedates.Month == 1 | thedates.Month == 2 | thedates.Mo...

5 months ago | 1

Segment distance along path (imported from kml) using mapping toolbox

This should be useful for you: https://in.mathworks.com/matlabcentral/fileexchange/34874-interparc

5 months ago | 1

Randomly generated cubes in cylindrical volumes in MATLAB

% Draw cyliner Radius = 1. ; % Radius of the cylindrical shell Height = 2. ; % Height of the Cylinder % ...

5 months ago | 1

| accepted