How do I create a matrix with functions?
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
I have a function with two variables, I want to generate a matrix of function outputs with one range of each output. How do I do that?
Risposte (1)
Guillaume
il 3 Dic 2015
var1 = 1:10; %row vector for one input
var2 = (1:5)'; %column vector for the other
m = bsxfun(@yourfun, var1, var2)
Questa domanda è chiusa.
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!