clear all;clc; Pi=pi; F0=0; f_samp=100000; freq=5000; %freq=1/0.0005; vd=295; q=5; condition=0; while condition ~=1 F_out=input('enter the output freq. in Hertz (0 to 120):'); if F_out>120 condition=0; disp ('*** it must be in the range 0 to 120***'); elseif F_out0 v_phase=T_phase*U_1; v_line=T_line*U_1; T5=T5-1; %ch1(t)=U_1(1)*q; else v_phase=T_phase*low; v_line=T_line*low; T6=T6-1; %ch1(t)=low(1)*q; if T6
- posted
10 years ago