I am attempting to use the MATLAB Function block in my simulink model; however evrytime i run it, the following errors occur; "Please change your current directory to a writable directory preferably outside of MATLAB installation area."
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
function [mean,stdev] = stats(vals)
%#codegen
%calculates the statistical mean
%and s.d for the values in vals
len = length(vals);
mean = avg(vals,len);
stdev = sqrt(sum(((vals-avg(vals,len)).^2))/len);
coder.extrinsic('plot');
plot(vals,'-+');
function mean = avg(array,size)
mean = sum(array)/size;
1 commentaire
Réponse acceptée
Ruben
le 17 Avr 2013
You should move your models and codes to a folder which is not the installation folder of MATLAB. Your desktop or 'my documents' should work.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Environment Customization dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!