Write a matlab script that performs dot product

Assignment Help MATLAB Programming
Reference no: EM13694967

Question: Let a and b be three-dimensional vectors. Write a MATLAB script that performs: 1. the dot product between the two vectors and 2. the cross product a × b. Note that the script should be general and thus should be able to perform the operations for any a and b specified by the user. Do not use the built-in MATLAB functions.
A = [ 1 0 3 -1]
[ 2 1 0 2]

Do not use the built-in MATLAB functions.

B = [ 4 1 0 ]
[-1 1 3 ]
[ 2 0 1 ]
[ 1 3 4 ]

You need to make well-formed and clean code. You should not copy and paste the code from other source.

Reference no: EM13694967

Questions Cloud

What is the balanced molecular equation : Problem- What is the balanced molecular equation, total ionic equation and net ionic equation for silver nitrate (L) and strontium chloride(L)
What is the balanced molecular equation : Problem- What is the balanced molecular equation, total ionic equation and net ionic equation for ammonium chloride and lead(II) acetate
The tonnage of sulfur or sulfuric acid recovered : Problem- Discuss the impact that the tonnage of sulfur or sulfuric acid recovered from SO2 in flue gas treatment would have upon the chemical industry if all coal- and oil-fired were required to use such treatment processes.
Calculate absolute errors of measured sugar concentration : Calculate the absolute errors of measured sugar concentration by using the values determined in the previous porblem as reference values.
Write a matlab script that performs dot product : Let a and b be three-dimensional vectors. Write a MATLAB script that performs: 1. the dot product between the two vectors and 2. the cross product a × b.
What is the aldol condensation product of the reaction : Problem- What is the aldol condensation product of the reaction of acetone with 4-methylbenzaldehyde using NaOH. Structure and name and reaction
Write the equation to represent the reactions : Problem- What is given: 250.0 mL of 0.15 M HCHO2 with 100.0 mL of 0.20 M LiCHO2.The Ka for HCHO2 is 1.8 x 10 ^-4 . Write the equation to represent the reactions of the above buffer solution with
A large volume of ethanol containing some sulfuric acid : Problem- what would happen if the ester we made (isopentyl acetate) were to be heated with a large volume of ethanol containing some sulfuric acid
Write an application bmicalc : Write an application (BMICalc) that reads the user's weight in poinds and height in inches, then calculates the Body Mass Index.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd