clc;clear all;
%case.1.A is not a square matrix
r=input('Enter the row\n');
c=input('Enetr the colum\n');
for i=1:r
for j=1:c
fprintf( 'A(%1.0f,%1.0f)=',i,j);
A(i,j)=input('\n');
end
end
fprintf('A=\n');
disp(A);
if r==c
fprintf('The given matrix is squar matrix\n',A);
else
fprintf('The given matrix is not squar matrix\n',A);
end
%case.2.b is not a column vector
r=input('Enter the row\n');
c=input('Enetr the colum\n');
for i=1:r
for j=1:c
fprintf( 'b(%1.0f,%1.0f)=',i,j);
b(i,j)=input(' \n');
end
end
fprintf('b=\n');
disp(b);
if c==1
fprintf('The given matrix is column vector\n',A);
else
fprintf('The given matrix is not column vector\n',A);
end
%case.3.Ax and b do not have the same dimension
[m1,n1] = size(A);
[m2,n2] = size(b);
if m1==m2
fprintf('Ax and b have the same dimension\n');
else
fprintf('Ax and b have not the same dimension\n');
end


PLEASE USE MATLAB ONLY PLEASE!! Modify MYSOLVER.m to make sure the inputs are valid. Your function...
Please send the Matlab code here.
Submit your m-file and a diary that shows how you tested the code. Write an m-file grams.m to perform the Gram-Schmidt process on the columns of a matrix A with an arbitrary number of linearly independent columns (the input) and return a matrix Q whose columns are the resulting vectors. Test your code on the following matrix: 7 1 0 6-33 -96 0-1 Check QTQ and QQ" to show your answer is orthonormal. Pseudo-code:...
I need a matlab code to answer the questions below
ICE09B Make an Array Develop a MATLAB code which will produce an array that looks like the following: 4 10 1. You must start with a blank array and build the array with a DNFL. You can NOT just load the array with an assignment statement. Hint: Use "addition" for your variables Square all values in the array 2. Blackboard will ask you for a screenshot of your properly working...
PYTHON PROGRAMMING: DO NOT USE INPUT FUNCTION, use sys.argv (PLEASE TYPE OUT ANSWER) Modify this program: Write a program to calculate the bmi getcategory(): takes the bmi as a parameter and returns the bmi category. You are not allowed to change the two functions and you will use the same two functions as previously. Just modify the program so that it calculates the bmi and category for any number of pairs of height and weights. You must loop through the...
Task: Comparing the performance between Linear Probing and Double Hashing. Requirements: Please make sure your program compiles, otherwise your submission will not be graded and you will receive zero. Point deduction rule: Compile warning: 3 points each. Minor error: such as not meeting the assignment input/output requirement, 5 points each. Major error: examples include, infinite loop, runtime errors, any runtime exception, 15 points each. Any code not compliant to the assignment requirement (e.g., not using List interface and AbstractMap and...
matlab please
Problem 3. / 30 points Let p(x) = C1 +222 + ... + -1. The value of p for a square matrix input is defined as p(X) - 17+ 2X + ... + CX- (a) (12 points) Show that if XeRkxk has an EVD, then p(x) can be found using only evaluations of p at the eigenvalues and two matrix multiplications. (b) (18 points) Complete the following program which, given coefficients c = (C1,C2,...,C.)", evaluates the corresponding polynomial...
For “Extract the column basis”, using the MATLAB functions rref and rank, make your own function file to find pivot columns of A from the result of rref(A). Do NOT use the syntax [R pivotcols] = rref(A), use only rref(A). You may use the MATLAB commands min and find.please follow the instructions!! please help me , I have to submit in 2 hours
Matlab
Question 2. For this problem you have to create a program that defines two vectors of numbers: A and B and uses a for-loop to combine the values of A and B. Note that different parts of the question below specify different orders for combining the elements. To start this exercise start a MATLAB script called q2.m and put, at the top, the vector definition: B [11:20] Question 2a: Problem definition Copy the file q2.m to q2a.m. For this...
Download the Array.mat file and save it in your current MATLAB directory (make sure it is in the correct folder). At the command prompt, type >> load Array. Look in your workspace window. You should see a 1-d array called vector (1x12), and a 2-d array called matrix (10x5). All of the following problems refer to the arrays vector and matrix downloaded from the Array.mat file. Don’t change the values in vector or matrix unless prompted. If you do inadvertently...
photo of the code please and an explnation if possible,
Construct a simple MATLAB function program my_factorial which calculates product of first n positive integer numbers (i.e. find factorial n!). For full points: - Make sure you protect the code from illogical use (n must be positive integer) - Test the function by comparing with built in MATLAB function factorial(n) - Make sure you test your function for any limitations. O marks) -3. Using my factorial function from the previous...
Modify When executing on the command line having only this program name, the program will accept keyboard input and display such until the user does control+break to exit the program. The new code should within only this case situation “if (argc == 1){ /* no args; copy standard input */” Replace line #20 “filecopy(stdin, stdout);” with your new code. Open read a text file “7NoInputFileResponse.txt” that contains a message “There were no arguments on the command line to be tested...