Thursday, November 5, 2015

Creating NaN vector in MatLab

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)

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Hey,
    I 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

    ReplyDelete

Any comments?

my-alpine and docker-compose.yml

 ``` version: '1' services:     man:       build: .       image: my-alpine:latest   ```  Dockerfile: ``` FROM alpine:latest ENV PYTH...