Risposto
Find approximate match between 2 matrices.
You can try <https://www.mathworks.com/help/stats/pdist2.html |pdist2|> with a custom distance function: a function that returns...

oltre 8 anni fa | 0

| accettato

Risposto
Toolbox list that is under the same license is different on Window and Linux
The reason is that this toolbox seems not to be available on Linux at all (nor on Mac): <https://www.mathworks.com/products/avai...

oltre 8 anni fa | 1

| accettato

Risposto
catch or catch something? - Try, catch, end.
If you take a look at the documentation, you can see that |catch ME| stores the exception (all error information) in the variabl...

oltre 8 anni fa | 0

| accettato

Risposto
How can I sum anonymous functions?
You need to initialize |Hn| as an anonymous function as well: Hn = @(t) 0;

oltre 8 anni fa | 0

| accettato

Risposto
Conditional split into columns
You might be able to bodge this together with a conversion to |char|, use |strsplit| (or even |textscan|), and use |cellfun| to ...

oltre 8 anni fa | 0

Risposto
what is wrong with my code? vertcat error
The dimensions of matrices being concatenated are not consistent. |t| is a row-vector, 0 is not. Apart from that, |a| will ha...

oltre 8 anni fa | 0

Risposto
Save informations in handles and make them accessible through guidata.
handles.files = cell(length(F),2); guidata(hObject, eventdata) What you do there is incorrect. It tells Matlab to save the...

oltre 8 anni fa | 1

| accettato

Risposto
Compute negative image processing pixel by pixel
Congratulation, you came up with a better solution than the one your instructor asked you. You can even make this one shorter: ...

oltre 8 anni fa | 2

| accettato

Risposto
Color Plot in MATLAB
<https://www.mathworks.com/help/matlab/ref/convhull.html |convhull|> could get you most of the way.

oltre 8 anni fa | 0

Risposto
controlling the directory of the output file?!
You can get the filename and name of the current function with |dbstack|: ST = dbstack('-completenames'); ST = fil...

oltre 8 anni fa | 0

| accettato

Risposto
Is there a way to change default editor font and background color?
Go to your 'Home' tab in the lint and click the preferences button. There you will find all available settings. You will need to...

oltre 8 anni fa | 3

| accettato

Risposto
How do I write this function and plot it?
There are many ways you can solve this. This approach is by no means the most efficient, fast or elegant, but I think it shows a...

oltre 8 anni fa | 0

Risposto
GUI slows down when plotting to figure sequentially
With |hold on| your plot is containing more data every loop, which slows down your function. A solution is to not use |hold on|,...

oltre 8 anni fa | 1

Risposto
Error using get, Invalid handle
Have a read <https://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answe...

oltre 8 anni fa | 0

Risposto
find the distance from 1 point to all point
The implicit expansion introduced in R2016b can make life easier (here it can make the command a bit shorter), but I'm going to ...

oltre 8 anni fa | 1

| accettato

Risposto
How to change the white lines to black?
Yes. If you convert this to a greyscale image, you should be able to determine a threshold that covers most white/grey pixel....

oltre 8 anni fa | 0

Risposto
How to gracefully terminate continiuous script?
What I have done in a GUI is adding a button that is only visible when a callback is active. Each iteration of the loop I first ...

oltre 8 anni fa | 0

Risposto
How do I loop 10 questions, and tell in my codes if it´s right or wrong?
Just wrap your code in a for-loop: for n_question=1:10 %slumpa tal mellan 1-10 och lagra det i variabeln X eller Y x=rand...

oltre 8 anni fa | 0

Risposto
[68 65 6c 6c 6f 20 68 6f] i want to convert this vector into a matrix 4*4 with nibble (4 bits)?
All you changed with |format hex| is the way Matlab shows you the values, you didn't actually change the values. You can convert...

oltre 8 anni fa | 0

| accettato

Risposto
Possibility of decompiling .exe to m files?
Have you tried _insert favorite search engine_? My first hit was <https://www.mathworks.com/matlabcentral/answers/32091-decompil...

oltre 8 anni fa | 0

Risposto
eval vz feval, different results
The reason would depend on a slightly different method of calculation and rounding. I don't think the exact difference is really...

oltre 8 anni fa | 0

Risposto
Change axis property in GUIDE
Why not use the |set| command directly on your handle? set(handles.EEGAxes, 'XTick', 0:5:(cislo)/fvz); set(handles.EEGAxes...

oltre 8 anni fa | 0

Risposto
Setting the Choice in a popup-menu
Just use the |set| function: set(DropdownObject,'Value',3) %set the dropdown selection to the third option without running...

oltre 8 anni fa | 1

| accettato

Risposto
how to plot the magnitude of x(k) in matlab
You already have a function, you just need to calculate the magnitude, which is just the |abs| function. The thing is, you can s...

oltre 8 anni fa | 0

| accettato

Risposto
Is is possible to convert 8bit RGB image to 24bit?
According to the <https://www.mathworks.com/help/matlab/ref/imwrite.html doc for |imwrite|>, you should be able to write 24 bit ...

oltre 8 anni fa | 0

Risposto
How I can change some of color in my RGB picture
Convert this to a binary image, making white pixels true, and the rest false. You will notice you have 5 groups of pixels, the s...

oltre 8 anni fa | 0

Risposto
How to convert character cells to date?
Cells can be tricky to work with. The problem you encountered here is that you can't batch-process cells this way, you'll need t...

oltre 8 anni fa | 1

Risposto
recursive function hangs after a few steps
I think you should run this in a loop, not as a recursive function. Just pre-allocate an array and loop through it. Added bonus ...

oltre 8 anni fa | 0

Risposto
While Loop Plotting Single Point Values
If you have only single points, don't try to plot a line. You need to specify a format that plots points, like '.', '*' or 'd'. ...

oltre 8 anni fa | 0

Risposto
Create help that displays in the help window for a variable that loads in the workspace.
As far as I know, it is impossible to have a mouse-over with more information for variables. The only solution would be to have ...

oltre 8 anni fa | 1

Carica altro