Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これをC++で作成する方法は?これはmatlabにあります。私はグーグルで検索しましたが、これを見つけることができませんでした。これを知っている誰かが私を助けることができますか?
a = linspace(-3000, 3000, 128)
これは、128個の要素を持つ-3000から3000までのベクトルです。
大まかな例:
#include <vector> std::vector<double> v(128); // create new vector with 128 elements for (int i = 0; i < 128; ++i) // init vector with required values v[i] = -3000.0 + 6000.0 * i / 127.0;