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

Professional Interests: Mathematical Computing

Answered

Saving geotiff using geotiffwrite

Refer this: https://in.mathworks.com/matlabcentral/answers/355554-problem-creating-a-geotiff-from-a-non-georeferenced-image

Saving geotiff using geotiffwrite

Refer this: https://in.mathworks.com/matlabcentral/answers/355554-problem-creating-a-geotiff-from-a-non-georeferenced-image

alrededor de 9 horas ago | 0

Answered

How to compute several results from incremental input values using loops?

x0 = 32 ; dx = 0.2 ; N = 20 ; % iterations needed for i = 1:N x = x0+(i-1)*dx ; end YOu can avoid for loop using: ...

How to compute several results from incremental input values using loops?

x0 = 32 ; dx = 0.2 ; N = 20 ; % iterations needed for i = 1:N x = x0+(i-1)*dx ; end YOu can avoid for loop using: ...

alrededor de 13 horas ago | 0

Answered

How to rename a cell into Table

Multiple ways. One way would be, convert the cell tinto table T using cell2table and rename the columns you want by T.Proper...

How to rename a cell into Table

Multiple ways. One way would be, convert the cell tinto table T using cell2table and rename the columns you want by T.Proper...

alrededor de 15 horas ago | 0

Answered

How to use imagesc in a time loop?

for time = 1:timeSteps newMatrix = GenerateNewMatrix(matrix,probability); matrix = newMatrix; hAxes = gca; im...

How to use imagesc in a time loop?

for time = 1:timeSteps newMatrix = GenerateNewMatrix(matrix,probability); matrix = newMatrix; hAxes = gca; im...

3 días ago | 0

| accepted

Answered

manipulation attribute between two matrices inside loop

If you are new to MATLAB, read about basics of MATLAB. Read about matrix indexing and loops. MM = rand(40,10) ; MMM = rand(4...

manipulation attribute between two matrices inside loop

If you are new to MATLAB, read about basics of MATLAB. Read about matrix indexing and loops. MM = rand(40,10) ; MMM = rand(4...

4 días ago | 0

Answered

Please help me to understand Error "The expression to the left of the equals sign is not a valid target for an assignment.

A(1:4) = rand(1,5) ; The above will throw error. Becuase A is intialized as 1X4, we are trying to replace it with 1X5.

Please help me to understand Error "The expression to the left of the equals sign is not a valid target for an assignment.

A(1:4) = rand(1,5) ; The above will throw error. Becuase A is intialized as 1X4, we are trying to replace it with 1X5.

6 días ago | 0

Answered

How to add values in the array in matlab?

Read about sum D = rand(11,1) ; thesum = sum(D)

How to add values in the array in matlab?

Read about sum D = rand(11,1) ; thesum = sum(D)

6 días ago | 0

Answered

how to find connected neighbors?

If you know the location of the pixel..uou can use knnsearch or rangeseach. YOu can also search in mathworks, this question has ...

how to find connected neighbors?

If you know the location of the pixel..uou can use knnsearch or rangeseach. YOu can also search in mathworks, this question has ...

6 días ago | 0

Answered

how can I plot this function ?

Read about matlab element by element operations: R1=1000 %Ohm% C1=0.000000032;%F% R2=1000 %Ohm% C2=0.000000032;%F% x=lin...

how can I plot this function ?

Read about matlab element by element operations: R1=1000 %Ohm% C1=0.000000032;%F% R2=1000 %Ohm% C2=0.000000032;%F% x=lin...

6 días ago | 0

Answered

Contour plot using three vectors

It depends on how is your data. Is your data a structured data or a unstructured data? YOu have the following options. Let (x,y,...

Contour plot using three vectors

It depends on how is your data. Is your data a structured data or a unstructured data? YOu have the following options. Let (x,y,...

6 días ago | 1

Answered

Anonymous function outputs to table

q = 0:0.01:0.25 ; doublingtime = @(q) log(2)./log(1+q); dt = doublingtime(q); T = table(q,dt)

Anonymous function outputs to table

q = 0:0.01:0.25 ; doublingtime = @(q) log(2)./log(1+q); dt = doublingtime(q); T = table(q,dt)

8 días ago | 1

| accepted

Answered

i need to convert below batrix to another matrix

b=[308 -1 2 3 -1 2 -1; -1 -1 2 1 0 1 0; 1 2 -1 -1 -1 -1 2; 0 0 1 -1 -1 2 -1]; % Get positive co...

i need to convert below batrix to another matrix

b=[308 -1 2 3 -1 2 -1; -1 -1 2 1 0 1 0; 1 2 -1 -1 -1 -1 2; 0 0 1 -1 -1 2 -1]; % Get positive co...

11 días ago | 0

| accepted

Answered

Finding closest coordinates and rearranging order to match

Read about knnsearch. This is your function for today.

Finding closest coordinates and rearranging order to match

Read about knnsearch. This is your function for today.

11 días ago | 0

Answered

use matlab to plot fft from excel sheet

It looks like there is no variable name A2 in the table. Try using: T.(1), T.(2) etc...or check the variablenames by printing...

use matlab to plot fft from excel sheet

It looks like there is no variable name A2 in the table. Try using: T.(1), T.(2) etc...or check the variablenames by printing...

11 días ago | 0

Answered

How to divide an image into different shapes?

doc imcrop doc impoly doc imfreehand YOu can also define your locations in the shape you want......use inpoly and pick only i...

How to divide an image into different shapes?

doc imcrop doc impoly doc imfreehand YOu can also define your locations in the shape you want......use inpoly and pick only i...

11 días ago | 0

Answered

How can we read specific rows from an excel file in matlab?

Read about readtable. T = readtable(filename) ; YOu can access the columns using T.(1), T.(2) or T.(alpha), T.(beta), etc. ...

How can we read specific rows from an excel file in matlab?

Read about readtable. T = readtable(filename) ; YOu can access the columns using T.(1), T.(2) or T.(alpha), T.(beta), etc. ...

11 días ago | 0

| accepted

Answered

Help with inverse logarithm

Read about element by element operations in matlab. % Solve for life using SWT equations for a, b, and c. Sa = 220; % Stres...

Help with inverse logarithm

Read about element by element operations in matlab. % Solve for life using SWT equations for a, b, and c. Sa = 220; % Stres...

11 días ago | 0

Answered

Making a Function with output only, no input

Run / call the function by typing as below in the command window. [x,y] = getData() ;

Making a Function with output only, no input

Run / call the function by typing as below in the command window. [x,y] = getData() ;

11 días ago | 0

| accepted

Answered

How can I turn vector to scalar?

x = 10:10:70 ; % this will generate [10,20,..70] ; sumx = sum(x) ; % this will give you sum of array Also you can call eac...

How can I turn vector to scalar?

x = 10:10:70 ; % this will generate [10,20,..70] ; sumx = sum(x) ; % this will give you sum of array Also you can call eac...

11 días ago | 0

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

2 meses 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) ;...

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

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

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

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

3 meses 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) ,...

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

3 meses 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)) ;

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

3 meses ago | 0