Réponse apportée
Write a script that will create a (random) vector of ages then make a graph in matlab
Instead of asking the community to write the full script for you, I suggest trying to write something yourself and then posting ...

plus de 10 ans il y a | 0

Réponse apportée
I am trying to obtain a series of vectors made of elements from a larger vector given they exceed a threshold
The reason your code does not currently work is because you are trying to assign a vector ( Z(Z>Z(i)) ) to a scalar element in a...

plus de 10 ans il y a | 0

A résolu


Generalised Hamming Number
Inspired by Project Euler n°204 and Problem 1308 by James A generalised Hamming number of type n, has no prime factor larger ...

plus de 10 ans il y a

A résolu


Generate a Parasitic Number
This problem is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/156-parasitic-numbers Problem 156>. ...

plus de 10 ans il y a

Réponse apportée
Transform two vectors into a single one
Are all values of A and B integers? Do you know that all elements of A will be nonzero and that all elements of B will be less t...

plus de 10 ans il y a | 0

Réponse apportée
Mushroom detection in a photo
When you say you have tried Hough circles, do you mean <http://www.mathworks.com/help/images/ref/imfindcircles.html imfindcircle...

plus de 10 ans il y a | 0

Réponse apportée
how to count the number of consecutive values
Use <http://www.mathworks.com/help/matlab/ref/strcmp.html strcmp>, which works well for cell arrays of strings. Compare the firs...

plus de 10 ans il y a | 0

| A accepté

A résolu


Index of a Rational number
The set of real numbers are infinite. They are so many that real numbers can't even be enumerated. However, unlike real numbers ...

plus de 10 ans il y a

A résolu


nth Rational Number
Return the nth rational number. This is the inverse to Problem <http://www.mathworks.com/matlabcentral/cody/problems/1471 1...

plus de 10 ans il y a

Réponse apportée
Vein Detection in Angiogram image
You may want to try <http://www.mathworks.com/discovery/edge-detection.html edge detection> followed by some image morphological...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Opening/loading multiple mat files?
load(filename{1}); %to load the contents of the first file load(filename{2}); %to load the contents of the second file ....

plus de 10 ans il y a | 0

Réponse apportée
Sharing files in Matlab Trial Version
Yes, files created with the trial version will be compatible with similar paid versions of MATLAB.

plus de 10 ans il y a | 0

Réponse apportée
Using for loops to calculate a function that outputs a matrix and I want to store it into a matrix?
One way to simplify this: for ii=0:40 m{ii+1} = exp(-i.*2.*ii.*x); end NOTE: I assume the '-1i' in your exponent...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
How does regionprops compute for the centroid?
You can actually look at the function directly if you want! open regionprops In R2016a, the ComputeCentroid function sta...

plus de 10 ans il y a | 0

Réponse apportée
Deleting objects from a binary image.
L = bwlabel(bw); %where bw is your binary image bw2 = bw; %copy of binary image bw2(L==5) = 0; %deletes the 5th object ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
How to extract connected chains in canny edge image? Specifically asking, how would I extract connected chains when there are so many edges are available, so that I could come up with top 10 results (top 10 long edges).
Would <http://www.mathworks.com/help/images/ref/regionprops.html regionprops> do the trick? ---- Read the image: I = ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
How do you move matlab folders that are located in downloads folder?
I don't know what the "MathWorks" folder is, but the "_temp..." folder was created when you ran the installer (e.g. matlab_R2016...

plus de 10 ans il y a | 0

Réponse apportée
Grouping object with minimum in-between distance.
Use <http://www.mathworks.com/help/images/ref/imfill.html imfill> with the form BW2 = IMFILL(BW,LOCATIONS) where LOCATIONS speci...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
How to download MATLAB 2016a version??
<http://www.mathworks.com/products/matlab/> On this page, you can request a free trial, see product pricing (you may be eligi...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Help to create a loop
Here is one potential approach: G = zeros(9,18,9); %seems to me to be the size you need to preallocate for ii=1:9 f...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Splitting into multiple files
Try editing your question for readability. It is difficult to parse your sample code. That being said, in general, you can cr...

plus de 10 ans il y a | 0

Réponse apportée
Reading a directory location from text file and move to that directory.
I would suggest trying to use <http://www.mathworks.com/help/matlab/ref/textscan.html textscan>. The specifics of the input to t...

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
imshow does not work in 2016a
It looks from your screenshot that you named your script 'image.m', is that correct? If so, try changing that filename because y...

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
how to display the name of an input function by a function functions?
I am slightly confused by the wording of your question ("function functions ff"?), but I have a feeling that <http://www.mathwor...

plus de 10 ans il y a | 0

Réponse apportée
How to vectorize For loop and array with indexing
Disclaimer: I do not have R2016a, so I cannot test the linecirc function. But, if you already tried arrayfun and it was slowe...

plus de 10 ans il y a | 0

Réponse apportée
Why I get error during analysis ?
This is difficult to answer without knowing what the functions AnalyseDataLaas and PlotTrajectories look like. However, the e...

plus de 10 ans il y a | 0

Question


What is the fastest way to update overlaid graphics in a video?
Suppose you are given a 4D image array (I), where size(I,4) equals the number of frames in the image sequence. You also have a c...

plus de 10 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
Specifying parameters for varargin
Here's an example... function fruitsandveggies(varargin) validinputs = {'tomatoes', 'carrots', 'lettuce', 'blueberri...

plus de 10 ans il y a | 0

Réponse apportée
Reshaping 4D Matrix, Keeping 4th Dimension Intact
It seems like your code is doing what you expect. In particular, _final_ and _4dmatrix_ should be equal in your example. If you ...

plus de 10 ans il y a | 0

A résolu


For a given linear index as input for n sized square matrix, find corresponding row and column.
If input is 1, the row and column will be 1 and 1 respectively.

plus de 10 ans il y a

Charger plus