How to check whether my input argument vector is in uint8 form or not?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
When I am writing the code for lzw algorithm.. It shows an error when I am checking whether my input argument vector is a uint8 or not?
Code:
function[output,table]=norm2lzw(vector,maxTableSize,restartable)
If ~isa(vector,'uint8')
Error('input argument must be a uint8 vector')
End
.................
Error is being shown here.!
Any help will be really handy :)
0 Commenti
Risposte (1)
Walter Roberson
il 14 Mag 2017
function [output, table] = norm2lzw(vector, maxTableSize, restartable)
if ~exist('vector', 'var') || ~isa(vector, 'uint8')
error('input argument must be a uint8 vector')
end
0 Commenti
Vedere anche
Categorie
Scopri di più su Image Data in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!