Answered
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 ago | 1

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

6 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

6 years ago

Question


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 ago | 3 answers | 1

3

answers

Question


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 ago | 1 answer | 0

1

answer