Skip to content

Instantly share code, notes, and snippets.

@Mr8Manhattan
Created May 23, 2017 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mr8Manhattan/47a00d691c8cf6101d32390d3062e5c1 to your computer and use it in GitHub Desktop.
Save Mr8Manhattan/47a00d691c8cf6101d32390d3062e5c1 to your computer and use it in GitHub Desktop.
function [p0,pF,numPts,dp,vector] = MakeVector(p0,pF,type,def)
% Author: Nathan Eckert
% Date Created : 03 - 28 - 2017
% Date Edited : 03 - 28 - 2017
% Title: MakeVector
% Inputs:
% Outputs:
% Purpose:
if type == 'num'
vector = linspace(p0,pF,def);
elseif type == 'size'
vector = p0:def:pF;
end
numPts = length(vector);
dp = (pF-p0)/numPts;
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment