What code should I use to be able to solve these MatLab questions?

1 visualización (últimos 30 días)
Elijah Daley
Elijah Daley el 22 de Feb. de 2021
Editada: Paul Hoffrichter el 25 de Feb. de 2021
  6 comentarios
Steven Lord
Steven Lord el 22 de Feb. de 2021
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the MATLAB Onramp tutorial (https://www.mathworks.com/support/learn-with-matlab-tutorials.html) to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
Paul Hoffrichter
Paul Hoffrichter el 23 de Feb. de 2021
Editada: Paul Hoffrichter el 25 de Feb. de 2021
As this looks like a typical homework assignment, if you post what you tried to do indicating where you are having issues, then someone may be able to guide you. Also, advise breaking up your multiple questions and multiple parts into separate questions.

Iniciar sesión para comentar.

Respuestas (1)

James Tursa
James Tursa el 22 de Feb. de 2021
Hint #1: Here is sample syntax to use to create a 2x4 matrix
Q = [1 2 3 4; 5 6 7 8]
Hint #2: See the following function for summing along rows or columns of a matrix:
Hint #3: Use the .* operator, with the dot, to do element-wise multiplication.
Hint #4: Here is sample syntax for creating a vector of values in a given range:
x = linspace(-5,6,1000);
x = -5:0.01:6;

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by