![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/10577509_1522136694348_DEF.jpg)
Vaibhav Dwivedi
Attivo dal 2017
Followers: 0 Following: 0
Statistica
MATLAB Answers
1 Domanda
0 Risposte
RANK
147.744
of 292.708
REPUTAZIONE
0
CONTRIBUTI
1 Domanda
0 Risposte
ACCETTAZIONE DELLE RISPOSTE
0.0%
VOTI RICEVUTI
0
RANK
of 147.865
CONTRIBUTI
0 Problemi
0 Soluzioni
PUNTEGGIO
0
NUMERO DI BADGE
0
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
Domanda
Write a function called digit_counter that takes the name of a text file as input and returns the number of digits (i.e., any of the characters, 0-to-9) that the file contains. If there is a problem opening the file, the function returns -1.
My code: function[c]=digit_counter(filename) fid=fopen(filename,'rt'); if fid<0 er...
oltre 6 anni fa | 5 risposte | 0