Smitan Brahmbhatt
2010-10-22 05:47:05 UTC
How do we know Position of simulink block via .m script?
for the program below:
a=find_system(gcs,'LoadFullyIfNeeded','off','BlockType','Logic')
b=length(a)
for i=1:b
c=get_param(a(i),'Operator')
p=get_param(a(i),'Position')
end
P is returning answer as [1x4 double]. But how do can we find exact digits in this array?
and what exactly those digit indicates? Are they indicates co-ordinates of diagonal points?
for the program below:
a=find_system(gcs,'LoadFullyIfNeeded','off','BlockType','Logic')
b=length(a)
for i=1:b
c=get_param(a(i),'Operator')
p=get_param(a(i),'Position')
end
P is returning answer as [1x4 double]. But how do can we find exact digits in this array?
and what exactly those digit indicates? Are they indicates co-ordinates of diagonal points?