Réponse apportée
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 ...

plus de 14 ans il y a | 1

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

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
mysql&MATLAB
You could use the database toolbox, see <http://www.mathworks.com/products/database here>. Titus

plus de 14 ans il y a | 1

Réponse apportée
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 ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

Charger plus