Question


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

presque 8 ans il y a | 2 réponses | 3

2

réponses

Question


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

presque 8 ans il y a | 3 réponses | 1

3

réponses

Question


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

presque 8 ans il y a | 4 réponses | 0

4

réponses

Question


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

presque 8 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 8 ans il y a | 1 réponse | 1

1

réponse

Question


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 ;

presque 8 ans il y a | 2 réponses | 0

2

réponses

Question


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

presque 8 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 8 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 8 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 8 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 8 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 8 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 8 ans il y a | 2 réponses | 0

2

réponses

Question


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

presque 8 ans il y a | 1 réponse | 0

1

réponse