Réponse apportée
"print figure" to variable... getframe, with better resolution...
Take a look at <http://www.mathworks.com/matlabcentral/fileexchange/23629 |export_fig|> which is a user-submitted file on File E...

plus de 14 ans il y a | 0

Réponse apportée
structure conversion
Functions can take structures (created from Simulink or elsewhere). It depends on which function you're trying to call. That det...

plus de 14 ans il y a | 0

| A accepté

Publié le


Interactive Curve Class
Jiro's pick this week is Interactive Curve Class by Maxim Vedenyov. Have you ever wanted to create a test data set...

plus de 14 ans il y a

Thumbnail

Réponse apportée
Unable to run Discriminant Analysis
|ClassificationDiscriminant| class is new in R2011b Statistics Toolbox. Do you have R2011b?

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
"rise time, overshoot, settling time" from Simulink graph?
If you have <http://www.mathworks.com/products/control/ Control System Toolbox>, you can use <http://www.mathworks.com/help/tool...

plus de 14 ans il y a | 1

| A accepté

A résolu


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

plus de 14 ans il y a

Réponse apportée
Need help solving second order differential equations using ODE45
The initial conditions imply that t=0, so you simply need to pass in the two initial conditions for x and dx/dt. So for your exa...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Pop up menu
Value = 2; set(handles.popupmenu, 'Value', Value); |'Value'| refers to the "Value" property of the pop up menu. The seco...

plus de 14 ans il y a | 1

| A accepté

A résolu


Angle between two vectors
You have two vectors , determine the angle between these two vectors For example: u = [0 0 1]; v = [1 0 0]; The a...

plus de 14 ans il y a

Réponse apportée
Warning "Unable to interpret LaTeX string ..."
In case you didn't know, you could suppress certain warnings, like this: warnState = warning('off', 'MATLAB:gui:latexsup:Ba...

plus de 14 ans il y a | 0

Réponse apportée
Using gcf in functions
<http://www.mathworks.com/help/matlab/ref/gcf.html |gcf|> is not a variable, but rather a function. So you don't need to treat i...

plus de 14 ans il y a | 3

A résolu


Specific Element Count
Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

plus de 14 ans il y a

Réponse apportée
How to find all XY Graphs in Simulink model
As you can see from the FRP for <http://www.mathworks.com/help/toolbox/simulink/slref/find_system.html |find_system|>, you can s...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Fastest way to dot product all columns of two matricies of same size
When you say you're doing the dot product, I assume you're doing this: v1'*v2 and not dot(v1, v2) The equivalent...

plus de 14 ans il y a | 0

A résolu


Find matching string from a list of strings
Write a function that returns a string that is a unique match (if it exists) of the string |inStr| from a list of strings |strLi...

plus de 14 ans il y a

Problème


Find matching string from a list of strings
Write a function that returns a string that is a unique match (if it exists) of the string |inStr| from a list of strings |strLi...

plus de 14 ans il y a | 4 | 276 solveurs

A résolu


First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

plus de 14 ans il y a

A résolu


Back to basics 14 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of all MATLAB keywords

plus de 14 ans il y a

Réponse apportée
File modification alert from windows api
You may be able to use the .NET interface, using the <http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx F...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
How do I activate Simulink with R2011a Student Version?
Where are you looking for the icon? There will be no separate Simulink icon in your OS desktop. You start Simulink by starting M...

plus de 14 ans il y a | 0

Réponse apportée
creating a single structure with 100 entries
You don't need to create a structure for that. You can do this: C2 = cat(3, C{:}); avg = mean(C2, 3) FYI, to answer y...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
How do I delete a field variable from a structure
|handles.Data| is a field of variable |handles|. To delete a field, handles = rmfield(handles. 'Data'); To set the field...

plus de 14 ans il y a | 4

| A accepté

A résolu


Back to basics 15 - Benchmark
Covering some basic topics I haven't seen elsewhere on Cody. Return an array of the benchmark values for MATLAB.

plus de 14 ans il y a

Réponse apportée
problem acquiring the video from webcam
Put a breakpoint on line 4 of your function |getCameraInfo|, and explore your variable |camera_info|. Maybe your laptop isn't re...

plus de 14 ans il y a | 0

A résolu


Tricky timing
Write a function that takes between 0.5 seconds and 0.6 seconds to run.

plus de 14 ans il y a

A résolu


Trickier Timing
You solution should return control to main program only when the current time ends in either a 5 or 0 (e.g. the current seconds ...

plus de 14 ans il y a

A résolu


Circumscribed circles
Given the lengths of the 3 sides of a triangle, output the radius of the circumscribed circle. Example: [3 4 5] -> 2.5

plus de 14 ans il y a

A résolu


Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.

plus de 14 ans il y a

A résolu


Specific toolboxes
Given a string that is the name of a MATLAB toolbox, return true if it is available on the Cody solvers evaluation system, false...

plus de 14 ans il y a

A résolu


Toolbox check part 3
In my ongoing quest to highlight obscure parts of MATLAB, the latest challenge is to take 2 string inputs, one a MATLAB toolbox ...

plus de 14 ans il y a

Charger plus