Question

Different results by or(A,B) and xor(A,B) for matrices, why?
Hi, with or(A,B) and xor(A,B) I obtain two different results here, I don't understand why this happens. Since or(A,B) perform a...

6 months ago | 2 answers | 0

### 2

Question

With ischar usage - I get two different answers
Hello, I found out that ischar gives two different answers as follows: ischar("a") ans = logical 0 While, with th...

6 months ago | 2 answers | 0

### 2

Question

Plotting a specific interval for a given matrix
Hi, I have a matrix with several entries on three rows, and I would like to plot the entries of the 2nd and 3d row values toward...

6 months ago | 1 answer | 0

### 1

Question

Generating a rather intricate loop with inequalities
I have to create a code that, given positive integers m and n, calculates integers k and r such that m=kn+r and r<n by successiv...

6 months ago | 1 answer | 0

### 1

Question

Using "if" and "disp" in a comparison of two numbers
I made the code to compare two numbers, however it stops after input of the numbers, instead of doing the comparison. I have a b...

6 months ago | 1 answer | 0

### 1

Question

Create a loop with doubling the previous number minus 1
Hi, I have to make this loop: 2 3 5 9 17 33 65 which is the first number multiplied by 2 and subtract 1, then double...

6 months ago | 2 answers | 0

### 2

Question

How to create a long matrix rapidly
I would like to create the given matrix 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 ...

6 months ago | 2 answers | 0