Answered
is there any way to simultaneously display an audio input onto a graph as the sound is being detected?
I would use the DSP System Toolbox for this. It provides tools that allow for streaming audio. To get you started: <http://...

12 years ago | 0

Solved


Find offset of given matrix element from first matrix element
Given matrix m and an element of that matrix, return the offset from its first element. e.g. m=[11 2 34; 40 51 6; 87 8 109] el...

12 years ago

Answered
Sum the digits of a number?
<http://www.mathworks.com/matlabcentral/cody/problems/2040-additive-persistence>

12 years ago | 1

Answered
Grey Level Co-occurrence matrix
There's a function |graycomatrix| in the Image Processing Toolbox that does this. <http://www.mathworks.com/help/releases/R20...

12 years ago | 0

| accepted

Answered
Opening A directory of folders and accessing data within each folder
Both |for|-loop signatures look like the following, which is likely invalid. for k = numel mainFolder.name What you like...

12 years ago | 0

Answered
Matlab errors when attempting to publish
This error can be seen if: v = ver('matlab') Returns a structure array instead of a single structure. This can happen if...

12 years ago | 1

Solved


Test
Answer the question and the correct answer write in vector. Only one answer is correct. 1a Yes 1b No 1c No 1d No ...

12 years ago

Answered
Wrong answers given by MATLAB LU Factorization
The behavior you are seeing is described in *Example 1* of the |lu| documentation: <http://www.mathworks.com/help/releases/R2...

12 years ago | 0

Answered
C++ or MATLAB or Java or other for very complicated Mathematical operations in Physical Chemistry lasting for days, months or even years?
Your description is really too vague to give you an answer. Remember, you need to include: requirements time + development...

12 years ago | 0

Answered
Editbox multiple lines gui
Something along these lines? h = uicontrol('Style','edit',... 'Units','normalized',... 'Position',[0.1 0.1 0.8 0....

12 years ago | 0

| accepted

Answered
Random Numbers in Parallel Environment
Does every execution create the same results if you do not reinitialize the matlabpool by closing and opening it? Unable to r...

12 years ago | 1

Answered
Creating a new toolbox
I would have an installation file that unzips all of your MEX/MATLAB files into a specific directory (or directory structure) an...

12 years ago | 0

| accepted

Answered
Why export_fig won't work if code is run automatically?
Did you |drawnow()| before exporting/printing?

12 years ago | 1

Answered
How to check if a pair of longitude and latitude is within an irregular circle?
You could try using |interpm| from the Mapping Toolbox along with |inpolygon|

12 years ago | 0

| accepted

Answered
How can i remove for loops?
Just preallocating Rup should speed this up: First line: Rup = zeros(size(A));

12 years ago | 0

| accepted

Answered
Errors when editing an image
You need to pass the image in too: filter.Apply(obj); But |filter.Apply| expects |(obj,img)| function [ img_o ] = A...

12 years ago | 0

Answered
Matlab Parallel Computing Toolbox to solve Ax=b (with complex numbers and A being sparse).
Sparse is supported by PCT for distributed arrays and for standard use on a worker. Sparse is not currently supported for GPU...

12 years ago | 0

Solved


Perfect Square or not
find Given input x is perfect square or not,if yes then output y=1.else y=0

12 years ago

Answered
different results in R2012x and R2013x of function eig for matrices of class sym
I can reproduce this. Please contact support.

12 years ago | 0

Answered
Export uitable data to CSV file
* Get the data from the table using |get()|. * If you're using R2013b, you can turn the data into a |table| and then use |wri...

12 years ago | 0

Answered
How to find two parameters by non linear curve fitting with equation involving two variables.
Write it as a function! function v = predicted(a,z) % stuff end Then call it using the syntax explained here f...

12 years ago | 0

| accepted

Answered
How to merge nearest boudingbox from regionprops in matlab
Dilate the mask ( |imdilate| ) the acceptable "closeness" distance first so that the objects touch, then use |regionprops|.

12 years ago | 0

| accepted

Solved


Sum of diagonals elements of a matrix
Given a matrix, return the sum of all the elements across the diagonals. E.g. A = [1 2 3; 4 5 6; 7 8 9;...

12 years ago

Answered
flush uicontrol callback queue
Use a |timer| or multiple timers. They will handle this much better than |while|-loops. Don't forget to be liberal with the |d...

12 years ago | 0

| accepted

Answered
Report Generation: Chapter new page disable using Stylesheet
Perhaps use the _Compact Simple Print_ option: <http://www.mathworks.com/help/releases/R2013b/rptgen/ug/set-report-output-o...

12 years ago | 0

Answered
Avoid/Block a msgBox?
close(gcf) ?

12 years ago | 0

Answered
I find a problem about accumarray(subs,val,[],@(x)sum(diff(x))), maybe a bug
Explicitly sort either _subs_ or _vals_ (inside of the function) when you need sorted values in |accumarray()| Example two an...

12 years ago | 0

Answered
How can I have Matlab detect a compiler on the local system?
When you run the following at the MATLAB command line: mex -setup It should show you Visual Studio C++ 2010. If it does...

12 years ago | 1

| accepted

Answered
Can using cell arrays produce unexpected matrix dimension errors?
Hey Brad, |vertcat()| is what is called when you use a ";" to vertically concatenate an array, e.g.: x = [1; 3] is e...

12 years ago | 1

| accepted

Answered
How to Setting Custom Colours in 4D figures (Slice Function)?
The color right now is changed according to _v_... That's why the color in the middle shows up. *More per clarification* ...

12 years ago | 1

| accepted

Load more