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

 Respuesta aceptada

Rik
Rik el 18 de En. de 2021

0 votos

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 comentario

Mykolas Triponas
Mykolas Triponas el 18 de En. de 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 !

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Versión

R2020b

Etiquetas

Preguntada:

el 18 de En. de 2021

Comentada:

el 18 de En. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by