How to write this b in matrix form
Afficher commentaires plus anciens

Can anyone help me write this b in matrix form in matlab?
Réponses (1)
Joseph Cheng
le 22 Avr 2014
Modifié(e) : Joseph Cheng
le 22 Avr 2014
Look for the patterns and you can build these efficiently.
n=100;
b=1:n;
b=b.^2;
b=b/(n+1)^4;
b(1)=b(1)+1;
b(end)=b(end)+6;
3 commentaires
Sam
le 22 Avr 2014
Modifié(e) : Image Analyst
le 22 Avr 2014
Joseph Cheng
le 22 Avr 2014
Modifié(e) : Joseph Cheng
le 22 Avr 2014
well i can't do everything for you. Talk about looking at a gift horse in the mouth. just transpose what i wrote or initialize b to be the correct size.
Sam
le 23 Avr 2014
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!