% In God We Trust clc clear all close all % Date Programmer University % ==== ========== ===================== % 13/11/2012 shk.ac syms x f=input('enter function_f(x):'); ss=1; while ss==1 disp('Please choice your method for solving Functions:') fprintf('\n\n\t 1)Laplace \n\n\t 2)ilaplace \n\n\t 3)diff\n\n\t 4)int\n\n\t 5)Exit\n\n\n\t'); answer=input('Please enter a number(1~5)= '); switch answer case 1 z=simplify(laplace(f)); q=ezplot(z); grid on set(q,'color','b','Marker','*','MarkerEdgeColor','c') case 2 z=simplify(ilaplace(f,u)) q=ezplot(z); grid on set(q,'color','r','Marker','*','MarkerEdgeColor','c') case 3 z=simplify(diff(f)) q=ezplot(z); grid on set(q,'color','r','Marker','*','MarkerEdgeColor','c') case 4 z=simplify(int(f)) q=ezplot(z); grid on set(q,'color','r','Marker','*','MarkerEdgeColor','c') case 5 ss=0; end end