Call a table from the workspace into my main file

4 views (last 30 days)
I have a table called Male_Data.
I'm using the following line of code to obtain a random value from FileName
random_Name = datasample(Male_Data.FileName,1)
I have in my workspace files that match the names in the filename column
Each of these files have 12 columns, I want to plot the first column of it, for that I'm using the following line of code
plot(MUSE2018011412185336000.VarName1, 'k')
And I'm plotting these columns by manually typing the file. I want to write a few lines with which I can automatically plot the first column of the file. I tried
plot (random_Name)
But it doesnt work since I haven't associated the table to that name and the value under random_Name is a categorical value. I'd highly appreciate some help in automatically relating this categorical value with a table

Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Products


Release

R2015b

Community Treasure Hunt

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

Start Hunting!