Beantwortet
Contour Plot with specific data sets
Your Z data needs to be a matrix. X corresponds to columns, Y corresponds to rows. See here For your data, I think you could do...

fast 3 Jahre vor | 0

Beantwortet
Converting .nc files to an array and save it in a .txt
Here are a couple recent posts that are similar and may provide you with the help you are looking for: https://www.mathworks.co...

fast 3 Jahre vor | 0

Beantwortet
Bug in grader of MATLAB Onramp
It appears that some values are slightly different depending on how you create lambda. This has to do with floating point arithm...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do I fix 'Error using odearguments @.... returns a vector of length 0, but the length of initial conditions vector is 24...' error?
Your for loop is not executing because, after plugging in variables, your loop counter is for i=2:1000000:0 end i so the val...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Need help regarding "surf2stl" - want to convert surface in to stl file.
Your calling syntax is incorrect. The function only has 4 inputs, but you are calling it with 7. Please see the syntax guideline...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
I want to convert a image into video ?
Without the data and code, all we can do is point you to resources. I think this example can be adapted to do what you want: h...

fast 3 Jahre vor | 0

Beantwortet
when converting array to table, it only shows double/sym
You are creating your table with row vectors. The entire vector cannot be displayed in the printout, so you are getting a descri...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
I wish to calculate the mean values of temperature over the latxlon grid and only for 12GMT for all the 65 months using matlab code.
See this answer: https://www.mathworks.com/matlabcentral/answers/1997658-how-do-i-compute-mean-values-of-nine-variables-over-lat...

fast 3 Jahre vor | 0

Beantwortet
mean of all these variables over latitude x longitude x time that is (5 x 5 x 2)
See this answer: https://www.mathworks.com/matlabcentral/answers/1997658-how-do-i-compute-mean-values-of-nine-variables-over-lat...

fast 3 Jahre vor | 0

Beantwortet
How can I tell to the existing Mathworks installation where the installed documentation is?
Make sure your follow the instructions on this page. https://www.mathworks.com/help/releases/R2023a/install/ug/install-documenta...

fast 3 Jahre vor | 0

Beantwortet
Change condition 'A=253' into 'A(A=253)=0' with multiple values (for example: A=70 and A=253)
Use the or condition instead of the and. Also, use == to check for equality. The pseudocode would be "If the value of value_GS ...

fast 3 Jahre vor | 1

Beantwortet
How do I compute mean values of nine variables over Lat x lon x time?
My understanding is that you want to take the mean of all the data for each day and time. This means you would lose the lat/lon ...

fast 3 Jahre vor | 0

Beantwortet
How to draw straight horizontal line with specific axis
plot? See Ch 9 in MATLAB Onramp. You might consider going through the entire onramp, too. plot([1450 1470],[0 0])

fast 3 Jahre vor | 0

Beantwortet
switches with the < and > operators
A switch statement executes the first case that is true. Try this instead. x = 12; switch true case x < 3 % sta...

fast 3 Jahre vor | 2

Beantwortet
rounding elements in matrix if > or < to 0.75
Currently, round uses 0.5 as the threshold. The quickest solution would be to modify your data by subtracting 0.25 to artificial...

fast 3 Jahre vor | 1

Beantwortet
How can I change values in a table using a function and using the values in the function (if-function)?
Use logical indexing. footangle = [-10.55;8.864;-12.801;168.63;-170.196;165.661;-167.901;175.266;12.006;-10.485]; TableName = ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Select rows of different vector that matches a specific condition
A=[0.25; 0.30; 0.20; 1.5; 1.3]; B=[1; 1.30; 2.0; 3.5; 4.0]; C=[-3; 0.25; 0.85; 1.2; -0.70]; row = (1:length(C))'; ind = A>...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Hi i have the next error in the code and idk why cause all the parameters are vectors.
You've stripped away everytihg that would help us be more specific, but the error is stating that the 2nd and 3rd inputs to nlmp...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Get data out of a struct to manipulate
Extract the data using the structurename.fieldname syntax. See here: https://www.mathworks.com/help/matlab/matlab_prog/create-a-...

fast 3 Jahre vor | 0

Beantwortet
Convert day of year to UTC format?
T = ["2012-259T01:53:15.50194"; "2012-259T01:53:16.50194"]; T = datetime(T,'InputFormat','uuuu-DDD''T''HH:mm:ss.SSSS...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
I want to know why im getting an error in my code to calculate distance
You haven't defined the variables you are using in your calculations. Define values for v,theta,ga,h0, & xd and your code will r...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Filled countour plot for a specific value
See this example in the documentation, which just displays the contour at z=2: https://www.mathworks.com/help/matlab/ref/contour...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Array indexing in a function - working in R2018a but not in R2021a
That error is most likely a result of not including 'global bands' in your calling script. You appear to have only added it to y...

fast 3 Jahre vor | 1

Beantwortet
mean and some in each row, col is not correct.
If you attach your data set, perhaps we can be more helpful. In the meantime, you might find the "Performing Group Calculations"...

fast 3 Jahre vor | 0

Beantwortet
Is it possible to 3D print a 3D function plotted in Matlab?
I would point you to this post: https://www.mathworks.com/matlabcentral/answers/623773-how-to-generate-a-stl-file-starting-from-...

fast 3 Jahre vor | 0

Beantwortet
Is it possible to 3D print a 3D function plotted in Matlab?
Your syntax for stlwrite is not correct. It should be stlwrite(TR,filename) However, the input triangulation must be a triangul...

fast 3 Jahre vor | 0

Beantwortet
Matlab 2023a installation fails
Contact support: https://www.mathworks.com/support/contact_us.html

fast 3 Jahre vor | 0

Beantwortet
How colorize bars in bar3 plot in single color based on height?
See this answer: https://www.mathworks.com/matlabcentral/answers/1947248-plot-3d-plot-with-different-colors-depending-on-the-x-...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Can someone please check my code and tell me what is the issue with it?
The issue is due to a combination of things: leaving a space between a function name and its inputs combined with building an ar...

fast 3 Jahre vor | 0

Beantwortet
How to use niblack file exchange?
This is not something creating by MathWorks. The only information I could find is in the help of each function. %NIBLACK local ...

fast 3 Jahre vor | 0

Mehr laden