Matlab zeros function problem

2 views (last 30 days)
Daniel Raynor
Daniel Raynor on 17 Jul 2020
Answered: madhan ravi on 17 Jul 2020
The zeros function was working fine yesterday, but this is happening now. Ones works fine, but why doesn't zeros?
  2 Comments
KSSV
KSSV on 17 Jul 2020
What does
which zeros
outputs?
Stephen23
Stephen23 on 17 Jul 2020
"Ones works fine, but why doesn't zeros?"
Because you have a variable in the workspace called zeros. Clear it s and try again.

Sign in to comment.

Accepted Answer

madhan ravi
madhan ravi on 17 Jul 2020
clear zeros
zeros(1, 10)

More Answers (0)

Categories

Find more on Entering Commands in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!