Question

Chapter 4.4, Problem 22P (1 Bookmark) Show A=a Therefore ATb ATA Now Ab [ 1 21 0 Therefore B=b-0 0 And, Are , Be AAB B Now

Clear Favorites Show kyle Clear Feedback History Commands* E-ot preferences Add-ons Help Leam MATLAB ODE ENVIRONMENT RESOURCE

I'm trying to enter gram schmidt into matlab for C but it doesn't work. can anyone help please it work for B for me but i don't how to get C. pretty much I'm trying get C equation into a calculator if that make sense.

Chapter 4.4, Problem 22P (1 Bookmark) Show A=a Therefore ATb ATA Now Ab [ 1 21 0 Therefore B=b-0 0 And, Are , Be AAB' B Now
Clear Favorites Show kyle Clear Feedback History Commands* E-ot preferences Add-ons Help Leam MATLAB ODE ENVIRONMENT RESOURCES New to MATLAB? See resources for Getting Started Error: Invalid expression. When calling a function or indexing a variable, use parentheses. otherwise, check for mismatched deliniters Error: Invalid expression. When calling a function or indexing a variable, use parentheses. otherwise, check for mismatched delim iters 2.6667 .3333 2.3333 expression. check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use Error: Invalid parentheses 7:35 AM 4/25/20194
0 0
Add a comment Improve this question Transcribed image text
Answer #1


Matlab code for Gram Schmidt orthogonalization clear all close all %Provide your original a, b and c vectors sprinting the veAfter Gram Schmidt orthogonalization Vector A - Vector B -1 VectorC 0.3333 0.3333 -0. 3333 Published with MATLAB R2018a

%Change value of a, b and c as per the requirement

%Here c value is not given so i assumed c=[1;1;1];

%%Matlab code for Gram Schmidt orthogonalization
clear all
close all

%Provide your original a, b and c vectors
a=[1; 1; 2];
b=[1; -1; 0];
c=[1; 1; 1];

%printing the vectors
fprintf('Vector a =\n')
disp(a)
%printing the vectors
fprintf('Vector b =\n')
disp(b)
%printing the vectors
fprintf('Vector c =\n')
disp(c)

%Gram Schmidt process
%Let orthogonal vectors can be represents as A, B and C
A=a;

B=b-((A'*b)/(A'*A))*A;

C=c-((A'*c)/(A'*A))*A-((B'*c)/(B'*B))*B;

%printing the results
fprintf('After Gram Schmidt orthogonalization\n')
%printing the vectors
fprintf('Vector A =\n')
disp(A)
%printing the vectors
fprintf('Vector B =\n')
disp(B)
%printing the vectors
fprintf('Vector C =\n')
disp(C)

%%%%%%%%%%%%%%%% End of Code %%%%%%%%%%%%%%%

Add a comment
Know the answer?
Add Answer to:
I'm trying to enter gram schmidt into matlab for C but it doesn't work. can anyone help please it...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT