Respondida
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)...

más de 8 años hace | 0

| aceptada

Respondida
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....

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

Respondida
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 ...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
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...

más de 8 años hace | 1

Respondida
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]...

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 1

Respondida
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. ...

alrededor de 9 años hace | 4

Respondida
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...

alrededor de 9 años hace | 0

| aceptada

Respondida
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...

alrededor de 9 años hace | 4

Respondida
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...

más de 9 años hace | 1

| aceptada

Respondida
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 ...

más de 9 años hace | 2

Respondida
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...

más de 9 años hace | 2

Respondida
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);...

más de 9 años hace | 0

| aceptada

Respondida
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...

más de 9 años hace | 0

| aceptada

Respondida
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...

más de 9 años hace | 2

| aceptada

Respondida
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('...

más de 9 años hace | 0

| aceptada

Respondida
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 ...

más de 9 años hace | 0

Respondida
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...

más de 9 años hace | 0

Enviada


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

casi 10 años hace | 2 descargas |

4.0 / 5
Thumbnail

Respondida
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...

casi 10 años hace | 0

| aceptada

Respondida
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...

casi 10 años hace | 1

| aceptada

Respondida
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...

casi 10 años hace | 1

Respondida
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...

casi 10 años hace | 0

Respondida
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...

alrededor de 10 años hace | 0

Respondida
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...

más de 10 años hace | 2

| aceptada

Respondida
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...

más de 10 años hace | 0

Cargar más