while B < 1000
B = B+1;
C = sqrt((A^2) + (B^2));
perimeter = A+B+C;
c(end+1,:) = [A,B,C];
Works, but is horribly inefficient especially for higher p...
solution using a Neural Network Toolbox function ;)
All your base are belong to us
Set the array elements whose value is 13 to 0
Cell Counting: How Many Draws?
Replace multiples of 5 with NaN
Test if two numbers have the same digits
Number of Circles in a Number
Multiples of a Number in a Given Range
Inhomogenous Depth Scale Interpolation
ASCII Birthday Cake
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office