this is a part of my test and i cant find the mistake in this .

2 次查看(过去 30 天)
x = 1;
while (x < 10)
x = x - 1;
disp( x )
end

采纳的回答

Star Strider
Star Strider 2020-1-17
The obvious observation is that ‘x’ is going to be less than 10 from the initial iteration through how many iterations it takes to be essentially equivalent to -Infinity.
  3 个评论

请先登录,再进行评论。

更多回答(3 个)

mohamad abou khalil
oh ok thank you very much

mohamad abou khalil
you guys have by anychance knowledge about binary systems (2 complement and negative numbers ?)
  2 个评论
Star Strider
Star Strider 2020-1-17
For my part, to an extent, although I’ve not done anything with them since graduate school (when we rode sauropods). However -Inf is still -Inf reagrdless of the base it is calcualted in. It just takes a different form.

请先登录,再进行评论。


mohamad abou khalil
ok so for example the question is that in 6 bit system which calculates negative numbers , they give us the binary form for example 100000 and we should write what number it represents
  2 个评论
John D'Errico
John D'Errico 2020-1-17
Again, stop posting new answers just to make a comment or ask a new question. Ask a new question.
mohamad abou khalil
my question has nothing to do with matlab so im just asking these two guys , whats your problem man

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by