Réponse apportée
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-...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
initializing mwArray as "empty"
The default constructor myArray( ); should do this.

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 10 ans il y a | 0

Réponse apportée
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...

presque 10 ans il y a | 0

Réponse apportée
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

presque 10 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 10 ans il y a | 0

Réponse apportée
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...

presque 10 ans il y a | 1

| A accepté

Question


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...

presque 10 ans il y a | 1 réponse | 3

1

réponse

Réponse apportée
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...

presque 10 ans il y a | 0

Réponse apportée
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 ...

presque 10 ans il y a | 0

Réponse apportée
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...

presque 10 ans il y a | 0

Réponse apportée
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.

presque 10 ans il y a | 0

Réponse apportée
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...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
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.

presque 10 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 10 ans il y a | 0

Réponse apportée
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...

presque 10 ans il y a | 0

| A accepté

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

presque 10 ans il y a | 1

Réponse apportée
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 ...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 10 ans il y a | 0

Réponse apportée
How to combine mat file
ALoad = load( 'databaseA.mat' ); BLoad = load( 'datalabelB.mat' ); a = ALoad.a; b = BLoad.b; save( 'databa...

presque 10 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 10 ans il y a | 0

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

presque 10 ans il y a | 0

Réponse apportée
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>

presque 10 ans il y a | 1

| A accepté

Réponse apportée
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 ) ...

presque 10 ans il y a | 0

Réponse apportée
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...

presque 10 ans il y a | 0

Réponse apportée
Splitting of 1 coloumn into multiple coloumn
myMat = reshape( myVec, [], 137 ); maxVals = max( myMat );

presque 10 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
Apply mean and standard deviation of an image to another image
tmpimg = imsubtract(tmpimg,meanint2); tmpimg = imdivide(tmpimg,stdint2); tmpimg = immultiply(tmpimg,stdint); tmpimg =...

presque 10 ans il y a | 0

Charger plus