Create function from a vector in matlab

  • MATLAB
  • Thread starter _zeQ
  • Start date
  • #1
3
0

Main Question or Discussion Point

Hi everyone,

Lets say i have created a column vector c = [ N x 1 ] and my time vector has the same dimensions.

I want to create a function f(t) in which f(fstep) = c(cstep) where cstep is integer and fstep maybe not.
( for example f(0)=c(0), f(0.1)=c(1), ... f(10)=c(100))

As a result i will be able for example to do the calculation sin(t)*f(t).

Thanks
 

Answers and Replies

  • #2
11
1
I am attaching a document that can be useful (Chapter 1 and Chapter 2). Hope this helps, of course it would be helpful if I explain step by step what you intend to implement.
regards
 

Attachments

Last edited:

Related Threads on Create function from a vector in matlab

Replies
2
Views
10K
  • Last Post
Replies
4
Views
2K
Replies
9
Views
181K
Replies
3
Views
25K
Replies
4
Views
2K
Replies
1
Views
3K
  • Last Post
Replies
2
Views
2K
Replies
16
Views
4K
Replies
1
Views
8K
Top