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

oltre 14 anni fa | 1

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

oltre 14 anni fa | 1

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

oltre 14 anni fa | 0

| accettato

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

oltre 14 anni fa | 2

| accettato

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 2

| accettato

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

oltre 14 anni fa | 1

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

oltre 14 anni fa | 0

| accettato

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 0

| accettato

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

oltre 14 anni fa | 0

Risposto
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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 0

Risolto


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

oltre 14 anni fa

Risolto


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

oltre 14 anni fa

Risolto


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

oltre 14 anni fa

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

oltre 14 anni fa | 1

| accettato

Risolto


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

oltre 14 anni fa

Risolto


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

oltre 14 anni fa

Risolto


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

oltre 14 anni fa

Risolto


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

oltre 14 anni fa

Risolto


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

oltre 14 anni fa

Risolto


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

oltre 14 anni fa

Risolto


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

oltre 14 anni fa

Risolto


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

oltre 14 anni fa

Risolto


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

oltre 14 anni fa

Carica altro