Community Profile

dulanga

20 total contributions since 2014

View details...

Contributions in
View by

Question

i need help with this question
I am supposed to find the number of timesteps i.e the number of steps taken but my answer is incorrect any inputs on my code wil...

13 jours ago | 0 answers | 0

0

Question

plotting help needed (increasing resolution)
this is my code how would i increase the resolution of the graph? N = 101; tmin = 0; tmax = 3; t = linspace(tmin,tmax,N...

28 jours ago | 1 answer | 0

1

Question

i need to get the maximum amplitude in this code but my final answer is wrong
The data file https://www.dropbox.com/s/8b8u38ghve7tfv0/Data.mat?dl=0 i get 28400 as the answer but the answer is wrong plus t...

environ un mois ago | 1 answer | 1

1

Question

I get this error what should i do to correct this? Index exceeds matrix dimensions. Error in t31 (line 11) F1=Fmag((N/2)+1:N)...

environ un mois ago | 0 answers | 0

0

Question

need help with the question
This code is not working i am using this to calulate the amplitude but i am getting this error Index exceeds matrix dimensi...

environ un mois ago | 1 answer | 0

1

Question

need help with this
turn all the amplitudes of frequencies which are higher than 3500 Hz into 0’s and amplify the rest of the spectrum (by just mul...

environ un mois ago | 1 answer | 0

1

Question

Initial value problem need help with

environ un mois ago | 0 answers | 0

0

Question

need help with problem
what is wrong in this code i dont get the correct answer xleft=0; xright=(9*pi)/4; N=20; x=linspace(xleft,xright,N); x=x...

environ 2 mois ago | 2 answers | 0

2

Question

heun mthod 1st order ode
Is this code correct and how do i find which integer time t is the solution y(t) closest to -0.2 y0 = -1; % In...

environ 2 mois ago | 1 answer | 0

1

euler method first order
thanks for your comments John the multiplication when it was supposed to be an addition was a mistake on my part.

environ 2 mois ago | 0

Question

euler method first order
This is my code is this correct? y0 = -1; % Initial Condition h = 0.1; t = 0:h:100; N=lengt...

environ 2 mois ago | 2 answers | 0

2

Question

Lu decomposition help needed
this is as far as i have got can anyone help me? function [L,U] = LUdecomp(A) n = size(A,1); %number of rows m = size(A,2...

environ 2 mois ago | 0 answers | 0

0

residual r=ax-b ∞-norm
Would this be correct to get infinty norm a = [-5 8 -5; 0 0 12; 3 -7 -3;6 -4 4] b = [1;1;1;1] x=a\b r=a*x-b N = norm(r, I...

2 mois ago | 0

| accepted

Question

residual r=ax-b ∞-norm
This is my code but i dont get the coorect answer a = [-5 8 -5; 0 0 12; 3 -7 -3;6 -4 4] b = [1;1;1;1] x=a\b r=a*x-b x1=sq...

2 mois ago | 2 answers | 0

2

Question

product series in matlab
Error when taking zero. clc clear syms k P1 = symprod((k-(4/k))-5 , k, 0, 3) P2 = symprod((k-(4/k))-5 , k, 6, 100)

2 mois ago | 0 answers | 0

0

Question

summation using syms and rounding
is this way correct?Also want the number rounded to the first dp. syms k f = k-4/k-5; v1 = subs(f, k, 1:3) s_sum = sum(v...

2 mois ago | 0 answers | 0

0

Question

plotting ellipsoid any help
how can i plot this out ? 4x^2 + y^2 + 9z^2 = 36 thanks

environ 2 ans ago | 0 answers | 0

0

Question

the question asks to subplot the contours any idea how?
x = linspace (-1,1); y = linspace (-1,1); [X, Y] = meshgrid(x,y); Z=7*sin(pi.*X).*cos(3*pi.*X); surf(X,Y,Z ) hold on con...

environ 2 ans ago | 1 answer | 0

1

Question

i get error saying that z should be a matrix and not a scalar
x = linspace (-1,1); y = linspace (-1,1); [X, Y] = meshgrid(x,y); Z=7*sin(pi.*x).*cos(3*pi.*x); surf(X,Y,Z ) hold on con...

environ 2 ans ago | 1 answer | 0