Answered
large matrix and memory space
It depeneds on what "large" is. If you have some GigaBytes, install more RAM. Having the double size of the array as free RAM is...

9 years ago | 0

Answered
I have row vector r=[1 2 3 4 5 6 7 8 9 10] and from this i generate another row vector of size 4 that is z=randperm(10,4) now i want to randomly select a single element from remaining element of r.
If you select 4 random indices and want to get one element from the remaining indices, it would be easier to select a set of 6 i...

9 years ago | 0

Answered
How do I combine multiple "computer/host " bound license.lic files when providing matlab over the same file share ( nfs-linux)
At first I'd try to keep both files in the same folder and check, if Matlab accepts this. Then I'd join the files. Afterwards I'...

9 years ago | 0

Answered
PDFCROP not recognized on Matlab
What about providing an absolute path? system('\bin\pdf\pdfcrop image.pdf image.pdf') or where this tool is installed.

9 years ago | 1

Answered
For loop for multiple figures
Move the |figure| command and |imshow| outside the loop: for a=1:95 grain(cc.PixelIdxList{a}) = true; end figure...

9 years ago | 0

Answered
Can one version of Matlab access a toolbox from another version?
No. On one hand this will not work. On the other hand it is not covered by the license conditions.

9 years ago | 0

Answered
I have a signal and have marked and plot any points that exceed a power threshold. How can I create a new array of the data points that exceed the threshold? The distance between each point is differs slightly so I can't just write x:y:z
You forgot to mention, how your data are available. If I guess this detail, it might differ from your setup and confuse you. But...

9 years ago | 0

Answered
Pass a variable from workspace to GUI
You can define a ActionPostCallback for the brushing. Then deliver the figure handle as input argument and use: function Br...

9 years ago | 0

Answered
how can I remove this error??
The error does not occur in the shown part of the code. Obviously it must be a line of code, which contains the term "Constraint...

9 years ago | 0

Answered
How can I use single float with filtfilt in matlab coder?
Either convert the signal using |double()|, or use <https://www.mathworks.com/matlabcentral/fileexchange/32261-filterm FEX: Filt...

9 years ago | 0

Answered
Hello, i have the following code but whenever i run it, it returns an error that " Error using xlswrite (line 207) Invalid data range: ."
If the line xlswrite('GRACE2_UG.xls', ug_waterthickness_deficits(:,:,ii),['month_' num2str(ii)]); produces the error ...

9 years ago | 0

| accepted

Answered
Does relative velocity vector lie on the line?
Do you want to calculate the angle between the connection of the 2 points and the relative velocity? Then: u = A - B; v ...

9 years ago | 1

Answered
how can i re-order rows in matrix by deleting un-desired rows by applying the condition to specific column ?
Perhaps: Data = rand(1000, 3); toDelete = Data(:, 3) > Data(1, 3); Data(toDelete, :) = [];

9 years ago | 0

Answered
How to solve the equation of motion of a four bar linkage mechanism by ODE45?
This is not an ODE, but a DAE. Therefore you cannot solve it by ode45. See: * <https://www.mathworks.com/help/matlab/math/sol...

9 years ago | 1

| accepted

Answered
Is there a way to transport a MATLAB plot into OriginLab?
It would not be meaningful to "export a plot" from Matlab to Origin, because plots in Matlab depend on the software. They includ...

9 years ago | 0

Answered
How can I get the location of the mouse click on the screen?
What about asking an internet search engine for "Matlab Psychtoolbox get mouse click"? You will find e.g.: * <http://docs.psy...

9 years ago | 1

| accepted

Answered
how can i get my license
You have to buy it. Or do you mean the File Installation Key? Then a search in the forum will help: <https://www.mathworks...

9 years ago | 0

Answered
Full File Path Quotation Marks (Double vs Single)
You could create your own function to remove the double quotes. function S = Unquoted(S) if length(S) >= 2 if S(1) ...

9 years ago | 0

| accepted

Answered
Is there any error in my code?
The ^3 in (1+x^3) has been forgotton: ... (1+x(i)^3) ... You can do this without a loop also: x = linspace(0,20); ...

9 years ago | 1

Answered
gif an einer bestimmten stelle einfügen
Import the image outside the loop: [img,map] = imread('C:\...\gif5.gif','frames',k); img3 = ind2rgb(img, map); N...

9 years ago | 0

Answered
How to switch show between 2 static text in matlab GUI
Either change the String and Color property of one text object. Or set the 'Visible' property of one to 'on' and the other to 'o...

9 years ago | 0

| accepted

Answered
Why Mathworks provides uncompleted toolboxes?
What does "uncompleted" mean? All toolboxes of Matlab are under development and new features are added with every new release. U...

9 years ago | 0

| accepted

Answered
wondering how to call a specific point in a struct?
Of course you can create a function for this job. The forum will help you to create such a function, if the inputs and the wa...

9 years ago | 0

Answered
How to save output of a recursive function
In the line |comb(n+1,X,A);| the function |comb| is called, but this does not change the value of X, because the output of this ...

9 years ago | 0

| accepted

Answered
Matlab trial installation can't connect
Can you post a copy of the complete error message? Does this help: <https://www.mathworks.com/matlabcentral/answers/92634-why...

9 years ago | 0

Answered
How to terminate a simulation by pushbutton in other script
There is no way to stop |sim1| magically from the outside. But you could provide the handles of a GUI object (the button or the ...

9 years ago | 0

Answered
Efficient use of memory
clearing each matrix after using it will speed up calculations ? It depends on the available RAM. If the RAM is exhausted an...

9 years ago | 1

| accepted

Answered
How to save data in a GUI button callback?
Initialize |handles.j = 0| in the OpeningFcn. Then: handles.j = handles.j + 1; handles.data(handles.j) = englishplot(han...

9 years ago | 0

| accepted

Answered
To accept 2 numbers from the user and display Armstrong number(s) between these numbers.
# Use the "{} Code" button to format the code properly. # |input| replies numbers already, so there is no need for |str2num|. ...

9 years ago | 0

Answered
Does someone know why i am having this error? - *Unable to allocate memory for an incoming image frame due to insufficient free physical memory*. I am recording video and my GUI just record a minute then the error appears
The problem does not concern the GUI, therefore it would be esier, if you post the relevant part of the code only and the *compl...

9 years ago | 1

| accepted

Load more