Réponse apportée
Display array values of varying orders of magnitude
|fprintf| with the |e| format will put everything in exponential notation: x = [1.234e16,42;0.3,6.789e8] fprintf([repmat...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
using control constraints in ode45
I must be missing something subtle. It looks like your equations are essentially dydt(1) = y(2); if (f(y(1),(2),y(3)) <...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
How to draw a bar graph from cell array with different size length?
This will extract the values and add zeros to the end, then extract all to a matrix. But are you sure the missing values are al...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Shortcut Key On Guide
For the first part, set the |KeyPressFcn| property of the GUI figure window. Enter |docsearch('figure properties')| and scroll ...

environ 14 ans il y a | 0

Réponse apportée
merging column vectors from the loop in to a single matrix
% preallocate space x = zeros(m,n); % iterate <=> loop over columns for k = 1:n y = ... % make vector here x(...

environ 14 ans il y a | 1

Réponse apportée
how to list functions/toolboxes required by a program
I think the answers to this question cover all the options I know of: http://www.mathworks.com/matlabcentral/answers/532-how-do-...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
How does getPosition work in impoly?
I'm not seeing the behavior you observe. You wrote _the "h=getPosition" function_, so I'm wondering if you're overwriting your ...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
xlsfinfo question
A little bit of clarification needed... From your code it appears that you have |m| directories; in any given directory there a...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
In an assignment A(I) = B, the number of elements in B and I must be the same.
|G| is growing in the loop, so |Pin(z)*G| is a vector (for |m >= 2|). You can't assign a vector to the single value |Pout(m)|, ...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
problem with saving dataset
What is the size of the variable in the workspace? (You can run |whos| to see this info.) If it's ~137 Mb then my guess is t...

environ 14 ans il y a | 0

Réponse apportée
How to get the coordinate of this four points?
With such a clean image, you can do it pretty easily: x = imread('barcode.gif'); y = x<15; figure imagesc(y), colormap(...

environ 14 ans il y a | 1

Réponse apportée
'legend' problem
As Junaid says, plotting all together is the nicest solution. However, if, for some reason, that isn't feasible for you, you ca...

environ 14 ans il y a | 0

Réponse apportée
problem with slider to move the plot
You could make a slider to control the zoom level of the x-axis, if that's what you mean: t = linspace(0,10); y = t.*cos(t)...

environ 14 ans il y a | 0

Réponse apportée
Fastest way of computing standard errors / inverting X'X
|inv| is evil -- avoid! The quickest way to do a regression is c = X\y; then you can calculate errors yourself res...

environ 14 ans il y a | 2

Réponse apportée
with cycle, changing the content of text
Something like this? for k = 1:n figure(k) % get x and y plot(x,y) xbar = mean(x); ybar = mean(y); st...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
index must be a positive integer or logical.
A stem plot is for discrete time points, by its very nature. Indeed, all plots are discrete at some level. Your loop is in tim...

environ 14 ans il y a | 1

Réponse apportée
calculation of the linear regression equation
If you have Statistics Toolbox doc regress If not, you can do it yourself (although you'll have to take care of NaNs or ...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
numel errors in matlab
My guess is that your line n(i,1)=(va(i,1)/3.6)*60*ik(i,1)*ie/(2*pi*rd); is resulting in an empty array on the right-hand si...

environ 14 ans il y a | 0

Réponse apportée
converting cell of strings in arry or cell of numbers
Try |str2double(tsince)|

environ 14 ans il y a | 0

Réponse apportée
Cell array of Cells to Cell array of Strings
Ah yes. This is a classic. data = [z_TestImport{:}]; is probably what you're looking for. The other option is to use the |...

environ 14 ans il y a | 5

| A accepté

Réponse apportée
strcmp and rows of dataset table
Sounds like a job for categorical arrays! Huzzah! (Assuming you have Statistics Toolbox.) BTW, you said "dataset" but you're ...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
show partically blokced x-axis
Quick fix: |set(gca,'Layer','top')| Cheap'n'dirty -- that's me :)

environ 14 ans il y a | 1

Réponse apportée
Quick question/explination Re 'movavg'
With |filter|, ignore the first n points. However, you're using the |'e'| option, which doesn't actually call filter. It uses ...

environ 14 ans il y a | 0

Réponse apportée
In an assignment A(I) = B, the number of elements in B and I must be the same
The only likely culprit is that your global variables are not what you think they are. The right-hand side of line 18 is probab...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Courier problem
Courier is a bitmap font so it doesn't rotate. The other fonts you tried are true type. Use Courier New instead.

environ 14 ans il y a | 2

Réponse apportée
Errors in Menu program
Pretty much what it says. The line |choice = eoption;| implies that |eoption| is a function call (because it is asking for an o...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Setting name of variable equal to name of imported file
If you're going to be looping on the files, you're probably doing something like x = cellstr(ls('*.xlsx')); for k = 1:le...

environ 14 ans il y a | 0

Réponse apportée
How to create a dataset array from table?
It seems like the problem is that your data is in the form of a 3824-by-97 cell array -- ie every value is in its own cell. If,...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
importing data from excel, finding the last row and inserting value in a matrix
If you're already reading in the data, why not just query its size? nrows = size(cycle,1); grade = [0,0;nrows,0];

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Set of points to Cartesian system
You can use |cmdscale| to reconstruct coordinates from distances. You will need a further restriction to determine the location...

plus de 14 ans il y a | 0

| A accepté

Charger plus