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

alrededor de 14 años hace | 0

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 0

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 2

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

alrededor de 14 años hace | 0

| aceptada

Resuelto


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

alrededor de 14 años hace

Resuelto


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

alrededor de 14 años hace

Resuelto


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

alrededor de 14 años hace

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

alrededor de 14 años hace | 1

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 0

| aceptada

Respondida
using .csv files with Matlab
Look into csvread and xlsread, they should be able to get the data imported into MATLAB.

alrededor de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 2

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 1

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 1

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

más de 14 años hace | 1

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

más de 14 años hace | 0

Cargar más