MATLAB cannot plot LinearModel: "Unable to perform assignment because dot indexing is not supported for variables of this type."
显示 更早的评论
I created a LinearModel alpha_Approx (see attachment) by using fitlm function on a set of measured data points.
When I try to plot the result
plot(alpha_Approx);
I get the following error. It seems the error has something to do with "title" and not the data itself. Plus, when "Pause on error" was turned on, the workspace shows that the value of variable "this" is a complex number 0+0i.
How can I get rid of this error?
Unable to perform assignment because dot indexing is not supported for variables of this type.
Error in ctrluis.axesgroup/addbypass>localTitle (line 24)
this.Title = string;
Error in mwbypass (line 17)
hh = feval(fcn{:},varargin{:});
Error in title (line 75)
h = mwbypass(ax,'MWBYPASS_title',titlestr,pvpairs{:});
Error in LinearModel/plotxy (line 736)
title(ax,sprintf('%s',getString(message('stats:LinearModel:sprintf_AvsB',yname,xname))),'Interpreter','none');
Error in LinearModel/plot (line 56)
h = plotxy(lm,varargin{:});
>> plot(beta_Approx_Volleingriff)
Unable to perform assignment because dot indexing is not supported for variables of this type.
Error in ctrluis.axesgroup/addbypass>localTitle (line 24)
this.Title = string;
Error in mwbypass (line 17)
hh = feval(fcn{:},varargin{:});
Error in title (line 75)
h = mwbypass(ax,'MWBYPASS_title',titlestr,pvpairs{:});
Error in LinearModel/plotxy (line 736)
title(ax,sprintf('%s',getString(message('stats:LinearModel:sprintf_AvsB',yname,xname))),'Interpreter','none');
Error in LinearModel/plot (line 56)
h = plotxy(lm,varargin{:});
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Plot Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
