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

Answered
How to generate random graph of n vertices with random connections in matlab
Take a look at the sprand and sprandsym functions.

5 years ago | 0

Answered
how to integrate a product with function handle
You can't calculate the product of a number and a function handle. What you can do instead is calculate the product of a number ...

5 years ago | 0

Answered
Creating a new column in a table which is true or false
rng default id = (1:10).'; SIC = randi(3, 10, 1); t = table(id, SIC) t.is1or2 = ismember(t.SIC, [1 2])

5 years ago | 0

| accepted

Answered
Getting the error as "Undefined function or method 'syms' for input arguments of type 'char'" when trying to use syms
You likely don't have Symbolic Math Toolbox installed and licensed. Check the output of the ver function to see if it's installe...

5 years ago | 0

Answered
How to know the value of a variable in a past time in Simulink?
I think you want a Unit Delay block.

5 years ago | 0

| accepted

Answered
index in safe-title
Try: str = "title_" + t{n} saveas(gcf,str,'jpeg') This will attempt to convert t{n} into a string and concatenate the string ...

5 years ago | 0

| accepted

Answered
Where can I find the dijkstraShortestPaths() function?
We do not distribute the source code for that function. What type of modification were you hoping to perform on that function? ...

5 years ago | 0

| accepted

Answered
Vector sum of forces
Use the vecnorm function.

5 years ago | 0

Answered
Error using sub2ind Out of range subscript how to solve this?
What's the index of the value in row 1, column 6 of a 4-by-5 matrix? sub2ind([4 5], 1, 6) Trick question, since a 4-by-5 matri...

5 years ago | 0

Answered
why is the variable order in a user defined function important in lsqnonlin optimisation?
Why does the order in the self defined function important for lsqnonlin fitting? For the same reason that trying to feed yourse...

5 years ago | 0

| accepted

Answered
Is there any maximum for the size of matlab table?
There are theoretical limits (based on limitations of the operating system's ability to address memory) that you are highly unli...

5 years ago | 0

Answered
Linearly detrended and a 30-day running mean
See the detrend and movmean functions.

5 years ago | 0

| accepted

Load more