yes, you can use function handles, and str2fun. Here is a simple example:
function out = foo(funOb,p1,p2,p3)
out = funOb...
Answered 3 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 3 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...
3 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...
Join the conversation