Community Profile

photo

Farooq Hussain


Last seen: mer än 2 år ago Active since 2020

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Content Feed

View by

Question


Why i don not get the graph when i add A1(x) in the function f1=@(x,y) A1(x)+(1.33*pi*eta*y^3)/(1+1.33*pi*eta*y^3);
%clc %clear all eta=0.25; L=2.5; a=0.1; h=0.1; b=6; x=a:h:b; %%%%%%%%%%%%%%%%%% A =@(x) (0<x).*1+(0<=x & x<=L).*(1+0.5*...

mer än 2 år ago | 1 answer | 0

1

answer

Question


How can i replace the value of A(x) in the function defined in "f1"...
L=10; a=0; h=0.5; n=20; x=a:h:n; % f1=@(x,u) u * A(x); %%% Initial Conditions %%% u(1)=1; for i=1:length(x)-1; m1...

mer än 2 år ago | 2 answers | 0

2

answers

Question


How can i plot this graph?
for x=0:0.5:5; if 0<x<2 y=((1+0.5*(1-cos(2*pi*x/5))).^-0.5); else x>2; y=1; end end plot(...

mer än 2 år ago | 2 answers | 0

2

answers