Matlab letter "h" question
Afficher commentaires plus anciens
Can somebody explain me why is there "h" at the beginning of the numbers?
function w = hanning(n)
load('han.mat');
switch n
case 2220
w = h6000;
case 2960
w = h8000;
case 4079
w = h11025;
case 5920
w = h16000;
case 8159
w = h22050;
case 11840
w = h32000;
case 16317
w = h44100;
end
Réponse acceptée
Plus de réponses (4)
Walter Roberson
le 6 Avr 2011
0 votes
Those are not numbers, those are variables that have been loaded from han.mat . I have no idea at the moment what is in the variables.
Rambo
le 7 Avr 2011
0 votes
Rambo
le 7 Avr 2011
0 votes
1 commentaire
Andrew Newell
le 7 Avr 2011
@Rambo, when you respond to an answer you should do so by clicking on "Comment on this Answer".
Andrew Newell
le 7 Avr 2011
An array is just a variable with a lot of components. For example, you could type
h1 = 1:10;
and this creates a vector h1. This is a variable because you can change any component of it:
h1(1) = 0;
or add to it:
h1 = [h1 11];
I have arbitrarily added the number 1 to the name to show that it can be done.
Catégories
En savoir plus sur Performance and Memory 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!