필터 지우기
필터 지우기

what is the script for highlight to source of a line when i know handle of a line.

조회 수: 6 (최근 30일)
what is the script for highlight to source of a line when i know handle of a line

채택된 답변

Sreeram Mohan
Sreeram Mohan 2013년 6월 25일
model = 'your_model_name'; open_system(model);
%Select the line whose source has to be traced port = get_param([model '/Out1'], 'PortHandles'); % in this case out1 is an %output block in a model lineS = get_param(port.Inport, 'Line'); set_param(lineS, 'Selected', 'on');
%Highlight to source get_param(lineS, 'TraceSourceOutputports');
%If you need to find the source block. may be use find_system to find the colors or any other property to get to the block name.
%hope this helps. %% sreeram
  댓글 수: 3
omar Elkawokgy
omar Elkawokgy 2018년 1월 11일
Thanks a lot I have been searching for this for a long time :)
Laurey ZOBIKILA
Laurey ZOBIKILA 2018년 8월 22일
What is the line command to find the source block?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by