Stetigkeit MATHLAB 2 ?
function isContinuous = checkContinuity(func)
syms x;
f = str2sym(func);
discont_points = feval(symengine, ‘discont’,f,x);
if isempty(discont_points)
isContinuous = true;
disp(‘Ist stetig’);
disp(discont_points)
else
isContinuous = false;
disp(‘Nicht stetig’);
disp(discont_points)
end
end
checkContinuity(‘2*x’);function isContinuous = checkContinuity(func)
syms x;
f = str2sym(func);
discont_points = feval(symengine, ‘discont’,f,x);
if isempty(discont_points)
isContinuous = true;
disp(‘Ist stetig’);
disp(discont_points)
else
isContinuous = false;
disp(‘Nicht stetig’);
disp(discont_points)
end
end
checkContinuity(‘2*x’); function isContinuous = checkContinuity(func)
syms x;
f = str2sym(func);
discont_points = feval(symengine, ‘discont’,f,x);
if isempty(discont_points)
isContinuous = true;
disp(‘Ist stetig’);
disp(discont_points)
else
isContinuous = false;
disp(‘Nicht stetig’);
disp(discont_points)
end
end
checkContinuity(‘2*x’); #boma MATLAB Answers — New Questions