Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use real variable names in Matlab (.m) export #2190

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

robbr48
Copy link
Contributor

@robbr48 robbr48 commented Nov 28, 2023

Use the real names of the varaibles instead of the annoying x0, y0, x1, y1...

  • Alias names are prefered
  • Underscore is used as separator when full variable names are used
  • Generation is appended after each name
  • Duplicate variables are not exported (e.g. Time might be used multiple times)
  • Also added a separator argument to getSmartName() function, which is empty by default and in that case ignored

@robbr48 robbr48 added the gui:plotting Plotting, data analysis, data import/export label Nov 28, 2023
@robbr48 robbr48 added this to the 2.22.0 milestone Nov 28, 2023
@robbr48 robbr48 requested a review from peterNordin November 28, 2023 10:21
@robbr48 robbr48 self-assigned this Nov 28, 2023
@robbr48 robbr48 merged commit f401344 into Hopsan:master Jan 23, 2024
3 checks passed
@robbr48 robbr48 deleted the matlab_export_actual_names branch January 23, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gui:plotting Plotting, data analysis, data import/export
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant