I’m newbie in matlab.
I have an array 50x100 uint8, I want to change it to 5000x1 double. how can I do that?
Thanks in advance.
I’m newbie in matlab. I have an array 50×100 uint8 , I want to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the
reshape(matrix_to_resize, new_row_size, new_col_size)to resize the array. You should be able to use the resultant matrix and theim2double(matrix)function to convert the elements to doubles.The documentation for reshape.