!!! Important !!!
See Example: start the App in Matlab the correct folder (see picture), otherwise it will throw an error
![double click app.mlapp in this folder! make sure ](tutorial/image.png)!

Updated app is out. Check out app2 (everything except laps, grayed out buttons and presets works, presets might work in old app)

KNOWN ERRORS / NOT WORKING / UNKNOWN
- FT25-Presets -> instead use Load(fast) and Plot Subplot
- new implementation of date selection might mess with lap selection
- unknown status of Presets for FT23 and FT24 after the last few updates, might not work

FYI:
- code is starting to get really clunky, going to rewrite the handling of loaded data some time in the future
- search is case sensitive
- you need to delete your search if you misspelled something
- if something doesnt work try reset subplot and then press plot subplot again

![Tutorial for new app2](<tutorial/app2 tutorial.png>)


Quick tutorial:
1. Browse the .mat file you want to open. (put it into /data folder)
2. Choose either Load (fast) or Load (Presets)
    - Load(fast):
        - will load ONLY the name of all saved data in your .mat file
        - select data you want to plot in custom subplots -> select data (left side) 
        - all features will work for this option
        - for customizing look under the next chapter

    - Load (Presets)
        - will load a pre configured set of data in your .mat file (takes a bit of time)
        - choose a preset and a season, then press "Plot Presets"
            -> will plot pre configured graphs
        - all features in "Custom Subplots" do NOT work with this
        - the idea is that only sortdata.m and the plot_settings need to be configured each season
        - for customizing look under the next chapter (only features within Set Timestamps panel work)

Features:
1. Set Timestamps:
    - works for both
    - entire stint (all data recorded) is the default option that will be plotted
    - otherwise you can select either the detected laps (will plot, but laps might be inaccurately recorded) or custom timestamps (remember to tick the Use box)
2. Reset Panel and To Workspace Buttons:
    - work only for Presets
    - should something not work try pressing reset and plot preset again
    - to workspace throws the entire preset dataset into the matlab workspace (for further manipulation)
        - currently limited in capabilites
3. Custom Subplots:
    - only works for the selected data (if you press load preset you can also use the displayed data, but somethings like cell voltages might not be avaible)
    - columns and rows to set the number of plots you want in one figure
    - press Plot Subplot to plot 
    - how it works:
![selected subplot is 1](tutorial/1.png)
![this time a lap, and a different dataset was selected](tutorial/2.png)
![only if you want a second -yaxis select the option "plot with 2nd yAxis](tutorial/3.png)
    - press reset subplot to delete the selected graph


Presets:
Adapting a preset:
- sortdata creates an struct pltData with all necessary data for plot_settings
    - easiest case: the data from the vectorlogger has the same fieldnames as last season -> probably no changes necessary, unless you want to plot different things
    - vectorlogger fieldnames changed: adapt the fieldname to the updated name
    - otherwise: add missing data with pltData.XXX =
- plot_settings: uses the data given from pltData to plot, adapt as you see fit
    - plotData currently hands over all data that use the following strings:
        - "ABX*","Shunt*","AMS_Status*","INV*","XSens*
        - which can make problems (e.g. FT23 and FT25 use XSens, FT24 uses VN200)