Answered
how to plot something one by one
Use |drawnow| and/or a short |pause|. This will give Matlab time to process callback to buttons and update visuals.

9 years ago | 0

| accepted

Answered
How to measure the lumen of sun from its energy given by w / m ^ 2
Just reverse the formula <http://www.rapidtables.com/calc/light/lux-to-watt-calculator.htm here>. And I agree with Adam, this is...

9 years ago | 0

| accepted

Answered
How to plot under certain conditions ?
If you are not actually after plotting point, you can use |fill|. radius=4; theta=linspace(0,2*pi,200); x=radius*cos(...

9 years ago | 0

| accepted

Answered
Retaining values for a Matrix!
The answer is not overwriting the result, but using a cell, or assigning the result of your function to only part of your matrix...

9 years ago | 0

Answered
Having A problem with surfc
Read the <https://www.mathworks.com/help/matlab/ref/surfc.html documentation>. I suspect your problem will be solved by using th...

9 years ago | 0

Answered
How to obtain image size [227 227 3]?
I would assume simply replicating your image to RGB with |repmat| should work.

9 years ago | 0

| accepted

Answered
how can i find a value that is bigger than 95% of the values in a given vector
Sort the vector, multiply the length by 0.95 and use the rounded value as index.

9 years ago | 0

Answered
Anybody knows where to get some Matlab/Simulink desktop wallpapers?
Mathworks even made a <https://www.mathworks.com/help/matlab/examples/creating-the-matlab-logo.html tutorial> for how to make th...

9 years ago | 0

Answered
How to call a figure but not bring it up on screen?
Use handles. On HG1 releases, you can use n as a handle to figure(n). Just about every function will accept either a figure or a...

9 years ago | 0

Answered
How to add columns equally in each page of a multidimensional array within a for loop?
You need to think about what your syntax does. R(:,:,i) = [R(:,:,i),Sk/Dk,i]; What that line does is evaluating the righ...

9 years ago | 0

| accepted

Answered
Please, correct the following logical index in vetor.
What you describe just inserts 1 element into your vector. Is that what you mean? Anyway, this is not logical indexing. If yo...

9 years ago | 1

| accepted

Answered
vectors must be the same length error
Read the documentation (just type |doc plot|). You will learn that this is not the syntax you're looking for. If you want a plot...

9 years ago | 0

Answered
rho and theta for straight line with two end points
There are two possibilities: using point A as the origin, and using point B as the origin. The rho will not change, but theta wi...

9 years ago | 0

| accepted

Answered
Region Growing in Matlab
I do have an idea that is slightly less terrible than 6 nested loops. I have no idea if there are clever tricks you can pull. Th...

9 years ago | 0

Answered
How to save multiple crop picture with output picture name is same as input picture name?
There are multiple things you could improve in this code, but replacing the next two lines with the subsequent two should solve ...

9 years ago | 1

| accepted

Answered
How to know whether it is an image or a website with a given url?
Would |websave| give an error if you try to save a page as a single file (didn't test)? In that case you could just use a try-ca...

9 years ago | 0

Answered
am getting the following error, can someone elaborate the error please.. there is no missing and 0 in my data.. all matix is 15000 by 26 dimensions.
Apparently there are complex numbers in your matrix. This can happen as a side-effect of the rounding that sometimes happens bec...

9 years ago | 0

Answered
How to plot label in multiple lines in matrix form?
You only provide one space. How can Matlab know you sometimes mean multiple spaces? Because of the structure your labels se...

9 years ago | 0

| accepted

Answered
how can i sum the final multiplication
S = sum(A,dim); Reading the <https://www.mathworks.com/help/matlab/ref/sum.html documentation> can be useful. If you wan...

9 years ago | 0

| accepted

Answered
Given a .mat file how would I load the file into a script
S=load(matfilename_as_string_with_the_explicit_path); plot(S.t,S.amp)

9 years ago | 0

Answered
Extracting and formatting data
A solution that might not scale well, is to convert A to a cell (with |num2cell|), use |cellfun| with |@(x) 1:x|, make sure it i...

9 years ago | 0

Answered
Bar plot or histograms
Read the <https://www.mathworks.com/help/matlab/ref/bar.html documentation>. This will plot bars of height y at locations x: ...

9 years ago | 0

Answered
how to i download and install R2015b on my machine. I am already using R2015a.
If you have a valid license for it, you can just <https://www.mathworks.com/downloads/web_downloads/download_release?release=R20...

9 years ago | 0

Answered
How do I only save my solution every x iterations in a for loop?
The problem is in the rounding. You can improve the robustness of your code by rounding |maxitimestep/numberoftimesIwantorecord|...

9 years ago | 1

Answered
Does pausing and resuming have negative effects on execution?
As far as I can tell, no. Any queued callback will be executed, but that is hardly a negative effect.

9 years ago | 0

Answered
Error with import data in txt format while generating function
The problem is that the input argument name should not be a string. Either call the function with that as the input argument, or...

9 years ago | 0

| accepted

Answered
Can I use Matlab Home to generate a standalone app?
Yes, but you will need a valid license for the Matlab Compiler.

9 years ago | 0

Answered
Call a gui callback without handles
You can still use |guidata| normally. The source (to which a handle is saved in |scr|) can still be used to follow the chain of ...

9 years ago | 0

| accepted

Load more