num = input('Enter the size')
I want to create a 2 dimensional matrix matrix of dimensions numx2 using num. So I use zeroes(num, 2);
However I get this error
Undefined function or method 'zeroes' for input
arguments of type 'double'.
I tried casting to a uint8 and an int8 and it didnt work so I looked up the matlab documentation but it doesnt give the parameter types for functions. So anybody know how to create this 2d matrix using the value of num that I get from the user?
The function you want to use is zeros
not zeroes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With