Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Store character in a array possible?
1 回表示 (過去 30 日間)
古いコメントを表示
I want to store the name of the character the user type so I can use it for a future function [t,fs]= wavread(file);
however I get this error: In an assignment A(:) = B, the number of elements in A and B must be the same.
CODE:
for i=10
i=i+1
name = input ('Enter the name of the voice command:','s');
file(i) = sprintf('%s.wav',name);
end
0 件のコメント
回答 (1 件)
Walter Roberson
2014 年 1 月 17 日
file{i} = sprintf('%s.wav',name);
Notice the (i) changed to {i}
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!