88-151 תשעז שיעור 1
loops.m % % % % % a=(1:100).^2; % % % % % for i=1:100 % % % % % a(i) % % % % % i*2 % % % % % sin(pi*i/2) % % % % % end %% i=1; epsilon=1; while epsilon>10^-6 ... ... i=... i-rand; mypi=pi-10^i; %some algorithm epsilon=abs(mypi-pi); end simple_function.m function [out1,out2] = simple_function(a,b,c) %SIMPLE_FUNCTION Summary of this function goes here % Detailed explanation goes here out1=max(a,max(b,c)); out2=max([a,b,c]);