Réponse apportée
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...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
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(...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 9 ans il y a | 0

Réponse apportée
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...

presque 9 ans il y a | 0

Réponse apportée
How to obtain image size [227 227 3]?
I would assume simply replicating your image to RGB with |repmat| should work.

presque 9 ans il y a | 0

| A accepté

Réponse apportée
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.

presque 9 ans il y a | 0

Réponse apportée
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...

presque 9 ans il y a | 0

Réponse apportée
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...

presque 9 ans il y a | 0

Réponse apportée
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...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 9 ans il y a | 0

Réponse apportée
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...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 9 ans il y a | 0

Réponse apportée
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 ...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 9 ans il y a | 0

Réponse apportée
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...

presque 9 ans il y a | 0

Réponse apportée
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...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
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)

presque 9 ans il y a | 0

Réponse apportée
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...

presque 9 ans il y a | 0

Réponse apportée
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: ...

presque 9 ans il y a | 0

Réponse apportée
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...

presque 9 ans il y a | 0

Réponse apportée
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|...

presque 9 ans il y a | 1

Réponse apportée
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.

presque 9 ans il y a | 0

Réponse apportée
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...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Can I use Matlab Home to generate a standalone app?
Yes, but you will need a valid license for the Matlab Compiler.

presque 9 ans il y a | 0

Réponse apportée
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 ...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
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,...

presque 9 ans il y a | 0

Charger plus