Réponse apportée
How do I extract multiple vectors of different lengths from a single vector?
You should store each extracted vector in a cell array. The elements of a cell array do not care if they are different lenths: ...

plus de 12 ans il y a | 0

Réponse apportée
how to crop a rectangle/square out of a image when four end points are given ?
In MATLAB, an image is really just a matrix. You could do something like this: m = ones(20,20,3) m(3:8,2:17,:) = 0 i...

presque 13 ans il y a | 0

Réponse apportée
Issue with updating xlabel/ylabel
Can you save the handle of the updated label, and just change the string property?

presque 13 ans il y a | 0

Réponse apportée
Working around looping problem
Use Simulink for time based simulation. This is simple enough though that you can do this in MATLAB. Put a flag that gets to...

presque 13 ans il y a | 0

Réponse apportée
how to make and interface GUI and 3D model of AIRCRAFT in MATLAB SIMULINK
This will give you a start: http://blogs.mathworks.com/videos/2011/02/02/animating-an-objects-trajectory-in-matlab-with-hgtra...

presque 13 ans il y a | 1

Réponse apportée
Undefined function 'cell2str' for input arguments of type 'cell'.
There is no command cell2str in core MATLAB.

presque 13 ans il y a | 0

| A accepté

Réponse apportée
correct syntax for appending number to word in for loop
for i = 1:10; str = ['dt' num2str(i)] end

presque 13 ans il y a | 0

| A accepté

Réponse apportée
how to select specific values in a matrix
>> a = magic(10) a = 92 99 1 8 15 67 74 51 58 40 98 80 7 14 ...

presque 13 ans il y a | 6

| A accepté

Réponse apportée
How are ninja solutions even possible in Cody?
Not sure if I am using super-powers to see the leading solution that you pointed to but his is what was leading: function y...

presque 13 ans il y a | 2

| A accepté

Réponse apportée
How to display a complex number in edit in GUI?
Make a second edit box right next to it that only displays the imaginary part and is labeled with an i (or j if you are that typ...

presque 13 ans il y a | 0

Réponse apportée
Rotational Movement of an object
<http://blogs.mathworks.com/videos/2011/02/02/animating-an-objects-trajectory-in-matlab-with-hgtransform/ Relevant> A video u...

presque 13 ans il y a | 0

Réponse apportée
How to consolidate rows with same value, while adding their cells?
clear d = {'date', 'precip'; '2/1', 4; '2/1', 5; '2/1', 6; '2/2', 2; '2/2', 3; '2/2', 1; '2/2',4} dates = {d{2:...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
Question about plotting a long series of lines
>> clf; tic; for i = 1:10000; h(i) = line(rand(1,2), rand(1,2)); end; toc Elapsed time is 0.933154 seconds. I respect the id...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Fix the position of GUI
<http://www.mathworks.com/support/solutions/en/data/1-3MY8PN/ This> might help.

presque 13 ans il y a | 0

Réponse apportée
Getting the maximum value of several matrices loaded from image files.
Do not store the images in cells. Just load each in turn, get the maximum value. Compare this maximum value to the previously ...

presque 13 ans il y a | 1

Réponse apportée
How do I open a GUI from a GUI?
This <http://www.mathworks.com/help/matlab/creating_guis/making-multiple-guis-work-together.html documentation link> might help....

presque 13 ans il y a | 0

Réponse apportée
how to plot histogram of hue value in polar ?
<</matlabcentral/answers/uploaded_files/4325/colorWheel.jpg>> clear clc clf z = peaks(300); r = z(:,150);...

presque 13 ans il y a | 3

Réponse apportée
How to deal with gui's and handles in .m
<http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/ Video dealing with th...

presque 13 ans il y a | 0

Réponse apportée
GUI 'uitable' with option to add rows using push button
Add button to your code of this form: handles.uitable is the handle to your uitable. % --- Executes on button press in p...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
how to set up color range?
Imagesc is for image SCaled. Use image instead, it will keep the same color range rather than scaling to use the full dynamic r...

presque 13 ans il y a | 0

Réponse apportée
What is a wrapper?
This is a reasonable definition: http://en.wikipedia.org/wiki/Wrapper_library How do you know it is a wrapper if you do no...

presque 13 ans il y a | 0

Réponse apportée
What does "Reference to non-existent field 'minfoFileRevision' " mean and how do I solve the problem?
Something, somewhere, is trying to refer to a field of a structure that does not exist. Here is a simple way to get that error....

presque 13 ans il y a | 0

Réponse apportée
How to make figure appear within defined axes of guide?
plot(hAxes, WHATEVER you were plotting before) This will force plot to use the axes refered to by the handle hAxes.

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Plot 4d surface from x, y, z, c data
I am not sure, but I think you might want <http://www.mathworks.com/matlabcentral/fileexchange/764-sliceomatic sliceomatic>

presque 13 ans il y a | 1

| A accepté

Réponse apportée
parfor and global variables
Why use globals? They are often just confusing and hard to debug. Just pass them into simuconf.

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Why are loops the devil?
In looking at your first code, I expect it is the FIND that is slowing down the code. In the second it is likely the num2str th...

presque 13 ans il y a | 0

Réponse apportée
set enable propeprty to off
You might want to put a DRAWNOW before simulation. It could help to ensure the GUI is updated before simulation is called.

presque 13 ans il y a | 0

Réponse apportée
Probability function of people at a party.
I did not run everything, but here is a problem: if m = 1 %checks first condition = is a statement. == is a question. ...

environ 13 ans il y a | 0

| A accepté

A résolu


Get ranking of a combination looking for speed.
I have the numbers pulled without replacement from the set [1 2 3 4 5 6 7 8 9 10 11 12 13]; They are then ordered from least to...

environ 13 ans il y a

Problème


Get ranking of a combination looking for speed.
I have the numbers pulled without replacement from the set [1 2 3 4 5 6 7 8 9 10 11 12 13]; They are then ordered from least to...

environ 13 ans il y a | 3 | 52 solveurs

Charger plus