what is the script for highlight to source of a line when i know handle of a line.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
venkateswarlu kaithepalli
el 24 de Jun. de 2013
Comentada: Laurey ZOBIKILA
el 22 de Ag. de 2018
what is the script for highlight to source of a line when i know handle of a line
1 comentario
Respuesta aceptada
Sreeram Mohan
el 25 de Jun. de 2013
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Computer Vision with Simulink en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!