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."
Mostra commenti meno recenti
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 Commento
Yao Li
il 17 Apr 2013
Have you tried copying your model to another folder?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Simulink Environment Customization in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!