Réponse apportée
Help with Basic 2D Contour Plot
Hi, don't use a loop. Use meshgrid: s=[0:1:3] t=[0:1:3] [X,Y] = meshgrid(s,t) Z =triarea(X,Y); contour(...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
the question is: Create a function which finds the root of an equation numerically by using the following recursive formula :
Hi, why using symblic math when doing it nurmerically anyway? You can do this with plain MATLAB right away: f = @(x) e...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How can I create an executable file from function that need to "addpath" some folders and call one hundred functions and dll files?
Hi, start here: <http://blogs.mathworks.com/loren/2008/08/11/path-management-in-deployed-applications/> and VERY import...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
How do I generate the first four polynomials?
Hi, what about: for i=1:4 P{i} = 1/(( 2^i)*factorial(i)) * diff(sym(['(x^2-1)^',num2str(i)]),i) end Since y...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
can a function with no input arguments is possible to generate?
Hi, sounds like kf2 is NOT a function. It should be saved with the name kf2.m and should look like this: function output...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
How to run a for loop every one second ?
Try this, function a = test a = timer('ExecutionMode','fixedRate','Period',1,'TimerFcn',@myfun); start(a); ...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
"Maximum variable size allowed by the program is exceeded." When using the syndtable command
Hi, n_k is 64 so >>2^n_k ans = 1.8447e+19 and n is 72. The code calls zeros(2^n_k,n) which would ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
I can`t use data acquisition toolbox
Hi, most likly you use a 64bit MATLAB with a 64bit Data Acquisition Toolbox. The Simulink Library is based on the Legacy inte...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to execute parallel functions ?
Hi, look at createTask and createJob. You create a Task for each file, let the worker process is and pass the data back to MA...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to add a channel with session based interface?
Hi, it seems more like a programming mistake on your end. MATLAB is Case sensitive. Make sure you use the correct syntax: ...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Error while deploying excel add-in
Hi, thats an evil bastard of error. The error isn't located on the MATLAB side directly. # Make sure the correct mwcomuti...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
ONLY load matfiles that contain a variable
Hi, you can use whos to see if there are any variables in the mat file and which ones: info = whos('-file','myfile.mat')...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Mex: out of memory mxCreateNumericArray
Hi, that works fine for me. I assume you use a 32bit MATLAB? The variable you create needs 960mb of memory in one piece which...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
How do I extract a matrix from a .txt file?
Hi, if it has really that format a dlmread should do the job: A = dlmread('yourfile.txt',' '); So when copy pasting y...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Image Acquisition Toolbox - imaqtool gets only black images
Hi, in the case you are on Windows: The PacketSize field of the source object must match the value of the Jumbo Frames pro...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
make MCR start up time fast?
Hi, thats not possible. The MCR closes when the exe terminates. Consider using .NET Remoting to let the MCR run all the ti...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Why is Matlab not abled to run this as a parfor loop?
Hi, MATLAB thinks a is a sliced variable and you get troubles with the indices here. I think in such a case its better to use...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
how can i convert a file into a matrix?
Hi, you can always apply fileread to any file (and write it back with fopen,fwrite,flcose) but the main question will be: Wha...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Can't run level2 or level 3 BLAS routines with Maltlab on a VIA CPU
Hi, This error can be caused by a wrong setting for the environment variable BLAS_VERSION. Check for the existense of this va...

plus de 13 ans il y a | 0

Réponse apportée
Generating dependent toolbox only used in matlab program
Hi, you can close your MATLAB, open it again (needed in order to return all licenses), run your code once and then use l...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
running exe file with inputs
Hi, you can use the system command or the bang operator (!), e.g. !my.exe -flag1 value1 -flag2 value2 Or [a,b]...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
call mexfile from sfunction
Hi, at least a mexCallMATLAB from the S-function should work. Or also runtime dynamic linking. See my post here: <http://w...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
'inline' command at 'for' loop... can we?
Hi, yes it should be possible but its better to create some Anonymous Functions instead of using inline, e.g. f = cell...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
using matlab to send strings to the STDIN of another console application
Sup :) MATLAB itself don't has a feature for that but .NET has: <http://msdn.microsoft.com/en-us/library/system.diagnostic...

plus de 13 ans il y a | 5

| A accepté

Réponse apportée
Unprotect excel file from matlab
Hi, the error you get: Sorry, we couldn't find C:\Users\Cedric\Desktop\Learning GUIBook1.xlsx suggests a missing ...

plus de 13 ans il y a | 2

Réponse apportée
how to integrate matlab generated dll into visual studio /C++
Hi, you need to explictily link against mclmcrrt.lib and also against myscript.lib. The mclmcrrt.lib is located in the C:\Pro...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
convert a string vector to a vector of numbers
Hi, as long there are no [] in the string use textscan: textscan('1 2 3 4 6.3','%f','delimiter',' ') In the case ther...

plus de 13 ans il y a | 0

Réponse apportée
Create multiple plots above each other
Hi, you dont need multiple axis. It's all about creating an "illusion". Abracadabra: x = 0:10:300; %generate nu...

plus de 13 ans il y a | 5

| A accepté

Réponse apportée
If statement with multiple conditions
Hi, this ((blob(j,4)-50)<centroid(1)<(blob(j,4)+50)) wont work as you might think it will. You need to split it up into ...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Textscan Usage. One character in one cell.
Hi, >> fid = fopen('in.txt') >> data = textscan(fid,'%c') data = [5x1 char] >> fclose(fid) data is ...

plus de 13 ans il y a | 0

| A accepté

Charger plus