The input was too complicated or too big for MATLAB to parse.
hi, i’ve a long code and i receive this error..
To fix it i want to reduce code using vectorialization
for i=1:c
if STR_type(i)==1 %%se sono aggregate
SumCTR_color(b(i),:)= col(i,:); %%cosi nel draw del SumCTR_strum gli do il colore uguale
end
legend_lines(i)=plot(Ax_Eq,XDates,TE_strum(:,i)’,’DisplayName’,STR_name{i},’Color’,col(i,:),’LineWidth’,width_arr(i));
text(Ax_Eq,r-2,TE_strum(end,i),strcat({‘ ‘},num2str(i)),’Color’,col(i,:),’Interpreter’,’none’);
%%******** COLORA OOS *********
if app.OOScolorCheckBox.Value %%mi colora di nero da dove inizia solo l’OOS (se ci sono 4 sistemi prende l’OOS piu’ recente!!)!
if isdatetime(OOS_strum(i))
[~,xx_]=find(OOS_strum(i)<=XDates,1,’first’); %%max perche prendo l’OOS piu’ recente!
plot(Ax_Eq,XDates(xx_:end),TE_strum(xx_:end,i)’,’Color’,"black",’LineWidth’,width_arr(i));
end
end
%%******************************
end
how can i do it? this is a small piece of a big codehi, i’ve a long code and i receive this error..
To fix it i want to reduce code using vectorialization
for i=1:c
if STR_type(i)==1 %%se sono aggregate
SumCTR_color(b(i),:)= col(i,:); %%cosi nel draw del SumCTR_strum gli do il colore uguale
end
legend_lines(i)=plot(Ax_Eq,XDates,TE_strum(:,i)’,’DisplayName’,STR_name{i},’Color’,col(i,:),’LineWidth’,width_arr(i));
text(Ax_Eq,r-2,TE_strum(end,i),strcat({‘ ‘},num2str(i)),’Color’,col(i,:),’Interpreter’,’none’);
%%******** COLORA OOS *********
if app.OOScolorCheckBox.Value %%mi colora di nero da dove inizia solo l’OOS (se ci sono 4 sistemi prende l’OOS piu’ recente!!)!
if isdatetime(OOS_strum(i))
[~,xx_]=find(OOS_strum(i)<=XDates,1,’first’); %%max perche prendo l’OOS piu’ recente!
plot(Ax_Eq,XDates(xx_:end),TE_strum(xx_:end,i)’,’Color’,"black",’LineWidth’,width_arr(i));
end
end
%%******************************
end
how can i do it? this is a small piece of a big code hi, i’ve a long code and i receive this error..
To fix it i want to reduce code using vectorialization
for i=1:c
if STR_type(i)==1 %%se sono aggregate
SumCTR_color(b(i),:)= col(i,:); %%cosi nel draw del SumCTR_strum gli do il colore uguale
end
legend_lines(i)=plot(Ax_Eq,XDates,TE_strum(:,i)’,’DisplayName’,STR_name{i},’Color’,col(i,:),’LineWidth’,width_arr(i));
text(Ax_Eq,r-2,TE_strum(end,i),strcat({‘ ‘},num2str(i)),’Color’,col(i,:),’Interpreter’,’none’);
%%******** COLORA OOS *********
if app.OOScolorCheckBox.Value %%mi colora di nero da dove inizia solo l’OOS (se ci sono 4 sistemi prende l’OOS piu’ recente!!)!
if isdatetime(OOS_strum(i))
[~,xx_]=find(OOS_strum(i)<=XDates,1,’first’); %%max perche prendo l’OOS piu’ recente!
plot(Ax_Eq,XDates(xx_:end),TE_strum(xx_:end,i)’,’Color’,"black",’LineWidth’,width_arr(i));
end
end
%%******************************
end
how can i do it? this is a small piece of a big code the input was too complicated or too big for matla MATLAB Answers — New Questions