I know that these two functions: zeros() and ones() can be used to create a series of '0's and '1's in MatLab. For example:
a = zeros(5,1)
b = ones(7)
I just learned about another function today: NaN(). This function can create a vector or matrix with all the elements equals to nan. This is useful if you want to add a new empty column to a dataset, or table.
c = NaN(4,5)
MATLAB applications, tutorials, examples, tricks, resources,...and a little bit of everything I learned ...
Subscribe to:
Post Comments (Atom)
my-alpine and docker-compose.yml
``` version: '1' services: man: build: . image: my-alpine:latest ``` Dockerfile: ``` FROM alpine:latest ENV PYTH...
-
It took me a while to figure out how to insert a space in Mathtype equations. This is especially useful when you write an equation with mult...
-
Recently I read post from Dr. Doug Hull's blog: http://blogs.mathworks.com/videos/2009/10/23/basics-volume-visualization-19-defining-s...
-
To get the slope of a pair of x and y, usually I first plot the curve and then add the trend line. Actually there are two functions i...
This comment has been removed by the author.
ReplyDeleteHey,
ReplyDeleteI found a 74% OFF coupon to Learn Matlab Udemy course.I thought it wil help you.
Couponcode: MATLAB25
https://www.udemy.com/learn-matlab/?couponCode=MATLAB25