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....
6年弱 前 | 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 ...
6年弱 前 | 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((...
6年弱 前 | 2 件の回答 | 0

