Gistlib Logo

gistlib

a = [-8.73 -12.77 0.49 -0.97 0.78 0.48 0.50 0.26]; in matlab

You can define a as follows in MATLAB:

main.m
a = [-8.73, -12.77, 0.49, -0.97, 0.78, 0.48, 0.50, 0.26];
58 chars
2 lines

This creates a one-dimensional array/vector a with 8 elements.

similar matlab code snippets

create an array of 100 different car models and sort them by color in matlab
display dlarray data format in matlab
how to replace each element of a array with the row cell of another array in matlab
convert field of a struct into an array in matlab
how to calculate the transpose of a matrix in matlab
convert a 5 by 10 array into a 2 by 25 cell array in matlab
minimam algorithm in matlab
perfect number in matlab
get the last element of an array in matlab
how to calculate the sum of a matrix in matlab

related categories

matlab
array

gistlibby LogSnag