sfclipboard

Объект буфера обмена Stateflow

Синтаксис

object = sfclipboard

Описание

object = sfclipboard возвращает указатель на объект буфера обмена Stateflow®, который вы используете, чтобы скопировать объекты с одного графика или утвердить другому.

Примеры

Скопируйте init функция от Init стройте диаграмму к Pool стройте диаграмму в sf_pool модель:

sf_pool;
% Get handle to the root object
rt = sfroot;
% Get handle to 'init' function in Init chart
f1 = rt.find('-isa','Stateflow.EMFunction','Name','init');
% Get handle to Pool chart
chP = rt.find('-isa','Stateflow.Chart','Name','Pool');
% Get handle to the clipboard object
cb = sfclipboard;
% Copy 'init' function to the clipboard
cb.copy(f1);
% Paste 'init' function to the Pool chart
cb.pasteTo(chP);
% Get handle to newly pasted function
f2 = chP.find('-isa','Stateflow.EMFunction','Name','init');
% Reset position of new function in the Pool chart
f2.Position = [90 180 90 60];

Представлено до R2006a

Для просмотра документации необходимо авторизоваться на сайте