Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Create function from a vector in matlab

  1. Oct 25, 2012 #1
    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
     
  2. jcsd
  3. Oct 26, 2012 #2
    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
     

    Attached Files:

    Last edited: Oct 26, 2012
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Create function from a vector in matlab
Loading...