From: John Quincy on
Hello,

I would like to be able to determine if a given simulink block exists, I have been trying to use find_system(block_name) however this returns an error if the block does not exists as opposed to an empty array. I guess I could use try catch on this but I would like to avoid that if possible. is there an easier way to do this?
From: John Quincy on
"John Quincy" <q.john92(a)gmail.com> wrote in message <hrpret$ro1$1(a)fred.mathworks.com>...
> Hello,
>
> I would like to be able to determine if a given simulink block exists, I have been trying to use find_system(block_name) however this returns an error if the block does not exists as opposed to an empty array. I guess I could use try catch on this but I would like to avoid that if possible. is there an easier way to do this?

Just to clarify I would like to easily determine if a simulink block referenced by name is in my model or not, is there a function to do this?