Feeds
提问
Creating matrix with incremental values
How can I create a matrix like A=[1 2 3;4 5 6;7 8 9] using loops?
6 years 前 | 1 个回答 | 0
1
个回答已回答
Assigning a 2D matrix
Well, I got this one. a=[0 0]; for i=1:5 for j=1:3 a=[a;i j]; end end disp(a)
Assigning a 2D matrix
Well, I got this one. a=[0 0]; for i=1:5 for j=1:3 a=[a;i j]; end end disp(a)
6 years 前 | 1
提问
Assigning a 2D matrix
I have to create a 2D matrix, where the row number is unknown. I will have to find the row number. Say, for i=1:5 for j=1:3 I...
6 years 前 | 3 个回答 | 1
3
个回答提问
How can I calculate the number of days between two dates?
Two matrices are given as [dd mm yyyy] format. I want to calculate the number of days between the two days. A=[1 1 2017]; B=[1...
6 years 前 | 1 个回答 | 0