Beantwortet
Standard deviation in 3D array from 1st to nth number array
To cumulatively compute the std across dimension 3, data = rand(6, 493, 6000); RN = zeros(size(data,[1,3])); for i = 1 : si...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
"Graphics timeout occurred"
Can you reproduce this issue? If so, sharing the steps that reproduce this would be helpful. Nevertheless, please report thi...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
how to compare column values of a matrix with a column vector of different size?
Load data detected = [56 40 33 31 28 13 10 1]; M_transmision = [1 40 -84 -638 6...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Convert double to categorical array
The function categorical can convert continuous data into categorical data. However, this function cannot categorize two numbers...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
'Value' must be double scalar within the range of 'Limits'
Your data contains a NaN value. data=readtable('tests1.csv','NumHeaderLines',9); col_vec=data{:,2}; n = sum(isnan(col_vec));...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
Best way to analyze two waveform signals
Hello @Austin Bollinger, looks like @Jonas has made some good recommendations. I'll add another perspective. My grad school r...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Creating callable function with prompts
txt = input(prompt,"s") Include the "S" in argument 2 to return the entered text without evaluating it. > created a bunch o...

fast 4 Jahre vor | 0

Beantwortet
Set xaxis of imagesc with scaled values
Specify x and y values using imagesc(x,y,C) I think this is what you're looking for C = rand(20,400); % Replace this with your...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
change focus in app desinger
> Is there a way to put the cursor in the editbox without click the box Yes, as of MATLAB R2022a. See the focus function whic...

etwa 4 Jahre vor | 0

Beantwortet
Why is my p-value matrix after using corrcoef filled with NaN?
First check whether you have NaNs in your inputs. If so, that explains why there are NaNs in your outputs. If you do not have...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Missing legend entries in plotyy
Use yyaxis instead of plotyy. Instead of using plotyy(x1,y1,x2,y2) use yyaxis left plot(x1,y1) yyaxis right plot(x2,y2...

etwa 4 Jahre vor | 0

Beantwortet
How to pick maximum value in group?
data = [0.74 0.66 0.58 0.47 0.606 0.705 0.76]; group = [6 6 5 6 5 6 6]; groupsummary(data(:),group(:),'max')...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Using for loop to find values greater than a number in each column.
It's a pitty that the homework assignment requires using a loop since this can be solved in one line of code. y = mat > mean(m...

etwa 4 Jahre vor | 0

Discussion


National Volunteer Week: Contribute to the MATLAB Central Community
<<https://www.mathworks.com/matlabcentral/discussions/uploaded_files/11465/data>>  *20 minutes makes a difference* I...

etwa 4 Jahre vor | 13

Beantwortet
how to create one plot with several contours (corner plot)
As KSSV recommended, tiledlayout is the way to go. tcl = tiledlayout(3,3,'TileSpacing','none'); tileIdx = [1,4,5,7,8,9]; %...

etwa 4 Jahre vor | 0

Beantwortet
Is there a way to set the range of values when using the magic function?
The values returned by magic(n) are not randomly assigned (see documentation). I think what you're describing is randperm. ...

etwa 4 Jahre vor | 0

Beantwortet
Is there a way to set a EditField as ready to accept input in app designer?
Update Starting in MATLAB R2022a. Use the new focus(c) function to set focus to a ui component c. This MATLAB release also...

etwa 4 Jahre vor | 0

Beantwortet
App Designer: control focus on pressing Tab
Starting in MATLAB R2022a, AppDesigner contains a tool to assist with setting tab order there's also a new focus(c) function to ...

etwa 4 Jahre vor | 0

Beantwortet
Setting focus in AppDesigner
> Is there any way programmatically for the menu callback function to shift focus to the textarea object? Yes, starting in MATL...

etwa 4 Jahre vor | 2

Discussion


New in MATLAB R2022a: Modify tab focus order of UI components
<</matlabcentral/discussions/uploaded_files/10759/data>> . *MATLAB R2022a* provides app developers more control over user ...

etwa 4 Jahre vor | 4

Discussion


New in MATLAB R2022a: Control keyboard focus to UI components
<</matlabcentral/discussions/uploaded_files/10699/data>> . *MATLAB R2022a* provides app developers more control over user ...

etwa 4 Jahre vor | 3

Beantwortet
Using LimitsChangedFcn to sync axes of different x-scales
> Sync the xlim of multiple axes with different x-scales such that when zoom and pan are executed all axes shift and scale corre...

etwa 4 Jahre vor | 0

Beantwortet
Index in position 2 exceeds array bounds. Index must not exceed 5
Let's look at the line that's reported to be causing the problem and the error message. maksimum=max(abs(U(i:end,i))); Inde...

etwa 4 Jahre vor | 2

| akzeptiert

Beantwortet
How to make the contour labels (numbers) use the same color as the contour lines?
Generate contour with level labels Adapted from OP's code: a = 1; t = 1; kx = linspace(-4*pi/(sqrt(3)*a), 4*pi/(sqrt(3)*a), ...

etwa 4 Jahre vor | 2

| akzeptiert

Beantwortet
How to create a boxplot of multivariable?
Use boxchart along with the GroupByColor parameter. There's a nice demo in the documentation. However, that will not provide n...

etwa 4 Jahre vor | 0

Beantwortet
How to change the datatip format in a plot with a datetime axis?
Specify the format by setting the Format property of the data tip template. % Create plot dt = datetime('today')+days(1:5); ...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to plot a data which 3 columns using bar3 function
bar() is not designed to set the x-location of bars. One workaround is to use histogram2 but histograms are designed for contin...

etwa 4 Jahre vor | 0

Discussion


New in MATLAB R2022a: export graphics to animated GIFs
Starting in *MATLAB R2022a*, use the *|<https://www.mathworks.com/help/matlab/ref/exportgraphics.html#mw_45a0190f-8596-49c2-b5dc...

etwa 4 Jahre vor | 8

Beantwortet
how to plot binned data?
> I need to check the relation between temperature and aerosol conc. for each bin It looks like you're comparing the median val...

etwa 4 Jahre vor | 0

| akzeptiert

Mehr laden