Getting Error: Undefined function 'colspace' for input arguments of type 'double'.

6 visualizzazioni (ultimi 30 giorni)
Question: Find column space of row reduced echelon form of the matrix A = magic(6).
My Matlab Code:
>> A = [2 -1 0 0 0; -1 2 -1 0 0; 0 -1 -2 -1 0; 0 0 -1 2 -1; 0 0 0 -1 2]
A =
2 -1 0 0 0
-1 2 -1 0 0
0 -1 -2 -1 0
0 0 -1 2 -1
0 0 0 -1 2
>> R = rref(A)
R =
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1
>> C = colspace(R)
Undefined function 'colspace' for input arguments of type 'double'.
Problem: I am getting the aforementioned error: Undefined function 'colspace' for input arguments of type 'double'. when I try to find the column space for the matrix (R). Please can you find the problem and help me out? I am new to Matlab and I am learning this software. Thanks a lot! Appreciate it. :)
MATLAB Version: MATLAB R2013a

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 20 Apr 2014
colspace(sym(A))

Più risposte (0)

Categorie

Scopri di più su Parallel Computing in Help Center e File Exchange

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by