![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/19057933_1595439241556_DEF.jpg)
Ambrish Raghav
Followers: 0 Following: 0
Feeds
已回答
Using fprintf for matrix
X = [1,2;2,4;5,6]; >> Y = [1;3;4]; >> fprintf('-%d: %d %d\n', [Y,X].') -1: 1 2 -3: 2 4 -4: 5 6
Using fprintf for matrix
X = [1,2;2,4;5,6]; >> Y = [1;3;4]; >> fprintf('-%d: %d %d\n', [Y,X].') -1: 1 2 -3: 2 4 -4: 5 6
4 years 前 | 0