Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to scalean array of data so that the first value is 1
조회 수: 3 (최근 30일)
이전 댓글 표시
Good evening all!!
For an assignment I am given an array of data that Imust "scale so the first value is zero"
I tried using:
arrayn=normalize(array,'norm',1);
but got the error:
Undefined function 'normalize' for input arguments of type 'double'.
I feel like i am missing something obvious. Why wouldn't the normalize function work on doubles? do i have to convert the whole array?
Thank you
댓글 수: 0
답변 (1개)
Walter Roberson
2019년 11월 15일
normalize() is R2018a or later and you are using R2017b. For releases before that you can use mat2gray()
However I suspect you are intended to write the equivalent code yourself.
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!