Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Fast way to apply function to each value of an array?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi there,
I created a function Fx which takes in a single value as input, use it for some calculation and produces a single number as output.
I want to apply that function on every values of the array n.
n = 1:300000;
I tried using for loop but it takes too long. Thus, I'm looking for another way to speed it up other than For loop.
Thank you
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!