Gistlib Logo

gistlib

erzeugen sie in matlab die folgenden felder (arrays) einmal mit hilfe des „:“-operators und einmal mit hilfe von linspace: c(n) = 4, 3.5, 3.0, 2.5, 2, 1.5, 1, 0.5, 0 in matlab

Using : operator:

main.m
c = 4:-0.5:0;
14 chars
2 lines

Using linspace:

main.m
c = linspace(4,0,9);
21 chars
2 lines

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