关于是用matlab的两个问题(懂的人进)

来源:百度知道 编辑:UC知道 时间:2024/06/23 07:56:30
1.matlab7.6和matlab7.0能否很好的兼容?比如在做GUI的时候,两个人,一个人用xp(7.0),另一个人是vista(7.6)。matlab7.0是不能在vista上运行的。到时候各自做好以后会不会有什么问题?

2.一个纯技术的问题:
ecg.m:
% ecg.m - ECG generator.
%
% x = ecg(L) = column vector
%
% generates piecewise linear ECG signal of length L
% must post-smooth it with an N-point smoother:
% y = sgfilt(d, N, x), usually with d=0, and N=3,5,9, etc.

function x = ecg(L)

a0 = [0,1,40,1,0,-34,118,-99,0,2,21,2,0,0,0]; % template
d0 = [0,27,59,91,131,141,163,185,195,275,307,339,357,390,440];
a = a0 / max(a0);
d = round(d0 * L / d0(15)); % scale them to fit in length L
d(15)=L;

for i=1:14,
m = d(i) : d(i+1) - 1;
slope = (a(i+1) - a(i)) / (d(i+1) - d(i));
x(m+1) = a(i) + slope * (m - d(i));
end
-------
sg.m:
% sg.m - Savitzky-Golay length-N order-d smoother design.
%
% [B, S] = sg(d, N);
%
% N

%by dynamic
%see also http://www.matlabsky.com
%contact me matlabsky@gmail.com
%2009.2.
%

1.一般没有问题,因为软件都是想下兼容的,但是如果说你的GUI中正好涉及了7.6相对7.0做了从本质上的改进或者优化,那就不行了,比如 有些函数在7.6中加入了而在7.0中没有
但是这种概率一般很小,尽可放心使用

2.Matlab中的所有标点必须全部是因为状态的

x=ecg(L);
y=sgfilt(d,N,x);
plot(y);

还有这里你必须给出L d N等参数才可以正确调用

呵呵,我问技术问题,都是给200分的~~~~~

你这个问题,我不会。。。。
我们只学了一学期的数学建模
应用的都是matlab一些很基础的功能。。。。

j