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!