Useful in practice !
There is an error in the statement of the problem: the matrix is the smallest that is compatible with the indices, and is not necessarily square.
how about including "regexp" in the forbidden commandlist?
"regexp" should be forbidden in this problem...ps:the forbidden is so powerful that I can put "zeros" word inside my function's comment.:lol
How about forbiding regexp?
I like it
In the problem, line 3 "square matrix" should have the "square" removed; plural of index will be indices... Nevertheless I like the problem especially with all those forbidden words.
Not sure if reshape is allowed. But desciption do not prohibits it.
I am so proud of myself for solving this problem. :)) Nice challenge! :D
Nice challenge. Learned how matrix indices are used
I have completed upto creating zero matrix but can't find anything specific to insert the values! any hints?
function B = your_fcn_name(value,row,col)
but it shows error pls help me
When row and col are vectors of length n, B(row,col)=value resets all combinations of row(i) and col(j) (a total of n^2 elements); the problem wants just row(i) and col(i) (a total of n elements).
Prime factor digits
Add two numbers
Output any real number that is neither positive nor negative
02 - Vector Variables 5
Dimensions of a rectangle
Generate a string like abbcccddddeeeee
Combinations without using nchoosek
Make a logical diamond using GALLERY function
Sophie Germain prime
Angle between two vectors
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