Write a function quadraticSolver that takes one 3-element array input and returns two outputs (root condition and root values). Use an if-elseif-else structure in your code.
이전 댓글 표시
Variable rootCondition must be of data type double. It is currently of type uint8. Check where the variable is assigned a value.
This is in red and i don't know what to change
답변 (1개)
The error message apparently tells you your array is composed of uint8 numbers.
How do you convert a variable of integer type, into a double? As a hint:
help double
카테고리
도움말 센터 및 File Exchange에서 Language Fundamentals에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!