Risolto


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

oltre 14 anni fa

Risolto


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

oltre 14 anni fa

Risolto


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

oltre 14 anni fa

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 0

Risposto
how to decrements variable in for loop
Hi, doc for and take a look at the parameter "stepval". Titus

oltre 14 anni fa | 1

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

oltre 14 anni fa | 2

| accettato

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 1

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 1

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 5

| accettato

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

oltre 14 anni fa | 1

| accettato

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

oltre 14 anni fa | 2

| accettato

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

oltre 14 anni fa | 1

| accettato

Risposto
cell into a cell
Hi, I guess Named(1:3) = {Data}; is too simple? Titus

oltre 14 anni fa | 0

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 0

| accettato

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

oltre 14 anni fa | 1

| accettato

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

oltre 14 anni fa | 0

| accettato

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

oltre 14 anni fa | 1

| accettato

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 1

| accettato

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

oltre 14 anni fa | 0

| accettato

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

oltre 14 anni fa | 0

| accettato

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

oltre 14 anni fa | 1

| accettato

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

oltre 14 anni fa | 0

Carica altro