Pregunta


How to Write all of an if-statement in a Single Lline?
Is there any way to write all of an if-statement in a single line? if A == 1 B = 2 elseif B = 3 end

casi 8 años hace | 2 respuestas | 3

2

respuestas

Pregunta


Can I Always Change the Order of Operands of Logical Operators?
Is there any case that writing the operands of logical operators with different order make a different result? (A = B and B = A ...

casi 8 años hace | 3 respuestas | 1

3

respuestas

Pregunta


How to Write Each Each Expression in a Separate Row
What is the best way to write every expression beneath each other (not in a single row) if A == 1 && B == 2 && C == 3 ...

casi 8 años hace | 4 respuestas | 0

4

respuestas

Pregunta


How to See the Long Format in the Variables Window?
How to see the value of a variable in the “Variables Window” in long format? Even if I call “format long” and see the value i...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


how to see a variable of a function in the Workspace?
How to see a variable of a function in the Workspace?

casi 8 años hace | 1 respuesta | 1

1

respuesta

Pregunta


How to Shorten This Logical Expression?
What is the best way to rewrite A in the shortest way? B = 1:14; A = B == 1 | B == 2 | B == 3 | B == 7 ;

casi 8 años hace | 2 respuestas | 0

2

respuestas

Pregunta


How to Find Indices
How to find the first three indices corresponding to elements that are less than 10 and their indices start from 3? I try the ...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


A Probably Mistake in the MATLAB Documentation
I think I’ve found a mistake in the MATLAB Documentation and I’d like to report it! http://www.mathworks.com/help/matlab/ref/...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Finding the Frequency of Unique Values
How to return the frequency of each value in array A? (So, B views there are 3, 1, 4, and 2 of 1, 2, 3, and 4, respectively) ...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Comparing Contents of Two Matrices
How to determine if all elements of A are present in B, in the simplest way? A = [ 1 2 3 ]; B = [ 1 2 3 4 5 6 7 8 9 10 ]; ...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Double into Matrix of its Digits
How does the function B work? What does the symbol – and the symbol ‘0’ do for the function? A = [ 123; 456; 789 ] B=num2s...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Converting a Double into a Matrix of its Digits
How can I convert the 3-by-1 matrix A into the 3-by-3 matrix B in the simplest way? A = [ 123; 456; 789 ]; B = [ 1 2 3; 4 ...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Converting to a Column Vector
How can I convert the 3-by-3 matrix A into the 3-by-1 matrix B in the simplest way? A = [ 1 2 3; 4 5 6; 7 8 9 ] B = [ 123;...

casi 8 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Converting cell array to double?
How can I convert the cell array A into the column vector B? (Deleting the letter B and leading white spaces) A = { 'B 1'; ...

casi 8 años hace | 1 respuesta | 0

1

respuesta