Community Profile

photo

Michael Tross


Last seen: 4 years ago Active since 2019

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Question


How do I remove the brackets from the numeric values around the zeros, so that only the numeric values are left and I am able to use boolean logic to get a solution ( 1 or 0)?
"( (1) | (0) )" "(0)" "( (0) | (1) | (0) )" "( (0) | (0) )" "( (1) | (0) )" "" "(0)" "( (0) & (1) & (0) )" "(1)" "( (0)...

4 years ago | 1 answer | 0

1

answer

Question


How do I locate all integer values within a matrix (of string and integer values in the same cell), then replace all those integer values with a 1 or 0 thus forming a new matrix with the replaced integers?
"( x(2) | x(1) )" "x(3)" "( x(4) | x(6) | x(5) )" "( x(7) | x(8) )" "( x(7) | x(8) )" "" "x(9)" "( x(10) & x(11) & x(12) ...

4 years ago | 1 answer | 0

1

answer

Question


how do I append to an array within a loop with float values?
lenArray = length(0:0.1:20); solutions = zeros(lenArray,1); for k=0:0.1:20 a = -k; b = -k; soln= a+b; solution...

4 years ago | 1 answer | 0

1

answer