I've installed the stats and machine learning toolbox. But there is no ranova.m
Can anyone give me the source code plz

 採用された回答

Image Analyst
Image Analyst 2023 年 10 月 12 日
編集済み: Image Analyst 2023 年 10 月 12 日

1 投票

You probably don't have a license for it because I see that function should be in that toolbox since 2014. What happens if you run this code:
% Check that user has the specified Toolbox installed and licensed.
% hasLicenseForToolbox = license('test', 'image_toolbox'); % Check for Image Processing Toolbox.
% hasLicenseForToolbox = license('test', 'Image_Acquisition_Toolbox'); % Check for Image Acquisition Toolbox.
hasLicenseForToolbox = license('test', 'Statistics_Toolbox'); % Check for Statistics and Machine Learning Toolbox.
% hasLicenseForToolbox = license('test', 'Signal_Toolbox'); % Check for Signal Processing Toolbox.
% hasLicenseForToolbox = license('test', 'Video_and_Image_Blockset'); % Check for Computer Vision System Toolbox.
% hasLicenseForToolbox = license('test', 'Neural_Network_Toolbox'); % Check for Deep Learning Toolbox.
if ~hasLicenseForToolbox
% User does not have the toolbox installed, or if it is, there is no available license for it.
% For example, there is a pool of 10 licenses and all 10 have been checked out by other people already.
ver % List what toolboxes the user has licenses available for.
message = sprintf('Sorry, but you do not seem to have that Toolbox.\nDo you want to try to continue anyway?');
reply = questdlg(message, 'Toolbox missing', 'Yes', 'No', 'Yes');
if strcmpi(reply, 'No')
% User said No, so exit.
return;
end
else
fprintf('You do have a license for that toolbox.\n')
end
You do have a license for that toolbox.
Can you run this example code from the help?
load fisheriris
t = table(species,meas(:,1),meas(:,2),meas(:,3),meas(:,4),...
'VariableNames',{'species','meas1','meas2','meas3','meas4'});
Meas = table([1 2 3 4]','VariableNames',{'Measurements'});
rm = fitrm(t,'meas1-meas4~species','WithinDesign',Meas);
ranovatbl = ranova(rm)

1 件のコメント

Qicheng Lu
Qicheng Lu 2023 年 10 月 12 日
it shows that I do have a license for that toolbox.
I can run the example code , amazing
Now when I enter the "open ranova" in cmd, the RepeatedMeasuresModel.m will open and point to the
function [tbl,A,C,D] = ranova(this,varargin)
thank u so much!!!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2023 年 10 月 12 日

コメント済み:

2023 年 10 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by