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

조회 수: 6 (최근 30일)
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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 4월 20일
colspace(sym(A))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel Computing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by