How do I get the Command Window to recognize variables created in a function?
Afficher commentaires plus anciens
function [K,T] = KTBC(n)
%Create the four special matirces assuming n>1
K=toeplitz([2 -1 zeros(1,n-1)]);
T=K;T(1,1)=1
end
%Won't display T and K in command window
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Interface-Based Instrument Communication dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!