⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 barcycle.m

📁 solve power flows by gauss seidel method ans newton Rapson
💻 M
字号:
% This function obtains a plot of the load cycle for a given interval.
% The demand interval and the load must be defined by the variable data
% in a three-column matrix.  The first two columns are the demand
% interval and the third column is the load value. The demand interval
% may be minutes, hours, or month in ascending order.  Hourly intervals
% must be expressed in military time.
%
% Copyright (C) 1998 by H. Saadat.

function barcycle(data)
L=length(data);
tt = [data(:,1) data(:,2)];
t = sort(reshape(tt, 1, 2*L));
PP=data(:,3);
for n = 1:L
P(2*n-1)=PP(n);
P(2*n)=PP(n);
end
plot(t,P)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -