36 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Luca Re circa 3 ore fa
Commentato: dpb 39 minuti fa
Apri in MATLAB Online
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
4 Commenti Mostra 2 commenti meno recentiNascondi 2 commenti meno recenti
Mostra 2 commenti meno recentiNascondi 2 commenti meno recenti
dpb 11 minuti fa
Link diretto a questo commento
https://it.mathworks.com/matlabcentral/answers/2133301-the-input-was-too-complicated-or-too-big-for-matlab-to-parse#comment_3198986
That isn't going to solve your problem -- which we can't see since you didn't post the actual error message in context nor the specific code that generated it.
Certainly the above code snippet by itself is neither large nor very complicated.
Luca Re circa 2 ore fa
Link diretto a questo commento
https://it.mathworks.com/matlabcentral/answers/2133301-the-input-was-too-complicated-or-too-big-for-matlab-to-parse#comment_3198991
Modificato: Luca Re circa un'ora fa
Apri in MATLAB Online
- MPV_Draw_Graph.m
i've problem to allegate the input
but I can post the complete code of the function
dpb circa un'ora fa
Link diretto a questo commento
https://it.mathworks.com/matlabcentral/answers/2133301-the-input-was-too-complicated-or-too-big-for-matlab-to-parse#comment_3199041
I've never seen that before and the code itself although it could probably be streamlined, doesn't look all that complicated so one must presume it's tied into what else is going on with the app and the complexity of it.
We, of course, have no hope of running the code because we don't have data nor the gui that it all relies on; the first suggestion I would have would be to comment out the routine entirely from the app and see if you can then load/run the gui alone.
If that fails, you know the problem is more fundamental; if it works, then begin to "divide and conquer" -- comment out all the function except the call and the return/end and see if still runs. Then add in pieces in chunks until it breaks again (presuming you can first get anything to run by eliminating stuff).
However, one would wonder just what is TE_strum and how big is it?
Luca Re circa un'ora fa
Link diretto a questo commento
https://it.mathworks.com/matlabcentral/answers/2133301-the-input-was-too-complicated-or-too-big-for-matlab-to-parse#comment_3199051
It is not big....max is 50 element in arraycell
Accedi per commentare.
Accedi per rispondere a questa domanda.
Risposte (1)
Steven Lord circa un'ora fa
What exactly did you expect this section of code to do?
OOS_strum=OOS_strum(:,b);lucadrive-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------app.Eq.equity_stat.oosapp.Eq.equity_stat.oosapp.Eq.equity_stat.oosapp.Eq.equity_stat.oosapp.Eq.equity_stat.oospredyu
Why do you have so many - signs?
Did you intend this to be a visual divider between the command lucadrive and the attempt to index into the app object? If so you're missing a comment character before the first of those minus signs. The code after that string of minus signs also looks like it's missing some spaces between oos and the app variable.
2 Commenti Mostra NessunoNascondi Nessuno
Mostra NessunoNascondi Nessuno
Luca Re 42 minuti fa
Link diretto a questo commento
https://it.mathworks.com/matlabcentral/answers/2133301-the-input-was-too-complicated-or-too-big-for-matlab-to-parse#comment_3199056
I don't think that's what's written there... I'll check when I get back
dpb 28 minuti fa
Link diretto a questo commento
https://it.mathworks.com/matlabcentral/answers/2133301-the-input-was-too-complicated-or-too-big-for-matlab-to-parse#comment_3199071
That would certainly fit the too complex rules, @Steven Lord. Where/how did you see that; I downloaded the attach file and opening in the ML editor, I don't see anything like that there...
Looks like a file corruption issue of some sort that maybe the builtin editor is hiding on some OS/versions???
Accedi per commentare.
Accedi per rispondere a questa domanda.
Vedere anche
Tag
- the input was too complicated or too big for matla
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Si è verificato un errore
Impossibile completare l'azione a causa delle modifiche apportate alla pagina. Ricarica la pagina per vedere lo stato aggiornato.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Americhe
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- Deutsch
- English
- Français
- United Kingdom(English)
Asia-Pacifico
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)
Contatta l’ufficio locale