![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/16207215_1568235999622_DEF.jpg)
Michael Tross
Followers: 0 Following: 0
Feeds
提问
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)...
5 years 前 | 1 个回答 | 0
1
个回答提问
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) ...
5 years 前 | 1 个回答 | 0
1
个回答提问
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...
5 years 前 | 1 个回答 | 0