How to do function shift in MATLAB?
조회 수: 5 (최근 30일)
이전 댓글 표시
Hello, I was wondering how can I do the function shinfting in MATLAB?
For example:
Input: f(x) = x+2 (a function) and 5 (the shifting value)
Output: f(x+5) = x+7 (a function)
댓글 수: 2
Stephen23
2019년 11월 27일
"How to do function shift in MATLAB?"
Hello, I was wondering how can I do the function shinfting in MATLAB?
For example:
Input: f(x) = x+2 (a function) and 5 (the shifting value)
Output: f(x+5) = x+7 (a function)
답변 (1개)
Shubham Gupta
2019년 10월 3일
Try:
function [ func_up ] = FuncShift( func, shift )
func_up = @(x)(func(x)+shift);
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Google에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!