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

Professional Interests: Mathematical Computing

Answered

Reassigning values in a matrix

Read about max toget the maximum value in the array. Read about inequalitites >and < to get the other task solved. Read abou...

Reassigning values in a matrix

Read about max toget the maximum value in the array. Read about inequalitites >and < to get the other task solved. Read abou...

ongeveer een maand ago | 0

Answered

How to normalize two waves on a single plot

t=0:0.001:0.05; y= 11.18*cos(60*pi*t+26.565); y2= -60*pi*11.18*sin(60*pi*t+26.565); title('Phasor Waveforms') y=y/max(y) ;...

How to normalize two waves on a single plot

t=0:0.001:0.05; y= 11.18*cos(60*pi*t+26.565); y2= -60*pi*11.18*sin(60*pi*t+26.565); title('Phasor Waveforms') y=y/max(y) ;...

ongeveer een maand ago | 0

Answered

How to find intersection of 2 non-equally sized arrays in matlab

Use interX from here: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138&tab=function...

How to find intersection of 2 non-equally sized arrays in matlab

Use interX from here: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138&tab=function...

ongeveer een maand ago | 0

Answered

How to create multiple cdfplot in one graph?

figure hold on lgd = cell(size(NPV_all,2),1) ; for ki = 1:size(NPV_all,2) cdfplot(NPV_all(:,ki)); lgd{ki} = strca...

How to create multiple cdfplot in one graph?

figure hold on lgd = cell(size(NPV_all,2),1) ; for ki = 1:size(NPV_all,2) cdfplot(NPV_all(:,ki)); lgd{ki} = strca...

ongeveer een maand ago | 0

| accepted

Answered

How can I use "eig" in symbolic variables?

syms a b l A=[2*a+3*b ,2*b+3*a ; a+b,a-b] ; B=[5*a+8*b, b^2+5 ; a-5*b,2*b+3*a] ; C = A-l^2*B ; eqn= det(C)==0 ; iwant = s...

How can I use "eig" in symbolic variables?

syms a b l A=[2*a+3*b ,2*b+3*a ; a+b,a-b] ; B=[5*a+8*b, b^2+5 ; a-5*b,2*b+3*a] ; C = A-l^2*B ; eqn= det(C)==0 ; iwant = s...

ongeveer een maand ago | 0

| accepted

Answered

Fitting the data so that one a single continuous line is achived

I = imread('Annotation 2019-09-04 112619.png') ; I1 = imcrop(I) ; % crop to remove white borders present around the image I1...

Fitting the data so that one a single continuous line is achived

I = imread('Annotation 2019-09-04 112619.png') ; I1 = imcrop(I) ; % crop to remove white borders present around the image I1...

ongeveer een maand ago | 0

Answered

How Can I put some numbers in a sym and sum its cells?

syms a b c d B = [ 1 2 ; 3 4] ; x = B(:,1) ; y = B(:,2) ; A = [ a*(x(1)^2)+y(1) , b*(y(1)^3)+x(1) ; d*(x(2)^2)*y(2) ,...

How Can I put some numbers in a sym and sum its cells?

syms a b c d B = [ 1 2 ; 3 4] ; x = B(:,1) ; y = B(:,2) ; A = [ a*(x(1)^2)+y(1) , b*(y(1)^3)+x(1) ; d*(x(2)^2)*y(2) ,...

ongeveer een maand ago | 0

Answered

storing function outputs from a nested for loop

maxDisp_x=cell(Nrt,lhsN,NGM); for scenario=1:Nsnro for i=1:Nrt ....... for j=1:lhsN ......

storing function outputs from a nested for loop

maxDisp_x=cell(Nrt,lhsN,NGM); for scenario=1:Nsnro for i=1:Nrt ....... for j=1:lhsN ......

ongeveer een maand ago | 0

| accepted

Answered

find t and Use a graphical method to locate the initial estimate

syms t ; v = 4.8626; w = 4.4721; x=0.17; f = x - t*v*exp(-w*t)==0 ; s = double(solve(f)) ;

find t and Use a graphical method to locate the initial estimate

syms t ; v = 4.8626; w = 4.4721; x=0.17; f = x - t*v*exp(-w*t)==0 ; s = double(solve(f)) ;

ongeveer een maand ago | 0

Answered

Bug in matrix indexing?

USe this: test = 1.0e+03 *[1.1506 -0.0094 -0.0043 -0.0012 -0.0001 -0.0007 0.0003 0.0004 -0.0082 0.0...

Bug in matrix indexing?

USe this: test = 1.0e+03 *[1.1506 -0.0094 -0.0043 -0.0012 -0.0001 -0.0007 0.0003 0.0004 -0.0082 0.0...

ongeveer een maand ago | 0

Answered

Difference and probability in plot

thedifference=-5:1:5 ; N = length(thedifference) ; probability=zeros(N,1) ; for i = 1:N thediff = thedifference(i) ;...

Difference and probability in plot

thedifference=-5:1:5 ; N = length(thedifference) ; probability=zeros(N,1) ; for i = 1:N thediff = thedifference(i) ;...

ongeveer een maand ago | 0

| accepted

Answered

A statement under "for" gets skipped during the last loop

YOu are changing the loop index ii inside the if...else statements.......that is now allowed... function coded = caesar (v,s) ...

A statement under "for" gets skipped during the last loop

YOu are changing the loop index ii inside the if...else statements.......that is now allowed... function coded = caesar (v,s) ...

ongeveer 2 maanden ago | 0

Answered

I want to load multiple text files into variable cell array

files = dir('*.txt') ; N = length(files) ; iwant = cell(N,1) ; for i = 1:N filename = files(i).name ; startRow ...

I want to load multiple text files into variable cell array

files = dir('*.txt') ; N = length(files) ; iwant = cell(N,1) ; for i = 1:N filename = files(i).name ; startRow ...

ongeveer 2 maanden ago | 1

| accepted

Answered

How can we make a rhombus in the middle?

Play with the points in R....you give the vertices of vertices..you will get it. fr=zeros(512,512); % Rhombus points R = ...

How can we make a rhombus in the middle?

Play with the points in R....you give the vertices of vertices..you will get it. fr=zeros(512,512); % Rhombus points R = ...

ongeveer 2 maanden ago | 0

| accepted

Answered

linear interpolation without meshgrid

Read this: https://in.mathworks.com/help/matlab/ref/scatteredinterpolant.html

linear interpolation without meshgrid

Read this: https://in.mathworks.com/help/matlab/ref/scatteredinterpolant.html

ongeveer 2 maanden ago | 0

| accepted

Answered

How can I put two noises in an image?

How about imshow((tp+k)/2)

How can I put two noises in an image?

How about imshow((tp+k)/2)

ongeveer 2 maanden ago | 0

| accepted

Answered

How can I place a quiver plot on top of a triangular surface (trisurf) plot?

USe 2D plot: patch('faces',tri(:,2:4),'vertices',[Xp' Yp'],'facevertexcdata',z','facecolor','interp','edgecolor','none') ; ...

How can I place a quiver plot on top of a triangular surface (trisurf) plot?

USe 2D plot: patch('faces',tri(:,2:4),'vertices',[Xp' Yp'],'facevertexcdata',z','facecolor','interp','edgecolor','none') ; ...

ongeveer 2 maanden ago | 1

| accepted

Answered

how to get variable value in plot automatically

x = 0:10 ; figure hold on for i = 1:3 y = i*x ; plot(x,y) end legend OR x = 0:10 ; figure hold on for i =...

how to get variable value in plot automatically

x = 0:10 ; figure hold on for i = 1:3 y = i*x ; plot(x,y) end legend OR x = 0:10 ; figure hold on for i =...

ongeveer 2 maanden ago | 0

Answered

How can I compare a set of variables?

x1= 1; x2= 3; x3= 4; x4= 3; x5= 3; x6= 1; x7=2; x = [x1 x2 x3 x4 x5 x6 x7] ; [c,ia,ib] = unique(x) ; iwant = cell(le...

How can I compare a set of variables?

x1= 1; x2= 3; x3= 4; x4= 3; x5= 3; x6= 1; x7=2; x = [x1 x2 x3 x4 x5 x6 x7] ; [c,ia,ib] = unique(x) ; iwant = cell(le...

ongeveer 2 maanden ago | 0

Answered

location of logical matrix

Read about ismember idx = round(rand(10,2)) ; vec = [1 1] ; [c,ia] = ismember(idx,vec,'rows') ; iwant = find(c) ; idx(...

location of logical matrix

Read about ismember idx = round(rand(10,2)) ; vec = [1 1] ; [c,ia] = ismember(idx,vec,'rows') ; iwant = find(c) ; idx(...

ongeveer 2 maanden ago | 0

Answered

comparing two data sets and extract specific data from one of them

YOu can make your blue lines a closed polygon.......and use inpolygon to get the points lying inside and on the blue lines. Read...

comparing two data sets and extract specific data from one of them

YOu can make your blue lines a closed polygon.......and use inpolygon to get the points lying inside and on the blue lines. Read...

ongeveer 2 maanden ago | 0

| accepted

Answered

symbolic derivative with respect to time

syms x(t) f = sin(x(t)) diff(f,t)

symbolic derivative with respect to time

syms x(t) f = sin(x(t)) diff(f,t)

ongeveer 2 maanden ago | 1

| accepted

Answered

How to change non zero value into 0?

If A is your matrix. To get non-zero indices use: idx = A>0 ; To replace them to zero use: A(idx) = 0 ;

How to change non zero value into 0?

If A is your matrix. To get non-zero indices use: idx = A>0 ; To replace them to zero use: A(idx) = 0 ;

ongeveer 2 maanden ago | 0

Answered

can we use Xlswrite in symbolic variables?

syms x_1 y_1 A_sym = sym(zeros(2,2)); A_sym(1,1) = x_1; A_sym(2,1) = x_1 * y_1 ; A_sym(2,2) = y_1; sym_cell = arrayfun...

can we use Xlswrite in symbolic variables?

syms x_1 y_1 A_sym = sym(zeros(2,2)); A_sym(1,1) = x_1; A_sym(2,1) = x_1 * y_1 ; A_sym(2,2) = y_1; sym_cell = arrayfun...

ongeveer 2 maanden ago | 1

| accepted

Answered

make the image to smallest 8*8 blocks

Refer here: https://in.mathworks.com/matlabcentral/answers/362262-i-have-a-32-32-matrix-i-want-to-take-mean-of-each-4-4-so-tha...

make the image to smallest 8*8 blocks

Refer here: https://in.mathworks.com/matlabcentral/answers/362262-i-have-a-32-32-matrix-i-want-to-take-mean-of-each-4-4-so-tha...

ongeveer 2 maanden ago | 0

| accepted

Answered

How to create multiple .dat files using matlab?

for i = 1:10 filename = strcat(num2str(i),'.dat') end

How to create multiple .dat files using matlab?

for i = 1:10 filename = strcat(num2str(i),'.dat') end

ongeveer 2 maanden ago | 0

Answered

How to find avergae of thresholded elements only from a matrix?

Let A be your matrix......say you want values below a threshold val. idx = A<val ; themean = mean(A(idx)) ;

How to find avergae of thresholded elements only from a matrix?

Let A be your matrix......say you want values below a threshold val. idx = A<val ; themean = mean(A(idx)) ;

ongeveer 2 maanden ago | 2

| accepted

Answered

How can I interpolate with a Matrix and a Vector to another vector?

YOu see, you cannot use Enthalpy as you have used, because it is not a valid meshgrid. Reather, you can treat the data as scatte...

How can I interpolate with a Matrix and a Vector to another vector?

YOu see, you cannot use Enthalpy as you have used, because it is not a valid meshgrid. Reather, you can treat the data as scatte...

ongeveer 2 maanden ago | 0

Answered

Surface plots inside loop

YOu can follow a samll demo code given here: [X,Y,Z] = peaks(100) ; surf(X,Y,Z) %% Make surface discontinuous for demo id...

Surface plots inside loop

YOu can follow a samll demo code given here: [X,Y,Z] = peaks(100) ; surf(X,Y,Z) %% Make surface discontinuous for demo id...

ongeveer 2 maanden ago | 0

Answered

find slope sign change of emg signal

If (t,x) is your time and signal. dt = diff(t) ; dx = diff(x) ; slope = dx./dt ; slope_sign = sign(slop) ;

find slope sign change of emg signal

If (t,x) is your time and signal. dt = diff(t) ; dx = diff(x) ; slope = dx./dt ; slope_sign = sign(slop) ;

2 maanden ago | 0