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!