For example, the vector [a b c ….], I want to generate an anonymous function fun=@(t) -(a*t(1)+b*t(2)+c*t(3)+…..) ,How to do it?
MATLAB: Generate anonymous functions from vectors
anonymous functionmatlab functiontransfer function
Related Question
- Discrete optimization for minimizing the distance between vectors
- How to transpose Al=0:.01:.1; as “Dimensions of matrices being concatenated are not consistent” error message is coming in matlab for plotting a function? How to solve this
- How to create multiple column vectors from one big column vector
- What does this upperline mean
- Solving integral equation with differential function
- How to run fmincon using following function
Best Answer