Getting a single solution, but expecting an array
Show older comments
Total newbie, here is my relevant code:
s=0.001:0.10:1.001;
Z_in = (r_s + j*L_ls) + (j*L_m*(r_r./s + j*L_lr))/(j*L_m + r_r./s + j*L_lr)
All variables are entered as single values except for s, which varies as shown. I am only getting a single solution for Z_in, but I'm expecting a range of values. What am I missing here? I deleted the last expression in parentheses just to see what would happen, and I get an array solution. But as shown, Matlab returns just a single value.
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!