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

Professional Interests: Mathematical Computing

Answered

different excel file comparisons

T1 = readtable(file1) ; T2 = readtable(file2) ; idx = ismember(T1.names, T2.names)

different excel file comparisons

T1 = readtable(file1) ; T2 = readtable(file2) ; idx = ismember(T1.names, T2.names)

ongeveer 22 uur ago | 1

Answered

insert markers to an image

Use imshow to show up a image. Use plot or scatter with given coordinates and required markers. Note that you need to use hold o...

insert markers to an image

Use imshow to show up a image. Use plot or scatter with given coordinates and required markers. Note that you need to use hold o...

ongeveer 22 uur ago | 0

Answered

How to plot a workspace

Let A be your workspace variable of size 26*2. x = A(:,1) ; y = A(:,2) ; plot(x,y) REad about the function plot.

How to plot a workspace

Let A be your workspace variable of size 26*2. x = A(:,1) ; y = A(:,2) ; plot(x,y) REad about the function plot.

1 dag ago | 0

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

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

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

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

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

Preallocating cells with unknown output size

You can try to initilize them as X = cell([],[]) ; You can check the timing using tic , toc.

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

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

8 dagen 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) ...

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

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

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

8 dagen 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; ...

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

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

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

11 dagen ago | 0

Answered

How can I add angular noise to my vector?

Read about rand. X = X+rand(size(X)) ;

How can I add angular noise to my vector?

Read about rand. X = X+rand(size(X)) ;

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

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

11 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"))...

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

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

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

12 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)

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)

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

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

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

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

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

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

12 dagen ago | 0

Answered

Take average of multiple matrices

load data.mat ; A = cat(3,phi_BFD_v_sum{:}) ; iwant = mean(A,3) ;

Take average of multiple matrices

load data.mat ; A = cat(3,phi_BFD_v_sum{:}) ; iwant = mean(A,3) ;

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

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

12 dagen ago | 0

Answered

Extracting rows from table with specific digits

code = [{'116004.5'} {'116006.6'} {'120099.9'} {'120199.3'} {'120202.5'}] ; desc...

Extracting rows from table with specific digits

code = [{'116004.5'} {'116006.6'} {'120099.9'} {'120199.3'} {'120202.5'}] ; desc...

12 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)

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)

13 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)

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)

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

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

13 dagen ago | 0

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

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

14 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

cell array in cell array

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

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

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

14 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

How to separate the data in the table for loop?

Let C be your cell array. A = cell2mat(C(:)) ; A1 = A(:,1) % first column

14 dagen ago | 0

| accepted