xiaot1017 发表于 2008-9-1 09:59:16

版本

你的matlab是什么版本的啊,为什么我运行的有错误呢

^_^ 发表于 2008-9-2 08:55:14

辛苦楼主啦,谢谢共享

偶也写过,但没这么好::tongue::

zjuee 发表于 2008-9-2 19:49:32

原帖由 xiaot1017 于 1-9-2008 09:59 发表 https://tech.cepsc.com/images/common/back.gif
你的matlab是什么版本的啊,为什么我运行的有错误呢 我的是比较原始的6.5版本 应该可以通用的呀

phdb 发表于 2008-9-2 20:50:44

楼主试试7.5看能不能跑,呵呵。我没试过。
赞这学习,潮流计算现在是很通了。

long_dreamer 发表于 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
         globals.Future versions of MATLAB will require that you declare
         a variable to be global before you use that variable.
> In y at 2
In PowerFlow at 12
Warning: The value of local variables may have been changed to match the
         globals.Future versions of MATLAB will require that you declare
         a variable to be global before you use that variable.
> In y at 2
In PowerFlow at 12
??? Error using ==> fprintf
Invalid file identifier -1.

Error in ==> printY at 3
fprintf(myf,'--------------节点导纳矩阵----------\n');

Error in ==> PowerFlow at 13
printY;

请问怎么回事?
焦急等待中!

zjuee 发表于 2008-9-8 22:59:09

原帖由 long_dreamer 于 4-9-2008 18:02 发表 https://tech.cepsc.com/images/common/back.gif
请教楼主,我按照你的提示运行你的程序,myf=fopen('D:\matlab\work\output.dat','wt');选择test1.m系统,老是出现Warning: The value of local variables may have been changed to match the
         globals.   ... Warning问题不大的 我的全局变量定义还是有问题 就会出现这样的Warning

zjuee 发表于 2008-9-8 23:10:01

原帖由 long_dreamer 于 4-9-2008 18:02 发表 https://tech.cepsc.com/images/common/back.gif
请教楼主,我按照你的提示运行你的程序,myf=fopen('D:\matlab\work\output.dat','wt');选择test1.m系统,老是出现Warning: The value of local variables may have been changed to match the
         globals.   ... Warning是因为我的全局变量定义有问题 不是很大的问题 你把global定义的减少几个就没问题了

zjuee 发表于 2008-9-8 23:11:49

原帖由 long_dreamer 于 4-9-2008 18:02 发表 https://tech.cepsc.com/images/common/back.gif
请教楼主,我按照你的提示运行你的程序,myf=fopen('D:\matlab\work\output.dat','wt');选择test1.m系统,老是出现Warning: The value of local variables may have been changed to match the
         globals.   ... 恩 怎么说呢 我在编写时也出现过这样的问题 就是全局变量定义范围的问题 你把每个子函数内的全局变量做个修改 减少一些不必要的全局变量就应该没有问题

zjuee 发表于 2008-9-8 23:12:50

恩 怎么说呢 我在编写时也出现过这样的问题 就是全局变量定义范围的问题 你把每个子函数内的全局变量做个修改 减少一些不必要的全局变量就应该没有问题

zjuee 发表于 2008-9-8 23:15:05

恩 怎么说呢 我在编写时也出现过这样的问题 就是全局变量定义范围的问题 你把每个子函数内的全局变量做个修改 减少一些不必要的全局变量就应该没有问题
页: 1 [2] 3 4 5 6 7 8 9 10 11
查看完整版本: 自己编写的Matlab-牛顿拉夫逊法潮流计算程序(短学期课程)

招聘斑竹