|
|
发表于 2008-9-4 18:02:42
|
显示全部楼层
请教楼主,我按照你的提示运行你的程序,myf=fopen('D:\matlab\work\output.dat','wt');选择test1.m系统,老是出现Warning: The value of local variables may have been changed to match the
( P5 b" r( A) B8 h globals. Future versions of MATLAB will require that you declare/ ]* `( Z( q% d! P/ u7 d
a variable to be global before you use that variable.0 X! a+ |3 R& k# B
> In y at 2) Z; ?" A0 f+ W; V! r
In PowerFlow at 12
3 f, c& ^6 {: D# f- c c: H4 {/ KWarning: The value of local variables may have been changed to match the
: E O* m; B5 |% _2 g globals. Future versions of MATLAB will require that you declare
3 ^+ {9 W- Y; l) I+ R$ W1 ]3 J a variable to be global before you use that variable.* |& ^6 \' _ J# i( K+ ~+ l
> In y at 21 b# r. r+ u( u% w
In PowerFlow at 12, E7 B1 X) U* T; R8 r: O7 C1 F: _7 a
??? Error using ==> fprintf
" t% v7 |/ q# l5 K, ]1 BInvalid file identifier -1.* ~% U+ B2 c' z$ u1 ~. m
6 h2 c8 U$ ]% y, E# s Q. X" Q
Error in ==> printY at 3" R1 D) G% j3 d% X$ R
fprintf(myf,'--------------节点导纳矩阵----------\n');+ C+ O( a& Z' [" }; v. A" z7 g# S
) B; p/ E. d. a# ~. F% n
Error in ==> PowerFlow at 137 b5 E; z' s% f$ Q* ~
printY;( ]) w5 z& ?1 b6 c
2 }+ W% e( F/ r' m请问怎么回事?8 w- x) ]% W: i, k
焦急等待中! |
|