Answered
Run two functions in parallel
H Francesco, it depends on if function 1 is interuptible. You could try to run function 2 using the function "timer": create ...

14 years ago | 1

Answered
Parallel Toolbox: some doubts
Hi, regarding 1): The default is usually indeed a good default: adding more workers usually only compete against each others ...

14 years ago | 1

Answered
Matlab Coder entering varying size input
Hi Dan, if you use the MATLAB Coder tool for compiling, you specify the size of input either e.g. as :10 x 1 (if n always sma...

14 years ago | 0

| accepted

Answered
How to load pre-calculated matrix value in a file into Simulink for simulation ?
Hi Tom, if it is a constant matrix I would do the following: add the load command to the preload function of the model (menu ...

14 years ago | 2

| accepted

Answered
How to load pre-calculated matrix value in a file into Simulink for simulation ?
Hi Tom, I would use the From File block to directly work with the matrix in the file. You would just need to make sure it has...

14 years ago | 0

Answered
Find the row of a word in a file
Hi, something like the following should do the trick fid = fopen('yourtextfile.txt', 'rt'); % read the entire file, i...

14 years ago | 2

| accepted

Answered
mysql&MATLAB
You could use the database toolbox, see <http://www.mathworks.com/products/database here>. Titus

14 years ago | 1

Answered
Regarding the size of matrix that Matlab can handle
Hi, it depends on version and operating system: on a 32Bit OS this will definetely fail, because the matrix would need about ...

14 years ago | 0

| accepted

Answered
Size and position of command window on screen
Hi Joseph, if you only want to use the command window you might just start MATLAB without the desktop matlab -nodesktop ...

14 years ago | 0

Answered
property access of objects arrays
Hi Johhny, the [] work here similar to accessing a field of a structure. There it is easy to explain using "comma seperated l...

14 years ago | 0

Answered
coverting to c code
Hi Rajesh, just to confirm: I guess you invoke coder by coder -build pca.prj instead of "-new"? I just gave it anothe...

14 years ago | 0

Answered
Making cpp code from Mfile.
Hi Jan, I would suggest to run the example from the MATLAB compiler section named "Libraries". Somewhere comes the call to mb...

14 years ago | 0

Answered
select random pixels
Hi, randperm should help you, here some (non tested) example code: % let A be the image (either NxM or NxMx3): % numb...

14 years ago | 0

Answered
how to control my datetick() axes
Hi, take a look at the parameters for datetick. I guess the "keeplimits" is what you are looking for. For the second questio...

14 years ago | 0

| accepted

Answered
run s-function in mfile
Hmm, there is indeed not much to be done: the function header of an S-function looks like this: [sys,x0,str,ts,simStateComp...

14 years ago | 0

Answered
add a new column into a database
Hi, if you take a look at a.Message, do you see an error message from the database server? Titus

14 years ago | 0

Answered
run s-function in mfile
Hi, it depends. Level-1 S-functions in MATLAB are just simple MATLAB functions. If you call with the correct input parameters...

14 years ago | 0

Solved


Differential equations I
Given a function handle |f| an initial condition |y0| and a final time |tf|, solve numerically the differential equation dy...

14 years ago

Solved


Math with Roman Numerals
Given a function R within (+,-,*,/) and two Roman numerals a & b, compute aRb in Roman numerals.

14 years ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

14 years ago

Answered
how can I remove duplicate objects (not integers) from an array?
Hi, something like this? x = [Quote Quote Quote]; x(1).ShareName = 'foo'; x(2).ShareName = 'bar'; x(3).ShareN...

14 years ago | 1

| accepted

Solved


Count from 0 to N^M in base N.
Return an array of numbers which (effectively) count from 0 to N^M-1 in base N. The result should be returned in a matrix, with ...

14 years ago

Solved


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

14 years ago

Solved


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

14 years ago

Solved


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

14 years ago

Solved


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

14 years ago

Solved


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

14 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

14 years ago

Solved


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...

14 years ago

Solved


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...

14 years ago

Load more