Community Profile

photo

KSSV


Last seen: Today Active since 2011

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

Programming Languages:
Python, MATLAB, Fortran
Spoken Languages:
English, Hindi, Telugu

Statistics

All
  • MATLAB Mini Hack 2022 Participant
  • MATLAB Mini Hack 2nd Place
  • Most Accepted 2022
  • Grand Master
  • Solver
  • Personal Best Downloads Level 4
  • First Review
  • Most Accepted 2021
  • Treasure Hunt Participant
  • MATLAB Central Treasure Hunt Finisher
  • 5-Star Galaxy Level 5
  • First Submission

View badges

Content Feed

Answered
How to save matrixes resulted from a running loop for further use in MATLAB
Let mxn be your matrix size and you are running loop ntimes. In this case you can save the matrix in the loop using the below co...

40 minutes ago | 0

Answered
how i can solve this problem? unrecognized function or variable to run my code
I think this is what you need. % Define the operating frequencies in Hz freqs = linspace(1e9, 6e9, 100); % 100 equally spaced ...

44 minutes ago | 0

Answered
how to convert cell to mat
REad about real and imag R = real(htemp); C = imag(htemp) ;

3 hours ago | 0

Answered
2D array to 1D with rows appending after another row
A =[1 2 3 ; 4 5 6] ; iwant = reshape(A',1,[])

1 day ago | 1

| accepted

Answered
how to plot such figure in MATLAB?
Read about xticklabels

1 day ago | 0

Answered
Vector plots by Quiver in MATLAB
[X,Y,Z] = peaks(100) ; [u,v] = gradient(Z) ; w = sqrt(u.^2+v.^2) ; pcolor(X,Y,w) ; shading interp ; colormap(jet); hol...

1 day ago | 1

Answered
How can I avoid using for loop in this functions
function y=Besselj_approx(n,z) i = n ; y=zeros(1,length(n)); y(1:end)=-z.^2/4+1; y(i>0) = 1./gamma(i(i>0)+1).*(z/2).^i(i>0);...

2 days ago | 0

Answered
How do I save a file in excel to matlab current folder?
T = readtable('myfile.xlsx') ; T

4 days ago | 0

Answered
Given x= rcos(𝛼) ; y=rsin(α); write MATLAB program to plot a circle of unit radius (r=1).
This is a simple homework... You should do it your self. Read about: Linspace for making angle between 0 to 360 i.e. 0 to 2*pi ...

4 days ago | 1

Answered
Plotting 3D by rotate 2D plot around y-axis
This might be useful. Checkout: https://in.mathworks.com/matlabcentral/communitycontests/contests/4/entries/4996

5 days ago | 0

Answered
Averaging data between two integer and corresponding column of a matrix
A = [1 2 3 4 5 6; 1.234 1.11 1.3 2.31 2.3 2.4]' ; idx = fix(A(:,2))==2 ; mean(A(idx,1))

7 days ago | 0

Answered
How to make a linear regression coefficient algorithm
x = 1:10 ; y = rand(1,10) ; [a,b] = linreg(x,y) ; % Check p = polyfit(x,y,1) ; [a b ; p(2) p(1)] function [alpha, b...

7 days ago | 0

Answered
How to create a custom colormap ("seismic" from python)
Refer this: https://in.mathworks.com/matlabcentral/fileexchange/45208-colorbrewer-attractive-and-distinctive-colormaps https:/...

7 days ago | 1

| accepted

Answered
what is the meaning of this error? how to stop this error?
You have copied this function named 'Forward_model' under a script/ code whose file name is also same as the function i.e. Forwa...

10 days ago | 0

Answered
Keeping same colors for the same groups in different group scatter plot
P = rand(1000,2) ; x = P(:,1) ; y = P(:,2) ; idx = kmeans(P,4) ; figure h = gscatter(x,y,idx) ; % Get colors C = resha...

11 days ago | 1

| accepted

Answered
Why doesn't it work ? Please help
dt = 0.01; t = 4; T = 0:dt:t; % First Quarter r1 = 0:dt:t/4 ; p1 = sin(pi.*r1) ; plot (r1,p1) % Define second Qua...

12 days ago | 0

Answered
matlab polyfit multiple sets of y data
Run a loop for each set..... Let y be your mxn data and x be your 1xn data. p = cell(m,1) ; for i = 1:m p{i} = polyfut...

12 days ago | 0

Answered
Can't run my 'if, elseif, else' code
score= randi(100); if score < 20 grade = 'D'; elseif score < 40 grade= 'C'; elseif score < 60 grade= '...

13 days ago | 0

| accepted

Answered
cell array into matrix
Read about cell2mat.

13 days ago | 0

Answered
Not enough input arguments
f = @(x,y) x.*y + 10*sin(x).*cos(y); x = linspace(0,2*pi) ; y = linspace(0,2*pi) ; [X,Y] = meshgrid(x,y) ; Z = f(X,Y) ; su...

13 days ago | 1

Answered
can you help me to solve this equation?
syms x P = sqrt(27.8*exp(5*x)-1) == cos((120*x^2+sqrt(2*x))/(17*x-65))^(-1) ; s = vpasolve(P,x)

21 days ago | 0

Answered
Syntax problem with a user-defined function with sine
function r = my_function(thet) r = pi*(3-sin(theta)^5) ; end Save the above, it will be saved on he name my_function.m. ...

25 days ago | 0

Answered
Matrix multiplication gives different result than manual dot products with each column
As you are comparing floatting point number, you should not use isequal. You should proceed like shown below: N = 1000; B = 10...

26 days ago | 0

Answered
How to plot the streamlines and arrow surface in MATLAB from columns of data?
clc ; clear all ; % T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1311670/streamlines%20plot.txt...

26 days ago | 0

| accepted

Answered
trying to align multiple sin waves onto same graph with the period of the wave on the x axis.
Take same time array for all the waves. g = 9.807; T = 11; H = 4; d = 30; CD = 0.85; CM = 1.77; Rho = 1025; D = 1; u =...

27 days ago | 0

Answered
Double X-axis(t,p1) and single Y-axis(p2) depending on t
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1309930/b1.xlsx') ; t = duration(T.Time); p1 = T....

28 days ago | 0

Answered
How to apply the same style/color and axes labels to all subplots?
colors = ["k"; "r";"g";"r";"g"]; lines = ["-"; "-";"-";"--";"--"]; tiledlayout(2,2); ax(1) = nexttile ; plot(rand(10,1)...

28 days ago | 1

| accepted

Answered
Generating lognormal random numbers
Read about lognrnd

29 days ago | 0

Answered
How to get the decimal values using solve in MATLAB
Read about vpasolve, double.

29 days ago | 1

Answered
How do I repeat the comand for another line
dt = dx1./v; % let dt be 10x1 array m = length(dt) ; n = 60001 ; temp0 = zeros(m,n) ; for i = 1:n tempo(:,i) = 0:dt...

29 days ago | 0

| accepted

Load more