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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 1

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 1

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 1

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

Respondida
How can this Python code be written in Matlab? I'm trying to write a Matlab script that will allow two Stepper motors to scan in a Raster pattern but all I can find is this Python script. How the 'for' loop be replicated in Matlab?
There is a Cody question that asked you to produce a matrix like the one below X=[1 2 3; 6 5 4; 7 8 9]; My sol...

más de 8 años hace | 0

| aceptada

Respondida
How to make a 3D surface where colour will represent the fourth variable.
You need to scale |R| to a colormap index, and use |ind2rgb| to convert it to the |C| that |surf| is expecting in the |surf(X,Y,...

más de 8 años hace | 0

Cargar más