Answered
I could not understand why this part of a code gives error "Undefined function or variable 'normalise'". Can you please figure out for me?
I'm not sure what I can add really to the error message which is succinct and tells you exactly what the problem is. On the f...

11 years ago | 0

Answered
Setting default values of GUI controls using the CreateFcn
Something like this would work to store the handles. I tend to prefer a more explicit link between a slider and its associated ...

11 years ago | 1

| accepted

Answered
Help with understanding a piece of code
Which part of it do you not understand? There are a number of different elements in that code and if you already understand som...

11 years ago | 0

| accepted

Answered
To attempt and solve a problem. This is my code:
How are you running your code? That is a function that takes arguments, not a script, so you must call it from the command li...

11 years ago | 0

| accepted

Answered
How to index on a loop for first occurrence?
idx = find( x == 1, 1 ); x( (idx + 1):end ) = 0; will do this for an array x. I will leave it up to you to make the tri...

11 years ago | 0

Answered
FFT of a selected number of data points.
doc fft doc colon

11 years ago | 0

Answered
How can I plot cornering stiffness using GUI ?
You can use e.g. handles.Fz = str2double(get(hObject,'String')); in your callback (e.g. the Fz0_Callback) then in you...

11 years ago | 0

Answered
ideas to smooth a sharpe corner of a graph?
Something like a mean smoothing filter should do the job if you convolve it with your graph function. You can specify to only...

11 years ago | 0

| accepted

Answered
Digital signal processing. [need help]
If you mean frequency domain then doc fft should help. There are plenty of examples in the help that you can access by ...

11 years ago | 0

Answered
Error while evaluating uicontrol Callback
if FileName1 ~= 0 [num,txt1,raw] = xlsread(FileName1); end Obviously you will have to also include any further co...

11 years ago | 1

| accepted

Answered
Can we use Matlab Compiler Runtime 2013a along with 2012b?
You cannot use the MCR of one version of Matlab with an executable created in a different version. You can just install the c...

11 years ago | 0

| accepted

Answered
Accessing Values From Structure or Cell Aray
centroidVals = sscanf( g(i).Centroid, '[%f,%f]' ) will give you the i centroid as just a pair of doubles. Your struct ar...

11 years ago | 1

| accepted

Answered
Matlab : divide cell the same way as matrix
A/B is matrix division. rdivide is the equivalent of pointwise division given by A./B. Since cellfun works per cell I...

11 years ago | 0

| accepted

Answered
How can I "profile" just my .m functions??
I'm not aware such an option exists. You can put profile on profile off instructions surrounding a smaller part of...

11 years ago | 0

Answered
How to replace variable names in a mat file
If you load the mat file into a struct (i.e. the load option with output argument), then your variables become fields of that st...

11 years ago | 2

| accepted

Answered
Controlling Size and DataType
doc validateattributes is very useful for validating sizes, data types, etc. I use it in almost every public function I wr...

11 years ago | 1

| accepted

Answered
Why eval in GUI does not execute?
So what exactly does happen? Matlab variables (except for objects of a handle-derived class in OOP) are not passed to functio...

11 years ago | 0

| accepted

Answered
How to display different images with slider?
Do you want the images to move across one axes at a time (i.e. when you scroll one step shift each image left, losing the left-m...

11 years ago | 1

Answered
why is the maximum number of workers which can be created on local cluster limited to 12?
Upgrade to a higher version of Matlab. I can't remember which one, but certainly R2014b allows as many cores as you have. 12 w...

11 years ago | 1

| accepted

Answered
FFT plot significant peak near 0 Hz
The 0 Hz frequency value is relative to the mean of the input data. For signals I work with this therefore represents how badly...

11 years ago | 0

Answered
Plot editing inside a for loop
If you do them as two separate statements you can give each the instructions you wish e.g hold( hAxes, 'on' ) for i ...

11 years ago | 0

| accepted

Answered
Plot same graph onto a figure and into GUI
doc copyobj I've never used it, but it sees like it may do what you want.

11 years ago | 0

| accepted

Answered
[uitable] Insert a table as a subplot
There is a ColumnEditable property that is set to be off for all columns by default. You need to set it to a logical vector with...

11 years ago | 0

Answered
The colon notation used in multidimensional array
It is just an extension of what you already know, but for multi-dimensional arrays. You can no longer use terms like 'rows' and...

11 years ago | 2

| accepted

Answered
School work question, Having troubles adding onto a matrix
Without having time to read through your full homework question (try to ask specific questions rather than post your entire home...

11 years ago | 0

| accepted

Answered
How to use guidata ?
Is y supposed to contain something from earlier? If not just pre-declare it to be the correct size in your pushbutton callback. ...

11 years ago | 0

| accepted

Answered
matlab gui code for pushbutton1 want continue the process to pushbutton2
Add handles.a = a; guidata( hObject, handles ) to the end of the 1st pushbutton callback and a = handles.a; t...

11 years ago | 0

| accepted

Answered
How can I set ">> axis image" as default (for all images/figures I will ever create)
The second of those options should work: set( groot, 'DefaultAxisDataAspectRatio', [1 1 1] ) but I think you also need t...

11 years ago | 0

Answered
Resize axes in figure Matlab
Apart from the obvious point that you are calling ' *get* ', not ' *set* ', I've never used copyobj so am not really familiar wi...

11 years ago | 1

Answered
What is Index exceeds matrix dimensions.error?
Arrays/matrices have a dimension which you can check by size( myArray ); Indexing into an array using an index greater t...

11 years ago | 0

Load more