由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Science版 - matlab问题?
相关主题
Lunar-ticsA Prescription for Procrastinators-书摘(完)
a math questionAdv. Func. Mater. 的彩图费要交吗?
Visa Bulletin for June变成coming soon了Twitter在全球禁了加密货币广告
A Prescription for Procrastinators-书摘(11)inline functions in C++
A Prescription for Procrastinators-书摘(13)Leader of ETIM terrorist group was arrested by Turkish police
A Prescription for Procrastinators-书摘(完)吉尔吉斯的主体民族和乌兹别克族发生冲突几百死伤
A Prescription for Procrastinators-书摘(11)港媒:张春贤治疆政策或将强硬
A Prescription for Procrastinators-书摘(13)这就是国防部新闻发布会上辟谣的那个事儿
相关话题的讨论汇总
话题: toc话题: tic话题: tictoc话题: clock话题: etime
进入Science版参与讨论
1 (共1页)
c*****y
发帖数: 80
1
如何定义一个变量a,在程序主体main.m中辅值使用,在
辅助函数程序func.m中也能使用?
例如:
main.m
...
...
for a=0:1
func();
end...
func.m
function [p]=func(t,x)
p=a^2*t*x
o*****e
发帖数: 435
2
please:
help global;
==================================
function tic
% TIC Start a stopwatch timer.
% TIC; any stuff; TOC
% prints the time required.
% See also: TOC, CLOCK.
global TICTOC
TICTOC = clock;
function t = toc
% TOC Read the stopwatch timer.
% TOC prints the elapsed time since TIC was used.
% t = TOC; saves elapsed time in t, does not print.
% See also: TIC, ETIME.
global TICTOC
if nargout < 1
elapsed_time = etime(clock,TICTOC)
else
t = etime(clock,

【在 c*****y 的大作中提到】
: 如何定义一个变量a,在程序主体main.m中辅值使用,在
: 辅助函数程序func.m中也能使用?
: 例如:
: main.m
: ...
: ...
: for a=0:1
: func();
: end...
: func.m

1 (共1页)
进入Science版参与讨论
相关主题
这就是国防部新闻发布会上辟谣的那个事儿A Prescription for Procrastinators-书摘(13)
Has anyone know why the West particularly the US did not come out and condemn what happen is a terroA Prescription for Procrastinators-书摘(完)
巴基斯坦空军5.21空袭东伊运营地、毙73人A Prescription for Procrastinators-书摘(11)
日媒v5:ISIL的崛起,中国也有责A Prescription for Procrastinators-书摘(13)
Lunar-ticsA Prescription for Procrastinators-书摘(完)
a math questionAdv. Func. Mater. 的彩图费要交吗?
Visa Bulletin for June变成coming soon了Twitter在全球禁了加密货币广告
A Prescription for Procrastinators-书摘(11)inline functions in C++
相关话题的讨论汇总
话题: toc话题: tic话题: tictoc话题: clock话题: etime