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

etwa 14 Jahre vor | 0

| akzeptiert

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

| akzeptiert

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 2

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

etwa 14 Jahre vor | 0

| akzeptiert

Gelöst


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

etwa 14 Jahre vor

Gelöst


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

etwa 14 Jahre vor

Gelöst


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

etwa 14 Jahre vor

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

etwa 14 Jahre vor | 1

| akzeptiert

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

| akzeptiert

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

etwa 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 2

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 0

Mehr laden