错误使用 .* 矩阵维度必须一致问题
来源:学生作业帮 编辑:搜狗做题网作业帮 分类:英语作业 时间:2024/08/12 02:24:47
错误使用 .* 矩阵维度必须一致问题
function y1 = zhexian( x )
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
x=x/max(x);
z=sign(x);
x=abs(x);
for i=1:length(x)
if((x(i)>0)&(x(i)=1/64)&(x(i)=1/32)&(x(i)=1/16)&(x(i)=1/8)&(x(i)=1/4)&(x(i)=1/2)&(x(i)
function y1 = zhexian( x )
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
x=x/max(x);
z=sign(x);
x=abs(x);
for i=1:length(x)
if((x(i)>0)&(x(i)=1/64)&(x(i)=1/32)&(x(i)=1/16)&(x(i)=1/8)&(x(i)=1/4)&(x(i)=1/2)&(x(i)
![错误使用 .* 矩阵维度必须一致问题](/uploads/image/z/17783051-59-1.jpg?t=%E9%94%99%E8%AF%AF%E4%BD%BF%E7%94%A8+.%2A+%E7%9F%A9%E9%98%B5%E7%BB%B4%E5%BA%A6%E5%BF%85%E9%A1%BB%E4%B8%80%E8%87%B4%E9%97%AE%E9%A2%98)
t=0:0.001:2*pi;
w=1;
N=[1 3 5 7 9 11];
k=1;
while k
w=1;
N=[1 3 5 7 9 11];
k=1;
while k