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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 2

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

14 years ago | 0

| accepted

Solved


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

14 years ago

Solved


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

14 years ago

Solved


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

14 years ago

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

14 years ago | 1

| accepted

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 1

| accepted

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

14 years ago | 2

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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 1

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

14 years ago | 0

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 1

| accepted

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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 1

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

14 years ago | 1

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

14 years ago | 0

Load more