Effacer les filtres
Effacer les filtres

webread error with input ??

5 vues (au cours des 30 derniers jours)
Christopher Coello
Christopher Coello le 13 Juin 2018
Modifié(e) : Nirav Sharda le 18 Juin 2018
Hi,
I am using webread for the first time in R2017b. Very unusual behavior :
>> webread('https://www.mathworks.com/matlabcentral')
Error using webread (line 119)
First input must be a string array or cell array of character vectors.
But urlread works fine
>> urlread('https://www.mathworks.com/matlabcentral')
ans =
'<!DOCTYPE HTML>
<html>
<head>
Any clue ? Tried restarting Matlab, no help.
  9 commentaires
Christopher Coello
Christopher Coello le 18 Juin 2018
By the way, trying everytime I start R2017b, but still get the same error.
>> webread(sprintf('%s','https://www.mathworks.com/matlabcentral'))
Error using webread (line 119)
First input must be a string array or cell array of character vectors.
Nirav Sharda
Nirav Sharda le 18 Juin 2018
Modifié(e) : Nirav Sharda le 18 Juin 2018
Line 119 of the 'webread' function as mentioned in the error calls the 'encodeInputs' function which in-turn calls another internal function. Can you add break-points in the code and identify the line causing the issue?

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by