Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %-- 10/16/2019 2:29 PM --%
- a = 5
- a = 5;
- isinteger(a);
- b = 'hello';
- a;
- a
- b
- num = 7;
- sum = 3 + 4;
- num + sum
- which imshow
- clear
- clear;
- whos num;
- b = 'hello';
- whos b;
- a = 7;
- whos a;
- x = 15.66
- x = single(x);
- x
- clear
- iskeyword
- clc
- clf
- imshow('rice.png');
- imshow('rice.png');
- clf
- clc
- type imshow
- clc
- which foo
- which imshow
- ver
- clc
- array = [15,56,45,31,556,645];
- array
- save file1.mat array
- load('file1.mat')
- ls
- load('file1.mat')
- load('file1.mat', 'array')
- clc
- help imshow
- clc
- doc array
- lookfor array
- clc
- imshow('peppers.png');
- clc
- RGB = imread('peppers.png');
- RGB
- BW = imread('rice.png');
- BW
- imshow('rice.png');
- I = rgb2gray(RGB);
- imshow(I);
- clc
- %-- 10/17/2019 4:06 PM --%
- 5+6
- clc
- num = [1,2,3;4,5,6;7,8,9]
- clc
- clc
- num(8)
- clc
- num3 = [1:4; 5:8; 9:12; 13:16]
- num3(8)
- vector1 = [15,56,54,89,63]
- A = diag(vector1)
- b = eye(3)
- b = eye(3,5)
- c = true(3)
- c =true(3,2)
- c = false(3,2)
- who c(1,2)
- whos c(1,2)
- whos c
- d = ones(2,4)
- d = zeros(2,4)
- whos d
- m = magic(3)
- m = magic(5)
- cell1 = {15,'A',46,'C',65;16,'C',98,96,'D'}
- cell1(1,2)
- cell1(1,4)
- cell1(1,5)
- cell2 = {[56 89 78 78];[13 69 78 95];['a' 'b' 'c' 'd']}
- cell2(1)
- cell2(1,1)
- whos cell1
- cell2{1,1}
- cell2{1}
- cell1{1}
- whos cell1{1}
- field1 = 'f1'; value1 = zeros(1,10);
- field2 = 'f2'; value2 = {'a', 'b'};
- field3 = 'f3'; value3 = {pi, pi.^2};
- field4 = 'f4'; value4 = {'fourth'};
- s = struct(field1,value1,field2,value2,field3,value3,field4,value4)
- s
- s(1)
- s(1).f2
- s(2).f1
- s(2).f2
- s(2).f3
- s(1).f3
- 5 == 5
- 5 == 6
- 6 ~= 5
- 6 ~= 6
- 5 > 6
- 6 <6
- 6 <= 6
- 1 & 1
- 1 & 03
- 1 & 0
- clc
- 0 | ~0
- 0 | ~1
- 0 && ~1
- 0 && ~0
- 1 && ~0
- clc
- ide = eye(3)
- NOTide = ~ide
- whos NOTide
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement