MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Search Activities

Roberts submitted Solution 725498 to Problem 1659. Fahrenheit to Celsius using multiple statements

8 minutes ago

Richard submitted a Comment to Problem 58. Tic Tac Toe FTW

Test suite problem.
The first test calls my function twice, with different values for (a). To test this
y function starts and endes with diagnostics:
----
function wins = ticTacToe(a)
disp('a=')
disp( a )
...
wins = unique( wins)
end
------
The first test result is:
------
%%
a = [ 1 0 0
0 -1 0
-1 0 1];
b = [0];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
a=
1 0 1
0 -1 0
-1 -1 1
wins =
4 8
a=
1 0 0
0 -1 0
-1 0 1
wins =
Empty matrix: 0-by-1
Assertion failed.
-----

20 minutes ago

Aaron submitted Solution 725485 to Problem 39. Which values occur exactly three times?

50 minutes ago

jkal submitted Solution 725484 to Problem 10. Determine whether a vector is monotonically increasing

57 minutes ago

Aaron submitted Solution 725482 to Problem 105. How to find the position of an element in a vector without using the find function

1 hour and 1 minute ago

Aaron submitted Solution 725481 to Problem 42582. Output a vector which is table of 9

1 hour and 3 minutes ago

Aaron submitted Solution 725479 to Problem 42582. Output a vector which is table of 9

1 hour and 4 minutes ago

Adnane Hamidi submitted Solution 725476 to Problem 26. Determine if input is odd

1 hour and 14 minutes ago

Adnane Hamidi submitted Solution 725474 to Problem 26. Determine if input is odd

1 hour and 16 minutes ago

jkal submitted Solution 725473 to Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN

1 hour and 18 minutes ago

Pritesh Shah submitted Solution 725465 to Problem 42549. Assignment statements based on input value

1 hour and 23 minutes ago

Victoria Cosenza submitted Solution 725461 to Problem 2741. Indexing an array element

1 hour and 26 minutes ago

Pritesh Shah submitted Solution 725457 to Problem 42547. Left Riemann numerical integration

1 hour and 36 minutes ago

Pritesh Shah submitted Solution 725456 to Problem 42546. Sum function: Counting cookies

1 hour and 39 minutes ago

Pritesh Shah submitted Solution 725455 to Problem 42545. Forward difference approximation: Car temperatures

1 hour and 41 minutes ago

Victoria Cosenza submitted Solution 725454 to Problem 2739. Construct an array

1 hour and 41 minutes ago

Pritesh Shah submitted Solution 725449 to Problem 42542. Currency conversion

1 hour and 57 minutes ago

Pritesh Shah submitted a Comment to Problem 42540. Multiply

It should be mul(A,b) instead of mul(x).
Please check test cases before post. Thanks

1 hour and 58 minutes ago

Daniel submitted Solution 725445 to Problem 624. Get the length of a given vector

2 hours and 1 minute ago

Pritesh Shah submitted Solution 725444 to Problem 42538. Determine the rank of matrix

2 hours and 2 minutes ago

Daniel submitted Solution 725442 to Problem 195. Program an exclusive OR operation with logical operators

2 hours and 2 minutes ago

Pritesh Shah submitted Solution 725440 to Problem 42537. Rotate a matrix for 180 degree

2 hours and 4 minutes ago

Pritesh Shah submitted Solution 725439 to Problem 42536. Rotate a matrix for 180 degree

2 hours and 4 minutes ago

Pritesh Shah submitted Solution 725437 to Problem 42534. find whether it is prime or not

2 hours and 5 minutes ago

Pritesh Shah submitted Solution 725436 to Problem 42533. Calculate volume of box

2 hours and 6 minutes ago

Pritesh Shah submitted Solution 725435 to Problem 42532. Find minimum and maximum elements of an array

2 hours and 10 minutes ago

Adnane Hamidi submitted Solution 725426 to Problem 3. Find the sum of all the numbers of the input vector

2 hours and 30 minutes ago

Adnane Hamidi submitted Solution 725425 to Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]

2 hours and 33 minutes ago

pradeepr submitted Solution 725424 to Problem 26. Determine if input is odd

2 hours and 37 minutes ago

pradeepr submitted Solution 725423 to Problem 26. Determine if input is odd

2 hours and 39 minutes ago

Adnane Hamidi submitted Solution 725422 to Problem 1. Times 2 - START HERE

2 hours and 41 minutes ago

Pritesh Shah submitted Solution 725419 to Problem 42581. Create sequnce 1 4 9 16 25.........

2 hours and 47 minutes ago

Pritesh Shah submitted Solution 725418 to Problem 42582. Output a vector which is table of 9

2 hours and 49 minutes ago