Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Conditions at makesymbolspec for Mapshow

1 vue (au cours des 30 derniers jours)
Kelly Kyriakou
Kelly Kyriakou le 8 Sep 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
I created the following rule in order to mapshow with conditions.
for linkid=1:length(getlinkid)
ruleid=getlinkid(linkid)
roadColors = ...
makesymbolspec('Line',{'Id',ruleid(linkid),'Color','r'},...
{'Default','Color','g'});
The length is 4 but when I run it, the loop run until the 2nd row and then I got this error
"Index exceeds matrix dimensions.
Error in traffic_scen>popupmenu3_Callback (line 661)
roadColors = ..."
What is my wrong?
Thankyou in advance

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by