Can anyone tell me what is wrong in this code?
조회 수: 2 (최근 30일)
이전 댓글 표시
% success trial for small matrix
clc
clear all
close all
% Read matrix
X=pascal(3);
disp(X);
[r c]=size(X);
i=1;
%while i==c
for j=1:c
z=[X(i,j);X(i+1,j);X(i+2,j)];
disp(z);
end
i=i+1;
%end
breaks=[0 4 8 12];
pp=mkpp(breaks,X);
%ppn=vertcat(pp);
ppn=cell2mat(struct2cell(pp));
a=polyvalm(X,pp);
댓글 수: 0
채택된 답변
KSSV
2019년 5월 1일
coefs = pp.coefs ;
breaks = pp.breaks ;
peices = pp.pieces ;
order = pp.order ;
dim = pp.dim ;
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Polynomials에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!