How do I get a function to calculate an output for an input variable that has a range?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I would like to put a variable into a function and use a range of values for that particular variable. How would I go about inputting a range. e.g I would like to use the 'diams' range for the function below.
diams=100:100:1000; [I_pol]= Software_Circular_angle_scan(diams);
0 Kommentare
Antworten (1)
Star Strider
am 9 Sep. 2016
You don’t provide enough information to give a specific reply. Depending no what you want to do, you will likely have to use element-wise operators (and possibly loops). See Array vs. Matrix Operations for details on using element-wise operators.
1 Kommentar
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!