Sie sind auf Seite 1von 1

%File to calculate the %Resonant frequency or Resonant Inductance value or Capacitance value close all; clear all; clc;

opt = 1; max_options = 3; while(opt< max_options+1) opt= menu('choose the parameter', 'Resonant frequency', 'Inductance','capaci tance','Exit'); switch opt case 1 % L=0; % C=0; % F=0; L = input('What is the Inductance value'); C = input('What is the Capacitance value'); F = 1/(2*pi*sqrt(L*C)); display (F); return case 2 F = INPUT('What is the Frequency value?'); C = INPUT('What is the Capacitance value'); L = 1/(4*pi^2*C*F^2); display (L); return case 3 F = input('What is the aaaaaaaaaaaaaa ?'); L = input('?'); C = 1/(4*pi^2*L*F^2); display (C); return end end

Das könnte Ihnen auch gefallen