Réponse apportée
How can I write a large audio file without having to store the whole thing in memory at once?
I don't believe a piece-wise write exists yet for audio files. Until a better answer shows up, I would suggest: # If your mem...

plus de 9 ans il y a | 1

Réponse apportée
how to make a row into a one element
The other answer will only work for a very limited set of problems, and will break with even the slightest change, like having a...

plus de 9 ans il y a | 0

Réponse apportée
Find unique rows in cell array with mixed data types
I cannot recreate your problem. Here is what I did: AA = {'A','B','A','C'}; BB = [1 2 1 1]; CC= [true,true,true,false]; ...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
How to combine two images based off matched features?
Seems like you have the indices of the matched features in both images. If you are certain no rotation is required, then you can...

plus de 9 ans il y a | 0

Réponse apportée
How to flush out all variables before each iteration
Without more information, no way for me to suggest a better way to do this, but check: clearvars -except VarYouwantToKeep1 V...

plus de 9 ans il y a | 0

Réponse apportée
How to extract only certain values from a field in a structure array?
I am not aware of a way to do this without a for loop. If you run: P=[Cells.Type]==1 without the semi colon, you will se...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
how can I count the number of elements on a vector?
[C,ia,ic] = unique(T); c = hist(ic,1:max(ic)); CountArray = [T(ia) c'];

plus de 9 ans il y a | 2

Réponse apportée
Using Cross Validation for regression
I would do something along the lines of: Randomize = randperm(length(input)); inputRandom = input(Randomize); outputRand...

presque 10 ans il y a | 0

Réponse apportée
how to use histogram(data, num_bins)?
You don't appear to be doing anything wrong. Your data is the problem: 1417.69 521.83 15.23 8.28 7.05 The plot sh...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
Hi, is it possible to count the number of ones in a matrix ?
sum(A(:) == 1);

presque 10 ans il y a | 14

| A accepté

Réponse apportée
how to read multiple folders with a single text file and remove header and footer from this text file
Create a for looped chain using dir to access the folders. Something like: years = dir; years(1:2) = []; for yy = 1:length...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
adjacency matrix to boolean matrix convert
Sounds like what you want is simply: CliqueMatrix = AdjacencyMatrix >= Threshold; Then you would sum along the columns an...

presque 10 ans il y a | 0

Réponse apportée
How to sum elements in a vector according to the location information from another vector?
sum(V(L))

presque 10 ans il y a | 0

| A accepté

Réponse apportée
How to understand the data matrix formed by imread('XYZ.png')
It is the color in RGB format. For example Image(200,541,:) will give you the Red Green and Blue values of that particular pixel...

presque 10 ans il y a | 0

Réponse apportée
overlapping area between two circles
If the formula is correct, here is a function that will calculate the area: a = @(d,r,R) (1/d).*sqrt(4*(d.^2)*(R.^2) - ((d.^...

presque 10 ans il y a | 0

Réponse apportée
Im trying to create a code that will create a matrix with gaps depending on the input sequences
If your gap size is always the same for all elements: gap = 15; P1 = [0 25 50 75 100 125 150 175 200 225 250]; P1 = repm...

presque 10 ans il y a | 0

Réponse apportée
Problem with imhist after modify image
For now use: imhist(uint8(I)) That will get your work done, although it puzzles me why that is necessary, because imhist ...

presque 10 ans il y a | 1

Réponse apportée
Create GUI from existing code
1) Convert your code into a function. 2) Create a GUI element for every input to your function. I would use "GUIDE". 3) Wh...

presque 10 ans il y a | 1

Réponse apportée
Is it possible to submit jobs to hpc cluster without purchasing MDCS?
Disclaimer: I am no expert. I don't see how the two interact at any level. The cluster is probably using some scheduler that ...

presque 10 ans il y a | 0

Réponse apportée
Importing HH:MM:SS from excel
If you are using the import tool, use datetime, as in import as datetime initially. Then you will be able to access individual c...

presque 10 ans il y a | 0

Réponse apportée
Subtracting a column from an array.
RESULT = bsxfun(@minus, MATRIX, COLUMN_VECTOR)

presque 10 ans il y a | 2

| A accepté

Réponse apportée
Remove white background while using saveas command
You want this: http://www.mathworks.com/matlabcentral/fileexchange/23629-export-fig

presque 10 ans il y a | 0

Réponse apportée
how to plot 3D matrix
Plotting data like that is a pain IMHO. Either try: - SliceOMatic: http://www.mathworks.com/matlabcentral/fileexchange/764-sl...

presque 10 ans il y a | 0

Réponse apportée
Finding outer and inner edge of an ear image
A cheap trick would be to use bwconncomp on your edge image, and then use a for loop to only keeps the ones that contain a pixel...

presque 10 ans il y a | 0

Réponse apportée
Pulling my hair out over this simple for loop! Please help!
Its the brackets. You cannot use normal brackets for vectors of strings as they are stored as cell arrays. for i = 1:length(...

presque 10 ans il y a | 0

Réponse apportée
Displaying STL file with colored facets
p = patch('faces',F,'vertices',V,'FaceColor',[0.8 0.8 1.0],'FaceLighting','gouraud'); Pass the surface roughness vector as t...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
How do I change an image to binary?
ImageSegmenter should help you if you have the toolbox, since you sound like a novice user. http://www.mathworks.com/help/image...

presque 10 ans il y a | 0

Réponse apportée
How to split a column in a table into two columns by a space
strsplit is your friend: <http://www.mathworks.com/help/matlab/ref/strsplit.html>

presque 10 ans il y a | 0

Réponse apportée
Create a PDF document from Matlab?
publish('myscript.m','pdf'); For reference: <http://www.mathworks.com/help/matlab/ref/publish.html>

presque 10 ans il y a | 3

Réponse apportée
How to find out contour/boundary of binary 3D image
No direct built in function that I know off. Use circshift to extract them in N Dimensions. If A is your data and I want to find...

presque 10 ans il y a | 0

Charger plus