Wifi communication via Simulink

Ard_Yun:
The Yun is supported by the hardware package

Really? Looking at the page link you provided, there are seven tutorials, and two application examples. Looking at the supported hardware for each of those 9 projects, the Yun is not listed as supported hardware for any of them.

There is a project which uses the Ethernet Shield and another that uses the WiFi Shield, but code will in no way be compatible with the Yun. The Yun handles the networking completely differently than standard Arduinos using those shields.

There are several projects which are supported by the Leonardo, using the USB interface. Those projects should work properly with the Yun, using the USB interface. But any project that uses pins 0 and 1 as a serial interface will not work, as those pins are dedicated for talking to the Linux system.

If you want to talk to the Yun over the network (wired Ethernet or WiFi) I'm sure you can get it to work. But it won't be by using one of the defined examples. You will have to analyze the WiFi Shield or Ethernet Shield examples, figure out what they are actually doing, and then translate that into the Yun's way of doing things. I'm confident it can work, but it won't be a trivial exercise.