Réponse apportée
xlswrite precision problem
xlswrite does not provide this option itself. You could do the rounding in MATLAB before committing to file: A=rand(3) ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
matlab internal problem and needs to close - reading from dll in MEX
Double-check that you've initialized plhs[0] with mxCreateStructArray with at least the seven fields that you reference later on...

plus de 14 ans il y a | 0

Réponse apportée
Loading big file in standalone applications.
Can you clarify the platform you are targeting? I'm guessing 32-bit Windows (win32), but I'd like to be sure. If it is win32...

plus de 14 ans il y a | 0

Réponse apportée
error reading excel
xlsread returns (up to) three values, and it appears you are capturing all three: * numeric results (only) * text results (o...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Writing a script that writes a script
This technique is sometimes called <http://en.wikipedia.org/wiki/Metaprogramming metaprogramming>. Jason has good tips. I woul...

plus de 14 ans il y a | 0

Réponse apportée
Parfor to speed up loops
You code looks good to go. # Replace the "for" with "parfor" # "matlabpool open" before starting # "matlabpool close" when ...

plus de 14 ans il y a | 2

Réponse apportée
Matlab R2011b unable to compile C file in Ubuntu
I think the warning is a bit of distraction here. Even when using a version of gcc different than what MATLAB officially suppor...

plus de 14 ans il y a | 0

| A accepté

A résolu


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

A résolu


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

plus de 14 ans il y a

Réponse apportée
Mex file issue
It sounds like you have the right stuff installed. Can you try running a 64-bit Visual Studio Command Prompt (from the Windows ...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Executing unix commands set in PATH in matlab does not work with unix command
MATLAB does not source your BASH shell resource file, so anything established in that file may not be available to the |unix| co...

plus de 14 ans il y a | 0

Réponse apportée
R2006a 64-Bit / VC++ 2010 SDK 7.1 / Simulink / Embedded Matlab Fcn make error: lccmake
Are you sure you are using 64-bit R2006a with the 7.1 SDK? I ask because 6a pre-dates this SDK by a number of years, and 6a doe...

plus de 14 ans il y a | 0

Réponse apportée
libmwblas: load error
Sam, it seems like you restore may have been less than perfect. This is a pretty fundamental error that you are seeing. I reco...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
using .csv files with Matlab
Look into csvread and xlsread, they should be able to get the data imported into MATLAB.

plus de 14 ans il y a | 0

Réponse apportée
Error in Matlab compiler for MAC
See <http://www.mathworks.com/matlabcentral/answers/18762-annoying-matlab-start-up-warnings-on-mac-matlab_maci64-attempting-to-e...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Can't compile MEX-files under OS X Lion... even with patch!
Rather than run MATLAB as root, I would encourage you first copy any MEX example file that ships with MATLAB to a folder that yo...

plus de 14 ans il y a | 0

Réponse apportée
Error in publishing
Gurudatha, SaveAs works with earlier versions of Office, but Office 2010 needs "SaveAs2", as you have discovered. :) R2011b add...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
How to optimize my code??
Your profile tells us that all the time is being spent in two MATLAB functions. You could replace the imcrop call with simple M...

plus de 14 ans il y a | 2

Réponse apportée
poor MATLAB 2011b performance on OSX 10.6
Knut, your usage of MATLAB sounds pretty normal and akin to how I work much of the time. I am also on a Mac (desktop mostly, I ...

plus de 14 ans il y a | 0

Réponse apportée
Make error in simulink
I'd need to see the exact error message to be sure, but I'll hazard a guess: You are using the latest Apple operating system ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Multithreaded FILTER?
For me, running 11b on a dual-core MacBook Pro (i5), multi-threading kicks in only if variable x is at least 8 columns wide. Li...

plus de 14 ans il y a | 1

Réponse apportée
Mac debug keyboard shortcuts
<http://blogs.mathworks.com/desktop/2009/09/28/configurable-keyboard-shortcuts-have-arrived/ Configurable shortcuts> were added ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Simulink - C++ interface: How data transfer is done between a visual c++ program and the simulink engine
MEX S-Functions are generally envisioned as being a way to call C/C++ functions *from* MATLAB, and you are looking to the opposi...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Matlab .net assembly symbolic toolbox
<http://www.mathworks.com/help/toolbox/compiler/br2cqa0-2.html#br2cqa0-4 This doc page> states that the Symbolic Math Toolbox ca...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
how do I set up a user for both linux and windows matlab use?
First, I would confirm that the preference folders are indeed identical. <http://blogs.mathworks.com/desktop/2009/12/07/the-pre...

plus de 14 ans il y a | 0

Réponse apportée
Newbie question
You may be used to Excel, where a change in the value of an input variable "cascades" throughout the spreadsheet. In MATLAB, ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
gcc-4.2 not found
Recent versions of MATLAB are configured to use a compiler that is no longer provided as-of Xcode v4.2 (released in the last cou...

plus de 14 ans il y a | 1

Réponse apportée
MATLAB Function Simulink Block "Make Error"
A Fangjun, indicated, you need a C compiler, namely the one provided with Xcode. If you already have (or now install) Xcode v4....

plus de 14 ans il y a | 1

Réponse apportée
error when reading from xls sheet
If the file 'v' contains '10;0;0;10', the statement: V= [V(1);0;0;V(2)]; two lines later would reset V to '10;0;0;0' as ...

plus de 14 ans il y a | 0

Charger plus