Vector of values error for loop
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm trying to make an array (r1_tot) of values in the workspace with 25 values ranging from 0.010 to 0.035. However I obtain an array of 25 values that are all 0.035.
this is the code:
for s=0.010:0.001:0.035
for i=1:1:length(s)
r1=s;
r1_tot(i)=r1;
...
end
...
end
Could you please help?
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!