Subscript indices must either be real positive integers or logicals with minimum and maximum values
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ali Tawfik
le 27 Août 2019
Modifié(e) : KALYAN ACHARJYA
le 27 Août 2019
I am trying to obtain the max and min. values from the following arrays:, however, I got the above mentioned error, any help
clear all;
clc;
syms y real;
y2min=double(solve(-246<.7500*-50+(y*.2500)+20.78,y));
y2max=double(solve(.7500*-50+(y*.2500)+20.78<40,y));
y3min=double(solve(-68<-.433*-50+(y*.4330)+20.78,y));
y3max=double(solve(-.433*-50+(y*.4330)+20.78<68,y));
min(:)=[y1min y2min y3min]
max(:)=[y1max y2max y3max]
min_n=max(min)
max_n=min(max(:))
0 commentaires
Réponse acceptée
KALYAN ACHARJYA
le 27 Août 2019
Modifié(e) : KALYAN ACHARJYA
le 27 Août 2019
Change the variable name min and max to different one say min1 or max1
min(:)=[y1min y2min y3min]
max(:)=[y1max y2max y3max]
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!