Function that has a text file as input
1 次查看(过去 30 天)
显示 更早的评论
Hi I somehow know how to create a new function in matlab, while the function has NUMBERS as input. How can I define a Text file as input for my Matlab function? your answers really makes my life easier.
0 个评论
采纳的回答
Jan
2012-2-29
What exactly do you mean by "text file"? The name or the contents of the file?
Both possibilities mean, that the input is a string, but in the first case, the input is treated as file name.
2 个评论
Jan
2012-3-9
What did you do exactly and what does "it does not work" mean explicitely? Currently the description of the problems is too vague to allow a specific answer.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Export 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!