필터 지우기
필터 지우기

hi every one, can i get help to make this, thank you

조회 수: 1 (최근 30일)
mina massoud
mina massoud 2019년 7월 5일
답변: Raj 2019년 7월 5일
clear all
clc
a1=[1 7 13]
a2=[2 8 14]
b1=[3 9 15]
b2=[4 10 16]
c1=[5 11 17]
c2=[6 12 18]
K=[a1,a2; b1,b2; c1,c2] ;
what i need if it can possibile in matlab, to make a combination matrix 8x9 of this vectors like this
a1 b1 c1
a1 b1 c2
a1 b2 c1
a1 b2 c2
a2 b1 c1
a2 b1 c2
a2 b2 c1
a2 b2 c2
thank you

채택된 답변

Raj
Raj 2019년 7월 5일
You are almost there. What is the problem? Just use:
K=[a1 b1 c1;
a1 b1 c2;
a1 b2 c1;
a1 b2 c2;
a2 b1 c1;
a2 b1 c2;
a2 b2 c1;
a2 b2 c2 ]
Is this what you are looking for?

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by