Question

How to modify the text visibility in a Gui that created using App Designer

Dear Coder, I have develop a gui using AppDeveloper. In a separate main.m file, I would like to display the GUI and change t...

29 days ago | 1 answer | 0

Question

Error in EVALFIS_ Fuzzy Logic Toolbox

Dear Coder, Upon perform fuzzy inference calculations, MATLAB throw the following error Error using evalfismex Illegal para...

11 months ago | 0 answers | 0

Answered

How to efficiently replace NAN with Numirical value a reference vector

Thanks for the quick response. While your approach look elegant, but it consume to much memory if the array become larger. As f...

How to efficiently replace NAN with Numirical value a reference vector

Thanks for the quick response. While your approach look elegant, but it consume to much memory if the array become larger. As f...

1 year ago | 0

Question

How to efficiently replace NAN with Numirical value a reference vector

Dear User, As per the title, may I know how to make the following code much compact and efficient. I wonder if the number of ...

1 year ago | 2 answers | 0

Question

How to efficiently compare two matrix to get a single reference value?

May I know how make the following code more efficient and compact. Specifically, I want to reduce the line ConfMat (logical (...

1 year ago | 2 answers | 0

Question

How to efficiently encode two values as a unique entitiy

Dear all, With respect to the above subject, I wonder if we can make the following code more efficient and compact (reduce the ...

1 year ago | 2 answers | 0

Question

how to efficiently encode two values as a unique entitiy

Dear all, With respect to the above subject, I wonder if we can make the following code more efficient and compact (reduce the ...

1 year ago | 2 answers | 0

Question

How to efficiently replace value at the n last column?

Dear all, The objective was to replace the value at the end of a column. I have make a simple case but wonder if there is anoth...

1 year ago | 1 answer | 0

Question

Does the Equation of Silverman'r rule under MVKSDENSITY function is correct?

Dear All, For the equation of Smoothing window parameter, MATLAB built-in function utilize the Silverman'r rule (it is Silverma...

2 years ago | 0 answers | 0

Question

Alternative of REPMAT routine when working with BSXFUN for a large vector

Dear coder, To make thing clear, I will explain the situation with reference to details along with the code below %% I...

2 years ago | 0 answers | 0

Question

How to indexing directly multiple row?

Dear all, I wonder how we can do direct indexing in compact form, for the following case? In this problem, i want to extract tw...

2 years ago | 1 answer | 0

Question

How to Efficiently randomize N percent index in every column?

Dear Coder, The objective was to mask a signal with different RANDOM noise combination. For example, if we have a signal ...

2 years ago | 1 answer | 1

Answered

How to access different FIELD in structure using CELLFUN

The following line were much more shorter than the originally proposed. load('help_strcCellFun.mat'); vec_SBN_TPR=cellfu...

How to access different FIELD in structure using CELLFUN

The following line were much more shorter than the originally proposed. load('help_strcCellFun.mat'); vec_SBN_TPR=cellfu...

2 years ago | 0

Question

How EFFICIENTLY to extract multiple column base on multiple condition

Dear all, The objective was extract the data from *s.c2*. Depending on the binary state (either 1 or 2) of *s.state*, the data ...

2 years ago | 2 answers | 0

Question

How to access different FIELD in structure using CELLFUN

Dear all, the objective was to access multiple fields (3 fields) located in multiple cell container. CELLFUN was used to make th...

2 years ago | 1 answer | 0

Question

How to EFFICIENTLY extract different length of vector from a different cell container?

Dear all, the idea was to extract different length of vector from a different cell container as demonstrated at the code below. ...

2 years ago | 1 answer | 0

Question

How to EFFICIENTLY name multiple tables located inside a different cells

Dear all, The objective was to rename a table which located inside a different cell container. To make things compact, the CELL...

2 years ago | 1 answer | 0

Question

How to efficiently sort a vector relative to a reference vector

Dear Coder, The objective is to sort a matrix B with respect to the number in a vector A. The following code was implement to a...

2 years ago | 1 answer | 0

Answered

How to select non-NaN from a matrix?

The following should work X = ones(10,4); X(3,4) = NaN; X(3,6) = NaN; X(10,1) = NaN; newData=X((all((~i...

How to select non-NaN from a matrix?

The following should work X = ones(10,4); X(3,4) = NaN; X(3,6) = NaN; X(10,1) = NaN; newData=X((all((~i...

2 years ago | 1

| accepted

Question

How to select non-NaN from a matrix?

Say we are only interested to extract row with only a non-NAN, 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 NaN 0 NaN 1 1 1 1 ...

2 years ago | 1 answer | 0

Question

How to use MESHGRID or NDGRID instead of multiple FOR-Loop?

Dear coder, Briefly, the program objective was to evaluate all possible constant pairs for a different set of condition. Sinc...

2 years ago | 3 answers | 0

Answered

How to use MESHGRID or NDGRID instead of multiple FOR-Loop?

Credit to KSSV & Andrei Bobrov, their proposed idea lead to the solution below. KSSV: His idea allow more flexibility for t...

How to use MESHGRID or NDGRID instead of multiple FOR-Loop?

Credit to KSSV & Andrei Bobrov, their proposed idea lead to the solution below. KSSV: His idea allow more flexibility for t...

2 years ago | 0

| accepted

Question

Any approach faster to concatenate multi dimension cell?

Dear all, The objective was to concatenate multi dimension cell, may I know how to avoid such a FOR loop. Thanks in advanc...

2 years ago | 1 answer | 0

Question

How to access second axes in the PLOTYY syntax?

Dear all, This thread is a continuation from the following <https://www.mathworks.com/matlabcentral/answers/360516-matlab-fai...

2 years ago | 1 answer | 0

Question

How to change target class when using CLASSPERF

Dear all, I wonder, How to specify a particular label as the target class when using CLASSPERF. For example, I want to indic...

2 years ago | 1 answer | 0

Question

MATLAB fail to create Chart with Multiple x-Axes and y-Axes

Dear all, the objective was to two x-Axes and y-Axes. However, I am unable to produce the intended graph even follow the <https...

2 years ago | 1 answer | 0

Question

Unable to modify the X-axis and LINKAXES setting when using YYAXIS

Dear all, the objective was to plot a double YYaxis for a two different signal. In addition, the X-axis will have two different...

2 years ago | 0 answers | 0

Question

What and how to understand the math behind YYaxis syntax in MATLAB

Dear all, I am interested to know how does MATLAB under the syntax YYaxis was able to fitted two signals with different scales....

2 years ago | 1 answer | 0

Question

No ticks being displayed when using XTickLabel

Dear all, The idea was to add ticks label to the x axis with a predefined label. The vector label was a mix of empty cell (i.e....

2 years ago | 1 answer | 0

Question

How to convert cell with numeric and string-nan into TYPE double

Dear all, I have a cell with the combination of number and string NaN. May I know how I can convert the content into a double t...

2 years ago | 1 answer | 0