3,847 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
38
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
57
views
Bad colormap interpolation when not using the default colormap
My code doesn't work well when I apply a custom colormap. It does well with the default colormaps; however, when I specify my own it doesn't work.
My current code is this:
mymap = [
0.769, 0.992, 1....
4
votes
1
answer
78
views
How to find an sgtitle in a figure with a tiledlayout?
I have a figure with a tiledlayout. If I create an sgtitle I am unable to find that same sgtitle within the fh.Children structure. If I do not create a tiledlayout, then the sgtitle shows up in the ...
6
votes
1
answer
148
views
More than one dot in legend
I have created the first figure using legend normally.
I would like to have more than one dot in the legend, so the colours are easier to recognize there, as in the second figure (which I created ...
2
votes
1
answer
51
views
Programmatically fix title to same height in tiledlayout (after movement from yticklabels)
Is there a way to fix the position of left-aligned axis titles regardless of the yticklabels?
I am programmatically generating a series of axis objects, where the yticklabels are being autogenerated. ...
3
votes
1
answer
71
views
Plotting a parametric surface where the domain is non-rectangular
Hey I'm teaching a calculus course, and for an example in my lecture on surface integrals I would like to generate a surface plot in MATLAB of a portion of a circular cylinder. Here is my MATLAB code ...
4
votes
1
answer
82
views
Why doesn't Matlabs Isosurface work here?
I'm trying to plot/visualize following solid:
This is what I coded so far:
% Create the set of 3D points
n = 150;
x = linspace(1, 2, n);
y = linspace(0, 1, n);
z = linspace(0, 1, n);
[X, Y, Z] = ...
2
votes
1
answer
126
views
Unable to understand product of Sinusoid signal with Hann window function in MATLAB R2024b
I'm writing a script for a certain signal processing application in MATLAB and have to multiply with the Hann window. Here's my code snippet:
Fpoints = 1e9;
d = 1e-7;
t = 0:1/Fpoints:d;
w1 = hann(...
1
vote
1
answer
79
views
How to change line and marker style in a legend?
My script generates a composite plot, made of dozens of lines and line segments. I am trying to add a custom legend to the plot, which contains just 3 of those lines, but I don't seem to be able to ...
2
votes
0
answers
125
views
Upright \mu in MATLAB latex interpreter mode
I want to get a straight \mu in a MATLAB figure label. I use the LaTeX Interpreter since I want to use I tried this:
ylabel('$\hat{x}$ in $\mathrm{\mu}$m', 'Interpreter','latex');
and also using only ...
1
vote
0
answers
107
views
Alignment of MATLAB figures with positive and negative values
I have different charts in MATLAB, some with only positive or only negative values and some mixed. The problem is that the values of the y-axis have different spaces due to the negative signs and the ...
0
votes
1
answer
100
views
Undocumented `hittest` no longer working as expected
Preamble
Some time ago, I created an application in matlab where I could move/rotate some object directly from the mouse (i.e. some kind of mini-cadtool interface):
I created the application on the ...
0
votes
0
answers
29
views
Error in ode45 and 'Events' of a Satellite Tracking Radar Model (MATLAB)
I'm trying to simulate a satellite tracker. With ode45 I have de state of the satellite for each time and then convert position to Azimuth-Elevation local coordinates. If the object enters in the ...
1
vote
0
answers
31
views
Handle warning of "Array is wrong shape or size" when plotting a geopolyshape and setting the ColorData field in MATLAB
MATLAB is throwing a warning and not plotting a geopolyshape when setting the ColorData field; however the shape is plotted when ColorData isn't set. The example code below demonstrates the issue. I ...
1
vote
1
answer
69
views
Show only tick labels and hide tick marks: MATLAB 2024b
How do I hide the tick marks, but keep the tick labels on both y axis of a graph?
My formatting for the axis is
yyaxis left;
b = bar(data(2:end-1,:)', "stacked");
xticklabels(data(1, :));
...