Results 1 to 4 of 4

Thread: Chi mi tira fuori il risultato di questo codice?

  1. #1
    Lieutenant Commander Marphil's Avatar
    Join Date
    Nov 2003
    Location
    Roma
    Posts
    27.336

    Default Chi mi tira fuori il risultato di questo codice?

    Si ripulisce tutta l'area di memoria destinata alle variabili e si legge un
    file ascii avevte 192 righe e 1 colonna
    clear;
    enel=read('enel1.dat',192,1);
    Si creano i vettori contenenti mese e anno e data (mese + anno) di ciascun
    dato
    ye=[1980:1995]';
    mo=[1:12]';
    mon='JAN' 'FEB' 'MAR' 'APR' 'MAY' 'JUN' 'JUL' 'AUG' 'SEP' 'OCT'
    'NOV' 'DEC'';
    for k=1:length(ye)
    year(1+(k-1)*12:k*12,1)=ye(k)*ones(12,1);
    for j=1:12
    month((k-1)*12+j,1)=mo(j);
    end
    end
    clear ye;
    clear mo;
    for k=1:length(enel)
    data(k)=strcat([mon(month(k)), ,sci2exp(year(k))]);
    end
    clear mon;
    clear j;
    clear k;
    Si salvano i dati in formato binario. L'esercitazione può partire da qui


    Fondamentalmente mi serve quel file formato da 192 righe e 1 colonna con i valori che escono fuori da quel codice

    Ignoro che linguaggio sia
    Last edited by Marphil; 10th June 2008 at 13:18.
    on GW2 Spvp
    MMORPGITALIA Spvp Team Tournament Winner
    S1 Legendary Division
    S2 Legendary Division
    S3 Legendary Division
    S4 Legendary Division

  2. #2
    Lieutenant Commander Marphil's Avatar
    Join Date
    Nov 2003
    Location
    Roma
    Posts
    27.336

    Default

    Dovrebbe essere MAtLab o SCilab
    on GW2 Spvp
    MMORPGITALIA Spvp Team Tournament Winner
    S1 Legendary Division
    S2 Legendary Division
    S3 Legendary Division
    S4 Legendary Division

  3. #3
    Lieutenant Commander Warbarbie's Avatar
    Join Date
    Nov 2004
    Location
    Rome
    Posts
    16.296

    Default

    Quanto mi dai per il risultato?


  4. #4
    Tanek's Avatar
    Join Date
    Apr 2004
    Location
    Milano, Midgard
    Posts
    11.225

    Default

    Il risultato è:
    Code:
    SUKA


    Edit: ma nooo pd, mi ha già decodificato l'html -.-çç
    Vabbè niente sorpresa Marph
    Last edited by Tanek; 11th June 2008 at 10:09.

    Tanek™: Game Designer & Algorithm Mastermind, Team Leader & SW Engineer and Dungeon Master!
    "Datte Foco"™ and "Ma KITTESENCULA"™ are registered trademarks of Tanek Entertainment Inc.
    ‎"One of these days, scientists will discover that second X chromosome contains nothing but nonsense and twaddle." - Sheldon Cooper
    Per non dimenticare:
    Spoiler


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[Output: 51.00 Kb. compressed to 43.30 Kb. by saving 7.71 Kb. (15.11%)]