Answered
hi all, I am trying to open a file with .001 extension , fopen gives error. can you please help?
|fopen| replies -1, if the name is a folder.

9 years ago | 0

Answered
how to convert a .mp3 to .wav file in matlab?
Use meaningful names for variables. |audioread| does not reply a file name. filename = 'C:\Users\Rini Indrayani\Documents\M...

9 years ago | 1

Answered
Comparing two Matrix for similar elements
Does only A(1,1) occur in your porblem? Then: c = (A(1,1) == B) or if the number of equal elements is wanted c = su...

9 years ago | 0

Answered
Does matfile size influence simulink calculation ?
A MAT file in one of the folders of the |path| does not influence the computing speed. If Matlab loads a function, the number of...

9 years ago | 0

Answered
Not Having two occurences of a number consecutively in a matrix line
X = repmat(1:8, 6, 4); n = 32; for iRow = 1:6 row = X(iRow, :); ready = false; while ~ready row ...

9 years ago | 1

| accepted

Answered
Is parallel compute toolbox necessory when I solved a problemes using parallel comupting method?
Well, yes, you need the Parallel Comüuting Toolbox to use the Parallel Computing Toolbox. But you can solve a problem with paral...

9 years ago | 0

| accepted

Answered
How to compute the average between vectors not as 'element by element'?
Imagine your function is: f(a,b,c, t) = a + b * sin(c * t) If now a, b, c are {-1, +1}, averaging let f vanish. If a, b ...

9 years ago | 0

Question


Thanks for the productive cooperation
Dear users and admins of Matlab's Answers forum, Many contributors help others to solve their Matlab problems here in a const...

9 years ago | 2 answers | 7

2

answers

Answered
How can you change the color and size of the elements in the matrix as shown below?
You cannot change the color of the elements of a cell string. Cell strings are cell arrays, which contain CHAR vectors. There is...

9 years ago | 0

Answered
Solving a system of 6 differential equations to find a dynamic solution
The bunch of globals called "z1, z2, ..." is really ugly. I would not dare to debug the formula. See <http://www.mathworks.com/m...

9 years ago | 0

| accepted

Answered
How to convert a .txt file into .mat
fid = load('text.txt') ??? This is guessed only, isn't it? The |load| command does not reply a file identifier. Please take...

9 years ago | 1

Answered
How do you add a header to a printed figure?
Add a text to an invisible axes covering the complete figure: AxesH = axes('Units', 'Normalized', 'Position', [0,0,1,1], 'V...

9 years ago | 1

Answered
Why do I get the error message: "Undefined function 'isinf' for input arguments of type 'struct'."?
You can check the type of the variables: x = (0:0.2:5)'; y = 2*exp(-0.2*x) + 0.5*randn(size(x)); class(x) class(y)...

9 years ago | 0

Answered
How to write a condition ?
A bold guess: isfinite(moyenne) & moyenne <= -6.95

9 years ago | 0

Answered
Ersetzern Sie alle Indices die Sie in Teilaufgabe c) ermittelt haben, mit einer einzigen Anweisung durch die Zahl 77, und weisen das Ergebis einer Matrix mit dem Namen C5_77 zu.
Indices = C(find(C>5)) This does *not* reply the "indices", as the names of the variable implies, but the values of C, whic...

9 years ago | 0

| accepted

Answered
problems with parallelizing the code
You can collect the outputs |aux_end| and |me| of every |parfor| loop in a cell string and perform the addition afterwards. Most...

9 years ago | 0

| accepted

Answered
Undefined function for input arguments of type 'char'.
You have posted the code of the function Window_one. The error message shows, that the file "Windows_one.m" cannot be found. Has...

9 years ago | 0

Answered
what's is the meaning of 60s MATLAB compute timeout, and the difference between 20s MATLAB compute timeout?
In the free edition the calculations inside Matlab are allowed to take up to 20 seconds. If you need a reaction time of up to 60...

9 years ago | 0

Answered
From where Can I get trial pack of Matlab R2009a? My computer is Windows 7 ultima, 32 bit, Memory 2.5 GB. I have not too much space in my C drive. So, recent trial pack is not suitable for me.
You can get trials of older Matlab versions, if you contact Mathworks directly. The forum is mainly supported by voluntary Matla...

9 years ago | 0

Answered
how to make a constant global so all packages files use it?
As Stephen has explained already, passing variables as arguments is the best practice. If you have really good reasons to def...

9 years ago | 3

| accepted

Answered
Using loop to fill new matrixes
The code does exactly what is expected: corrs = trials(k,:); This overwrite the contents of |corrs| in each iteration. B...

9 years ago | 0

Answered
field displacement array range
The |continue| statement prevents the code from creating any variables. for Dy = -max_displ:9: max_displ if x+Dx<1 | ...

9 years ago | 0

Answered
How can I get value pi with monte carlo in 3D case
:-) %V=3/4 pi*r^3; No, it is |4/3 pi*r^3|. Then the approximation is: pi_approx = 6 * inside / n You can simplif...

9 years ago | 1

| accepted

Answered
how to write number into uitable?
"x=x0±0.01" is not a number. You can write this as a string only. Then you can parse the strings when the data are used.

9 years ago | 0

| accepted

Answered
Problem plotting data in matlab GUI
|handles.axes1| is the handle of an |axes| object. If you want to set one of its properties, you have to specify the name of the...

9 years ago | 1

| accepted

Answered
How do you place subscripts and superscripts on a panel on the fly.
You forgot to mention the type of the handle.txt1 object. It is *not* a "text string", but it might be an |uicontrol('Style', 't...

9 years ago | 0

Answered
Can matlab record or capturing data in network automatically
This is not a job for Matlab. There are dedicated programs for the network analysis, therefore I do not see a reason to let Matl...

9 years ago | 0

Answered
Searching for non maximal values
See <https://www.mathworks.com/help/signal/ref/findpeaks.html |findpeaks|> . If you have determined the peak positions, you can ...

9 years ago | 0

Answered
How to impose Binary mask on rgb color image
RGB = rand(640, 480, 3); % Test data mask = rand(640, 480) > 0.2; mask3 = cat(3, mask, mask, mask); RGBm = RGB; ...

9 years ago | 3

Load more