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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 1

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

3 years ago | 0

Answered
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])

3 years ago | 0

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

3 years ago | 2

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

3 years ago | 1

Answered
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 = ...

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 1

Answered
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"...

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

Load more