According to the SIMSCAPE Product Manager, the only work around here, is to create/use dummy custom domains. The domains are given colours due to a predefined order. To change the colour, you could keep creating dummy domains and loading them before your custom domain until you reach the desired colour. Maybe something that could be added to the next Matlab update would be this simple functionality to define domain styles
Defining the colour of a Simscape Custom Domain
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mathew Thorne
am 26 Feb. 2018
Beantwortet: Mathew Thorne
am 28 Feb. 2018
I have created a Custom Simscape Domain, but often when I use it, or rebuild it, the colour changes, and this is quite annoying. Especially as at the moment it is almost the exact same colour as the default mechanical translational domain. Is there a way to define the colour of the Custom Domain, and also, is there a way to find the colour (RGB values or corresponding name) of other domains.
I have been creating a lot of custom mechanical and hydraulic parts, and then trying to create symbols for them with matching colours. I used a screen shot and then paint to get rough RGB values or tried to guess the name, but you can still tell its not the same colour.
Regards,
Mat
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!