Answered
I'm trying to set a GUI created by guide as resizeable using the GUI options dialog box. (shown below) When i turn this option on, a few pop up boxes do not work. Can someone help me out?
"Does not work" is not clear enough to understand, what happens or to suggest an improvement. You can create a ResizeFcn easi...

8 years ago | 0

Answered
Getting mean values of RGB feature from image dataset
You can simplify your code to: function f = cifar_10_features(x) f = reshape(mean(x, [1,2]), 1, 3); % Matlab > or >= 20...

8 years ago | 0

Answered
How do i get the maclaurin series for a function with a stopping criterion? My code is giving me the error "logical to sym not possible"
In the first iteration the lines: sum = sum+[diff(f,count)*x^count]/factorial(count); Ea = f - sum; let |Ea| become ...

8 years ago | 0

Answered
how to make a guide with multiple pages to display
Start with asking an internet search engine e.g. for "Matlab GUIDE scroll". You will find: * <https://www.mathworks.com/matla...

8 years ago | 0

Answered
Start script at a chosen line
Using a method to stop and re-enter scripts at arbitrary lines would be a meta-interpreter, which runs on top of Matlab. Such a ...

8 years ago | 0

| accepted

Answered
How to calculate a derivative of function numerically?
A numerical differentiation means a variation of the argument and a quotient of the differences: df = (f(x + h) - f(x)) / h...

8 years ago | 0

| accepted

Answered
Can we create C code from m script (not from m function)??
It is impossible. A C/CPP code must receive some inputs and provide outputs, but scripts do not have a defined input/output inte...

8 years ago | 1

Answered
Normally Spaced Vector (like linspace or normal space)
The question is not clear yet. But a bold guess: x = rand(1, 15) * 40 - 20; Maybe you want sort the values. Or do you...

8 years ago | 0

| accepted

Answered
Help with for loops
In |result1 = [(i+1),i]| you overwrite |result1| repeatedly instead of accumulating the results. A solution would be: resul...

8 years ago | 1

Answered
the expression to the left of the equals sign is not a valid target for an assignment
You mean: if Ta == 0 The "==" is the comparison, while "=" is an assignment. Hints: After |for Ta=1:39| the case "if ...

8 years ago | 0

| accepted

Answered
"warning takes sprintf-like arguments directly" not entirely true?
This is the documented behavior *[EDITED] since R2018b*: doc warning You find: warning(msg,A1,...,An) A1,...,An — ...

8 years ago | 0

Answered
Manipulation of matrices and vectors without using loops
I suggest to test these codes by your own at first. "differ less then 1 from the whole matrix mean" sum(mean(M,'all')<1)...

8 years ago | 0

Answered
Mean and Standard deviation of cell Array column wise
A = readtable('Sampledata.xlsx','Range','A1:A51'); tau_ground = table2array(A); M = str2double(tau_ground(3:end)); me...

8 years ago | 0

| accepted

Answered
How do I make the loop run?
See: <https://www.mathworks.com/matlabcentral/answers/57446-faq-how-can-i-process-a-sequence-of-files FAQ: How to process a list...

8 years ago | 0

Answered
Using a 'for' loop to read gif RGB and pixel index, cant get textscan with 'if' statement to work
It is not clear, what you want to achieve. Do you want to omit writing e.g. "leds[1].setRGB(2, 3, 4)", if this string occurs in ...

8 years ago | 1

| accepted

Answered
How to pass system argument to matlab script?
> matlab -r "x ='E:\Project_Workspace\SVN_Tagging'; code_generation_testing" Wouldn't it be smarter to use a function inste...

8 years ago | 0

| accepted

Answered
How do you set rng once and for all so that it is restored everytime random numbers needs to be generated?
No, this would be extremely confusing and not the nature of a "random number". If you want a function which behaves completely d...

8 years ago | 1

Answered
Select xlim max-value
xmax = max(xlim); This is slightly more expensive than choosing the 2nd element directly, but is is just one additional com...

8 years ago | 1

Answered
How to improve the title appearance?
text(0.5, 0.99, ['Performance = ' num2str( round(improve,2) ) ' \%'], ... 'Units', 'normalized', ... 'interpre...

8 years ago | 0

| accepted

Answered
SWITCH expression scalar or a character vector
Obviously the code contains a bug. You see the failing line in the error message. Ask the author to fix it.

8 years ago | 0

Answered
How to protect an EXE file created using deploytool
As soon as we explain the "best practice" to protect an executable, the methods are known in public, which makes it easier to fi...

8 years ago | 1

| accepted

Answered
How to plot midpoints between the points of circle ?
Create the coordinates of the wanted points directly: x1 = 0; y1 = 0; r1 = 1; n = 3; % Points per quadrant ...

8 years ago | 1

| accepted

Answered
Index exceeds the number of array elements in "X_WW=[X(25);X_WW_psc(1:19)];".
At first you clear everything by the brute and cruel |clear all|. Afterwards you define |X_WW_psc| as global, but the value is n...

8 years ago | 0

| accepted

Answered
Matlab has encountered an internal problem and needs to close
You define |t| as a pointer to a double in: double *t, *k, *r; But now the value of |t| is undefined, maybe set to NULL....

8 years ago | 0

| accepted

Answered
Reading image and pulling, RGB and pixel number from GIF format image
Change fprintf(fid, 'leds[%d].setRGB(%d, %d, %d);\n', crgb); to: fprintf(fid, 'leds[%d].setRGB(%d, %d, %d);\n', pix...

8 years ago | 0

| accepted

Answered
Why is task scheduler causing my compiled stand alone app to fail when it attempts to use xlswrite?
You can start a function with different privileges in the TaskScheduler. So if you run the function as a specific user, which do...

8 years ago | 0

Answered
keyboard shortcut to change focus to command window from App Designer
What about using the fig_keypressfcn and catching Ctrl-0 manually to call |commandwindow|?

8 years ago | 0

Answered
Plotting a huge matrix
Omit the |disp| command, because updating the command window 1e6 times wastes a lot of time. Setting |hold on| repeatedly is not...

8 years ago | 0

| accepted

Answered
how to plot controlchart function into axes GUI
See: <https://www.mathworks.com/help/stats/controlchart.html doc controlchart> (link) parent — The handle of the axes to rec...

8 years ago | 1

| accepted

Answered
Parfor/SPMD and Backwards Euler method for ODEs
Solving ODEs cannot be parallelized in general. This is not a limitation of Matlab's PARFOR/SPMD, but the dependency between the...

8 years ago | 1

Load more