フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

if i have matrix how to make another matrix its size like this ?

1 回表示 (過去 30 日間)
Firas Al-Kharabsheh
Firas Al-Kharabsheh 2016 年 5 月 3 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
if i have
MatrixA =[ 1 1 0 1 1 1 1 0 1 1
1 1 1 0 1 1 1 1 1 1
1 1 1 1 0 1 1 1 1 1
0 0 0 1 0 1 1 0 1 1
1 0 0 0 1 1 0 1 0 1
1 0 0 0 1 1 0 0 1 1
1 1 0 0 1 1 1 0 1 1
1 1 0 0 1 1 0 0 1 1
1 0 1 0 1 0 1 1 1 1
1 1 1 1 1 1 1 1 1 1 ];
[N,M]= size(MatrixA);
and
Cmin = [ 0 0 0 0 0 0 0 2 4
0 0 0 0 0 0 2 1 1
0 0 0 0 0 2 2 1 2
0 0 0 0 0 0 0 3 2
0 0 0 0 0 0 0 1 3
0 0 0 0 0 0 3 2 2
0 0 0 0 0 2 1 1 1
0 0 0 0 0 0 1 2 1
0 0 0 0 0 0 2 1 1
0 0 0 0 0 0 2 2 3
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 ]
How to make this matrix size = (N,M/2)
  2 件のコメント
John D'Errico
John D'Errico 2016 年 5 月 3 日
編集済み: John D'Errico 2016 年 5 月 3 日
What is the relationship between those matrices, since there is no apparent pattern?
In fact, the sizes that you show are not even remotely correct. The first matrix is 10x10. So N=10, M=10.
The second matrix has 15 rows, and 9 columns. That is not N by M/2.
Stephen23
Stephen23 2016 年 5 月 3 日
編集済み: Stephen23 2016 年 5 月 3 日
Well, given that the question asks "How to make this matrix size = (N,M/2)", it might be acceptable that they are different sizes, as the aim is to change their size. The solution would then most likely involve indexing, in which case the OP has already been advised to do the introductory MATLAB tutorials and to learn basic MATLAB usage themselves.
The long list of very similar questions asked every two hours by this OP is indicative of lack of knowledge about basic MATLAB usage:
Perhaps they might finally like to actually consider doing some MATLAB tutorials and learning how to use MATLAB?

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by