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

1 回表示 (過去 30 日間)
Elijah Daley
Elijah Daley 2021 年 2 月 22 日
編集済み: Paul Hoffrichter 2021 年 2 月 25 日
  6 件のコメント
Steven Lord
Steven Lord 2021 年 2 月 22 日
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 2021 年 2 月 23 日
編集済み: Paul Hoffrichter 2021 年 2 月 25 日
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.

サインインしてコメントする。

回答 (1 件)

James Tursa
James Tursa 2021 年 2 月 22 日
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;

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by