3 errors when trying to publish
18 views (last 30 days)
Show older comments
Mykolas Triponas
on 18 Jan 2021
Commented: Mykolas Triponas
on 18 Jan 2021
Hello,
When I try to run the publish function or press the publish button in the publish tab I receive these errors:
The code I am trying to publish is just reading some data and running some functions on that data.
clc
clear
t = importdata('Temperature.mat'); % importing temperature data
t = t';
RLE(t); % RLE encoding
Delta(t); % Delta encoding
RLED(t); % RLE on delta encoding
hf(t) % huffman encoding
crc(t) % CRC encoding, corruption and error detecting
repetition(t) % repetition encoding, corruption and error detecting
hamming(t) % hamming encoding, corruption and error detecting
solomon(t) % solomon encoding, corrution and error detecting
The publish settings are set to user default
restarting matlab did not help
0 Comments
Accepted Answer
Rik
on 18 Jan 2021
You seemed to have called your script 'publish.m'. That will mean that if Matlab tries to find the most likely match for a function call 'publish' (which is what the publish button does), it will find your script first, instead of the builtin.
There are ways around this, but the best way is to avoid using the same names as Matlab functions. So rename your script and try again.
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!