![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/8814545_1522129593835_DEF.jpg)
Kapil Dhanwani
2016 年からアクティブ
Followers: 0 Following: 0
統計
MATLAB Answers
1 質問
0 回答
ランク
of 147,901
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
Feeds
質問
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
function[c]=digit_counter(filename) fid=fopen(filename,'rt'); if fid<0 error('error opening file %s', filename); ...
8年弱 前 | 2 件の回答 | 0