Workspace calculation accuracy 7 characters
Afficher commentaires plus anciens
Hello! Faced a problem, I need to copy the numbers 7 and more characters for later work in text formats
format long g
digitsOld = digits(20);
a = 20.224124124124;
b = 7664555.5789;
x1 = double(y)/b;
x2 = exp(double(x1));
x3 = 5*sin(x2)-pi/2;
x4 = 10*sin(x2)-pi/2;
Aanswer = x2*a;
Banswer = x4*a;
Canswer=x3*a-1.22;
disp(double(Aanswer))
for j = 1:length(Aanswer)
va = ['Aanswer_',num2str(j)];
eval([vn,'=Aanswer(j)']);
end
I have two problems, the first all my values are written in the workspace and there are a lot of them, can I group them all (create Aanswer 1x30000), the second problem in the workspace they are written only 6 characters (when using edit I can see all the other characters and I would like to save them for future work)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Entering Commands dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!