Beantwortet
Making color plots that are also clear in greyscale
Converting a colormap to grayscale If you have an existing colormap c that you would like to convert to grayscale, you could us...

mehr als 2 Jahre vor | 0

Beantwortet
Dendrogram with colouring.
> How can I remove certain colours [of a dendrogram] from being used, I would like none of the cluster to be green. Since you ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How can I extract multiple rows from an array at regular intervals?
Create demo matrix A A = (1:72)'.*ones(1,10) size(A) Extract rows 1:6, 13:18, ... q = 6; idxMat = reshape(1:q*floor(height(...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
how to delete a custom warning identifier, not just "display off" ?
> how to delete a custom warning identifier If you want to permanently delete the custom warning ID so that it never appears a...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Tiledlayout and duplicating plot for zoom of original plot
Some feedback on your test code. hFigIAxes = findobj('Parent',figT,'Type','axes'); No need to do this. You already have the ax...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to add up all elements of a vector in a 1x1 vector?
a = [ 1 7 333 65 8]; s = string(a) cs = cellstr(string(a))

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
transform an empty matrix '0x0 double' into a matrix '0x2 double'
To create an empty double with a specified size, data_0x2_double = zeros(0,2) Or, data_0x2_double = double.empty(0,2) See ...

fast 3 Jahre vor | 0

Beantwortet
logical data some time is not 0/1
2.png indicates that the data is a 82x15 string where some values in col 2 are in the form "true"/"false" whereas other values i...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I replace white color with some other color while keep using cbarf for values less than cutoff mark?
Interesting function cbarf (author: @M MA). That white section is just your axes background. One hacky solution is to set the...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to plot this signal?
ht= abs( (1/2*pi*j*t).*( exp(j*1460*pi*t) - exp(j*1450*pi*t)) ); % Add this ----------^ ".*" is element-wise multiplication....

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I extract data (CData) from a figure
XData, YData, and CData are properties of (some) graphics objects. These graphics objects are within axes which are within a fig...

fast 3 Jahre vor | 0

Beantwortet
Display without new line
To preserve the format of the value, use formattedDisplayText, available since R2021a. This solution wraps the conversion into ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to save a figure/plot after annotating?
Thanks @William Rose for the kind words! I had time to dig deeper. Replicating the problem Start with a default-sized figur...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Running a mlapp file from another mlapp file via pushbutton callback
> how do I run a 2nd mlapp file but thats in a different directory? Add the path to the 2nd app in the button callback or speci...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Only one colorbar for subplots while plotting in a for loop.
I recommend using tiledlayout instead of subplot. Tiledlayout has numerous benefits over subplot including easy placement of gl...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to compute 8 days mean from one year data?
Here is a boxcar average of your 365x9 matrix with an averaging window of 8x1 except for the last bin. Averaging is independent...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
fill in between horizontal lines
MATLAB R2023a introduced yregion which offers an easy way to fill between horizontal lines. yregion(0,20,'FaceColor','g','Edge...

fast 3 Jahre vor | 0

Beantwortet
How to change the position of arrow in quiver from head/tail to middle of the line?
Starting in MATLAB R2022a, you can use the Alignment property of the quiver object to specity head, tail, or center alignment.

fast 3 Jahre vor | 0

Beantwortet
Unable to combine plots?
Use tiledlayout. fig = gcf; % from your code tcl = tiledlayout(1,4,'TileSpacing','Compact'); ax1 = nexttile(tcl); % PLOT I...

fast 3 Jahre vor | 0

Beantwortet
Issue with linkprop outcome in .m vs .mlx script
The problem is that the embedded figure within the live scrip does not have access to the LinkProp objects. The documentation h...

fast 3 Jahre vor | 2

| akzeptiert

Beantwortet
how to create a figure without titles and icons
figure('toolbar','none','menu','none')

fast 3 Jahre vor | 2

| akzeptiert

Beantwortet
have change values for x axis
Set the xgroupdata argument in boxchart. Since you're using a matrix of ydata values, you'll need to replicate the vector of ...

fast 3 Jahre vor | 0

Beantwortet
How to set common colorbar for multiplots?
This is easy with tiledlayout (MATLAB R2020b or later) tcl = tiledlayout(3,4); for i = 1:prod(tcl.GridSize) nexttile() ...

fast 3 Jahre vor | 5

Beantwortet
Why are datatips editable?
> Is there a way to stop people editing the datatip text? There is no way to turn off the option for users to manually edit the...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Children of axes after using yyaxis right
% Create the axes object ax = axes(); % Plot 'a' and 'b' using the same axes a = plot(ax, 1:10, 1:10, 'DisplayName', 'Test'...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to relabel contour and colormap labels to pre-natural log values
> I plot the natural log of my actual data, but I want the contour labels and colormap to reflect the actual data. > How can I ...

fast 3 Jahre vor | 0

Beantwortet
Remove data tips from Live Editor plots
> How can I remove it interactively? You could click on the black marker at the corner of the datatip indicating the clicked po...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do I remove vertical lines in graphs?
If you zoom into one of those vertical lines you'll see that they aren't vertical and they are a part of your data. Another w...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Problem changing tick label font size
We don't have enough information to troublehoot. One possibility is that the fontsize is not being applied to the intended ax...

fast 3 Jahre vor | 0

Beantwortet
plotting a feather plot for u and v component
If you zoom into your data, you'll see that you've got arrows. load('u10.mat') load('v10.mat') figure(); tcl = tiledlayout...

fast 3 Jahre vor | 0

| akzeptiert

Mehr laden