中易网

matlab高手求解

答案:2  悬赏:0  
解决时间 2021-04-28 09:04
  • 提问者网友:朱砂泪
  • 2021-04-28 01:02
function CellValue = hyvalue(CellObject)
% HYVALUE Returns the value of a Hysys spreadsheet cell.
% hyvalue(CellObject) - CellObject can be a single object or a cell
% array of objects.
%
% Copyright (C) 1999 Olaf Trygve Berglihn
% Please read the files license.txt and lgpl.txt

%% $Id: hyvalue.m,v 1.5 1999/04/20 08:52:54 olafb Exp $
%% ----------
%% Changelog:
%%
%% $Log: hyvalue.m,v $
%% Revision 1.5 1999/04/20 08:52:54 olafb
%% The library is now under LGPL license.
%%
%% Revision 1.4 1999/04/18 14:04:44 olafb
%% Added support for cell matrises of activeX-objects.
%%
%% Revision 1.3 1999/04/18 13:54:12 olafb
%% hysyslib/
%%
%% Revision 1.2 1999/04/16 08:38:16 olafb
%% Added support for cell arrays of aciveX objects
%%
%% Revision 1.1 1999/04/07 12:03:37 olafb
%% Initial revision
%%

if isa(CellObject, 'cell')
for n1 = 1:size(CellObject,1)
for n2 = 1:size(CellObject,2)
% if isa(CellObject{n1,n2}, 'activex')
CellValue(n1,n2) = CellObject{n1,n2}.CellValue;
% end
end
end
else
CellValue = CellObject.CellValue;
end

M函数如上,但是运行之后。出现错误,请问大神们这该怎么改?还是哪里的问题?

>> hyvalue(c)
??? Invoke Error, Dispatch Exception: 未指定的错误

Error in ==> hyvalue at 34
CellValue(n1,n2) = CellObject{n1,n2}.CellValue;
最佳答案
  • 二级知识专家网友:啵啵桃汀
  • 2021-04-28 02:33
function CellValue = hyvalue(CellObject) % HYVALUE Returns the value of a Hysys spreadsheet cell. % hyvalue(CellObject) - CellObject can be a single object...看不懂啊
全部回答
  • 1楼网友:努力只為明天
  • 2021-04-28 03:42

b1=[1];a1=[0.0067,0.3986,1.25,1];

sys1=tf(b1,a1);t=0:0.01:10;

x1=step(sys1,t);subplot(1,3,1);plot(x1);title('g(s)1的阶跃响应');

b2=[1];a2=[0.67,1];

sys2=tf(b2,a2);x2=step(sys2,t);subplot(1,3,2);plot(x2);title('g(s)2的阶跃响应');

………………………………………………………………

norm(x,2)是求矩阵的2范数的,但是稳态温差的2范数,不太懂,稳态温差是哪出来的额

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息!
大家都在看
推荐信息