# How to Multiple column vectors as multiple input variables

**URL:** <https://uqworld.org/t/how-to-multiple-column-vectors-as-multiple-input-variables/3690>\
**Category:** Community Q&A and How To\
**Created:** [June 14, 2024, 7:01am UTC](https://uqworld.org/t/how-to-multiple-column-vectors-as-multiple-input-variables/3690 "2024-06-14T07:01:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanyu](https://uqworld.org/letter_avatar_proxy/v4/letter/h/aca169/32.png) [@hanyu](https://uqworld.org/u/hanyu)\
**Post date:** [June 14, 2024, 7:01am UTC](https://uqworld.org/t/how-to-multiple-column-vectors-as-multiple-input-variables/3690/1 "2024-06-14T07:01:22Z")

</div>

uqlab  
X1 = Xmodelouhe{p}(:,1);  
X2 = Xmodelouhe{p}(:,2);  
Y1 = Ymodelouhe{p};  
Xuse = [X1,X2];  
Yuse = Y1;  
MetaOpts.Type = ‘Metamodel’;  
MetaOpts.ExpDesign.Sampling = ‘User’;  
MetaOpts.MetaType = ‘Kriging’;  
MetaOpts.Trend.Type = ‘ordinary’;  
% MetaOpts.Input = myInput;  
MetaOpts.ExpDesign.X = Xuse;  
MetaOpts.ExpDesign.Y = Yuse;  
x0 = mean([min(Xuse); max(Xuse)]);  
yKrigingF{p+m} = uq\_createModel(MetaOpts);  
it seens that it cant work

---

<div class="post-metadata">

**Author:** ![styfen.schaer](https://uqworld.org/user_avatar/uqworld.org/styfen.schaer/32/849_2.png) [@styfen.schaer](https://uqworld.org/u/styfen.schaer)\
**Post date:** [June 14, 2024, 7:04am UTC](https://uqworld.org/t/how-to-multiple-column-vectors-as-multiple-input-variables/3690/2 "2024-06-14T07:04:45Z")

</div>

Dear @hanyu

To me, this looks more like an incorrect use of Matlab than a problem with UQLab. Unfortunately, I can’t help you without knowing what `Ymodelouhe` and `Xmodelouhe` are. Can you provide an executable example?

Best regards  
Styfen
