how to solve this issue?. Undefined function 'ge' for input arguments of type 'timeseries'.

17 ビュー (過去 30 日間)
Hi, I had had change from Matlab&Simulink release 2018a to a former release 2017a, and my model is now presenting this problem.
Error evaluating 'StopFcn' callback of block_diagram 'PSE_MainModel'. Caused by: Undefined function 'ge' for input arguments of type 'timeseries'.
The stop function does not has any "ge" function, that is something superb strange. This is the script:
if true
% code
if exist('I','var') && exist('V','var')
figure(1)
clf
n=find(I>=0);
n=n(end);
Vglobal=V(1:n);
Iglobal=I(1:n);
Pglobal=Vglobal.*Iglobal;
n=find(Pglobal==max(Pglobal));
Pmax=Pglobal(n);
Vmp=Vglobal(n);
Imp=Iglobal(n);
subplot(211)
plot(Vglobal, Iglobal,Vmp,Imp,'or')
ylabel('Current (A)')
title(sprintf('Global I-V & P-V characteristics\n %s' ,ModuleName))
subplot(212)
plot(Vglobal, Pglobal,Vmp,Pmax,'or')
ylabel('Power (W)')
xlabel('Voltage (V)')
end
end
Could you help me with this?. This script is part of a Simpowersystem model, it is used to portraying the graphs of power in it.
  2 件のコメント
Walter Roberson
Walter Roberson 2018 年 9 月 11 日
n=find(I>=0);
The formal name of the >= operator is ge
So a timeseries is being passed to the code instead of the content of the data points. You could probably extract the data from the timeseries
Tony Castillo
Tony Castillo 2018 年 9 月 11 日
Thanks for your answer

サインインしてコメントする。

採用された回答

Joel Van Sickel
Joel Van Sickel 2020 年 9 月 2 日
Just flagging this question as answerd as part of a clean up for Matlab answers. Walter Roberson answered it in the comments above:
Walter Roberson on 11 Sep 2018
n=find(I>=0);
The formal name of the >= operator is ge
So a timeseries is being passed to the code instead of the content of the data points. You could probably extract the data from the timeseries

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVariable Initialization についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by