How to create a separate function file for a piecewise function?
이전 댓글 표시
How do I create a function with the function:
f(x) = -ax+b for 0<x<b/a and f(x)=0 for x>b/a?
I want it in a seprate file.
How do I then use it in my main code? (call it)
댓글 수: 1
Stephen23
2022년 3월 31일
What should be the value for x<=0 ?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Bessel functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!