全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Gauss专版
2174 8
2010-05-26
刚开始学Gauss,碰到一个用watch的题不会做,请教一下,题目是:
"
new;
cls;
i = 1;
do while i <= 6;
  print "The value of i is " i;
  i = i + 1;
endo;

Save the file and debug it. Set a watch on i and run to line three, the fourth time the loop is executed."
按了watch这个按钮后,要求输入matrix symbol, 我输入 i ,系统就提示 "symbol is unknown...",所以想请教一下如何把watch用在这个小程序上,先谢了!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2010-5-26 05:20:16
帮忙顶一下~
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-5-27 17:39:40
Set Watch Set a watch to see how variables change in value during debugging. A
watch variable can be the name of a structure, a matrix, a scalar, a
string array, or a string.
Set Watch opens the Matrix Editor window with
Matrix/Auto-reload and View/Stay on Top automatically selected.
These options are not automatically selected when a non-watch
Matrix Editor window is opened.
The debugger searches for a watch variable in the following order:
1. A local variable within a currently executed procedure
2. A local variable within a currently active procedure.
3. A global variable.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-5-27 17:41:24
Matrix Load loads a matrix, string, or structure. Reload updates the value of
the variable. Auto-reload tells GAUSS to automatically update the
values of variables in the Matrix Editor. Auto-reload is the default
setting when creating a watch in the debugger. Save saves the grid as
a matrix in the GAUSS workspace. If a matrix of the same name
already exists in the workspace, it is overwritten.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-5-27 17:41:44
View The View menu lets you control your view of imaginary numbers.
Minimal View minimizes the amount of screen space occupied by the
Matrix Editor. This is especially useful for creating watch windows
for single variables.
Stay on Top Forces the Matrix Editor window to remain visible on
the screen even when the interface focus has shifted to another
window.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-5-27 17:42:05
4.13 Open watch windows for i and j in the following code. Be sure they
are set to Stay on Top and Auto-reload. Watch how the values
change as you step through the code using the debugger.
j = {}; // initializes j to an empty matrix
for i (1,8,1); // start the for loop
print i;
j = j|(i*ones(i,3)); // vertically concatenate j to itself
endfor;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群