A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

Réponse apportée
Why solution of this equation is linear in simulink
Hi, hmm, the answer probably is "because you made an error while implementing the model", but I guess this is something you a...

plus de 14 ans il y a | 0

Réponse apportée
Parallel Computing Toolbox - Need help to start with...
Hi Alok, a simple sample that employs all workers (and therefore should spread across the machines your workers run on) would...

plus de 14 ans il y a | 0

Réponse apportée
how to decrements variable in for loop
Hi, doc for and take a look at the parameter "stepval". Titus

plus de 14 ans il y a | 1

Réponse apportée
Parallel Computing Toolbox - Need help to start with...
Hi Alok, some clarifications: you want to use "two systems". Does this mean, two different machines? In this case the Paralle...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
how to insert elements in listbox?
Hi Usama, something like the following: files = dir(fullfile(theFolder, '*.jpg')); set(handles.listbox1, 'string', {f...

plus de 14 ans il y a | 0

Réponse apportée
Using the solve function to solve for x in a quadratic
Hi, why do you then compute symbolically? x = roots([a0 -(B/A-Delta) n]); xpos = x(x>0) gives you 50.7873. Tit...

plus de 14 ans il y a | 0

Réponse apportée
Building a jar file in Matlab
Hi Ali, just to make sure: you have an .exe compiled from MATLAB file and want to create a jar file from it? That's not possi...

plus de 14 ans il y a | 0

Réponse apportée
Mex & shared library
Hi, usually it is sufficient to do the following: add an include statement for the library to your mex file, so that the comp...

plus de 14 ans il y a | 1

Réponse apportée
Simulink - find_system does not work properly
Hi, if the block is in a library, you should "follow links", i.e., find_system(gcs, 'FollowLinks', 'on', 'Tag', 'Develop...

plus de 14 ans il y a | 0

Réponse apportée
can't load file.mat into listbox?
Hi, whos might read directly from file, i.e., vars = whos('-file', 'file.mat'); set(handles.listbox1, 'String', {vars...

plus de 14 ans il y a | 1

Réponse apportée
Read double datas
Hi, with fscanf you need not read all data at once but might read only N numbers (take a look at the doc). Use ftell and fsee...

plus de 14 ans il y a | 0

Réponse apportée
How to fix error done by pressing "Cancel" button
Hi, the uiputfile dialog returns 0 for the filename if the user presses cancel: filename = uiputfile; if filename==0 ...

plus de 14 ans il y a | 5

| A accepté

Réponse apportée
Simulink scope autoscale
Hi Raldi, assuming the scope blocks are open, the following piece of code does the autoscaling for you: % find all scope...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
"x is not recognized as an internal or external command, operable program or batch file"
Hi Cenk, it might be the case that DynusT is not on the system path. If you open a Command Window in Windows (Windows Button,...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
cell into a cell
This sounds more like a struct? for i=1:3 for j=1:2 TXT.(Name{i}){j,1} = rand(12); end end Or use c...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
cell into a cell
Hi, I guess Named(1:3) = {Data}; is too simple? Titus

plus de 14 ans il y a | 0

Réponse apportée
How to create a .lib file for graph.h graph.cpp and mxflow.cpp files to be used futher for mbuild parameters
Hi, you can either use mbuild itself for this task (add a .exports file to your list of files to be compiled, see doc m...

plus de 14 ans il y a | 0

Réponse apportée
matlab function
Yes, the display block also displays matrices. Just give it a try, make a block that outputs a constant matrix and feed it to th...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Matlab simulink access to gui handle in listener
Hi, if the GUI is programmed with GUIDE, you should be able to collect the handles by just calling the gui again. If your gui...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Problem in using Function with in a function
Hi, you don't need to use global variables. You can use anonymous functions to do so. If this is the function to be optimized...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Debuger doest not work with Object Oriented Programming
Hi Javier, they should work. You might be stumbled across one of the following two points: when you change the class file, th...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Removing NaN's and interpolating missing data
Hi, a good starting point could be the File Exchange, e.g. <http://www.mathworks.com/matlabcentral/fileexchange/27994-inpain...

plus de 14 ans il y a | 0

Réponse apportée
Getting MATLAB Numeric Arrays from a Component
Hi Srikanth, you are nearly done. Some slight changes: although you have only one output argument, the method will return an ar...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
MCR Installer - is there a license file whic
The terms under which the MCR may be distributed is handled in section 5.2 of the "Deployment Addendum" of matlabroot/license.tx...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
which toolbox
Hi, using ver you will see the installed products (as you say, just MATLAB). You might ask either your system admini...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Mex file crash after second run.
Hi Jon, the problem is, you use the temporary memory of output in mxSetPr. mxSetPr does not copy but only set's the pointer. ...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
lsqnonneg
Hi, if you take a closer look at your data you observe: 1. the two columns of C are very similar, therefore it's no surpri...

plus de 14 ans il y a | 0

Charger plus