フィルターのクリア

my code wont run. was required to write a code to add charecters an store then in array

3 ビュー (過去 30 日間)
AccuSumNet({'123456789101112131415161718192021222324252627282930' '123456789101112131415161718192021222324252627282930123456789101112131415161718192021222324252627282930' '12345'});
function x=AccuSumNet(:,n)
y=x-'0';
sum(y);
AccuSumNet(:,n+1);
end

採用された回答

David Hill
David Hill 2020 年 5 月 11 日
function x=AccuSumNet(n)
for k=1:length(n)
x(k)=sum(n{k}-'0');
end
end
AccuSumNet({'123456789101112131415161718192021222324252627282930' '123456789101112131415161718192021222324252627282930123456789101112131415161718192021222324252627282930' '12345'});

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNaNs についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by