필터 지우기
필터 지우기

Filling a array/matrix without for-loop

조회 수: 2 (최근 30일)
Joschua Kraus
Joschua Kraus 2018년 1월 14일
array = zeros(1, 20);
for i = 1:20
array(1,i) = %some formula dependent upon i, e.g. (i-1)*value1*value2/value3
end
Desired: A way to do it without the for-loop. I know it's probably out there yet but I didn't find it via the google or searching the forum. Sorry for possible duplicate.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by