3 errors when trying to publish

18 views (last 30 days)
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

Accepted Answer

Rik
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.
  1 Comment
Mykolas Triponas
Mykolas Triponas on 18 Jan 2021
yup, while testing the publish command I created another file with the name publish in hopes of using it as a function. deleting that file fixed the problem. thanks !

Sign in to comment.

More Answers (0)

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!