How to do function shift in MATLAB?
30 ビュー (過去 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!