how to convert collumn matrix (nxn) into another matrix of (mxn) type .

13 ビュー (過去 30 日間)
Parvinder  Singh
Parvinder Singh 2017 年 10 月 17 日
コメント済み: Cedric 2017 年 10 月 17 日
I am working on my project where audio encryption is needed .I am stuck in a problem of converting column matrix into (mxn) type matrix. please help me its urgent
  2 件のコメント
KL
KL 2017 年 10 月 17 日
What do you mean by "column matrix(nxn)"..?
Column matrix is supposed to have only one column, so it should rather be (nx1).
Parvinder  Singh
Parvinder Singh 2017 年 10 月 17 日
I mean to say column vector of (nxn) form

サインインしてコメントする。

回答 (1 件)

Cedric
Cedric 2017 年 10 月 17 日
編集済み: Cedric 2017 年 10 月 17 日
Difficult to answer with that little detail.. Maybe:
M = reshape( v, n, n ) ;
or
M = reshape( v, n, [] ) ;
with a transposition ( .' ) afterwards if needed.
  2 件のコメント
Parvinder  Singh
Parvinder Singh 2017 年 10 月 17 日
編集済み: Cedric 2017 年 10 月 17 日
During the usage of RESHAPE function i have to mention that how many rows and column matrix we need.But in my case we have to assume n number of column vector which we have to transform in (mxn) . if i use reshape function then it looks like:-
a=audiorecorder(8000,8,1);
disp('start recording');
recordblocking(a,5)
disp('stop recording');
play(a);
b=getaudiodata(a);
double (s);
s= reshape (double(b), m, n);
here in our case we want m and n value by some logic rather look at the column vector value. Suggest me some logic and thanks for your previous suggestion.
Cedric
Cedric 2017 年 10 月 17 日
I just don't understand what you want to achieve. After you stop recording, variable b is a 40000x1 vector. What do you want to do with it and why? Why a matrix?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEncryption / Cryptography についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by