Feeds
已回答
elements of array are odd or even
Thanks again But I've read we can use a vector in this way in for loop....
elements of array are odd or even
Thanks again But I've read we can use a vector in this way in for loop....
5 years 前 | 0
提问
elements of array are odd or even
clear all clc a=round(0+9*rand(10,1)); for n=a if mod(n,2)==0 disp(n),disp('is even') elseif n==0 ...
5 years 前 | 2 个回答 | 0
2
个回答提问
why plot result is different from fplot's
function [ Y ] = cosin( n,x) s=size(x,2); Y=zeros(1,s); for i=1:n Y=Y+((((-1)^(i-1))*(x.^((2*i)-2)))/factorial((...
5 years 前 | 2 个回答 | 0