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

Professional Interests: Mathematical Computing

Answered

FZERO requires at least two input arguments

You have to provide inputs to the function. Save those functions in a file, in a folder. al = give your value ; bt = give y...

FZERO requires at least two input arguments

You have to provide inputs to the function. Save those functions in a file, in a folder. al = give your value ; bt = give y...

27 minuti ago | 0

Answered

How to split the data inside the matrix correctly?

Try this loop....I quicky typed it..check thorughly. data = [0 0 2.53164556962025 0 5.06329113924051 0 ...

How to split the data inside the matrix correctly?

Try this loop....I quicky typed it..check thorughly. data = [0 0 2.53164556962025 0 5.06329113924051 0 ...

32 minuti ago | 0

Answered

I want to plot the below equation in matlab but i dont know how to plot

Let the range of (x,y) be from 0 to 1 . m = 100 ; n = 100 ; x = linspace(0,1,m) ; y = linspace(0,1,n) ; [X,Y] = meshgrid(...

I want to plot the below equation in matlab but i dont know how to plot

Let the range of (x,y) be from 0 to 1 . m = 100 ; n = 100 ; x = linspace(0,1,m) ; y = linspace(0,1,n) ; [X,Y] = meshgrid(...

circa un'ora ago | 0

Answered

Create a vector with binary values {0,1} with certain percentage of 0's and 1's

N = 10 ; % total numner of elements O = 6 ; % Number of 1 needed F = N-O ; % Number of 0 O = ones(1,O) ; F = zero...

Create a vector with binary values {0,1} with certain percentage of 0's and 1's

N = 10 ; % total numner of elements O = 6 ; % Number of 1 needed F = N-O ; % Number of 0 O = ones(1,O) ; F = zero...

circa 3 ore ago | 0

| accepted

Answered

saving images in loop

for i = 1: length(fwdposx) figure('color','w') drawfield(frateMaps{i},'jet',max(max(frateMaps{i}))); ...

saving images in loop

for i = 1: length(fwdposx) figure('color','w') drawfield(frateMaps{i},'jet',max(max(frateMaps{i}))); ...

circa 8 ore ago | 0

Answered

How I can show one plane of a 3D matrix double

To use imshow the input should be a matrix .....you may try imshow(squeeze(B))

How I can show one plane of a 3D matrix double

To use imshow the input should be a matrix .....you may try imshow(squeeze(B))

circa 9 ore ago | 0

Answered

Conversion of a vector file into raster

Let x,y,z be your column data. xi = min(x):0.5:max(x) ; yi = min(y):0.5:max(y) ; [X,Y] = meshgrid(xi,yi) ; Z = griddata...

Conversion of a vector file into raster

Let x,y,z be your column data. xi = min(x):0.5:max(x) ; yi = min(y):0.5:max(y) ; [X,Y] = meshgrid(xi,yi) ; Z = griddata...

circa 20 ore ago | 0

| accepted

Answered

Help with Delaunay Triangulations plot

I suggest to use this package for Delaunay Triangulation. https://in.mathworks.com/matlabcentral/fileexchange/25555-mesh2d-del...

Help with Delaunay Triangulations plot

I suggest to use this package for Delaunay Triangulation. https://in.mathworks.com/matlabcentral/fileexchange/25555-mesh2d-del...

circa 20 ore ago | 0

Answered

In a randomly generated matrix how to find the position(row and column) of an element by using its value?

Your matrix has floating point numbers..you cannot get the value you want using like that. You should use: tol = 10^-5 ; % tole...

In a randomly generated matrix how to find the position(row and column) of an element by using its value?

Your matrix has floating point numbers..you cannot get the value you want using like that. You should use: tol = 10^-5 ; % tole...

circa 20 ore ago | 0

Answered

Eliminate certain entries of cell array

If C is your cell array and FR has the indices of cells which are to be removed, use: C(FR) = []

Eliminate certain entries of cell array

If C is your cell array and FR has the indices of cells which are to be removed, use: C(FR) = []

circa 21 ore ago | 0

| accepted

Answered

change color scheme of a scatter plot

You should follow like this demo: n = 100 ; x = 1:n ; y = rand(size(x)) ; % divide based on values idx1 = y >=0 & y<0.25 ;...

change color scheme of a scatter plot

You should follow like this demo: n = 100 ; x = 1:n ; y = rand(size(x)) ; % divide based on values idx1 = y >=0 & y<0.25 ;...

circa 22 ore ago | 0

Answered

How can I convert this cell array into a matrix?

Use reshape after that. iwant = reshape(cell2mat(C),60,[])' ;

How can I convert this cell array into a matrix?

Use reshape after that. iwant = reshape(cell2mat(C),60,[])' ;

circa 22 ore ago | 0

| accepted

Answered

regarding plotTING DATA in matlab

% Random data for demo n = 100 ; x = 1:n ; y = rand(size(x)) ; % plot plot(x,y) lgd = ['ymax = ',num2str(max(y))] ; leg...

regarding plotTING DATA in matlab

% Random data for demo n = 100 ; x = 1:n ; y = rand(size(x)) ; % plot plot(x,y) lgd = ['ymax = ',num2str(max(y))] ; leg...

circa 22 ore ago | 0

Answered

How to run this code for 1000 times?

N = 1000 ; MSE = zeros(N,2) ; for i = 1:N %For C1 lambda1 = [60.21, 41.58, 9.11, 8.71, 3.83, 3.74, 18.06] ; r1 = po...

How to run this code for 1000 times?

N = 1000 ; MSE = zeros(N,2) ; for i = 1:N %For C1 lambda1 = [60.21, 41.58, 9.11, 8.71, 3.83, 3.74, 18.06] ; r1 = po...

circa 22 ore ago | 0

| accepted

Answered

Mean command gives wrong answer

You should change the value of y as your are changing the indices. x=[1,2,3,4,5,6,7,8,9,10,11,12]; % x values y=[15,120,2...

Mean command gives wrong answer

You should change the value of y as your are changing the indices. x=[1,2,3,4,5,6,7,8,9,10,11,12]; % x values y=[15,120,2...

1 giorno ago | 1

Answered

problem in solve command

% If you have two loops m = 10 ; % rows n = 5 ; % columns iwant = zeros(m,n) ; % initialization % loop start for i = 1...

problem in solve command

% If you have two loops m = 10 ; % rows n = 5 ; % columns iwant = zeros(m,n) ; % initialization % loop start for i = 1...

1 giorno ago | 0

Answered

How to code the Average monthly temperature? I'm newbie in matlab.. Please help me

It looks like you have a data matrix of size 24X12 . Use mean to get the average. Read about the function mean. If A is your dat...

How to code the Average monthly temperature? I'm newbie in matlab.. Please help me

It looks like you have a data matrix of size 24X12 . Use mean to get the average. Read about the function mean. If A is your dat...

1 giorno ago | 0

| accepted

Answered

How to convert time domain to frequency domain using FFT

data = importdata("before test.txt") ; t = data(:,1) ; amp = data(:,2) ; dt = unique(diff(t)) ; % time step Fs = 1/dt ...

How to convert time domain to frequency domain using FFT

data = importdata("before test.txt") ; t = data(:,1) ; amp = data(:,2) ; dt = unique(diff(t)) ; % time step Fs = 1/dt ...

1 giorno ago | 0

| accepted

Answered

hello how do I write this function without getting an error saying "variable K has an incorrect value".

a=-3 ; b= 3; h = (b-a)/N; x=a:h:b; k =abs(x).*exp(-x.^2) ; K = sum(k*h);

hello how do I write this function without getting an error saying "variable K has an incorrect value".

a=-3 ; b= 3; h = (b-a)/N; x=a:h:b; k =abs(x).*exp(-x.^2) ; K = sum(k*h);

1 giorno ago | 0

Answered

How can I distribute random points in some lines?

%% Striaght line L = rand(2,2) ; P1 = L(1,:) ; P2 = L(2,:) ; % Get slope and y intercept P = polyfit(L(:,1),L(:,2),1) ...

How can I distribute random points in some lines?

%% Striaght line L = rand(2,2) ; P1 = L(1,:) ; P2 = L(2,:) ; % Get slope and y intercept P = polyfit(L(:,1),L(:,2),1) ...

2 giorni ago | 0

| accepted

Answered

find points of intersection circle with line

clc; clear all ; C = [1.5 1.5] ; % center of cricle r = 1.5 ; % radius of circle % x = 0:1:3 ; y = 0:1:3 ; ...

find points of intersection circle with line

clc; clear all ; C = [1.5 1.5] ; % center of cricle r = 1.5 ; % radius of circle % x = 0:1:3 ; y = 0:1:3 ; ...

2 giorni ago | 0

| accepted

Answered

How do I extract file names.

Read about fileparts https://in.mathworks.com/help/matlab/ref/fileparts.html Alos have a look on dir.

How do I extract file names.

Read about fileparts https://in.mathworks.com/help/matlab/ref/fileparts.html Alos have a look on dir.

2 giorni ago | 0

| accepted

Answered

How can I plot the values of a vector in colors: 2d position plot plus color.

Read about scatter.

How can I plot the values of a vector in colors: 2d position plot plus color.

Read about scatter.

2 giorni ago | 0

| accepted

Answered

Eigenvalues of a large Matrix

clc; clear all ; clc;clear a=1.0; b=1.0; n=20; I1=eye(n); I2=eye(2); matdimension= (n-1); tempvector = 0:1:matdime...

Eigenvalues of a large Matrix

clc; clear all ; clc;clear a=1.0; b=1.0; n=20; I1=eye(n); I2=eye(2); matdimension= (n-1); tempvector = 0:1:matdime...

2 giorni ago | 0

| accepted

Answered

How to write an elliptic function using for loop

Read about polarplot. https://in.mathworks.com/help/matlab/ref/polarplot.html

How to write an elliptic function using for loop

Read about polarplot. https://in.mathworks.com/help/matlab/ref/polarplot.html

2 giorni ago | 0

Answered

Converting a 3D matrix in 2D matrix by making a average

You can specify the dimension in mean. Read about it. iwant = mean(A,3)

Converting a 3D matrix in 2D matrix by making a average

You can specify the dimension in mean. Read about it. iwant = mean(A,3)

2 giorni ago | 0

Answered

How to draw 3D plot in matlab with labels?

You can porceed something like this: A = rand(70,6) ; x = 1:70 ; y = ones(size(x)) ; figure hold on for i = 1:6 plot...

How to draw 3D plot in matlab with labels?

You can porceed something like this: A = rand(70,6) ; x = 1:70 ; y = ones(size(x)) ; figure hold on for i = 1:6 plot...

3 giorni ago | 0

| accepted

Answered

how I can plot 3 independent variables in matlab (4 dimensions)?

m = 10 ; n = 10 ; p =10 ; x = linspace(0,1,m); y = linspace(0,2,n) ; z = linspace(2,3,p) ; [X,Y,Z] = meshgrid(x,y,z) ; f...

how I can plot 3 independent variables in matlab (4 dimensions)?

m = 10 ; n = 10 ; p =10 ; x = linspace(0,1,m); y = linspace(0,2,n) ; z = linspace(2,3,p) ; [X,Y,Z] = meshgrid(x,y,z) ; f...

3 giorni ago | 0