0% found this document useful (0 votes)
4 views1 page

MATLAB Operations on Vectors

The document contains a series of MATLAB commands demonstrating vector operations, such as element-wise multiplication and convolution of two vectors P and Q. It also shows saving and loading data from a .mat file, as well as using the diary function to log commands. The results of the operations are displayed, including the output of P.*Q and P+Q.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

MATLAB Operations on Vectors

The document contains a series of MATLAB commands demonstrating vector operations, such as element-wise multiplication and convolution of two vectors P and Q. It also shows saving and loading data from a .mat file, as well as using the diary function to log commands. The results of the operations are displayed, including the output of P.*Q and P+Q.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

>> a=9

a = 9
>> P=[1 2 3 -9];
>> Q=[3 2 1 1];
>> P.*Q
ans =

3 4 3 -9

>> conv(P,Q);
>> diary off
>> diary off
>> save [Link]
>> clear all
>> load datos
>> P+Q
ans =

4 4 4 -8

>> save [Link]


>> clear all
>> load datos
>> load variables
>> clear all
>> load variables
>> load datos
>> diary('prueba1')

You might also like