Ex 6.22
clear f = inline('1/sqrt(x)','x'); fplot(f,[0.1 10]); % alt 1 (kräver extern funktionsfil) %fplot('f1',[0.1,10]); % alt 2 (kräver extern funktionsfil) %f2 = @f1; %fplot(f2,[0.1,10]); %function y = f1(x) %y = 1/sqrt(x);
clear f = inline('1/sqrt(x)','x'); fplot(f,[0.1 10]); % alt 1 (kräver extern funktionsfil) %fplot('f1',[0.1,10]); % alt 2 (kräver extern funktionsfil) %f2 = @f1; %fplot(f2,[0.1,10]); %function y = f1(x) %y = 1/sqrt(x);