Réponse apportée
I need approssimation of pi with x digits
help format help fprintf

environ 14 ans il y a | 0

Réponse apportée
??? Attempted to access G(2); index out of bounds because numel(G)=1.
do you know how to bebug? highlight the line before the while loop in editor and hit F12 on keyboard. Run your code. Inspec...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
MCR
I dont think its possible no. Why would you need to ship 2?

environ 14 ans il y a | 0

Réponse apportée
Arrays
help reshape

environ 14 ans il y a | 0

Réponse apportée
xlsread from different folders
this is the same problem as <http://www.mathworks.com/matlabcentral/answers/22688-folders-containing-excel-spreadsheets your pre...

plus de 14 ans il y a | 0

Réponse apportée
folders containing excel spreadsheets
doc dir doc xlsread doc cell should give you somewhere to start...

plus de 14 ans il y a | 0

Réponse apportée
The code does not work with 1.7
As said above you have encountered the problem of floating point arithmetic, if change your counter to be 1 instead of 0.1 (and ...

plus de 14 ans il y a | 1

Réponse apportée
source code hiding.
help pcode

plus de 14 ans il y a | 0

Réponse apportée
Calling Matlab in Batch mode
point directly to the executable of the matlab you want to run instead of the shortcut/alias that you have set up.

plus de 14 ans il y a | 1

Réponse apportée
Changing horizontal axis to descending order
set ( gca, 'xdir', 'reverse' )

plus de 14 ans il y a | 13

| A accepté

Réponse apportée
matrix
something like: data(data(2:end,:)-data(1:end-1,:)>1)=NaN

plus de 14 ans il y a | 0

Réponse apportée
GUI help . Add List box++pushbutton in GUI for importing data subsets and select multiple data imported for further analysis
help dialog help uicontrol <http://www.mathworks.com/matlabcentral/fileexchange/24861 FEX Gui Examples>

plus de 14 ans il y a | 0

Réponse apportée
Vectorized for loop
before you spend a lot of time recoding - check where the code is slow. to do this use the profiler profile on % ru...

plus de 14 ans il y a | 0

Réponse apportée
Looking to get mouse position feedback interactively over a plot and send to text boxes in GUI
Check what hObject actually is - I suspect its not the figure handle - and hence doesn't have the property "CurrentPoint". If...

plus de 14 ans il y a | 0

Réponse apportée
program takes long time to run
you have 2 "pause" commands in the code - any idea how many times they are called? Have you used the profiler? profile o...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
creating a dll from .m function and using it in matlab as shared librery
As I understnad it you cant compile a dll from matlab m code which matlab will be able to load. i.e. m code -> dll -> load_in...

plus de 14 ans il y a | 0

Réponse apportée
plotting
your plotting your vector x1 against a scalar value of t. Change your code to: figure plot([0:.00001:1],x1) hold ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Trouble applying correctly the ListBoxTop property of uicontrol
how many items are in your listbox? Does your listbox have a vertical scrollbar? If you dont have enough items in the list...

plus de 14 ans il y a | 0

Réponse apportée
Saving GUI plot to bitmap file without displaying Matlab figure
I have a similar application in it I create postscript files using print ( GUIHANDLE, '-dpsc', 'TEMP_PS_FILE.ps', '-append',...

plus de 14 ans il y a | 1

Réponse apportée
Adding quotes to a user input
method = input('linear or cubic? ', 's'); will force the variable "method" to be a string.

plus de 14 ans il y a | 0

Réponse apportée
Axes handles
The image will be a child of the axes, so you can get it through the children field of the axes handle.

plus de 14 ans il y a | 0

Réponse apportée
Push button on a table
something like: uicontrol ( 'parent', f, 'style', 'pushbutton', 'position', [25 0 350 20], 'string', 'PUSH', 'Callback', {@...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Matlab plots
As stated run with -nodesktop to get just the command window. It will be a bit more involved to produce plots as you will need ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
What is the purpose of "inputdlg"?
also - step through the code line by line to understand whats its doing - use the help to look at the other commands.

plus de 14 ans il y a | 1

Réponse apportée
create an .exe file
what error do you get? You need to deploy the MCR installer to run the exe on a PC that doesn't have matlab. You can gener...

plus de 14 ans il y a | 0

Réponse apportée
Many questions about formatting heat maps
Q1: title(ax, ['Plot ' num2str(p) ': ' list{p}]); % note curly brackets to access the p element of your list. I dont have th...

plus de 14 ans il y a | 1

Réponse apportée
plot colour using GUIDE
set ( handles.axes2, 'Color', [1 0 1] )

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
How to extract information from cell?
use strfind to find the equal sign and then extract out the data to the right hand side of the equals, i.e. NEWVAR = str2num(...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Problem with ''if''
cellfun ( @isempty, values )

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Problem with Array initialization each time (Matlab embedded function)
you can either 1. Make your variable persistent function u1 = ..... persistent ErrpatternArray if isempty ( E...

plus de 14 ans il y a | 1

| A accepté

Charger plus