Respondida

I keep getting error for undefined function or variable, and I am not sure how to fix it

Post the full error text. I'm pretty sure it doesn't say line 5. |Y1| and |Dmge| might be defined in your base workspace, bu...

I keep getting error for undefined function or variable, and I am not sure how to fix it

Post the full error text. I'm pretty sure it doesn't say line 5. |Y1| and |Dmge| might be defined in your base workspace, bu...

casi 5 años hace | 0

| aceptada

Respondida

Print column value for lowest element in each row of an 2D array

Why do you want to |fprintf| the result? Anyway, try: fprintf('%d\n',idc);

Print column value for lowest element in each row of an 2D array

Why do you want to |fprintf| the result? Anyway, try: fprintf('%d\n',idc);

casi 5 años hace | 0

| aceptada

Respondida

I'm given a data set of over 7500 points (generated by an ECG) and I need to find all of the relative max and mins.

Have you tried the |<https://www.mathworks.com/help/releases/R2017b/matlab/ref/islocalmin.html islocalmin>| and |<https://www.ma...

I'm given a data set of over 7500 points (generated by an ECG) and I need to find all of the relative max and mins.

Have you tried the |<https://www.mathworks.com/help/releases/R2017b/matlab/ref/islocalmin.html islocalmin>| and |<https://www.ma...

casi 5 años hace | 0

Respondida

Matrix and tables fusion

Assuming a |table| output variable is acceptable: Var1 = randi(99,10,2); Var2 = randi(10,10,1); T = table(Var1,Var2) ...

Matrix and tables fusion

Assuming a |table| output variable is acceptable: Var1 = randi(99,10,2); Var2 = randi(10,10,1); T = table(Var1,Var2) ...

casi 5 años hace | 0

Respondida

How to obtain radio button index in APP Designer

There are a few ways to do it, each with a different level of impact to your code. The way that requires no changes except a ne...

How to obtain radio button index in APP Designer

There are a few ways to do it, each with a different level of impact to your code. The way that requires no changes except a ne...

casi 5 años hace | 0

| aceptada

Pregunta

Listening to uimenu ChildAdded event causes screen print

Does anybody know why the following code: m = uimenu(figure,'Text','ParentMenu'); lsn = addlistener(m,'ChildAdded',@(~,~...

casi 5 años hace | 0 respuestas | 0

Respondida

what a sign for this error ?

There's not a lot to go on, but my only guess is you don't have MS Office Excel installed on a Windows machine. Without Excel i...

what a sign for this error ?

There's not a lot to go on, but my only guess is you don't have MS Office Excel installed on a Windows machine. Without Excel i...

casi 5 años hace | 0

Respondida

Symbolic indefinite integral of piecewise function gives wrong results

I disagree that the second attached image "obviously is not a correct antiderivative of the given function." If you take its de...

Symbolic indefinite integral of piecewise function gives wrong results

I disagree that the second attached image "obviously is not a correct antiderivative of the given function." If you take its de...

casi 5 años hace | 1

Respondida

How to generate sequenced file names with file extensions?

See the <https://www.mathworks.com/help/matlab/ref/num2str.html#btf97wr documentation for num2str> to find the |formatSpec| inpu...

How to generate sequenced file names with file extensions?

See the <https://www.mathworks.com/help/matlab/ref/num2str.html#btf97wr documentation for num2str> to find the |formatSpec| inpu...

casi 5 años hace | 1

| aceptada

Respondida

How to preallocate to decrease run time?

You can use |unique| to make your loop more robust. Then, logical indexing is much better than the |find| you've included. In ...

How to preallocate to decrease run time?

You can use |unique| to make your loop more robust. Then, logical indexing is much better than the |find| you've included. In ...

casi 5 años hace | 0

| aceptada

Respondida

AppDesigner UIListBox Multi-Select Corrupts .MLAPP File

A second approach that somebody out there might have more luck with is to hack the .MLAPP file directly. I know it's just a .ZI...

AppDesigner UIListBox Multi-Select Corrupts .MLAPP File

A second approach that somebody out there might have more luck with is to hack the .MLAPP file directly. I know it's just a .ZI...

casi 5 años hace | 0

Respondida

AppDesigner UIListBox Multi-Select Corrupts .MLAPP File

It isn't the best, but I found out the "corrupted" .MLAPP files will open in newer releases just fine. This doesn't help if you...

AppDesigner UIListBox Multi-Select Corrupts .MLAPP File

It isn't the best, but I found out the "corrupted" .MLAPP files will open in newer releases just fine. This doesn't help if you...

casi 5 años hace | 1

Respondida

Plotting very slow and took long time to launch plot tool

Given information from your comments that y is 50x1801, the command plot(x,y,'LineWidth',2); Will already plot *all* 50 ...

Plotting very slow and took long time to launch plot tool

Given information from your comments that y is 50x1801, the command plot(x,y,'LineWidth',2); Will already plot *all* 50 ...

casi 5 años hace | 1

Respondida

How to retrieve an extension type based on the location of a folder that is storing images?

The |ext| has to be empty, you've used |uigetdir| and directories can't have extensions. Your best bet is do a quick |dir| on t...

How to retrieve an extension type based on the location of a folder that is storing images?

The |ext| has to be empty, you've used |uigetdir| and directories can't have extensions. Your best bet is do a quick |dir| on t...

casi 5 años hace | 0

Respondida

How to write a char variable as filename in xlswrite

xlswrite([PST],'.xlsx',data,1,'A1') Passes '.xlsx' as the second input argument to |xlswrite|. You want to concatenate it ...

How to write a char variable as filename in xlswrite

xlswrite([PST],'.xlsx',data,1,'A1') Passes '.xlsx' as the second input argument to |xlswrite|. You want to concatenate it ...

casi 5 años hace | 0

| aceptada

Respondida

Assign a "double-column" to a "cell-coloumn"

You can replace _one entire_ column with NaN very simply: tableVariable.VarWithErrors = NaN(height(tableVariable),1); To...

Assign a "double-column" to a "cell-coloumn"

You can replace _one entire_ column with NaN very simply: tableVariable.VarWithErrors = NaN(height(tableVariable),1); To...

casi 5 años hace | 0

| aceptada

Respondida

The documentation for the Simulink Generic Battery Model seems wrong

That bug report link asks me to log into my MathWorks account, and doesn't say anything about SalesForce. After logging in, the...

The documentation for the Simulink Generic Battery Model seems wrong

That bug report link asks me to log into my MathWorks account, and doesn't say anything about SalesForce. After logging in, the...

casi 5 años hace | 0

Respondida

How to make a modal window generated during openingFcn on top of the GUIDE window

Use |uiwait|. h = warndlg(. . .); uiwait(h); %%% These commands won't execute until warndlg is closed %%% I.e., yo...

How to make a modal window generated during openingFcn on top of the GUIDE window

Use |uiwait|. h = warndlg(. . .); uiwait(h); %%% These commands won't execute until warndlg is closed %%% I.e., yo...

casi 5 años hace | 0

| aceptada

Respondida

Editor and command windows next to each other, Part 3

Preferences (including layouts) are user-specific. As Paolo explained, your layout is already saved every time MATLAB closes (p...

Editor and command windows next to each other, Part 3

Preferences (including layouts) are user-specific. As Paolo explained, your layout is already saved every time MATLAB closes (p...

alrededor de 5 años hace | 0

Respondida

Problem Diagnosing Adding Vectors to Cell Array

Can't track for sure, but it looks like |Q| is a scalar. I think you want to replace: for j = 1:length(Q)-1 % length(Q) = ...

Problem Diagnosing Adding Vectors to Cell Array

Can't track for sure, but it looks like |Q| is a scalar. I think you want to replace: for j = 1:length(Q)-1 % length(Q) = ...

alrededor de 5 años hace | 0

| aceptada

Respondida

How to correct this?

If the first non-comment line is not a |function| declaration (or a few other options such as |classdef|), the file is a _script...

How to correct this?

If the first non-comment line is not a |function| declaration (or a few other options such as |classdef|), the file is a _script...

alrededor de 5 años hace | 0

Respondida

Extracting Exponential Numbers from Cell Arrays

You're already using |textscan|, did you try the <https://www.mathworks.com/help/matlab/ref/textscan.html?s_tid=srchtitle#btg0ke...

Extracting Exponential Numbers from Cell Arrays

You're already using |textscan|, did you try the <https://www.mathworks.com/help/matlab/ref/textscan.html?s_tid=srchtitle#btg0ke...

alrededor de 5 años hace | 0

| aceptada

Respondida

Matlab doesn't change MarkerSize

The unit of 'MarkerSize' is 'points' which is typically 1/72 inch. Depending on your OS, there are usually 96 pixels per inch. ...

Matlab doesn't change MarkerSize

The unit of 'MarkerSize' is 'points' which is typically 1/72 inch. Depending on your OS, there are usually 96 pixels per inch. ...

alrededor de 5 años hace | 2

| aceptada

Respondida

uisetcolor -- IPC process exited. Exit code: 127

See <https://www.mathworks.com/matlabcentral/answers/321269-opening-uisetcolor-extremely-slow-r2016b here> for reverting to the ...

uisetcolor -- IPC process exited. Exit code: 127

See <https://www.mathworks.com/matlabcentral/answers/321269-opening-uisetcolor-extremely-slow-r2016b here> for reverting to the ...

alrededor de 5 años hace | 1

Respondida

plotyy: changing the line-style to 'o--'

'o--' and others are shortcut inputs to |plot| commands when you *don't* pass a parameter. In this case, you are specifying a _...

plotyy: changing the line-style to 'o--'

'o--' and others are shortcut inputs to |plot| commands when you *don't* pass a parameter. In this case, you are specifying a _...

alrededor de 5 años hace | 2

| aceptada

Respondida

how to get combination

If you have the Symbolic Math Toolbox, you can use the |<https://www.mathworks.com/help/symbolic/divisors.html divisors>| functi...

how to get combination

If you have the Symbolic Math Toolbox, you can use the |<https://www.mathworks.com/help/symbolic/divisors.html divisors>| functi...

alrededor de 5 años hace | 0

Respondida

Error scatter plot time vs wind speed (data from a table)

You're misunderstanding how MATLAB operates. Functions like |table2array| don't manipulate the variable _in place_, they return...

Error scatter plot time vs wind speed (data from a table)

You're misunderstanding how MATLAB operates. Functions like |table2array| don't manipulate the variable _in place_, they return...

alrededor de 5 años hace | 0

Respondida

Error when trying to change the colour of a line in a figure

_Error using matlab.ui.internal.dialog.WebColorChooser/show (line 72)_ indicates you're using |uisetcolor|, and that's causing t...

Error when trying to change the colour of a line in a figure

_Error using matlab.ui.internal.dialog.WebColorChooser/show (line 72)_ indicates you're using |uisetcolor|, and that's causing t...

alrededor de 5 años hace | 2

| aceptada

Respondida

How to show an individual YTickLabel to the right of the single Y axis?

It isn't elegant, but space pad the tick label until it shows up better.

How to show an individual YTickLabel to the right of the single Y axis?

It isn't elegant, but space pad the tick label until it shows up better.

alrededor de 5 años hace | 0

Respondida

How to adjust the locations of characters in biplot?

The output of |biplot| is an array of handles. In there will be the variable labels. Each has a _position_ property you can man...

How to adjust the locations of characters in biplot?

The output of |biplot| is an array of handles. In there will be the variable labels. Each has a _position_ property you can man...

alrededor de 5 años hace | 0