94,609 questions
-1
votes
0
answers
36
views
How do I set up these three water application events in MATLAB and incorporate them into the boundary conditions?
During each column experiment, three water applications of each 15 cm were made to each soil column every 1-2 weeks. The duration of the experiment is 33 days.
The following is the experiment details:...
0
votes
0
answers
47
views
How to code switching Neumann-Dirichlet upper boundaries for 1D Richards' equation using implicit finite difference?
I am solving the 1D mixed-form Richards' equation in MATLAB using a fully implicit finite difference scheme (Picard iteration).
The governing equation is:
enter image description here
(Note: My z-axis ...
Advice
1
vote
0
replies
31
views
r2 from wblplot (built-in function)
Using the built-in function wblplot (https://uk.mathworks.com/help/stats/wblplot.html#d126e1264612) to analyse some data.
How do I quantify the goodness of fit (e.g. r^2) of the plot it produces? The ...
Advice
2
votes
0
replies
30
views
Linking to DNG requirements on a specific stream
Is direct linking from MatLab to DNG requirements done using OSLC links?
If so, I was assuming that once you created the OSLC links to the appropriate DNG requirements, to select your DNG stream, you ...
Best practices
2
votes
8
replies
84
views
Aggregate multiple columns by the sum of next column
I want to create a data matrix in Matlab, aggregating/grouping data of two columns and by the sum of a third column.
For example given the next data matrix x:
game=[1;2;3;1;2;3;1];
Money=[0 ;5; 6; 0; ...
3
votes
0
answers
54
views
How can I get edge information from matlab femodel programmatically
I am using matlab's pde toolbox and setup a geometry for femodel like this:
gd = [3 4 0 1 1 0 0 0 1 1]'; % Example: A simple square
sf = 'S1';
ns = ('S1')';
[g,bt] = decsg(gd, sf, ns)
fe = femodel(...
0
votes
0
answers
37
views
Matlab Acoustics Toolbox initialisation
I am using the Acoustics Toolbox from OALib in Matlab, from the link below:
https://oalib-acoustics.org/models-and-software/acoustics-toolbox/
I go to the HTTP site and the source code and binaries ...
2
votes
0
answers
67
views
How to deal with Mittag_Leffler function in Matlab or Mathematica?
I want to calculate a solution with Mittag_Leffler function in in Matlab or Mathematica.
$f(p) = \sum\limits_{k=0}^{\infty} (v/D)^k L^{(\alpha-1)k+\alpha-3} E^{k+1}{\alpha,(\alpha-1)k+\alpha-2}(-p/D L^...
Best practices
2
votes
3
replies
75
views
How to export struct.string into string array
Matlab has two ways how to store strings; either as character array foo='the text' or as a string array bar="the text". The problem starts when one tries to concatenate the arrays vertically,...
1
vote
0
answers
46
views
Multiple x-axes in one above the other in MATLAB
I have three time series of data with different variables- Var1, Var2, and Var3. Although the length of all these data sets is different, their start and end times are the same. Consequently, one can ...
3
votes
1
answer
70
views
Disable data tips by default
In recent Matlab versions (I am using R2024b), when you hover or click on a line plotted on some axes it produces a data tip, which is a rectangle indicating the numerical values at that point.
I ...
Tooling
0
votes
1
replies
37
views
How to add an arrow heads on a line in matlab figure
I have plotted a trajectory curve in Matlab figure using my code. I need to achieve arrow heads in the matlab figure showing the direction of the uav trajectory. Exactly like in the picture. Could you ...
Best practices
0
votes
2
replies
45
views
MATLAB: Best method to convert cell arrays to numeric arrays using real world test data
I am sourcing through multiple excel files for data analysis and plotting. For each testing profile/cycle, a numeric array of different units is compiled. After completion, I concatenate the current ...
1
vote
0
answers
44
views
MEvaluate in Mathematica not returning anything
After installing MATLink, I tried the running the following cells in Mathematica:
Needs["MATLink`"]
OpenMATLAB[]
and
MEvaluate["mat = magic(4)"]
But nothing showed up in the ...
3
votes
1
answer
82
views
Adding multiple function plots to a single figure with subplots - MATLAB
I've been trying to run a function three times that plots 2 sub-plots (6 plots total) onto on singular figure.
So I've got a function that reads in a dataset and a manipulator, then manipulates it in ...