user prompt to select which table to process (and column)
2 views (last 30 days)
Show older comments
Hi All,
I have a relative trivial question that I would be needing some guidence.
I have imported a data set called file22. The form of file22 is as follows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/278802/image.png)
If I want to access file22 Time column I type file22.Time, and the whole time column is selected..
I have multiple files:
file22,
file23,
file24 etc
What I am stuggling is to figure out a way where the user is prompted to type the file s/he wants to process, I have this but doesnt seem to work:
prompt = 'name of file : ';
FileName=input(prompt);
%conditioning tables for processing
%time stamp conditioning
FileName.Time=FileName.Time*60*60*24;
What I get is a table called file name.
2 Comments
Ajay Kumar
on 20 Mar 2020
Can you try to explain it more clearly, for example with inputs and expected outputs with some screenshots if possible?
Answers (0)
See Also
Categories
Find more on Other Formats in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!