Risolto

The Answer to Life, the Universe, and Everything

A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...

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

quasi 12 anni fa

Risposto

Parallel Computing and Save function

The <http://www.mathworks.com/help/toolbox/distcomp/labindex.html |LABINDEX|> function returns the index of the worker. You shou...

Parallel Computing and Save function

The <http://www.mathworks.com/help/toolbox/distcomp/labindex.html |LABINDEX|> function returns the index of the worker. You shou...

quasi 12 anni fa | 4

| accettato

Risolto

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

quasi 12 anni fa

Risposto

Error when using decsg (PDE Toolbox)

Please make sure that your input matrix is valid. For example if it defined polygons, please make sure it does not contain any d...

Error when using decsg (PDE Toolbox)

Please make sure that your input matrix is valid. For example if it defined polygons, please make sure it does not contain any d...

oltre 12 anni fa | 0

| accettato

Risolto

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

oltre 12 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 12 anni fa

Risolto

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

oltre 12 anni fa

Risolto

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

oltre 12 anni fa

Risposto

Standalone application for Mac

Yes this is possible since MATLAB Compiler 4.13 (R2010a). You will need to install and configure a preferences pane though; see ...

Standalone application for Mac

Yes this is possible since MATLAB Compiler 4.13 (R2010a). You will need to install and configure a preferences pane though; see ...

quasi 13 anni fa | 0

| accettato

Risposto

Compiler cannot find "tmwtypes.h"

Note that matrix.h has the following include line: #include <tmwtypes.h> So that is with <> brackets and not "" double ...

Compiler cannot find "tmwtypes.h"

Note that matrix.h has the following include line: #include <tmwtypes.h> So that is with <> brackets and not "" double ...

circa 13 anni fa | 3

| accettato

Risposto

How do I package a multi-file MATLAB project into a Java program?

With MATLAB Builder JA, there is no main MATLAB file. The MATLAB functions which you add to a certain class will become methods ...

How do I package a multi-file MATLAB project into a Java program?

With MATLAB Builder JA, there is no main MATLAB file. The MATLAB functions which you add to a certain class will become methods ...

circa 13 anni fa | 3

| accettato

Risposto

avi codec issues in 64-bit Windows 7 environment

The Xvid codec works pretty well in combination with MATLAB. A 64-bit version can be downloaded from: <http://www.digital-dig...

avi codec issues in 64-bit Windows 7 environment

The Xvid codec works pretty well in combination with MATLAB. A 64-bit version can be downloaded from: <http://www.digital-dig...

circa 13 anni fa | 0

Risposto

problem of DOS window

I guess you use MATLAB Compiler. In that case what you could do is first implement a GUI in MATLAB for example using GUIDE or by...

problem of DOS window

I guess you use MATLAB Compiler. In that case what you could do is first implement a GUI in MATLAB for example using GUIDE or by...

circa 13 anni fa | 0

Risposto

Help request: using Instrument Control toolbox with Ni-Scope and PXI-5122

To add to Ankit's instructions, there is also a third option: 3. The device can be NI-DAQmx and show up as "Dev1" or "Dev2", ...

Help request: using Instrument Control toolbox with Ni-Scope and PXI-5122

To add to Ankit's instructions, there is also a third option: 3. The device can be NI-DAQmx and show up as "Dev1" or "Dev2", ...

circa 13 anni fa | 0

Risposto

Datacursormode

Yes this is possible and documented under "Creating Multiple Data Tips" on: <http://www.mathworks.com/help/techdoc/creating_p...

Datacursormode

Yes this is possible and documented under "Creating Multiple Data Tips" on: <http://www.mathworks.com/help/techdoc/creating_p...

oltre 13 anni fa | 1

| accettato

Risposto

Database Connectivity in MATLAB 2010B picks up only one row from Oracle

Please consider using JDBC drivers instead of ODBC: # They are more reliable on 64-bit Windows. # They should perform better...

Database Connectivity in MATLAB 2010B picks up only one row from Oracle

Please consider using JDBC drivers instead of ODBC: # They are more reliable on 64-bit Windows. # They should perform better...

oltre 13 anni fa | 0

| accettato

Risposto

Extendable, but bacward compatible M code.

Working with structures is indeed an option. Other options include working with VARARGIN and VARARGOUT: <http://www.mathworks.c...

Extendable, but bacward compatible M code.

Working with structures is indeed an option. Other options include working with VARARGIN and VARARGOUT: <http://www.mathworks.c...

oltre 13 anni fa | 0

| accettato

Risposto

Forcing a singleton to be treated as a SAFEARRAY

The default data conversion rules for MATLAB's COM interface convert all non-scalar MATLAB arrays into 2-dimensional SAFEARRAYs...

Forcing a singleton to be treated as a SAFEARRAY

The default data conversion rules for MATLAB's COM interface convert all non-scalar MATLAB arrays into 2-dimensional SAFEARRAYs...

oltre 13 anni fa | 1

Risposto

Mex Error: undeclared identifier What does this mean?

USE_DEFAULT_SIM_STATE is defined in simstruc.h so it sounds like you may be missing the following include in your C code: #...

Mex Error: undeclared identifier What does this mean?

USE_DEFAULT_SIM_STATE is defined in simstruc.h so it sounds like you may be missing the following include in your C code: #...

oltre 13 anni fa | 0

Risposto

Simple GUI to allow Surface plot from excel

There are various ways in which you can call MATLAB from Excel: * <http://www.mathworks.com/products/excellink/ Spreadsheet L...

Simple GUI to allow Surface plot from excel

There are various ways in which you can call MATLAB from Excel: * <http://www.mathworks.com/products/excellink/ Spreadsheet L...

oltre 13 anni fa | 0

Risposto

Inserting a column in a matrix without deleting any column

Suppose you have: >> A=reshape(1:16,4,4) A = 1 5 9 13 2 6 10 14 3 ...

Inserting a column in a matrix without deleting any column

Suppose you have: >> A=reshape(1:16,4,4) A = 1 5 9 13 2 6 10 14 3 ...

oltre 13 anni fa | 12

| accettato

Risposto

Import data from GUI into cell

Suppose you have: A = 'a b c'; Possibly obtained by: A = get(handles.myTextEdit,'String'); Then to get each char...

Import data from GUI into cell

Suppose you have: A = 'a b c'; Possibly obtained by: A = get(handles.myTextEdit,'String'); Then to get each char...

oltre 13 anni fa | 0

Risposto

Embed a Matlab graph in a C++ GUI application

You cannot embed an "interactive graph" into your C++ GUI, static graphs should work though. So you are then just displaying the...

Embed a Matlab graph in a C++ GUI application

You cannot embed an "interactive graph" into your C++ GUI, static graphs should work though. So you are then just displaying the...

oltre 13 anni fa | 1

Risposto

Combining legend data

What you could do here is first change your code a little to obtain handles to the plot: p1= plot(4.5+rand(1,50),'o'); ...

Combining legend data

What you could do here is first change your code a little to obtain handles to the plot: p1= plot(4.5+rand(1,50),'o'); ...

oltre 13 anni fa | 1

| accettato

Risposto

Iteration of changing discrete variables

You do not necessarily need to have a "standard increase" in a FOR-loop variable, for example the following code is valid: ...

Iteration of changing discrete variables

You do not necessarily need to have a "standard increase" in a FOR-loop variable, for example the following code is valid: ...

oltre 13 anni fa | 1

Risposto

Use of C++ External Interfaces API with Matlab Compiler Run Time

The following section of the MATLAB documentation tells you which libraries are needed to be able to use the MAT-File API from e...

Use of C++ External Interfaces API with Matlab Compiler Run Time

The following section of the MATLAB documentation tells you which libraries are needed to be able to use the MAT-File API from e...

oltre 13 anni fa | 1

| accettato

Risposto

"From Workspace" time delay

If you right-click a block and select "Block Properties..." you can enter a Priority which influences the order in which blocks ...

"From Workspace" time delay

If you right-click a block and select "Block Properties..." you can enter a Priority which influences the order in which blocks ...

oltre 13 anni fa | 0

| accettato

Risposto

I have 2 columns and 10 rows of numerical data in my excel file. How to import this data in to MATLAB and then plot it?

Importing data from Excel can be done using the “readtable” function. For example, to read all data from myfile.xls: T =...

I have 2 columns and 10 rows of numerical data in my excel file. How to import this data in to MATLAB and then plot it?

Importing data from Excel can be done using the “readtable” function. For example, to read all data from myfile.xls: T =...

oltre 13 anni fa | 11

| accettato

Risposto

How to create windows forms in MATLAB?

I assume you are talking about .NET's Windows Forms, if so you would need to start with loading the correct Assembly: NET.a...

How to create windows forms in MATLAB?

I assume you are talking about .NET's Windows Forms, if so you would need to start with loading the correct Assembly: NET.a...

oltre 13 anni fa | 3

| accettato