Está en la página 1de 3
Editor Archivo Editar Ver Depurar Ejecutar Ayuda S@- SB2&aS seP\ne EO slvieas Vector.m EE DT) x=input('Ingrese los valores del vector: '); 2 n=length(x)+ 3 4p SE] if mod(x(i),3)~=0 && mod(x(i),5)~=0 && mod(x(i),7)~=0 6 j=i+l: 7 Wj) (i): 3 endif s Lendfor 10 disp(' ') 11 disp('El vector resultante es:') 12 disp(' ') 13 disp(v) 14 disp(' ') 15 fprint£('El elemento V(250) es: #£\n',V(205)) Ventana de comandos: >> Vector Ingrese los valores del vector: El vector resultante es: Columns 1 Columns 46 Columns $2 Columns 139 Columns 184 Columns 232 Columns 277 1 through 21: 2 4 a 22 through 42: 47 52 53 43 through 63: s4 ST iol 64 through 84: 142 143 146 85 through 105: 187 188 191 106 through 126: 233 236 233 127 through 147: 278 281 283 11 53 103 143 193 241 284 [1:500] 13 5a 104 149 242 286 16 61 106 151 137 244 289 17 62 ilo7 152 247 292 19 64 iog 1is7 202 248 293 22 67 ils 158 206 251 296 23 63 116 163 208 253 298 26 mW i1¢ 164 205 254 295 25 73 121 166 211 256 302 31 74 122 167 212 257 304 32 16 124 169 214 262 307 34 wi) 127 172 218 263 311 37 82 128 173 221 268 313 38 83 131 176 223 269 314 41 a6 134 178 226 271 316 43 a8 136 179 227 272 317 44 aa 137 181 225 274 319 Ventana de comandos Columns 148 through 168: 323 326 328 331 332 Columns 169 through 18S: 368 373 374 376 377 Columns 190 through 210: 416 418 419 421 422 Columns 211 through 22S: 461 463 464 466 467 El elemento V(250) es: 449.000000 334 373 424 472 337 382 428 338 333 431 4738 341 336 433 344 333 436 481 346 393 437 347 331 439 484 349 394 442 352 397 443 488 353 398 446 356 401 449 493 358 403 451 494 359 404 452 496 361 407 454 499 362 409 457 367 412 458

También podría gustarte