Answered
Is it possible to have private folders in packages?
Functions stored inside folder/+package/private/ should be visible for M-files in folder/+package/, but for no other functions. ...

9 years ago | 2

Answered
creating loop with two variables
% number of elements of a is always bigger than b This was not considered in the other suggestions. Another solution: ...

9 years ago | 0

Answered
How i can open matlab file from terminal to edit it?
You can open an M-file in Matlab by typing edit File.m If it is not in the current path add the path name also. Alternat...

9 years ago | 3

| accepted

Answered
Matlab compiler c language error
read_csi.c line 65: local_h = mxGetData(prhs[0]); This does not match to the message "missing ; before type". Therefore ...

9 years ago | 1

| accepted

Answered
Bug with rem() function
rem(4.1*100,10) displays 10.00 Correct, it *displays* 10.00. But check the result more precisely: rem(4.1 * 100, 10) - ...

9 years ago | 0

Answered
Connecting an outside function to a GUI.
The question is a little bit vague, so I cannot suggest explicit code. But the general idea is to keep the GUI and the calculati...

9 years ago | 0

Answered
hi everyone, how to solve this problem: 'wget' is not recognized as an internal or external command?
The error message is clear: Your unix system does not know a |wget| function. Note that this is not a Matlab problem. Most likel...

9 years ago | 0

Answered
Selecting last value of tspan ode45
Do not use the parameter as 5th input, because this is deprecated for over 17 years now. See <http://www.mathworks.com/matlabcen...

9 years ago | 0

Answered
P files cannot be analyzed to find their dependencies. Please add P file dependencies manually
I'd start with a web search: Ask your favorite search engine for "Matlab get dependencies of P file". You will find e.g.: https...

9 years ago | 3

| accepted

Answered
GUI Help - How to make MATLAB change an entry in a matrix if the entry isn't 0?
|numel(array==0)| is exactly the same as |numel(array)|. Maybe you mean: nnz(array == 0) or sum(array(:) == 0) o...

9 years ago | 0

| accepted

Answered
Sum that should add up to 0 is giving wrong result. Why is this happening?
Welcome to the world of numerics with limited precision. The result is not "wrong", but exactly what is expected. See <https://w...

9 years ago | 1

| accepted

Answered
Is there a faster way than str2double() to convert from a string array into a matrix containing doubles?
Importing the strings at first is an indirection. The structure of the file looks easy, so what about using |fscanf|? fid =...

9 years ago | 0

| accepted

Answered
How can I upload multiple images with slightly different fileNames like 'file01', 'file02', ..., 'file11' and use them in switch case?
I cannot guess the purpose of this line: case ('%s', fileName{index}) I'm not sure what "upload multiple images with ui...

9 years ago | 0

Answered
how can I download matlab 2006b?
* If you have a license for Matlab and Simulink, you can download old versions directly: <https://www.mathworks.com/downloads/we...

9 years ago | 0

| accepted

Answered
Rotation and translation of an oval
You have the x and y coordinates of the points you use to draw the object. Then simply apply the rotation matrix to them: R...

9 years ago | 0

Answered
How to make a morse code decoder using ismember?
The final output is *not* a column vector, but a cell string. If it is a column vector, it would matter how you implement the br...

9 years ago | 0

| accepted

Answered
Line intersection without polyfitting ?
From the plot?! Why would |polyfit| be useful for finding the intersection of lines? Do you mean the |polyxpoly| command? Did...

9 years ago | 0

| accepted

Answered
setappdata/getappdata: problem of data recovery
I assume the program flow looks like this: # Main function started # |figure| to create the dialog # |getappdata(0, 'Capteu...

9 years ago | 0

Answered
How To Make a 10x10 Matrix Diagonalization Calculator
Why is [V, EV] = eig(A) not a solution of the problem already? Or: roots(poly(A)) ?

9 years ago | 0

Answered
How to use cumsum for data in a table which is not NaN?
idx = ~isnan(Val); Val2 = Val; Val2(idx) = cumsum(Val(idx)); Or: Val2 = cumsum(Val, 'omit...

9 years ago | 1

| accepted

Answered
Generating a graph and uitable to a 2nd gui using a pushbutton
% Guessing that you use GUIDE... function pushButtonCallback(hObject, EventData, handles) data = handles.data; % Or wher...

9 years ago | 0

Answered
I have this code and I want to perform this process on multiple images. kindly help me through code.
[filename, filepath] = uigetfile ({'*.jpg';'*.bmp';'*.png'}, 'File Selector', ... 'MultiSelect', 'on'); filename...

9 years ago | 0

| accepted

Answered
Special plot3 command in Matlab
As you can find the in the documentation of |plot3|, or to be exact at the link to <https://www.mathworks.com/help/matlab/ref/ma...

9 years ago | 1

| accepted

Answered
Increment a variable every time a push button is pressed:
This is such easy, that GUIDE is not needed. function FigH = CreateTheGUI FigH = figure; handles.X = 0; handl...

9 years ago | 0

Answered
I can't seem to change figure font name
Set the default values for the fonts, when you create the figure: font = 'LibreBaskerville-Regular'; figure('DefaultText...

9 years ago | 1

| accepted

Answered
How to pick specified matching part of the string
The example looks like you want the substring from the indices 6 to 10: Data = {'A050K190E3T15R40', ... 'B060L11...

9 years ago | 1

Answered
how can open word file in Matlab and write data in word file
Are you sure? It is a strange request to store outputs in Word. A simple text file would be much smarter and it can be opened in...

9 years ago | 0

Answered
Is there a smaller MCR?
Do you include the runtime libraries and all toolbox function in the compiled application? I've installed the runtime librari...

9 years ago | 0

Answered
set matrix m x n
The body of the loop does not depend on the loop counter: for x = 1:height(PFset) A = [XfmrpfCH XfmrpfCT XfmrpfCL Xfm...

9 years ago | 0

Load more