Community Profile

photo

nickey


International Burch University

Aktiv seit 2013

Statistiken

Content Feed

Anzeigen nach

Frage


Coefficient for Langrange Polynomial n=length(x); for k=1:n d(k)=1; for i=1:n If i~=k d(k)=d(k)*(x(k)-x(i)); end c(k)=y(k)/d(k); end end Evaluate Langrange Polynomial function p=LangrangeEval(t,x,c) m=length(x); for i=1:length(t) p(i)=0; for j=1:
Hello everyone. I need help for understanding this code. Thanks Coefficient for Langrange Polynomial n=length(x); for k=1:...

fast 11 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
Hi ,please help , I need to plot signals u(t-3),u (t+1), z(-t-3),,z(2t+2),u(-2n-1) and u(3n+2) using subplot and add title ,grid and axis labels
t=[-4:0.2:4]; n=[-2:0.1:2]; subplot(3,2,1) plot(t,heaviside(t-3)) grid on; title('Time shifted signal') xlab...

fast 11 Jahre vor | 0

Frage


Use Newton’s method in a script to solve the following (you may have to experiment a bit with the starting values). Check all your answers with fzero. Check the answers involving polynomial equations with roots.
Hellooo I have this problem to solve, but Iam new in matlab solving so even I dont know how to start. Any help will be valued...

fast 11 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Is this code ok?It asked to plot function together with hold on...syms x y; t=-2:0.1:2 n=-2:0.1:2 x=2*sin(4*pi*t); y=2*sin(4*pi*n); plot(t,x,'r',n,y,'g'); hold on; title('function'); legend('x function', 'y function'); grid on;
Is this code ok?It asked to plot function together with hold on. But when I run code,I have just y function ? syms x y; ...

fast 11 Jahre vor | 2 Antworten | 0

2

Antworten

2

Antworten