matlab出现? Subscript indices must either be real positive integers or logicals.t=-10:0.01:10; k=-2;x(t)=exp(k*t-1);t1=-t-2;t2=t/5+2;t3=3t+2;x(t1)=exp(k*t1-1);x(t2)=exp(k*t2-1);x(t3)=5*exp(k*t3-1)

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 06:38:35
matlab出现? Subscript indices must either be real positive integers or logicals.t=-10:0.01:10;   k=-2;x(t)=exp(k*t-1);t1=-t-2;t2=t/5+2;t3=3t+2;x(t1)=exp(k*t1-1);x(t2)=exp(k*t2-1);x(t3)=5*exp(k*t3-1)

matlab出现? Subscript indices must either be real positive integers or logicals.t=-10:0.01:10; k=-2;x(t)=exp(k*t-1);t1=-t-2;t2=t/5+2;t3=3t+2;x(t1)=exp(k*t1-1);x(t2)=exp(k*t2-1);x(t3)=5*exp(k*t3-1)
matlab出现? Subscript indices must either be real positive integers or logicals.
t=-10:0.01:10;
k=-2;
x(t)=exp(k*t-1);
t1=-t-2;
t2=t/5+2;
t3=3t+2;
x(t1)=exp(k*t1-1);
x(t2)=exp(k*t2-1);
x(t3)=5*exp(k*t3-1)

matlab出现? Subscript indices must either be real positive integers or logicals.t=-10:0.01:10; k=-2;x(t)=exp(k*t-1);t1=-t-2;t2=t/5+2;t3=3t+2;x(t1)=exp(k*t1-1);x(t2)=exp(k*t2-1);x(t3)=5*exp(k*t3-1)
你这个x(t)表示数组第t个元素,而t从1开始

matlab为什么出现 Subscript indices must either be real positive integers or logicals.为什么出现>> A=[2 -3 -2;-1 2 1;4 -7 -6];>> C=det(A)Subscript indices must either be real positive integers or logicals. lingo中出现问题:subscript out of range on attribute, matlab中for语句画图,Subscript indices must either be real positive integers or logicals.for ii=0.1:1x=0:100y(ii)=(L-ii*hg)/(ii*hg)*x-G*b/hg;plot(x,y(ii))hold onend出现Subscript indices must either be real positive integers or logicals.这个 matlab运行 >> x=1:0.01:200; >> a=max(x);出现Subscript indices must either be real positive integers orlogicals.程序明显没有问题,在2012b上可以运行,系统版本2010b lingo中出现问题:subscript out of range on attribute,请尽量说的详细点 matlab仿真老是出现错误,请问怎么改?clear;clc;deta=2;w=2.5;theta=0;a=linspace(-10,10,25);b=linspace(-1.0,1.0,25);[x,y]=meshgrid(a,b);s(x,y)=exp(-0.5*((x/deta)^2+(y/deta)^2)).*sin(w*(x*cos(theta)+y*sin(theta)));plot3(x,y,s(x,y)); Subscript matlab 运行下面的程序出现一些错误,请帮忙看看错误在哪里,谢谢.程序syms x n mn=0;m=1377*10^6;x=0.1:0.01:6;f(x)=(x.*19.1*300*300*pi.*(1-(sin(2*pi.*x))/(2*pi.*x))-n)/((3*x-1.25)*360);plot(x,f(x))运行出错? Subscript indices m matlab问题 sin[a(t-t0)] -------------- a(t-t0) 要求是做图a=2;t0=1;t=1:0.1:10;y=sin(a*(t-t0))/a(t-t0);老是出现 Subscript indices must either be real positive integers or logicals.怎么回事啊虚线部分是除的意思 这段matlab代码错在哪里了出现这个错误:Subscript indices must either be real positive integers or logicals.D是一个9*9邻接矩阵,这段代码想把邻接矩阵的边保存到一个2列矩阵L中,L的每一行存储一条边的两 MATLAB出现?Subscript indices must either be real positive integers or logicalsclear all %a .mRh=input('请输入环半径,Rh=');I0=input('请输入环电流,I0=');mu0=4*pi*1e-7;C0=mu0/(4*pi)*10; %归常数Nh=20; %电流环分段数x=linspace(-3,3,N matlab出现? Subscript indices must either be real positive integers or logicals.t=-10:0.01:10; k=-2;x(t)=exp(k*t-1);t1=-t-2;t2=t/5+2;t3=3t+2;x(t1)=exp(k*t1-1);x(t2)=exp(k*t2-1);x(t3)=5*exp(k*t3-1) 用matlab图像配准中出现Subscript indices must either be real positive integers or logicals是什么题I=imread('lily.jpg');lily=rgb2gray(I);M=imread('flowers.jpg');flowers=rgb2gray(M);%选择图像的配准区域imshow(lily)figure,imshow(flowe MATLAB里出现Subscript indices must either be real positive integers or logicals.% CMAC逼近sin(t)函数% 未进行Hash Coding杂凑% 作者:nuaazdh %时间:2012年2月23日16:53:28 clear all; close all; clc; t=[0:2*pi/360:2*pi];% 自变量t y matlab 省略号 出现错误 问一下在matlab中出现Subscript indices must either be real positive integers or logicals是啥意思[kx,ky]=meshgrid(0:pi/100:pi,0:pi/100:pi)u=0.5t1=-1,t2=1.3,t3=0.85,t4=0.85ax(kx,ky)=-2*t1.*cos(kx)-2*t2.*cos(ky)-4*t3.*cos(kx).*cos(ky) ay(kx,ky matlab 出现Subscript indices must either be real positive integers or logicals样的错误这是2007年B题的程序:st=3748;en=2160;y=1;za=[];for i=1:k(st)for j=1:k(en)if Z(en,j)==Z(st,i)df=round(Z(en,j));aa=find(L{df,4}==st);%AAbb= find(L{df,4} “subscript out of MATLAB 出现了这个问题 ATLAB