Réponse apportée
How can I find all possible combiantions of 3 numbers in a 6 number array using a for loop?
There are probably more efficient ways of doing this, but here's one attempt: Matrix=[-4 2 1 -1 -1 0]; n = numel(Matrix)...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How can I plot a 12x12x12 matrix with a point in [1,1,1 ] , [1,1,2] , etc
I can interpret your question in two different ways. The first way, I think the command you are looking for is |<https://www....

presque 9 ans il y a | 0

Réponse apportée
matrix addition and calculating the average of it
You can add three matrices using the + operator, which will do element-by-element addition: D = A+B+C; If you want to ge...

presque 9 ans il y a | 0

Réponse apportée
Plotting only SOME of the points on a curve
What version of MATLAB are you using? There is a new feature, introduced in R2016b that allows you to specify which vertices in ...

presque 9 ans il y a | 0

Réponse apportée
How to combine multiple output from a function into 1?
You can only do this if you know how many outputs you are expecting. That is because MATLAB only populates the outputs you reque...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Timer Objects - more precise alternative ?
You are going to have trouble getting millisecond precision with any application that isn't running with special priority in the...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Already Saved Subplots to subplots including title and labels
Your first approach is copying all the axes children from one axes to another, which is not copying the axes itself (just its ch...

presque 9 ans il y a | 1

Réponse apportée
3D point label a in plot
Sounds like you want to use the |<https://www.mathworks.com/help/matlab/ref/text.html text>| command. For example: [X,Y]...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How to smooth a 3d surface
Have you tried |<https://www.mathworks.com/help/matlab/ref/conv2.html conv2>|?

presque 9 ans il y a | 0

Réponse apportée
read number put them in array, remove line , and store them in new file?
One small change you can make is in your format string. You are using |%f|, which is for "fixed-point notation". If you switched...

presque 9 ans il y a | 1

Réponse apportée
How to save (or prevent from being deleted) handle to axes within a GUI (created using GUIDE) ?
Your best bet to avoid the axes being deleted is to *always* pass an axes handle when you are calling your plotting functions. ...

plus de 9 ans il y a | 4

Réponse apportée
When I close a plot the screen goes black.
I would recommend contacting technical support, as that sounds like it could be a bug. They can probably help. Because MATLAB R2...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Heatmap function does not work
There are two reasons the HeatMap command may not work for you in R2015a/b. # The |HeatMap| command comes with the Bioinforma...

plus de 9 ans il y a | 4

Réponse apportée
Attempted to access t(0.1); index must be a positive integer or logical. Need help.
It looks like you are trying to use the variable |i| for two purposes: to keep track of your vector index as well as to define y...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
Clearing Variables From Memory MATLAB App Designer
The |app| variable in App Designer is an object. From your description it sounds like what you are calling variables are really ...

plus de 9 ans il y a | 2

Réponse apportée
How to plot the equation |x|+|y|+|z|=1 ?
If you are using MATLAB R2016b you can use the new |<https://www.mathworks.com/help/matlab/ref/fimplicit3.html fimplicit3>| comm...

plus de 9 ans il y a | 2

Réponse apportée
How to subtract one color from an image?
Let's say the two images are A and B, both are MxNx3 matrices: red = shiftdim([1 0 0],-1); black = shiftdim([0 0 0],-1);...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to call functions from a DLL that was built in MATLAB? ie possibility of using matlab dll in matlab script itself.
Let me propose another solution: Just P-code your MATLAB code using the |<https://www.mathworks.com/help/matlab/ref/pcode.html p...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Pixel values to Image
You need to read in your text file using one of the methods described on this doc page: <https://www.mathworks.com/help/matlab/i...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
Formatting a double for output in message box
You want to use |<https://www.mathworks.com/help/matlab/ref/sprintf.html sprintf>|, probably something like this: sprintf('...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to call functions from a DLL that was built in MATLAB? ie possibility of using matlab dll in matlab script itself.
I think what you need to do is to write a MEX function wrapper around your new DLL. MEX functions are the interface that allows ...

plus de 9 ans il y a | 0

Réponse apportée
Remove white border when "Copy figure"
If you are referring to the margins surrounding your axes in the figure, the size of those margins are hard-coded within subplot...

plus de 9 ans il y a | 0

A soumis


Continuous monitoring of wireless network of temperature sensors using MATLAB® and XBee®
Collect data from a network of temperature sensors using MATLAB® and XBee®.

environ 10 ans il y a | 2753 téléchargements |

4.0 / 5
Thumbnail

Réponse apportée
Bar chart not working with small time/x axis resolutions after 2015a
I'm not certain, but I believe what changed is now MATLAB is drawing sub-pixel wide bars. You have 14,691 bar objects drawn hori...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Plotting graph from the data of a csv file
My recommendation is to try the "Import Data" wizard (look for the "Import Data" button on the tool strip). Select your file, se...

environ 10 ans il y a | 1

| A accepté

Réponse apportée
How to avoid multi-column histogram made using histogram() from overlapping the data to get output similar to the one got with hist()
This isn't a perfect solution, but you can use a combination of histcounts + bar: x = randn(1000,3); [N1,edges] = histco...

environ 10 ans il y a | 1

Réponse apportée
uicontrol handle error using set
There was a major change in how graphics are treated in MATLAB in R2014b. For details you can see this page: <http://www.mathwo...

environ 10 ans il y a | 0

Réponse apportée
About the function 'bar3', I want put the bar figure in the center of the cell.
I don't believe the bar3 command allows you to specify both X and Y. However, the bar3 command creates surfaces, and you can spe...

plus de 10 ans il y a | 0

Réponse apportée
Insert Equation directly into the code
You want to use an <http://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html anonymous function> : f = @(x...

plus de 10 ans il y a | 2

| A accepté

Réponse apportée
How Would I create a matrix which contains the first and last m columns of another matrix?
Lets say you have an M-by-N matrix, and you wanted the first K and last K columns: m = 10; n = 20; k = 3; A = rand...

plus de 10 ans il y a | 0

Charger plus