Profmenu.m
资源名称:power.rar [点击查看]
上传用户:eighthdate
上传日期:2014-05-24
资源大小:270k
文件大小:1k
源码类别:
其他行业
开发平台:
Matlab
- % This program displays two options for obtaining the voltage profile
- % and the line loadability curves.
- % Copyright (C)1998 by H. Saadat
- global resp model par1 par2 linelngt freq
- clc
- menu4 = [
- ' Voltage profile and line loadability '
- ' Select'
- ' ------'
- ' Voltage profile curves 1 '
- ' '
- ' Line loadability curves 2 '
- ' '
- ' To quit 0 '];
- disp(menu4)
- par4 = -1;
- while par4~=1 & par4~=2 & par4~=0
- par4 = input('Select number of menu --> ');
- if par4~=1 & par4~=2 & par4~=0
- disp('Enter 1, 2 or 0 '), else, end
- end
- if par4 == 0, return, end
- if par1==3 | par1 == 4
- [r, L, C, f] = abcd2rlc(ABCD);
- else, end
- if par4 == 1, vprofile(r, L, C, f), profmenu, else, end
- if par4 == 2, loadabil(L, C, f), profmenu, else, end