楼主: Louis_F_Lu
2230 8

求教:watch 的用法 [推广有奖]

  • 0关注
  • 0粉丝

已卖:76份资源

大专生

18%

还不是VIP/贵宾

-

威望
0
论坛币
292 个
通用积分
0
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
1316 点
帖子
36
精华
0
在线时间
42 小时
注册时间
2010-5-17
最后登录
2010-7-7

楼主
Louis_F_Lu 发表于 2010-5-26 01:53:31 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
刚开始学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用在这个小程序上,先谢了!
二维码

扫码加我 拉你入群

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

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

关键词:Watch ATCH ATC wat GAUSS Watch

沙发
xmusongww 发表于 2010-5-26 05:20:16
帮忙顶一下~

藤椅
xuehe 发表于 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.

板凳
xuehe 发表于 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.

报纸
xuehe 发表于 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.

地板
xuehe 发表于 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;

7
xuehe 发表于 2010-5-27 17:42:42
jj = {}; // 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;

8
Louis_F_Lu 发表于 2010-5-28 00:56:44
上载一本最近在看得书。
已有 1 人评分论坛币 热心指数 收起 理由
xuehe + 100 + 1 根据规定进行奖励

总评分: 论坛币 + 100  热心指数 + 1   查看全部评分

9
Louis_F_Lu 发表于 2010-5-28 00:57:17
7# xuehe
多谢了,我仔细读一下。

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-9 08:00