フィルターのクリア

How to use MUX to combine three vectors ?

5 ビュー (過去 30 日間)
JOE JOY
JOE JOY 2016 年 2 月 2 日
回答済み: Walter Roberson 2016 年 2 月 2 日
I have 3 vectors A = [1 2 3], B = [4 5 6], C = [7 8 9]. I want to combine these three into one quantity 'u' . Such that u(1) = [1 2 3], u(2) = [4 5 6], u(3) = [ 7 8 9]. I need this because i want to give this three as input to 'interpreted MATLAB fcn'. But it accepts only one input. Is there a way for this using MUX ?

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 2 月 2 日
I suggest using vector concatenate
This will not give you u(1) as a 3 x 1 vector: you would need to access the rows or columns of u

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by