I
I
Ivan Sokhin2016-03-21 19:35:19
MATLAB
Ivan Sokhin, 2016-03-21 19:35:19

How to plot the resulting function in matlab?

There are three functions:
f(1) = 5sin(2*pi*t)+1; t<τ
f(2) = 2.5(2/t+1); τ<=t<=2τ
f(3) = -2.5(2*t-1); t>2τ
τ - tau;
How to write it down in matlab and build a graph from the resulting function? Sorry for the noob questions, just need to learn at the pace and do some work :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2016-04-08
@2ord

Here is an example of constructing parametric functions:

t= linspace (-30,-1.6);
X= ((3*t) ./ (1+t.^3);
Y= ((3*t.^2) ./ (1+t.^3));
plot(X, Y)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question