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

8 years ago | 0

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

8 years ago | 0

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

8 years ago | 0

| accepted

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

8 years ago | 0

| accepted

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

8 years ago | 1

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

8 years ago | 0

| accepted

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

8 years ago | 0

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

8 years ago | 1

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

8 years ago | 4

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

8 years ago | 0

| accepted

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

8 years ago | 4

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

9 years ago | 1

| accepted

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

9 years ago | 2

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

9 years ago | 2

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

9 years ago | 0

| accepted

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

9 years ago | 0

| accepted

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

9 years ago | 2

| accepted

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

9 years ago | 0

| accepted

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

9 years ago | 0

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

9 years ago | 0

Submitted


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

9 years ago | 1 download |

4.0 / 5
Thumbnail

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

9 years ago | 0

| accepted

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

9 years ago | 1

| accepted

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

9 years ago | 1

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

9 years ago | 0

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

9 years ago | 0

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

10 years ago | 2

| accepted

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

10 years ago | 0

Answered
how to solve the error "Not enough input arguments."
When you pass a function handle to ode45, ode45 is only going to provide the first two input arguments (t and y). If you want to...

10 years ago | 2

| accepted

Answered
Adding legend of different names in a plot generated by a for loop
It isn't clear what you mean by "various cell names are stored in M5BAT.CellList folder", but it looks like you are trying to cr...

10 years ago | 1

| accepted

Load more