Frage


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 Monate vor | 2 Antworten | 0

2

Antworten

Frage


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 Monate vor | 2 Antworten | 0

2

Antworten

Frage


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 Monate vor | 1 Antwort | 0

1

Antwort

Frage


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 Monate vor | 1 Antwort | 0

1

Antwort

Frage


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 Monate vor | 1 Antwort | 0

1

Antwort

Frage


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 Monate vor | 2 Antworten | 0

2

Antworten

Frage


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 Monate vor | 2 Antworten | 0

2

Antworten

Frage


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

6 Monate vor | 4 Antworten | 0

4

Antworten