myCompiler myCompiler
Deutsch English Español Français Italiano 日本語 한국어 Nederlands Polski Português
Recent
Login Sign up
Recent
Login Sign up
M

@MrRogueKnight

Assignment 3: MATLAB

Octave
1 year ago
%---------------------------------------------------------------------------------------------------------------------- % Problem 1a A1a = [31, 2, 3, 44]; B1a = [12, 20, 15, 74]; dot1a = dot(A1a, B1a); disp('Problem 1a Dot product:'); disp(dot1a); %

Eigenvalues, Cholesky Test, Eigenvectors, Diagonalization

Octave
1 year ago
%Eigenvalues of a Matrix % Define a square matrix A A = [4, -2; 1, 1]; % Compute eigenvalues eigenvalues = eig(A); % Display the eigenvalues disp('Eigenvalues of matrix A:'); disp(eigenvalues);

Inverse of Matrix (LU Decomposition, Doolittle's Method, Crout's Method, etc.)

Octave
1 year ago
% Define a square matrix A = [2, 4; 3, 8]; % Check if the determinant is non-zero if det(A) ~= 0 % Calculate the inverse A_inv = inv(A); disp('Inverse of matrix A:'); disp(A_inv); else

Assignment 2: MATLAB

Octave
1 year ago
%Problem 1: Create 3-by-3 matrix m, then copy the second and third rows of the matrix twice to create 4-by-3 matrix, then %(a) Delete 2nd row. %(b) Find sub-matrix of order 2-by-2. %-------------------------------------------------------------------

Assignment 1: MATLAB

Octave
1 year ago
% Q1. In each case find the values of expression in Matlab and explain precisely the order in which calculation was performed:- % Part (a) a = -2^3 + 9; % Part (b) b = 2/3 * 3; % Part (c) c = 3 * (2/3);
Previous Next page

Supported languages

Deno JavaScript NodeJS Python Ruby Go C C++ Java C# TypeScript PHP Bash R Octave (MATLAB) Fortran Lua Erlang SQL MySQL MongoDB Clojure D Perl Kotlin Swift Rust Assembly
© 2026 mycompiler.io
Terms of service Privacy policy Contact us