MATLAB程序问题源程序:clear all;close all;n=-20*pi:pi/5:20*pi;fn=sin(n/5)/(n/5);stem(n,fn,'fill');error:X must be same length as Y.函数是:f(n)=sin(n/5)/(n/5) (-20

来源:学生作业帮助网 编辑:作业帮 时间:2024/12/02 08:38:16
MATLAB程序问题源程序:clear all;close all;n=-20*pi:pi/5:20*pi;fn=sin(n/5)/(n/5);stem(n,fn,'fill');error:X must be same length as Y.函数是:f(n)=sin(n/5)/(n/5) (-20
x)u qtz׽\4ٮ =sRsrsS<[]#LL}S+0:-϶83O#OTSLZj騧ekZ͌P--.QHJU(NMUIK/PH,V{ھ f*KD3TAhMR>W@ʅyw˜~ 1:|_`g3TcG=Ytz0%yv 

MATLAB程序问题源程序:clear all;close all;n=-20*pi:pi/5:20*pi;fn=sin(n/5)/(n/5);stem(n,fn,'fill');error:X must be same length as Y.函数是:f(n)=sin(n/5)/(n/5) (-20
MATLAB程序问题
源程序:
clear all;
close all;
n=-20*pi:pi/5:20*pi;
fn=sin(n/5)/(n/5);
stem(n,fn,'fill');
error:X must be same length as Y.
函数是:f(n)=sin(n/5)/(n/5) (-20

MATLAB程序问题源程序:clear all;close all;n=-20*pi:pi/5:20*pi;fn=sin(n/5)/(n/5);stem(n,fn,'fill');error:X must be same length as Y.函数是:f(n)=sin(n/5)/(n/5) (-20
fn=sin(n/5)/(n/5);
改成
fn=sin(n/5)./(n/5);