Respondida
Imaginary part of a discrete time signal
Your signal is not sufficiently sampled. That is basically a Nyquist frequency curve so the real part is just peak-trough-peak-...

casi 10 años hace | 0

| aceptada

Respondida
Multiply specific parts of cell with cell column
Why do you have a cell array in the first place instead of a numeric array? It is far slower and requires you to use much uglie...

casi 10 años hace | 0

Respondida
initializing mwArray as "empty"
The default constructor myArray( ); should do this.

casi 10 años hace | 0

| aceptada

Respondida
how to move a plot?
You can edit the 'XData' property of the line object if you have its handle. If you didn't keep its handle you can search for i...

casi 10 años hace | 0

| aceptada

Respondida
I have troubles to plot several functions in one diagram.
Your use of an explicit axes handle is good: hold(axes1,'on'); xlim(axes1,[1000 200000000]); box(axes1,'on'); but ...

casi 10 años hace | 0

Respondida
How do I change the handle name in guide?
The tag is what is referred to on the handles struct. If you change this in GUIDE it will automatically update all references t...

casi 10 años hace | 0

Respondida
Display iteration value amongst other preset text.
sprintf( 'Difference In X Coordinate Value %d Between Left and Right Model Space', i ) would do the job instead of disp

casi 10 años hace | 0

| aceptada

Respondida
How to display 16bit gray level images?
Why are you using a gpuArray just to convert data? You didn't say exactly what problem you are having (not visualise the imag...

casi 10 años hace | 0

Respondida
arrays of anonymous functions
g=cell(J+1,1); in the first line of your for loop overwrites everything previously in g. Move it outside the for loop inst...

casi 10 años hace | 1

| aceptada

Pregunta


Unwanted changes/bugs/complaints in R2016b
I have edited my original moan about the zoom cursor to be a more general thread about things that have changed in R2016b that I...

casi 10 años hace | 1 respuesta | 3

1

respuesta

Respondida
How to write for and while loops with restricted variable input with steps in function?
x = -2:0.1:2; f = ( x.^3 + 9 + x.^2 - 4 ) ./ ( x*7 + 5 ); figure; plot( x, f ) You don't need loops at all. Ma...

casi 10 años hace | 0

Respondida
Help with nested for loop, for a matlab hw problem
sigma_d = [0.5 1.1 1.5]; omega_d = [3.5 5.0]; Put those into arrays to start with (you got them the wrong way round too ...

casi 10 años hace | 0

Respondida
Problem with clims using imagesc display
clims = [0 1000]; will just create a variable and do nothing else. caxis( hAxes, clims ); where hAxes is the handle...

casi 10 años hace | 0

Respondida
I would to save the variables in a file txt or csv with a push button, can help me someone?
You have to give a filename as the first argument to the save function.

casi 10 años hace | 0

Respondida
How to access pixels data of a 3 channel Mat iteratively?
I would guess that Test.jpg is a uint8 or int8 or int16 or some other integer type of image. When you create a new matrix thoug...

casi 10 años hace | 0

| aceptada

Respondida
Why am I receiving unbalanced or unexpected parenthesis or bracket on my line of code?
x2^2(Tow21 is not valid syntax, hence the unexpected parenthesis.

casi 10 años hace | 0

| aceptada

Respondida
how to make automatic graph script with a for loop?
Your for loop doesn't change anything so you just plot the same point every time. Neither con1 nor step changes so neither do x...

casi 10 años hace | 0

Respondida
How to set data in the same uitable
You haven't shown how you create your table, but I assume 'Data' is a numeric array, not a cell array. Why would you create a...

casi 10 años hace | 0

| aceptada

Respondida
Issue with colormap using Matlab 2016b
Use the specific object handle - e.g. colormap( hAxes, 'jet' ) where hAxes is your axes handle.

casi 10 años hace | 1

Respondida
how to find index of a cell that contains a numeric value?
find( cellfun( @(d) isequal( d, x ), data) ); works theoretically, but you should never be testing for exact equality with ...

casi 10 años hace | 0

| aceptada

Respondida
How can I delete last Yticklabel?
Do you mean just the label or the actual tick too? If you want Matlab to still auto label them if you allow anything to happe...

casi 10 años hace | 0

Respondida
How to combine mat file
ALoad = load( 'databaseA.mat' ); BLoad = load( 'datalabelB.mat' ); a = ALoad.a; b = BLoad.b; save( 'databa...

casi 10 años hace | 1

| aceptada

Respondida
Where is my mistake in loop?
busy isn't an error, it just means it is busy working. You can use the pause functionality of the editor if you are using a rec...

casi 10 años hace | 0

Respondida
how to generate static method from rtw ?
Use object-oriented programming: <https://www.mathworks.com/help/pdf_doc/matlab/matlab_oop.pdf>

casi 10 años hace | 0

Respondida
I know resample but I can't figure out what these ' ' do on these places?
doc transpose or <https://uk.mathworks.com/help/matlab/ref/transpose.html>

casi 10 años hace | 1

| aceptada

Respondida
How to use subplot, to plot an image?
A = rand(200); B = rand(200); D = A - B; figure; subplot( 2, 1, 1 ) imagesc( A ); subplot( 2, 1, 2 ) ...

casi 10 años hace | 0

Respondida
a program runs in 3 minutes on Matlab R2012b but takes 12 minutes on Matlab R2016a, Why?
doc profile Run this on both and see the results for yourself. It is impossible for us to know without knowing what the co...

casi 10 años hace | 0

Respondida
Splitting of 1 coloumn into multiple coloumn
myMat = reshape( myVec, [], 137 ); maxVals = max( myMat );

casi 10 años hace | 1

| aceptada

Respondida
Using if else statements to change values of pixel in an image
I very much doubt you need three nested for loops for this, but if inimg<128 is not going to do what you want if inimg i...

casi 10 años hace | 0

| aceptada

Respondida
Apply mean and standard deviation of an image to another image
tmpimg = imsubtract(tmpimg,meanint2); tmpimg = imdivide(tmpimg,stdint2); tmpimg = immultiply(tmpimg,stdint); tmpimg =...

casi 10 años hace | 0

Cargar más