Feeds
提问
Case insensitive enumeration class
Hi, How does one create a case insensitive enumeration class? So that one could call it as: aRed = colourEnum.RED; ...
8 years 前 | 2 个回答 | 1
2
个回答提问
Force Matlab to execute .NET callback on main/single thread
Hi I wrote a simple matlab filewatcher object than uses .NET's FileSystemWatcher. It's a great little tool, works straight of...
8 years 前 | 1 个回答 | 2
1
个回答提问
interp1 vs interp1q R2015a
Hi First off I realise interp1q might be deprecated. They have stated that for several versions now. I've been refactoring...
9 years 前 | 0 个回答 | 0
0
个回答提问
Matlab OOP, dependent class properties, correct coding techiques
Hi, I have a conceptual problem I'm struggling with and was wondering if anyone could give some insight into this. Essenti...
9 years 前 | 2 个回答 | 0
2
个回答已解决
facedetection and feature extraction using pandaboard
I need code for facedetection and feature extraction using pandaboard where matlab 2013a is used ...
9 years 前
已解决
Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...
9 years 前
已解决
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
9 years 前
已解决
Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
9 years 前
已解决
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
9 years 前
已解决
Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...
9 years 前
已解决
Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...
9 years 前
已解决
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...
9 years 前
已解决
Multiplying Vectors 101
Make a vector from 1 to x then multiply the sum of that vector by 2.
9 years 前
已解决
solve for y that is half as much as three less than one tenth of x
function y = half(x) y = (x * .1); end
9 years 前
已回答
Non-Handle Classes with events and listeners
For the sake of completeness I will answer the question myself. There is no direct way of using 'notify' and 'addlistener' wi...
Non-Handle Classes with events and listeners
For the sake of completeness I will answer the question myself. There is no direct way of using 'notify' and 'addlistener' wi...
9 years 前 | 0
| 已接受
提问
Non-Handle Classes with events and listeners
Hi I do think I know the answer to this but would like to clarify in case I missed anything. Is it only handle classes tha...
10 years 前 | 1 个回答 | 0
1
个回答已回答
how to resize a matrix?
Hi There are a number of ways you can do this. At the command prompt type: help vertcat and help nan This wil...
how to resize a matrix?
Hi There are a number of ways you can do this. At the command prompt type: help vertcat and help nan This wil...
10 years 前 | 0
已回答
Accessing a method and its operation written in C# .NET assembly using Matlab
Hi Try looking at doc NET This section of the documentation shows you how to call .NET assemblies in Matlab. I have d...
Accessing a method and its operation written in C# .NET assembly using Matlab
Hi Try looking at doc NET This section of the documentation shows you how to call .NET assemblies in Matlab. I have d...
10 years 前 | 0
| 已接受
已回答
check an phone number area code with strncmp
Hi Type help input at the command prompt and have a look at what it says. Your answer is right there. Regards, ...
check an phone number area code with strncmp
Hi Type help input at the command prompt and have a look at what it says. Your answer is right there. Regards, ...
10 years 前 | 0
| 已接受
已回答
i am getting an error " mcc require the program to assign the value to output argument logistic"
Hi Your function definition of logistic is wrong: You have: function logistic=x It should rather be something like: ...
i am getting an error " mcc require the program to assign the value to output argument logistic"
Hi Your function definition of logistic is wrong: You have: function logistic=x It should rather be something like: ...
10 years 前 | 0
| 已接受
已回答
Compile 32 bit MATLAB Builder Ex Add-In using 64 bit MATLAB
Hi John As far as I know you cannot do this. I have to switch between 32-bit and 64-bit Matlab depending on what I would like...
Compile 32 bit MATLAB Builder Ex Add-In using 64 bit MATLAB
Hi John As far as I know you cannot do this. I have to switch between 32-bit and 64-bit Matlab depending on what I would like...
10 years 前 | 0
| 已接受
已回答
Can I "cast" a value class object to a handle class object on the fly
I'm going to give an alternative answer (I hope) to Matt's as stated in my comment: Write your value class as normal except a...
Can I "cast" a value class object to a handle class object on the fly
I'm going to give an alternative answer (I hope) to Matt's as stated in my comment: Write your value class as normal except a...
10 years 前 | 1
提问
Can I "cast" a value class object to a handle class object on the fly
Hi I'm relatively new to OOP. I currently have a value class object. Specifically, it's a custom date class that I'm working ...
10 years 前 | 3 个回答 | 2
3
个回答提问
Matlab crashes after clearing java object and then creating object again
Hi I'm hoping that someone has come across this behavior before as it will be quite difficult to provide sample code that rep...
10 years 前 | 0 个回答 | 0
0
个回答提问
Table/categorical arrays and the <undefined> category
Hi I create a table with different data. Some of the data I set as categorical arrays as such: table.field = categorical...
10 years 前 | 0 个回答 | 2
0
个回答提问
textscan difficulties with mixed datatypes
Hi I am having difficulty solving a particular problem. I might just be missing the wood for the trees but here goes: I ha...
10 years 前 | 2 个回答 | 0
2
个回答已回答
build YYYYMMDD instead of YYYYMD, for YY and DD derived from one-digit outputs from datevec()
Hi dateString = datestr(now,'yyyymmdd') Type help datestr to get more information Regards, Phillip
build YYYYMMDD instead of YYYYMD, for YY and DD derived from one-digit outputs from datevec()
Hi dateString = datestr(now,'yyyymmdd') Type help datestr to get more information Regards, Phillip
10 years 前 | 0
| 已接受
提问
Compiled uitable crashes in standalone application
Hi, I have created a programmatic GUI which I compile into a stand-alone application. When I run it from Matlab every thing w...
10 years 前 | 1 个回答 | 0
1
个回答已解决
Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...
10 years 前