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...
-
A couple of days ago, I plotted about twenty figures and was trying to set the markers with thicker edge. This would be very easy if it was ...
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