Created
May 23, 2017 21:04
-
-
Save Mr8Manhattan/47a00d691c8cf6101d32390d3062e5c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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