copy element of matrix to matrix
2 ビュー (過去 30 日間)
古いコメントを表示
I have a matrix x of 20x95 elements are in double. I want to copy element of x to y. Please provide code.
2 件のコメント
回答 (2 件)
KALYAN ACHARJYA
2018 年 3 月 25 日
%Suppose A is your Input matrix, B is your output matrix
%if matrix is already generated within code, no need to input statement-next line
A=input('Enter The Matrix Elements');
B=A;
disp(B);
%Now Matrix B having same elements as Matrix A
1 件のコメント
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!