photo

zhang


Con actividad desde 2013

Followers: 0   Following: 0

Mensaje

my code is like this:

clear all
t0=0;
dt=0.05;
t1=1;
tf=5;
t=[t0:dt:tf];
st=length(t);

n1=floor((t1-t0)/dt)
x1=zeros(1,st);
x(n1)=1/dt;
subplot(2,2,1),stairs(t,x1),grid on

x2=[zeros(1,n1-1),ones(1,st-n1+1);
subplot(2,2,3);
stairs(t,x2);
grid on
w=10;;
u=-0.5;
x3=exp((u+j*w)*t);
subplot(2,2,2),plot(t,real(x3)),grid on;
subplot(2,2,4),plot(t,imag(x3)),grid on;

but when I run it ,an error returned. The error is:Error: File: lab3.m Line: 19 Column: 2
The expression to the left of the equals sign is not a valid target for an assignment.
Can anyone help me help me
Professional Interests: singal processing

Estadística

MATLAB Answers

1 Pregunta
1 Respuesta

CLASIFICACIÓN
217.827
of 300.788

REPUTACIÓN
0

CONTRIBUCIONES
1 Pregunta
1 Respuesta

ACEPTACIÓN DE RESPUESTAS
0.0%

VOTOS RECIBIDOS
0

CLASIFICACIÓN
 of 21.091

REPUTACIÓN
N/A

EVALUACIÓN MEDIA
0.00

CONTRIBUCIONES
0 Archivos

DESCARGAS
0

ALL TIME DESCARGAS
0

CLASIFICACIÓN

of 171.083

CONTRIBUCIONES
0 Problemas
0 Soluciones

PUNTUACIÓN
0

NÚMERO DE INSIGNIAS
0

CONTRIBUCIONES
0 Publicaciones

CONTRIBUCIONES
0 Público Canales

EVALUACIÓN MEDIA

CONTRIBUCIONES
0 Temas destacados

MEDIA DE ME GUSTA

  • First Answer

Ver insignias

Feeds

Ver por

Pregunta


The expression to the left of the equals sign is not a valid target for an assignment.
have someone crashed to this problem? when I run the code blew,an error return. hope someone can help me! clear all t0=...

más de 12 años hace | 1 respuesta | 0

1

respuesta

Respondida
error "The expression to the left of the equals sign is not a valid target for an assignment."
but how to solve the problem blew: clear all t0=0; dt=0.05; t1=1; tf=5; t=[t0:dt:tf]; st=length(t); n1=floor((t1-t0...

más de 12 años hace | 0