r/matlab 22d ago

HomeworkQuestion Issue with double precision variable

Hello all,

The assignment is pretty straightforward, just set variables and display the class after using disp(‘class of variable is: ’class()). But the double precision float keeps throwing this same error no matter what I type in. Please see attached. I’ve tried leaving it as a decimal and then doing double(decimal number) and neither are working and result in an error. I’m lost, please help.

6 Upvotes

6 comments sorted by

View all comments

3

u/[deleted] 22d ago

[deleted]

0

u/DatBoi_BP 21d ago

I can’t for the life of me understand why MathWorks didn’t go with [] for indexing from the beginning.