📜  如何在 matlab 中编写分段函数 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:15.557000             🧑  作者: Mango

代码示例1
See More Methods at
https://www.entechin.com//how-to-plot-a-piecewise-function-in-matlab/

clear all;
close all;
clc;
syms x;
y=piecewise(-5<=x<=0,(2*x)+3, (0