94,634 questions
0
votes
0
answers
17
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(...
1
vote
0
answers
21
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 ...
1
vote
0
answers
40
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
62
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
33
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
62
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
29
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
37
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
42
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
78
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 ...
0
votes
0
answers
54
views
How to display an export from Blender in ply format in MATLAB?
I have a stl file which I imported in the Blender software. After importing it and some processing the stl file looks like as follows
After that I export the picture as a .ply file and try to display ...
1
vote
0
answers
141
views
High-dimensional function inputs in MATLAB Experiment Manager
The specific Experiment Manager of interest is here https://www.mathworks.com/help/matlab/ref/experimentmanager-app.html. Other related documentation is specifically for AI, but I am interested in ...
4
votes
1
answer
268
views
The same code runs on MATLAB but in R it is unstable
I am using spectral method to solve an ordinary differential equation.
The following R code and the MATLAB code are completely the same.
But the R code gets explode (the u value it solved would become ...
1
vote
1
answer
73
views
MATLAB Documentation for SPM1d
I am trying to use the two-sample ttest in the spm1d MATLAB package. I have watched the tutorial videos on Youtube and know how to run tests similar to what's shown in those videos. I am wondering if ...
Advice
1
vote
4
replies
79
views
Why the statement '[a] = size(x)' does not assign the product of dimensions of 'x'?
The command help size shows that:
[M1,M2,M3,...,MN] = size(X) for N>1 returns the sizes of the first N
dimensions of the array X. If the number of output arguments N does
not equal NDIMS(...