The input was too complicated or too big for MATLAB to parse. (2024)

36 visualizzazioni (ultimi 30 giorni)

Mostra commenti meno recenti

Luca Re circa 3 ore fa

  • Link

    Link diretto a questa domanda

    https://it.mathworks.com/matlabcentral/answers/2133301-the-input-was-too-complicated-or-too-big-for-matlab-to-parse

  • Link

    Link diretto a questa domanda

    https://it.mathworks.com/matlabcentral/answers/2133301-the-input-was-too-complicated-or-too-big-for-matlab-to-parse

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

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

  • Link

    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

  • Link

    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

The input was too complicated or too big for MATLAB to parse. (4)

but I can post the complete code of the function

The input was too complicated or too big for MATLAB to parse. (5)

The input was too complicated or too big for MATLAB to parse. (6)

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

  • Link

    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

  • Link

    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

  • Link

    Link diretto a questa risposta

    https://it.mathworks.com/matlabcentral/answers/2133301-the-input-was-too-complicated-or-too-big-for-matlab-to-parse#answer_1478906

  • Link

    Link diretto a questa risposta

    https://it.mathworks.com/matlabcentral/answers/2133301-the-input-was-too-complicated-or-too-big-for-matlab-to-parse#answer_1478906

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

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

  • Link

    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

  • Link

    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.


Translated by The input was too complicated or too big for MATLAB to parse. (12)

The input was too complicated or too big for MATLAB to parse. (13)

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

Contatta l’ufficio locale

The input was too complicated or too big for MATLAB to parse. (2024)

References

Top Articles
Latest Posts
Article information

Author: Trent Wehner

Last Updated:

Views: 5868

Rating: 4.6 / 5 (56 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.