Matrice 32x128 su file

Strumenti informatici per la matematica applicata, le simulazioni, il disegno: Mathcad, Matlab, Scilab, Microcap, PSpice, AutoCad ...

Moderatori: Foto Utenteg.schgor, Foto Utentedimaios

Avatar utente
Foto Utentelellus
10 4
New entry
New entry
Messaggi: 57
Iscritto il: 27 ott 2013, 15:36
0
voti

[1] Matrice 32x128 su file

Messaggioda Foto Utentelellus » 12 feb 2016, 16:20

Salve a tutti,ho scritto attraverso la funzione fprintf una matrice di dimensione 32x128 su file .txt. La matrice è binaria. Come faccio a farla leggere e ad farla assegnare in memoria ad una variabile H della stessa dimensione. Grazie

Avatar utente
Foto Utentelellus
10 4
New entry
New entry
Messaggi: 57
Iscritto il: 27 ott 2013, 15:36
0
voti

[2] Re: Matrice 32x128 su file

Messaggioda Foto Utentelellus » 12 feb 2016, 16:50

Fatto. Ho usato il comando dlmread ('nomefile.txt'). Se volete cancello il post

Avatar utente
Foto UtenteDirtyDeeds
55,9k 7 11 13
G.Master EY
G.Master EY
Messaggi: 7012
Iscritto il: 13 apr 2010, 16:13
Località: Somewhere in nowhere
1
voti

[3] Re: Matrice 32x128 su file

Messaggioda Foto UtenteDirtyDeeds » 12 feb 2016, 16:51

Più che altro la prossima volta specifica di quale linguaggio stai parlando... pensavo parlassi di C.
It's a sin to write sin instead of \sin (Anonimo).
...'cos you know that cos ain't \cos, right?
You won't get a sexy tan if you write tan in lieu of \tan.
Take a log for a fireplace, but don't take log for \logarithm.

Avatar utente
Foto Utentedimaios
30,2k 7 10 12
G.Master EY
G.Master EY
Messaggi: 3381
Iscritto il: 24 ago 2010, 14:12
Località: Behind the scenes
1
voti

[4] Re: Matrice 32x128 su file

Messaggioda Foto Utentedimaios » 12 feb 2016, 19:38

Tra le altre cose ti conveniva utilizzare la dlmwrite per scrivere il file di testo.
Ingegneria : alternativa intelligente alla droga.


Torna a “Programmi applicativi: simulatori, CAD ed altro”