Answered

How can I sort an array of structures based upon a particular field in MATLAB?

function outStructArray = SortArrayofStruct( structArray, fieldName ) %UNTITLED2 Summary of this function goes here ...

How can I sort an array of structures based upon a particular field in MATLAB?

function outStructArray = SortArrayofStruct( structArray, fieldName ) %UNTITLED2 Summary of this function goes here ...

4 years ago | 6

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

5 years ago

Question

is there a way to make available a matlab package to all functions available in same .m file

I am working with matlab packages and I want to make a package available to all methods in same .m file. I am trying to import t...

5 years ago | 0 answers | 0

Question

How to create a keyboard shortcut for inserting time stamp in command history of matlab

I want to create a key board shortcut for inserting time stamp in command history. I follow the standard procedure for creating ...

5 years ago | 0 answers | 0

Question

Re-plotting of data on same GUI axes in matlab

I am working with GUI in matlab and I have one axes to plot the data. I want to keep track what I have already plotted in order ...

6 years ago | 1 answer | 0

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

6 years ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

6 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

6 years ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

6 years ago

Question

C# array of object indexing in matlab

In matlab, I have array of c# objects and I want to select the object on index position 1. doc.Workbook.Worksheets ans = ...

6 years ago | 2 answers | 0

Question

Matlab intellisense (auto completion) for objects of user defined classes in Script files (.m File)

I would like to know that is there a way for intellisense to work for user defined classes. If I create object of user defined c...

7 years ago | 1 answer | 1