Respondida
Why are the descriptive names of my boxchart categories not visible in my figure?
There are several typos in your (adapted) code. It would be better to share the actual code you're running that produces the pro...

12 días hace | 0

| aceptada

Respondida
How to save videos in a MATLAB standalone application?
In Application Compiler, you can add the videos to the project in the "Files required for your application to run" section.

12 días hace | 1

| aceptada

Respondida
i need to know if its possible to plot a certain number of datas and then plot the next in another plot and so on
% data = load('S196W1.eea'); data = 500*randn(122880,1); % random data the same size as yours n_channels = 16; data_plot = ...

13 días hace | 1

| aceptada

Respondida
How to use a function like reshape but for indivisible parameters?
You'll have to put some additional elements in the vector for the reshape operation to work: A = rand(68,1); N = ceil(numel(...

13 días hace | 0

Respondida
How to add every nth element of an array to the nth+1 element?
a = [1, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 9]; a(3:3:end-1) = a(3:3:end-1)+a(4:3:end); a(4:3:end) = []

13 días hace | 1

| aceptada

Respondida
Data normalization using robust scaling
If you want to normalize all columns the same way (i.e., using the median and inter-quartile range of the entire data set), then...

13 días hace | 1

| aceptada

Respondida
MATLAB config file that loads variables at runtime
Use the app's startupFcn.

13 días hace | 0

| aceptada

Respondida
Why is my errorbar not the same in each direction?
The errorbars are centered around the means (e.g., mean_glu), but the other lines plotted with markers are not using the means (...

13 días hace | 0

| aceptada

Respondida
How do I check if there is a function with the same name
You can loop over the m-files in your folder, call which(_,'-all') on each one, and store information about what which returned:...

13 días hace | 0

Respondida
How to delete variables in a table within a cell array
Here's one way: C = cellfun(@(t)removevars(t,[1 2]),C,'UniformOutput',false);

14 días hace | 0

| aceptada

Respondida
MatLab stays on Run forever and doesn't generate image file
"check my code to see if this is an issue on the coding side or is Matlab just not responding" It is an issue on the coding sid...

14 días hace | 1

Respondida
Opening a Figure from a Function - Not enough input arguments
If you want a callback with 4 inputs, you need to include the additional ones (beyond the first two, which are always callback s...

14 días hace | 1

| aceptada

Respondida
problem with tbl,xvar,yvar form of plot()
what am I doing wrong? param_at_step is a numeric matrix, not a table, so you are not using the tbl,xvar,yvar form of plot().

14 días hace | 0

| aceptada

Respondida
Convert Tables within a cell into Doubles
Here's one way: CoPyData = cellfun(@table2array,CoPyData,'UniformOutput',false);

14 días hace | 0

| aceptada

Respondida
Displaying Text on Paper
You will need to change PaperPosition property of the figure (or the PaperSize property, depending on the output image format yo...

18 días hace | 0

Respondida
How programmatically create an array from variable-length vectors?
If each .mat file contains a structure called "s1" which contains a field "a" which is what you are interested in: F = dir('*.m...

19 días hace | 0

| aceptada

Respondida
array generation using logics.
x = [0 10 20 30 0 10 20 30 40 0 10 20 30 40 50 0 10]; diffx = diff(x(:)); start = find([true; diffx <= 0; true]); dx ...

19 días hace | 0

| aceptada

Respondida
Plot legend with 2-d layout
You can at least get close: x = 1:10; y = randi(10,10,4); figure hold on markers = '^^oo'; colors = 'rbrb'; names = ["A...

20 días hace | 0

| aceptada

Respondida
How to clear the error "Functionality not supported with figures created with the uifigure function." ?
I presume you want that code to iterate over all figures but not uifigures. You could close all the uifigures before running th...

24 días hace | 0

Respondida
Help with 3D Data Contour Plot (Missing Values as Zeros)
One way to present multiple contour plots as slices in the same axes is to specify the ZLocation of each contour object. See bel...

24 días hace | 0

| aceptada

Respondida
Quiver plot of coordinate error with wrong arrow lengths
"some small erros are being draw as bigger lines" That's because each quiver plot scales its own arrows' lengths independently ...

24 días hace | 1

| aceptada

Respondida
Compare times in datetimes
https://www.mathworks.com/help/matlab/ref/datetime.timeofday.html

24 días hace | 1

| aceptada

Respondida
How to change color of berfit curve
Temp_x = [ 9 8 7 6 5 4 3 ]; Temp_y = [ 1e-3 5e-3 1e-2 2e-2 3e-...

25 días hace | 0

| aceptada

Respondida
Figure no longer comes with MenuBar and tools the
You can try set(groot,'defaultFigureMenubar','figure') set(groot,'defaultFigureToolbar','figure') to have the menu ba...

26 días hace | 0

Respondida
contains 函数在运行相同代码时,为什么返回了不同的逻辑数组?
There is a hidden character at the beginning of the first store_name{1} store_name ={'宜昌水果店','武汉水果店'}; +store_name{1} % char...

26 días hace | 0

| aceptada

Respondida
Interpolating for multiple curves and finding the y axis value
x = [0 7.1702 9.1995 9.5716 11.3641 12.0744 12.5141 13.1736 13.4104 13.867 14.7294 15.1015 16.9448 17.0631 17.2322 18.3484 19.00...

26 días hace | 0

Respondida
Error using cat Dimensions of arrays being concatenated are not consistent. Error in cell2mat m{n} = cat(1,c{:,n});
load dataTable NC = cellfun(@numel,dataTable.Cohesion); Cmin = repelem(dataTable.CohesionMin,NC,1); Cmax = repelem(dataTabl...

26 días hace | 0

| aceptada

Respondida
To plot one stem with multiple values for data of different months.
Maybe something along these lines: unzip('Processed_results.zip') % load the files F = dir(fullfile('Processed_results','*....

26 días hace | 0

| aceptada

Respondida
How to combine cell arrays to form one nested cell array entry
% 4x3 instead of 64x634, for demonstration X = { ... {1 2} {3 4} {5 6}; ... {7 8} {9 10} {11 12}; ... {13 14} {1...

27 días hace | 0

| aceptada

Respondida
Checkbox in header row for uitable
It would have to be a separate uicheckbox (or uicontrol) object, separate from the uitable. You can position it to appear to be ...

27 días hace | 0

| aceptada

Cargar más