3 errors when trying to publish

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

 采纳的回答

Rik
Rik 2021-1-18

0 个投票

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 个评论

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 !

请先登录,再进行评论。

更多回答(0 个)

产品

版本

R2020b

标签

Community Treasure Hunt

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

Start Hunting!

Translated by