Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 25 lut 2019 · I'm trying to implement an if condition in Matlab that when two objects get at a distance of 30 meters of each other should accelerate until 100 m and after that it should behave normal. The condit...

  2. 19 sie 2017 · I have three statements in a if condition and they are executed when the logical operations are true. For example I have two variables a and b, and their values are: Theme. Copy. a=7; b=5; if a=7 && b=a || b<a. do something.

  3. Description. if expression, statements, end evaluates an expression, and executes a group of statements when the expression is true. An expression is true when its result is nonempty and contains only nonzero elements (logical or real numeric). Otherwise, the expression is false.

  4. 22 wrz 2023 · I have an equation: x = [10 / pi + j / sin(i-1)] * cos[j * (i-1) * pi] where i = 2 to 6 and j = 1 to 7. I am trying to make a code with both i and j. I am solving this equation for all combinatio...

  5. 16 gru 2012 · The code starts from first if, read condition (2) then goes to condition (4) directly. There are two subconditions for P after first if (1) & (2)and again two subconditions for P after elseif. (3) & (4).

  6. 24 kwi 2020 · I want to know how can i reduce these if statements with two conditions. I have tried following code but it is very lengthy to use for like 50 values. X = {'1';'2A';'2B';'3';'4'}'; %Seismic Zone. Z = [0.075, 0.15, 0.2, 0.3, 0.4]'; %Zone factor. zTbl = table (Z,'RowNames',X); %Table of Zone and Zone Factor.

  7. 1 sty 2020 · Open in MATLAB Online. I have a simple code that takes a user's input, and then changes 2 variables based on that: Theme. Copy. var1 = 0; var2 = 0; in1 = input ('first: ', 's'); in2 = input ('second: ', 's'); if in1 = 3 && in2 = 4; var1 = 2; var2 = 5; elseif in1 = 6 && in2 = 7; var1 = 8; var2 = 9; else. disp ('invalid input'); end.

  1. Ludzie szukają również