Answered
scatter plot, stem
See the islocalmax function.

5 years ago | 0

Answered
How can i write CRC16 program? (in modbus)
See the swapbytes function.

5 years ago | 0

Answered
wordcloud Function not working!
Let's make sure you don't have a wordcloud.m file that's taking precedence over the function by that name in MATLAB. What does t...

5 years ago | 0

| accepted

Answered
Can someone double check my code for a system of differential equations? I keep getting an error.
When the first input to ode45 is a function handle the second input is the interval over which you want to solve the differentia...

5 years ago | 1

| accepted

Answered
Delete numbers that are not in both arrays
Use the intersect function a couple times. That will be easier if you define an array or a cell array of data rather than using ...

5 years ago | 0

Answered
Mean and Norm of a time series.
The x1 variable you use to calculate mx_1 and nx_1 is not the same x1 that you use in the Command Window. x1 = 1:10 m1 = mean(...

5 years ago | 0

| accepted

Answered
Matlab ignores my videoReader command
Have you read the data from the VideoReader or have you just created the object? If I open to page 23 of a 345 page long book b...

5 years ago | 0

| accepted

Answered
how to refer variable from string name
Can you do this? Yes. Should you do this? The general consensus is no. Rather than defining variables with numbered names, con...

5 years ago | 1

Answered
The if else statement does not read the other conditions
D1 = 3 Wl1 = 1.4 N1 = 15 %%interpolation for unit weight if D1 < Wl1 Is 3 less than 1.4? No, so we do not execute the body ...

5 years ago | 0

Answered
Conputation with symbolic elements
Call double (if the result doesn't contain any symbolic variables) or vpa (if it does) on the result. two = sym(2); y = (sqrt(...

5 years ago | 0

| accepted

Answered
do you know the difference between set and set_param
The set_param function is intended to set parameters of Simulink models and Simulink blocks. The set function is intended to se...

5 years ago | 0

| accepted

Answered
How to remove outlier of time series signal data by using cubic spline interpolation?
Use > and < or the isoutlier function to determine where the outliers are located. Use filloutliers specifying 'OutlierLocation...

5 years ago | 2

Answered
ODE 45 solution copying initial condition
Rather than handling M yourself in your ODE function consider specifying it as the Mass option using odeset. See this documentat...

5 years ago | 0

Answered
textscan: Instantaneous out of memory error when accessing very large file (only with newest Matlab versions)
I recommend you look at the functionality in MATLAB to process large files and big data. The approach you've described sounds li...

5 years ago | 0

Answered
How to increase the size of a matrix within for loop
Consider creating a cell array to store the pieces you want to be placed on the main diagonal. When you want to assemble the mat...

5 years ago | 0

| accepted

Answered
Applying probability concept using matlab
This uses several functions that didn't exist when the question was originally asked in 2012, notably discretize, histogram, and...

5 years ago | 0

Answered
Need help in creating a code
Change the format you use to display the data. year=[1900:10:2000]; pop=[550 720 1265 2287 2756 3012 4086 5220 7478 10112 1422...

5 years ago | 0

Answered
Disabled - No sandbox or build area path
Which release of MATLAB are you using? What operating system are you using? Search the bug reports for the release you're usin...

5 years ago | 0

Answered
hold on y-axis
%I tried with this but it doesn't work % plot([2020-11-17 13:03:00 2020-11-17 13:03:00],[0 450],'g--') No, that's not going to...

5 years ago | 0

Answered
Help with my SIR MODEL
Your function is defined to accept zero input arguments and return zero output arguments. function sir_model You can't call it...

5 years ago | 0

Answered
What's the physical meaning of heatmap. Also, what is the meaning of the axis of heatmap( azimuth and elevation)?
A heatmap chart is just a way to display data using colors to show a general pattern of high and low data values. So I'm not sur...

5 years ago | 0

Answered
In what version did certain colorbar properties change?
The PDF Release Notes go back to release R2012b. The document is 666 pages long. I suspect that a combination of size and freque...

5 years ago | 1

| accepted

Answered
Why do I get "complex" arrays?
If r contains only positive values and p contains only positive values, what about gamma? areALLElementsOfRPositive = all(r > 0...

5 years ago | 0

| accepted

Answered
activation code for matlab 2016
If you have purchased MATLAB in the past, you should have been sent the activation code at that time. You should be able to ask ...

5 years ago | 0

Answered
problem with name=value syntax
That syntax is intended as a way to specify name-value pair arguments. So instead of: plot(1:10, 1:10, 'Marker', 'o', 'LineStyl...

5 years ago | 2

| accepted

Answered
Script to remove polynomial/quadratic error off CSV data
The detrend function and/or the Remote Trends task may be of interest or use to you.

5 years ago | 0

Answered
I need help with my thesis
The wblpdf function is part of Statistics and Machine Learning Toolbox. Check the information displayed by the ver function to d...

5 years ago | 1

Answered
Changing Keyboard shortcuts in App Designer in MacOS
Go to the Preferences in the Environment section of the Home tab of the Toolstrip. Under MATLAB navigate to Keyboard then Shortc...

5 years ago | 0

Answered
how take a mathematical function from user
What do you mean when you say you want "the user to enter" the function in your comment? Do you want the user to have to pass s...

5 years ago | 0

Answered
Can you organize scatter plot points?
When I look at your plot it looks to me an awful lot like the boxplot thumbnail in the Plots tab of the Toolstrip. You may want ...

5 years ago | 0

Load more