Plots using multiple files
9 views (last 30 days)
Show older comments
Greetings,
I am running the attached data with a .txt file runner (P3.m and Problem_4m)
The data runs and generates the numbers I want, the problem is how can I plot certain data.
For example for if you run Problem_4m it will generate the solutions for all my txt files (from P4_N1 - P4N200) and I need to plot
My N values go from N1, N5, N25, N50, N75, N100, N125, N150, N175, N200
the first plot is with N values and CL (these numbers are under workspace)
the second plot is with N values and CDi (these values are under workspace)
the third plot is N values with Gamma (These values are under workspace)
Is there a way to combine the results of ALL the .txt files into one single plot with the plots provided above
Accepted Answer
Mathieu NOE
on 6 Oct 2020
ok - so this is my suggestion for problem 4
there are for sure a more elegant way to manage file names and variables names together. Could be nice if you want to address various files names / quantities without having to do manual corrections in the code.
I tried to "streamline" a bit the process , so there is only one subfunction (exec2.m) and one main m file (Problem_4b.m)
still you have to manage the case with N= 1 , therefore no "delta" variable => error msg
More Answers (0)
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!