Modifying values in matrix

1 visualización (últimos 30 días)
Batrisyia Mohamad Asri
Batrisyia Mohamad Asri el 1 de Feb. de 2021
Comentada: Batrisyia Mohamad Asri el 2 de Feb. de 2021
Write a MATLAB code that modifies the values in MockMatrix using the following conditions:
  1. A nested for loop must be used
  2. Replace values between 100 and 200 (inclusive) with 100
  3. Replace values between 600 and 700 (inclusive) with 600
Determine the sum of all the values in this new modified matrix. Use fprintf('%16.0f', total) to print all of the digits.
i've attached the data here. thank you.
  4 comentarios
Tayyab Khalil
Tayyab Khalil el 1 de Feb. de 2021
Batrisyia Mohamad Asri
Batrisyia Mohamad Asri el 2 de Feb. de 2021
Okay thank you!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by