Frage


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

fast 8 Jahre vor | 2 Antworten | 3

2

Antworten

Frage


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

fast 8 Jahre vor | 3 Antworten | 1

3

Antworten

Frage


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

fast 8 Jahre vor | 4 Antworten | 0

4

Antworten

Frage


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

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 8 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


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 ;

fast 8 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 8 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort