Respondida
How to get brushed data point index from Plot?
Continuing from your code... brushedPoints = [brushed_x(:), brushed_y(:), brushed_z(:)]; dist = pdist2([xd(:),yd(:),zd(:)], br...

alrededor de 5 años hace | 1

| aceptada

Respondida
App Designer 2020a: synchronizing UIAxes
You specified using Matlab R2020A which prevents you from using the new LimitsChangedFcn available in R2021a and onward which wo...

alrededor de 5 años hace | 1

Respondida
How to calculate the number of consecutive negative values in an array before a positive appears?
c = [-0.4607 -0.4659 -0.5165 -0.5168 -0.5164 -0.4626 -0.4668 -0.3730 -0.3426 0.3224 ,... 0.3251 0.3270 ...

alrededor de 5 años hace | 0

Respondida
3Dplot suggestions on azimuthal data
There are lots of 3D plots. Here are two examples using a 3D bar plot and a 3D surface. data = [ 45 33 25 60 32 34 50 9 ...

alrededor de 5 años hace | 0

| aceptada

Respondida
App designer - Automatically scale app to the size of the screen it is used on
Select Auto Resize Children from the property inspector (see screenshot). It's also worth your time to read through other opti...

alrededor de 5 años hace | 0

| aceptada

Respondida
Obtaining the Gaussian equation for a distribution
This demo creates a noisy gaussian with unknown random parameters and then fits the data using lsqnonlin. 1. Create noisy gaus...

alrededor de 5 años hace | 0

Respondida
save multiple gui window in appdesigner
In the m-file, before creating the first figure, store a list of pre-existing figures. Hint: findobj(0,'type','figure') After c...

alrededor de 5 años hace | 0

Respondida
Creating a cell for each plot grid
At first I would like to display an empty graph spaced by 2. For this purpose both axes have value from 0 to 10 stepped by 2. ...

alrededor de 5 años hace | 0

| aceptada

Respondida
combining 4 csv files with and without headers
You can use outerjoin to join the first 2 tables into 1 table. It's not entirely clear how you're indexing the 3rd table into t...

alrededor de 5 años hace | 0

Respondida
Goodness of fit , residual plot for fminbnd fitting
See matlab's documentation on goodness of fit. There are lots of options and you've got all the variables you need to move forw...

alrededor de 5 años hace | 1

| aceptada

Respondida
Trying to shift/recenter map and data
You can wrap your longitudinal values to [-180,180] using wrapTo180() which requires the mapping toolbox. Or you could use wrap...

alrededor de 5 años hace | 0

| aceptada

Respondida
How to customise legend?
A clean and efficient approach is to assign the display names to the scatter objects and then specify the handles to include in ...

alrededor de 5 años hace | 0

| aceptada

Respondida
How can I set a minimum window size for an app developed in app designer?
Set the minimum size as an app property named minSize defined by 1x2 vector describing the minimum [width, height] (see how to d...

alrededor de 5 años hace | 0

| aceptada

Respondida
Splitapply: Returning multiple output values
Use arrayfun instead. A = array2table(rand(100,1)); A.Properties.VariableNames{1} = 'Row1'; A.Row2 = rand(100,1); B = [1:1:1...

alrededor de 5 años hace | 2

Respondida
if and switch statement
To answer your question, you would use case num2cell(1:50) But a switch/case is not the optimal method in this context. What...

alrededor de 5 años hace | 1

| aceptada

Respondida
How to draw perpendicular line from scatter points in 2-D plot
How to plot horizontal and vertical lines from axes to data point clf() ax = gca(); hold(gca,'on') x=[0:0.02:2]; y=sin...

alrededor de 5 años hace | 0

| aceptada

Respondida
How do I rename each individual item in a column in one function?
Create a list of the new names within a cell array and then use deal to distribute the list to the label fields. Demo: D.tria...

alrededor de 5 años hace | 0

Respondida
It's showing Unrecognized function or variable 'paddedsize'. Error in Untitled (line 7) PQ = paddedsize(size(footBall)); error
paddedsize is not a Matlab function. A quick google search resulted in these two leads that may be helpful to identify that f...

alrededor de 5 años hace | 0

| aceptada

Respondida
Naming output excel-file via edit field in Appdesigner
> I know i can access the string of the edit field via the command 'app.DateinameEditField.Value', but how can I connect it to ...

alrededor de 5 años hace | 0

| aceptada

Respondida
How to find the difference in values present in each row of two cell arrays of same size.
I want to find the difference between A and B. Set up a loop that runs isequal(A,B) on pairs from cell array A and B. A = {1...

alrededor de 5 años hace | 0

| aceptada

Respondida
Find distance and total number of overlapping points in a figure
The points are overlapping because of the marker size and the data resolution set by the axis limits. If you zoom in or use sma...

alrededor de 5 años hace | 0

| aceptada

Respondida
Run a function erverytime a new Datatip is selected (Callbacks for datatips)
You can set the UpdateFcn of datacursormode. The function will execute every time a datatip is added. You can do anything you ...

alrededor de 5 años hace | 1

Respondida
How to write an automatic function based on the median of data to form groups of data.
% Create demo data : nxm matrix with 1 box per column rng('default') data = rand(100,15) + [1.0 1.3 0.8 0.95 1.02 1.05 1.08 ...

alrededor de 5 años hace | 1

| aceptada

Respondida
In matlab app designer, how can we connect two or three app.mlapp?
<https://www.mathworks.com/help/matlab/creating_guis/creating-multiwindow-apps-in-app-designer.html Creating multi-window apps i...

alrededor de 5 años hace | 0

Respondida
Sending Emails with MATLAB
You probably have to re-enable the feature in your email account (more info for gmail). If you're using gmail, the link to en...

alrededor de 5 años hace | 1

| aceptada

Respondida
plot and left axis off
Turn off right-y-axis This solution is similar to another answer provided a few days ago. It uses yyaxis to add a second, inde...

alrededor de 5 años hace | 0

Respondida
I want better packed sphere
This file exchange submission offers a method of uniform sampling along the surface of a sphere. After looking at the documenta...

alrededor de 5 años hace | 0

| aceptada

Respondida
How to display subscript for ColumnName of UITable in Design App?
If you're willing to use a different subscript letter, you can use one of the available unicode subscripts (a,e,h,i,j,k,l,m,n,o,...

alrededor de 5 años hace | 1

| aceptada

Respondida
condition on random generated data
> if row value 1 > 0.5 and column value 1> 0.6 than print true else false It sounds like you are only interested in assessin...

alrededor de 5 años hace | 0

| aceptada

Respondida
Zero correlation coefficient, example
This answer explains why NaN values may appear in correlations. Make sure your inputs avoid those errors. If you have trouble...

alrededor de 5 años hace | 0

Cargar más