PhD student at KTH Stockholm
Top 10% contributor
I would suggest the following:
hour = datevec(:,4);
minute = datevec(:,5);
hour_decimal = hour+minute/60;
Answered 2 years ago
It is not completely clear to me what you want, but if I interpret your question correctly you want to first x to use the first ...
Answered 3 years ago
It seems that the delta is the Kronecker Delta.
In that case ou can make the following for-loop for this:
There are several ways to do this. First you need to create the x- and y- arrays. This can be done using:
This gives you a 1455x1 vector with the column-number of the smallest element in in the rows. To als...
I'm running big calculations and simulations on a powerful computer (8 i7-cores and 12 GB RAM). But for some reason it only uses...
Asked 3 years ago
I am plotting multiple surfaces in one figure. Now I want to make the areas of the plot close to zero a transparency-gradient. F...
Asked 2 years ago
When trying to optimize a function with the ga-function in the 'Optimization Tool' I get the error: M must be in the range 0 <= ...
For the last part you could consider saving the figure as .fig and then copy the file to the other computer. Here you can open d...
This might do the trick:
You first convert it to a [1,r*c,w] matr...
I have a surface-plot on top of which I plot a 3D-contour-plot. Is it possible to add the contour-lines in the colormap/colorbar...
Using the hold function I plot two surfaces in a surface-plot:
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend you select United States from the following list:
See all countries