For loop and store output values
古いコメントを表示
i want to make for loop to creat an array
h1=550
h2=0.8*h1
h3=0.8*h3
..
and strore the values from h1 to h_n
i made that
what is the error
clear all
clc
for i=2:5
h(1)=550;
h(i)=0.8*h(i-1);
[a(i)]=[h(i)]
end
2 件のコメント
Ameer Hamza
2020 年 10 月 17 日
編集済み: Ameer Hamza
2020 年 10 月 17 日
This code runs without any syntax error?
Mohamed Nasser
2020 年 10 月 17 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Surrogate Optimization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!