답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

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

14년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

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

14년 초과 전 | 2

답변 있음
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년 초과 전 | 0

| 수락됨

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

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

14년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

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

14년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 2

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

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

14년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

더 보기