Skip to content

Instantly share code, notes, and snippets.

@thorade
Last active December 27, 2015 19:19
Show Gist options
  • Save thorade/7376152 to your computer and use it in GitHub Desktop.
Save thorade/7376152 to your computer and use it in GitHub Desktop.
emulate Matlabs logspace function in Modelica
function logspace
input Real a;
input Real b;
input Integer n;
output Real[n] y;
protected
Real[n] lin= linspace(a,b,n);
algorithm
y := {10^lin[i] for i in 1:n};
end logspace;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment