I am new in this field i cannot understand how to do that type of calculations.please help me.as early as possible!!!!!!!!!!!!!!
Direct link to this comment:
"As early as possible!!!" is not the perfect tone, when you want to encourage volunteers to help you. Are you aware that the UPPERCASE STYLE mean shouting in a forum?
A much better idea would be to explain any details of the problem, e.g. what exactly a "data set" is.
Some other details steal only the time of the readers: Of course you want Matlab code, because this is a Matlab forum. The answer will be the same if you are new or experienced.
No products are associated with this question.
Direct link to this answer:
See: doc max
x = randn(1000,1);
[maxval,I] = max(x);
maxval gives the maximum value and I gives which element of the vector that maximum occurs at.
If you do
you will see the help for this function.
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test
Opportunities for recent engineering grads.
New to MATLAB?
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend you select United States from the following list:
See all countries