Pregunta


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...

10 meses hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

10 meses hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

10 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

10 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

10 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

10 meses hace | 2 respuestas | 0

2

respuestas

Pregunta


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 ...

10 meses hace | 2 respuestas | 0

2

respuestas

Pregunta


Find the 137th character in a file?
Hi, I have a file in MATLAB that has a lot of text. I would like to find the 137th character in the file. For this I tried t...

11 meses hace | 4 respuestas | 0

4

respuestas