matlab - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of matlab.php

  1. <?php
  2.  
  3. % 1. 
  4. A=xlsread('C:\Users\student\Downloads\dane.xls', 'Arkusz1', 'A1:D20')
  5.  
  6. % 2. ???
  7. A1 = A(5:7,2:4)
  8. A2 = A(5:7,2:4)
  9. A3 = A(5:7,2:4)
  10. A4 = A(5:7,2:4)
  11.  
  12. % 3.
  13. B=A(5:7,2:4)
  14. C=A(5:7,2:4)
  15.  
  16. B=B+C
  17. C=B-C
  18.  
  19. result = B*C==C*B
  20.  
  21. % 4.
  22.  
  23. DB=det(B)
  24. DC=det(C)
  25.  
  26. % 5.
  27.  
  28. B1 = A1'
  29. B2 = A2'
  30. B3 = A3'
  31. B4 = A4'
  32.  
  33. % 6.
  34. MNZ1=A(3,:)
  35. MNZ2=A(:,1)
  36.  
  37. MNZ=MNZ1*MNZ2
  38.  
  39.  
  40.  
  41.  
File Description
  • matlab
  • PHP Code
  • 19 Oct-2019
  • 339 Bytes
You can Share it: