Copy element of matrix to another matrix
Show older comments
hello all,,
i wanna ask about how to copy element of matrix to another matrix
example :
i've matrix B and i want the element of matrix B copied into another matrix(matrix F)
this's my code
a= input ('Input Number of Data :');
for c=1:a
int2 = ['Input The First Score - ',num2str(c),' :'];
int3 = ['Input The Second Score - ',num2str(c),' :'];
str = ['Input Category ke - ',num2str(c),' :'];
b(c,1) = input(int2);
b(c,2) = input(int3);
f{c,3} = input(str,'s');
end;
everytime i use command "f=b(:,1:2)" the element of matrix f is missing and that's change with element of matrix b
i want the element of matrix f still in matrix f although the element of matrix b copied into matrix f
please help me
NB : sorry for my bad english :)
Accepted Answer
More Answers (1)
Annmaria T Joy
on 7 May 2020
0 votes
How to copy the output from a loop to a matrix?
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!