Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to get the required output?

1 visualización (últimos 30 días)
Muniba Shah
Muniba Shah el 5 de Nov. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
x=[4 5 1 2 3] & y=[6 7 8 9 10] and required output is c = [21 10]
  3 comentarios
Image Analyst
Image Analyst el 5 de Nov. de 2018
Here's one way
c = [sum(x)+y(1), y(end)];
It meets all your criteria that you've said so far. Here is another, simpler way
c = [21, 10];
It also meets your criteria and is even simpler because x and y were not even needed. If neither of those is good, then say why not.
Muniba Shah
Muniba Shah el 6 de Nov. de 2018
Thank you!

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by