Hi everyone,(adsbygoogle = window.adsbygoogle || []).push({});

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

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Create function from a vector in matlab

Loading...

Similar Threads - Create function vector | Date |
---|---|

MATLAB help: Interpolating an array of data to create a function | Dec 29, 2012 |

Creating your own function Determinant in Mathematica | Dec 14, 2011 |

Creating a general function handle | Aug 9, 2011 |

Create a function in MATLAB! | Jul 13, 2011 |

Creating a function from DSolve output | Jun 18, 2010 |

**Physics Forums - The Fusion of Science and Community**