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

ungefär 8 år ago | 2 answers | 3

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

ungefär 8 år ago | 3 answers | 1

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

ungefär 8 år ago | 4 answers | 0

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

ungefär 8 år ago | 1 answer | 0

Question

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

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

ungefär 8 år ago | 1 answer | 1

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 ;

ungefär 8 år ago | 2 answers | 0

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

ungefär 8 år ago | 1 answer | 0

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

ungefär 8 år ago | 1 answer | 0

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

ungefär 8 år ago | 1 answer | 0

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

ungefär 8 år ago | 1 answer | 0

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

ungefär 8 år ago | 1 answer | 0

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

ungefär 8 år ago | 1 answer | 0

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

ungefär 8 år ago | 2 answers | 0

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

ungefär 8 år ago | 1 answer | 0