Feeds
提问
Using a function in another function
I'm trying to use a function in another. For example, there's a defined function: function y=super(x) y=x.^2; end and I want...
5 years 前 | 1 个回答 | 0
1
个回答提问
sort an array without using the command sort
function sortvector(v) v1=zeros(1,length(v)); for i=1:length(v) v1(i)=min(v); v(find(v==v1(i)))=[]; end disp(v1) ...
5 years 前 | 1 个回答 | 0
1
个回答提问
How can I form a vector operating with another?
I'm trying to do the operaton (2^n)/2n with n=(0:100) how can I form a vector of the same size using the results?
5 years 前 | 1 个回答 | 0

