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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 1

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 1

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 1

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

| accettato

Risposto
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,...

oltre 8 anni fa | 0

Carica altro