Community Profile

photo

KSSV


Last seen: Today

8.611 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
Matlab error, Z must be a matrix, not a scalar or vecto
r= 5; theta= 60 ; ro=5; w1=200; w2=300; t=0:1:60; dt=diff(t); dt = unique(dt) ; x=ro*cos(w1.*t)+r.*cos(theta+(w1+w2...

ongeveer 13 uur ago | 0

Answered
Comparative Operator result is wrong
Note that you are comparing two floating point numbers and such numbers cannot be comapred using ==. Follow tol = 10^-5 ; idx...

ongeveer 15 uur ago | 0

Answered
Preallocating cells with unknown output size
You can try to initilize them as X = cell([],[]) ; You can check the timing using tic , toc.

ongeveer 18 uur ago | 0

Answered
Why is the graph linear instead of curve?
You have to increase the number of values in x, when calling the function. x=[0 8 16 25 37]; y=[5 17 12 21 19]; disp("Los da...

ongeveer 19 uur ago | 0

Answered
Output argument "output" (and maybe others) not assigned during call to
Check in your function/ file the output which you are seeking is not present. a = myfunc(2,3) ; function out = myfunc(b,c) ...

ongeveer 19 uur ago | 1

| accepted

Answered
Array processing operation and summation
To achieve this you need to read about input and for loop. Use input and enter the value of N. Initialize the required sum ...

ongeveer 22 uur ago | 0

Answered
Extract data between thresholds
A = load('test.txt') ; A = A' ; ii = zeros(size(A)); jj = A > 0; ii(strfind([0,jj(:)'],[0 1])) = 1; idx = cumsum(ii).*jj; ...

4 dagen ago | 0

| accepted

Answered
Skipping a NaN in a loop
A = rand(5) ; % data for demo A(:,2) = NaN ; % replace a column with NaN for i = 1:5 if any(isnan(A(:,i))) ...

4 dagen ago | 0

Answered
How can I add angular noise to my vector?
Read about rand. X = X+rand(size(X)) ;

4 dagen ago | 0

Answered
How Can I solve this problem?
USe .^ instead of ^. H = 3; P = 100; ls = atan(P/H); fun = @(x) (2*(H/P)^2)*(x + (4/3)*x.^3 + (17/15)*x.^5 + (248/315)*x.^7...

4 dagen ago | 0

Answered
Trying to save a Matlab file with a timestamp
for i = 1:10 data = rand(100,1) ; fname = strcat('projjectile',string(datetime('now','Format',"yyyy-MM-dd-HH-mm-ss"))...

4 dagen ago | 0

| accepted

Answered
Add xyz arrows in plot
% points x = rand(50,1) ; y = rand(50,1) ; z = rand(50,1) ; % vectors u = rand(50,1)/10 ; v = rand(50,1)/10 ; w = r...

5 dagen ago | 1

| accepted

Answered
How do I plot the equipotential lines in matlab?
L = 1 ; x = linspace(-0.5,+0.5) ; lambda = sin(pi*x/L) ; plot(x,lambda)

5 dagen ago | 0

Answered
How to merge different data collected at different times?
Read all the files and save time of each file. Get the minimum and maximum of time out of the three files. Create date time a...

5 dagen ago | 0

Answered
Unable to convert expression into double array
This line: subs(diff) You have to substitute some value right? I guess you need to input value of t here......

5 dagen ago | 0

Answered
Machine learning for images dataset
If you have images to train the best you have imageDatastore. https://in.mathworks.com/help/matlab/ref/matlab.io.datastore.ima...

5 dagen ago | 0

Answered
Take average of multiple matrices
load data.mat ; A = cat(3,phi_BFD_v_sum{:}) ; iwant = mean(A,3) ;

5 dagen ago | 1

Answered
Plot data in map with LAT LONG
Refer this: https://www.eoas.ubc.ca/~rich/map.html You may see the below example for plotting. x = LON ; y = LAT ; z = power ...

5 dagen ago | 0

Answered
Extracting rows from table with specific digits
code = [{'116004.5'} {'116006.6'} {'120099.9'} {'120199.3'} {'120202.5'}] ; desc...

5 dagen ago | 1

| accepted

Answered
Loading coordinates from workspace
x = rand(5,1) ; y = rand(5,1) ; z = rand(5,1) ; figure(1) plot3(x,y,z) ; figure(2) scatter(x,y,[],z)

6 dagen ago | 0

Answered
How can specify interval of variables in fsurf?
f1 = @(x,y) erf(x)+cos(y); x = -5:0.1:0 ; y = -5:0.2:5 ; [X,Y] = meshgrid(x,y) ; Z = f1(X,Y) ; surf(X,Y,Z)

6 dagen ago | 1

Answered
Sum up values of corresponding date time intervals.
You can find the respective date indices using find or logical indexing. Once you know the first date and last date indices, you...

6 dagen ago | 0

Answered
How to sum up a column in Matlab?
iwant = sum(T.(4))

6 dagen ago | 0

| accepted

Answered
how to find the end point coordinates of an object in binary image.?
I = imread('image.png') ; I1 = rgb2gray(I) ; [y,x] = find(I1) ; [idx,C] = kmeans([x y],3) ; imshow(I) hold on plot...

7 dagen ago | 0

Answered
cell array in cell array
n = length(a) ; iwant = zeros(n,1) ; for i = 1:n iwant(i) = a{i}{3} ; end

7 dagen ago | 1

Answered
How do I get a graph to spiral
t = linspace(0,10*pi,5000); r = 5. ; c = 4 ; x = r*cos(t) ; y = r*sin(t) ; z = c*t ; comet3(x,y,z) ; plot3(x,y,z,'Color'...

7 dagen ago | 1

Answered
How to separate the data in the table for loop?
Let C be your cell array. A = cell2mat(C(:)) ; A1 = A(:,1) % first column

7 dagen ago | 0

| accepted

Answered
Count EVEN and ODD numbers
clc; clear all ; a = input("Please enter 1st number: "); nE = 0 ; nO = 0 ; if mod(a,2)==0 disp("The 1st number is EVEN")...

7 dagen ago | 0

Answered
How do I create another column in a table which basically divides a T+1 / T number?
x = rand(10,1) ; y = rand(10,1) ; T = table(x,y) T.ratio = T.y./T.x

8 dagen ago | 0

Answered
Eliminating columns from the matrix
a=[0 12 13;0 5 4;0 9 6;0 8 9] idx = any(a)==0 ; a(:,idx)=[]

8 dagen ago | 1

| accepted

Load more