Top 10% contributor
I have a 2d mesh with the triangles the way I want them, but now I need to actually assign the nodes bathymetry values. The Bath...
Asked 2 years ago
I have run the contour function on a very large data set, and the structure file saved and a graph appeared. This however takes ...
Given the number x, y must be the summation of all integers from 1 to 2^x.
For instance if x=2 then y must be 1+2+3+4=10.
2 years ago
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN.
Find the sum of all the numbers of the input vector x.
Input x = [1 2 3 5]
Output y is 11
Input x ...
In MATLAB, you create a vector by enclosing the elements in square brackets like so:
x = [1 2 3 4]
Commas are optional, s...
Regardless of input, output the string 'yes'.
Try out this test problem first.
Given the variable x as your input, multiply it by two and put the result in y.
Within a sublet I am just displaying text with a simulation name, and the day that it is on.
In the day part, I use num2str to...
Asked 1 year ago
I have an xyz file that defines a coastal bathymetry. The xyz file consists only of negative numbers representing water depths. ...
Join the conversation