Hi there, I have a question about generating an error message in MATLAB..
say, A = input('Value of A = ')
if A > 5
disp ('Value of A is larger than 5')
else
end
So, question here is... How can I make the program stop once it finds out A is larger than 5 and returns to the...
Thanks ckutlu ! it works now..
I have another problem now though..
Please pardon my long message
but here's what I have..W = 1000;
L = 1000;
T = 10;
M = 25;
P1 = 300;
P2 = 10;
alpha = 1;
S1 = 115;
S2 = 3;
delta = 1;
SM = 90;
R1 = 0.5;
R2 = 0.007;
beta = 2;NT_min = W/M;
NT =...
Thanks for replying Viscous..
I don't really understand how you would approach this though..
Say i have (1 2 3 4 5 6 7 8 9 10)
I place a limit of 5.. So anything above 5 will be 5
Desired result: (1 2 3 4 5 5 5 5 5 5)
Is that possible??
Hi, I have a question about comparing each and every element in a matrix..
Heres what i have,
S1 = 90
S2 = 1
delta = 0.75
SM = 80
m = 0.1:0.01:100;
if (S1-S2*m.^(delta))>=SM
S_avg = SM
elseif (S1-S2*m.^(delta))<SM & (S1-S2*m.^(delta))>0
S_avg = (S1-S2*m.^(delta))
else S_avg = 0...