Answered
From making 2D line plots to making 3D surface plots: How to preserve my current workflow?
Theree is not enough information proviided to determine what the problem is. If ‘i’ and ‘j’ are scalars, or matrices conformabl...

1 year ago | 0

| accepted

Answered
Problems in installing Symbolic Math Toolbox
pngs = dir('*.png') for k = 1:numel(pngs) figure imshow(imread(pngs(k).name)) end First, if you haven't alrea...

1 year ago | 0

Answered
Value Function Iteration: Unable to perform assignment because the left and right sides have a different number of elements.
Here: [w, ind] = max(W); %take max of W The ‘W’ variable is an empty double vector, so ‘w’ and ‘ind’ are also. It’s not po...

1 year ago | 0

| accepted

Answered
How to estimate parameters of fractional SIR epidemic model?
See for example Parameter Estimation for a System of Differential Equations You have to define your differential equation...

1 year ago | 0

Answered
extract max and min frequency of a spectrum
There are some Signal Processing Toolbox functions that may do what you want. See for example the powerbw function. There ar...

1 year ago | 0

| accepted

Answered
Modern software should not do this, something annoying that can be improved
There are ways to deal with inequalities in datetime arrays. If you want to compare only the days (not considering the times), ...

1 year ago | 0

Answered
I can't understand what my mistakes are
Using parentheses () to index into a table indexes the table itself rather than the elements of the table. To index the element...

1 year ago | 2

Answered
Finding out the missing dates and times from the time series data
I am not certain what result you want. One option is to read it in as (or convert it to) a timetable and then use the retime ...

1 year ago | 0

| accepted

Answered
How change design of my graph to this shape by data analysis?
I am not certain what you are asking. Choosing a matching colormap is straightforward, and turbo seems to be close to that in...

1 year ago | 1

| accepted

Answered
Insufficient number of outputs from right hand side of equal sign to satisfy assignment. Error in extraction (line 32) [f0,idx] = pitch(x,fs,Method="SRH",WindowLength=win
The Audio Toolbox pitch function (that matches the syntax you quote) produces two outputs, and (other than a missing right paren...

1 year ago | 0

Answered
Why the filter has no output?
You are designing a continuous filter. All the relevant functions (specifically the filter functions) in the Signal Processing ...

1 year ago | 0

Answered
Using Matlab online, how do I set up a path to my computer (e.g. d:\)
I’m not certain what you’re asking. One possibiilitiy is: How can I upload files from computer to Matlab Online? .

1 year ago | 0

Answered
What is the mathlab code for this figure?
It would help to have the function for . Lacking it, this still requires annotation objects, and that is not always straightf...

1 year ago | 0

Answered
Get difference equation from continuous transfer function
One approach — 0.002174 s + 0.0001581 ---------------------------------------------------------- 6.2...

1 year ago | 1

| accepted

Answered
changing values in matrix from static output to dynamic output
I don’t know if this does what you want, however it has the virtue of not throwing the size mismatch error — cap=15; crit=3; ...

1 year ago | 0

| accepted

Answered
Daily mean through long time
T1 = readtable('data.xls') % Import Data DateTime = datetime([T1{:,1:5} zeros(size(T1,1)...

2 years ago | 1

| accepted

Answered
Combine multiple varying length double arrays into one timetable
First, convert the datenum values to datetime arrays using the ConvertFrom='datenum' name-value pair, either reading each of the...

2 years ago | 0

Answered
Solving non linear system with fsolve
It seems that fsolve stopped when it converged. R = 1.0e-20 * [ 0.1251 -0.0001 -0.0000 -0.1019 -0.0008 -0.00...

2 years ago | 0

Answered
Finding point of zeta line & rootlocus
I am not certain what you are starting with, so I cannot provide an exact response. However one approach may simply be to use i...

2 years ago | 0

Answered
How to randomly select the datapoints in a vector based on percentage for each group?
I’m not certain iif you want to apportion them as they exist in the original vector, or if you want to apportion them by ascendi...

2 years ago | 0

Answered
How to simplify output from solve
I can’t be certain that this is a significant improvement, however it is the best I can do with your data — % Define symbolic ...

2 years ago | 0

Answered
How can i make optimization by using genetic algorithm to minimize error between desired and simulated force?
Your fitness function should be something like this: fitness = @(b) norm(dependent_variable - model_function(b,independent_var...

2 years ago | 0

Answered
Parfor random numbers are not quite random
Sequences generated by computers are called ‘pseudorandom’ because they are just that. They are generated cyclically. See Mo...

2 years ago | 0

Answered
How to save contourf data and not plot it for running efficiency?
Use gcf to return the figure handle, then set the visibility to 'off'. Example — [X,Y,Z] = peaks(50); figure [c,hc] = c...

2 years ago | 0

| accepted

Answered
How can I disable the 'select a website' pop-up every time I open the MATLAB help documentation?
I believe this has recently been resolved. See this Answer.

2 years ago | 0

Answered
generate a 3d scatter plot with z-support lines / pin plot / needle plot ...
See if the stem3 function will do what you want. You will probably still have to use a loop of you want the individual stems ...

2 years ago | 1

| accepted

Answered
How can I shade an interval in a calculus function with the area() function?
I prefer the patch function, simply because I have more experience with it. Try this — x = linspace(0, 1); y = 1 + 0.5*sin...

2 years ago | 0

| accepted

Answered
Problems with creating a data table
You probably do not have to do any of those data manipulations. Just read the file eand plot the results — T1 = readtable('...

2 years ago | 0

Answered
morse code translator not outputting sound
When I ran your code with an appropriate argument, I got: Unrecognized function or variable 'morsecode2'. Beyond that, I juat...

2 years ago | 0

Answered
How to plot an array of 4 columns?
I wrote this to solve a similar problem. The original problem was to create a surf plot to match a scatter plot. Try this — ...

2 years ago | 0

| accepted

Load more