yes, you can use function handles, and str2fun. Here is a simple example:
function out = foo(funOb,p1,p2,p3)
out = funOb...
Answered 5 years ago
I am having memory issues when I convert large cellular arrays into nominal arrays. I am importing these cellular arrays of str...
Asked 5 years ago
Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_.
Note: NaNs are equal and there may be n...
4 years ago
Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column.
In this problem , you must convert a cell into a matrix and pad each cell with NaN.
If you have the input...
In MATLAB, you create a vector by enclosing the elements in square brackets like so:
x = [1 2 3 4]
Commas are optional, s...
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries