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

Professional Interests: Mathematical Computing

Answered

I keep getting input error

You have to use Ohm's law instead of the unknown variable current. Use fprintf instead disp. %r is r1 33 r2 47 = 80 % xl1 i...

I keep getting input error

You have to use Ohm's law instead of the unknown variable current. Use fprintf instead disp. %r is r1 33 r2 47 = 80 % xl1 i...

ungefär 8 timmar ago | 0

Answered

How to add an extra for loop

newTime = cell(1,4); % cell because, we are not sure of dimensions in each case R = [7 11 ; 56 59 ; 99 106 ; 133 143 ] ; % ...

How to add an extra for loop

newTime = cell(1,4); % cell because, we are not sure of dimensions in each case R = [7 11 ; 56 59 ; 99 106 ; 133 143 ] ; % ...

ungefär 9 timmar ago | 0

| accepted

Answered

Tidal Harmonic analysis, by finding the amplitude and the phase of each tidal component

Refer these file exchange packages. https://www.eoas.ubc.ca/~rich/ https://in.mathworks.com/matlabcentral/fileexchange/46523...

Tidal Harmonic analysis, by finding the amplitude and the phase of each tidal component

Refer these file exchange packages. https://www.eoas.ubc.ca/~rich/ https://in.mathworks.com/matlabcentral/fileexchange/46523...

ungefär 9 timmar ago | 0

| accepted

Answered

convert 128x2 char to 1x64 char

If val is your char array..you can try something like: iwant = strcat(val(1:2:end),val(2:2:end))

convert 128x2 char to 1x64 char

If val is your char array..you can try something like: iwant = strcat(val(1:2:end),val(2:2:end))

ungefär 9 timmar ago | 0

| accepted

Answered

how sum all element which are the right of diagonal. where row=colom .....i have done this much but confuse in further operation

Read about triu. https://in.mathworks.com/help/matlab/ref/triu.html If A is your matrix, use: iwant = sum(sum(triu(A)))

how sum all element which are the right of diagonal. where row=colom .....i have done this much but confuse in further operation

Read about triu. https://in.mathworks.com/help/matlab/ref/triu.html If A is your matrix, use: iwant = sum(sum(triu(A)))

ungefär 9 timmar ago | 0

Answered

Plotting coordinate points using plot()

rng (7) n = 30; center = [0 0]; radius = 1; eps = 0.1; r = eps*rand(n,1) + radius -eps/2; A = [center(1) + r.*cos(2*pi*(1:...

Plotting coordinate points using plot()

rng (7) n = 30; center = [0 0]; radius = 1; eps = 0.1; r = eps*rand(n,1) + radius -eps/2; A = [center(1) + r.*cos(2*pi*(1:...

ungefär 10 timmar ago | 0

Answered

Unable to perform assignment because the size of the left side is 1-by-7056 and the size of the right side is 1-by-213444

The error is clear..you have initiliazed a array with smaller dimension and you are trying to save more elements in the array. ...

Unable to perform assignment because the size of the left side is 1-by-7056 and the size of the right side is 1-by-213444

The error is clear..you have initiliazed a array with smaller dimension and you are trying to save more elements in the array. ...

ungefär 10 timmar ago | 0

| accepted

Answered

How to make a list of appearance

Let str be your list of animals. xbins = unique(str); [counts,centres] = hist(str,xbins); R = [centres counts']

How to make a list of appearance

Let str be your list of animals. xbins = unique(str); [counts,centres] = hist(str,xbins); R = [centres counts']

en dag ago | 0

Answered

How to add all the curves in a single figure?

figure(4) hold on plot(Out(:,1),time); plot(Out(:,10),time); plot(Out(:,20),time); set(gca, 'ydir', 'reverse'); xlabel('Rp...

How to add all the curves in a single figure?

figure(4) hold on plot(Out(:,1),time); plot(Out(:,10),time); plot(Out(:,20),time); set(gca, 'ydir', 'reverse'); xlabel('Rp...

en dag ago | 0

| accepted

Answered

Implementation of formula in a single line.

x = linspace(-4,+4,100) ; z = x ; L = 2 ; A = 1.6732; z(x<0) = L*A*exp(x(x<0)-1) ; plot(x,z)

Implementation of formula in a single line.

x = linspace(-4,+4,100) ; z = x ; L = 2 ; A = 1.6732; z(x<0) = L*A*exp(x(x<0)-1) ; plot(x,z)

en dag ago | 0

Answered

3d plot with different length of x and y

surf, pcolor is your function. You can plot using that. x = 1:21 ; y = 1:101 ; Z = rand(21,101) ; [X,Y] = meshgrid(x,y...

3d plot with different length of x and y

surf, pcolor is your function. You can plot using that. x = 1:21 ; y = 1:101 ; Z = rand(21,101) ; [X,Y] = meshgrid(x,y...

2 dagar ago | 0

Answered

How to connect two displays?

clc;clear C1 = input('Please enter a code to break: ' , 's'); if length(C1) ~= 6 disp('Decoy message: Not a six-digit num...

How to connect two displays?

clc;clear C1 = input('Please enter a code to break: ' , 's'); if length(C1) ~= 6 disp('Decoy message: Not a six-digit num...

2 dagar ago | 0

| accepted

Answered

Increment change For loop

val = [1:2:19,23:4:200] ; N = length(val) ; iwant = zeros(1,N) ; for i = 1:N iwant(i) = val(i) % In case you want to...

Increment change For loop

val = [1:2:19,23:4:200] ; N = length(val) ; iwant = zeros(1,N) ; for i = 1:N iwant(i) = val(i) % In case you want to...

2 dagar ago | 0

Answered

Possible to contour at specific z planes to give the x,y coords?

You can use contour to do this. You need to specify the level as 0 to get your coordinates (x,y) where Z = 0. C = contour(X,Y,...

Possible to contour at specific z planes to give the x,y coords?

You can use contour to do this. You need to specify the level as 0 to get your coordinates (x,y) where Z = 0. C = contour(X,Y,...

3 dagar ago | 0

Answered

How to draw a position vector on a 3D plot

You can use the file exchange: https://in.mathworks.com/matlabcentral/fileexchange/278-arrow You can also use annotation h=a...

How to draw a position vector on a 3D plot

You can use the file exchange: https://in.mathworks.com/matlabcentral/fileexchange/278-arrow You can also use annotation h=a...

3 dagar ago | 0

| accepted

Answered

How can I display the sum of the digits of a number entered by a user?

n = 3434; digits = dec2base(N,10) - '0' ; iwant = sum(digits)

How can I display the sum of the digits of a number entered by a user?

n = 3434; digits = dec2base(N,10) - '0' ; iwant = sum(digits)

4 dagar ago | 0

Answered

convert a 3D matrix to a 2D matrix

iwant = X2 ; iwant(1:2:end,:) = X2(1:3,:) ; iwant(2:2:end,:) = X2(4:end,:) ;

convert a 3D matrix to a 2D matrix

iwant = X2 ; iwant(1:2:end,:) = X2(1:3,:) ; iwant(2:2:end,:) = X2(4:end,:) ;

4 dagar ago | 0

Answered

Reshape a multidimensional matrix

iwant = reshape(144,[]) ; Wont this work for you?

Reshape a multidimensional matrix

iwant = reshape(144,[]) ; Wont this work for you?

4 dagar ago | 0

Answered

How to plot coast and fill the land with gray without m_map

To fill the land use patch/ area/ fill. Read about those functions. To simply plot the coastline use plot.

How to plot coast and fill the land with gray without m_map

To fill the land use patch/ area/ fill. Read about those functions. To simply plot the coastline use plot.

4 dagar ago | 0

Answered

error using cross (A and B must have at least one dimension of length 3.)

https://in.mathworks.com/matlabcentral/fileexchange/55021-n-dimensional-cross-product

error using cross (A and B must have at least one dimension of length 3.)

https://in.mathworks.com/matlabcentral/fileexchange/55021-n-dimensional-cross-product

4 dagar ago | 0

Answered

Error vertcat not using vertcat

Your matrix is 10*10 Kx = [407 -169 0 0 0 0 0 0 0 0; -169 331 -162 0 0 0 0 0 0 0; -162 320 -158 0 0 0 0 0 0; % <-----...

Error vertcat not using vertcat

Your matrix is 10*10 Kx = [407 -169 0 0 0 0 0 0 0 0; -169 331 -162 0 0 0 0 0 0 0; -162 320 -158 0 0 0 0 0 0; % <-----...

4 dagar ago | 0

| accepted

Answered

need help convertig 10 min data interval to 1 minute data interval

You need to do interpolation. Read about interp1 https://in.mathworks.com/help/matlab/ref/interp1.html

need help convertig 10 min data interval to 1 minute data interval

You need to do interpolation. Read about interp1 https://in.mathworks.com/help/matlab/ref/interp1.html

4 dagar ago | 0

Answered

How to change certain values in a 3 layer matrix and fill in another matrix?

Let NDVI be your 7971*7851*3 matrix. R = NDVI(:,:,1) ; G = NDVI(:,:,2) ; B = NDVI(:,:,3) ; % replace values % repalce each ...

How to change certain values in a 3 layer matrix and fill in another matrix?

Let NDVI be your 7971*7851*3 matrix. R = NDVI(:,:,1) ; G = NDVI(:,:,2) ; B = NDVI(:,:,3) ; % replace values % repalce each ...

5 dagar ago | 0

Answered

A loop to extract and plot data from a table

Let A be your 10*11 data. x = 0:1:10 ; plot(x,A)

A loop to extract and plot data from a table

Let A be your 10*11 data. x = 0:1:10 ; plot(x,A)

5 dagar ago | 0

Answered

Selecting only half a row of an array

Read about MATLAB array indexing, instead of asking very simple basic questions. If a is an narray of size 1x5. a(1:2) % gi...

Selecting only half a row of an array

Read about MATLAB array indexing, instead of asking very simple basic questions. If a is an narray of size 1x5. a(1:2) % gi...

6 dagar ago | 0

| accepted

Answered

Why won't my graph show?

Read about element by element operations. You need to use ./ in the line which shows error. %all of the variables except R0 ar...

Why won't my graph show?

Read about element by element operations. You need to use ./ in the line which shows error. %all of the variables except R0 ar...

6 dagar ago | 0

| accepted

Answered

error using fprintf function

You have to specify a format specifier. A = 1000000000; B = A / 512; fprintf('%f\n',B); % %f is for floating point numbe...

error using fprintf function

You have to specify a format specifier. A = 1000000000; B = A / 512; fprintf('%f\n',B); % %f is for floating point numbe...

7 dagar ago | 0

| accepted

Answered

why i get this error

Your image seems to be a RGB image. You have to use imhist on a 2D matrix. Not 3D image. R = i(:,:,1) ; G = i(:,:,2) ; B = i...

why i get this error

Your image seems to be a RGB image. You have to use imhist on a 2D matrix. Not 3D image. R = i(:,:,1) ; G = i(:,:,2) ; B = i...

7 dagar ago | 0