K
K
konura2016-12-19 11:20:27
MATLAB
konura, 2016-12-19 11:20:27

How to replace a character variable with an array of values ​​in Matlab?

Good afternoon. There is some function of t:
f = 2*t + 4*exp(-t/2) - 4 It is
necessary to replace this character variable with some array of values ​​so that it looks like I just enter an array and a function:
t1 = 0:0.5 :10
f = 2*t1 + 4*exp(-t1/2)-4

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question