Skip to content
Permalink
4391bceca9
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
10 lines (9 sloc) 327 Bytes
function [x, y] = my_function(max_time)
%h help file for my_func
% this crease x = t^2 and y = t^2 for t=-max_time
% this wasn't in homework 1. this was done in class
N = 100;
t = linspace(0, max_time, N);
x = t.^2; %elementwise
y = 2*t; %vector times a scalar, doesn't matter if you use a dot.
end