MATLAB: N range between 1 to 7 and d’s range between 1 to 100. how to solve it

help plz..

clc
clear all
n=[1:.0001:7];
d= ?? ;
[a]=d*n; display([a]

Best Answer

I’m not certain what you want to do, but this may be one approach:
n = [1:.0001:7];
d = linspace(1, 100, length(n));
a = n.*d;