Resuelto


Is my wife right?
Regardless of input, output the string 'yes'.

más de 10 años hace

Respondida
Find submatrix with the maximum sum
Without wanting to do your homework for you, this is a general framework that is often used for keeping track of a maximum and i...

más de 10 años hace | 0

Respondida
Manipulate values on axes MATLAB
When you call plot you can pass in x data and y data. These can be anything you want so just set one to be 2000 to 2010 and the...

más de 10 años hace | 0

| aceptada

Respondida
What is actually Normalized Frequency?
Normalised frequency is frequency in Hz (or more generically cycles/second or some other unit) divided by the sample frequency o...

más de 10 años hace | 6

| aceptada

Respondida
How to display error messages in Matlab Runtime (compiled) version
Either use errordlg if you want the message to be displayed to the user or if you make sure that your executable creates...

más de 10 años hace | 0

Respondida
Matlab calsses - PreGet listener on structures
You would need something more like: addlistener(obj.NewProp, 'myProp1', 'PreGet' , @obj.PreReadProperty); to listen to ...

más de 10 años hace | 0

Respondida
While loop data saved into a vector
You initialise counter to 0. 0 is not a real positive integer (or logical). So you should initialise counter = 1; and ...

más de 10 años hace | 0

Respondida
Undefined function or variable ... Error while evaluating uicontrol Callback
handles.I = answer(1); guidata( hObject, handles ); in your first callback and I = handles.I; at the start of yo...

más de 10 años hace | 2

| aceptada

Respondida
Axes dot notation not available when used as property in (handle) classes (Matlab R2014b+)
That does surprise me. I use axes inside classes all over the place, but not all that often in arrays. The following works: ...

más de 10 años hace | 1

| aceptada

Respondida
How to save variables to a specific cell in a .mat file?
By far the easiest solution, generally speaking, is to just load the whole matrix in from the mat file and then you just write t...

más de 10 años hace | 1

| aceptada

Respondida
No unittest package found in Matlab 2015b
\MATLAB\R2015b\toolbox\matlab\testframework appears to be where this functionality is located. Assuming that is the same f...

más de 10 años hace | 0

Respondida
Error : Undefined function or variable 'I'
I never use assignin( 'base',... ); as I've never found any reason why I would want to do such a thing, but from what I ...

más de 10 años hace | 1

Respondida
How to know about FFT bin frequencies
A 65536-pt FFT would, in your case give 1Hz bins for a sample frequency of 65536 Hz. If you only want the FFT from 0 to 6000 ...

más de 10 años hace | 0

Respondida
time values must be monotonically non-decreasing
Monotonically non-decreasing means that they must be in a non-decreasing order - i.e. values never increase between one reading...

más de 10 años hace | 0

Respondida
plotmatrix - how to change the color according to one variable in data?
The final example of doc plotmatrix shows how colour individual plots if that is what you are aiming to do (at least in ...

más de 10 años hace | 0

Respondida
Global variable and class
The definition this.F = eval('@(x)a * x'); has no idea what 'a' is, it has not been defined in this scope. Using eval...

más de 10 años hace | 0

Respondida
Definite integral over discrete data
trapz( f( startIdx:endIdx ), A( startIdx:endIdx ) ) where startIdx and endIdx are the indices of the frequencies f1 and f2 ...

casi 11 años hace | 0

Respondida
How to reduce execution time in my code?
First step is to run the profiler and find out what is actually taking the time. i.e. profile on eulerforwardsystemsc...

casi 11 años hace | 0

Respondida
simultaneous loops in GUI (updating text box)
Code in callbacks (and anywhere else outwith using the parallel toolbox) will always run sequentially. How it does that depends...

casi 11 años hace | 0

Respondida
Function requires more input arguments to run?
theta = 7; rho = 10; phi = 100; Bo = 2; Rs = 8; [Br,Btheta] = magfield(theta,rho,phi,Bo,Rs); is how you ...

casi 11 años hace | 0

| aceptada

Respondida
Error with popupmenu using GUIDE
handles = guidata(hObject); and guidata(hObjects,handles); are totally unnecessary where you use them. In this cas...

casi 11 años hace | 0

| aceptada

Respondida
How to read file from excel in MATLAB
You need to give a full path including the drive. e.g. on my machine that would be: 'C:/users/...' It cannot find the...

casi 11 años hace | 0

Respondida
How do I use pre-defined data in *_CreateFcn calls in GUIDE?
I would say yes you have to do it from the OpeningFcn, but that doesn't mean all the code has to be in the OpeningFcn. My Ope...

casi 11 años hace | 0

| aceptada

Respondida
Addlistener for slider in GUIDE for constant update
I usually add listeners and other things done to ui components in the OpeningFcn (or rather, a function called from that usually...

casi 11 años hace | 1

| aceptada

Respondida
varargout isn't working for output from GUI when same formatting works just fine in similar GUI
Unless I am missing something you only assign 1 output argument (one cell array of two cells): handles.output={handles.valu...

casi 11 años hace | 0

Respondida
Abort roipoly in GUIDE
I've only really used impoly, imroi and similar before myself. They actually return an object representing the active polygon w...

casi 11 años hace | 0

| aceptada

Respondida
How can I shift and repeat an element within a matrix?
idx = 3; n = 6; res = zeros(n); turnIdx = n * ( idx - 1 ) + 1; % 1 element after the end of the idx-1 row ...

casi 11 años hace | 0

| aceptada

Respondida
How can I find the index and value of the smallest element within a range of values in a vector
vals( vals <= lowVal ) = NaN; vals( vals >= highVal ) = NaN; [val,idx] = nanmin( vals ); Seems to work but isn't ...

casi 11 años hace | 0

Respondida
Removing white pixels from background
Something like this should work, using an example image without anything inside the black rectangle, but that is irrelevant so l...

casi 11 años hace | 0

Cargar más