Réponse apportée
Undefined function or variable
You need to make sure it is on your path doc addpath or use the ribbon on the MAtlab GUI or just save it in your working...

presque 9 ans il y a | 0

Réponse apportée
FFT to get noise
The fft is done on the whole signal: Y = fft( voltage ); but this gives a 2-sided spectrum of positive and negative freq...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How I can find the directory the script or function running now is
doc mfilename

presque 9 ans il y a | 0

| A accepté

Réponse apportée
how to change the color of static text when we press the push button ,program please?
set( handles.textA, 'BackgroundColor', get( hObject, 'BackgroundColor' ) ) in your pushbutton callback, where handles.textA...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
how to enter values to array using loop
DC = zeros(1,100); for n = 1:numel( DC ) DC(n) = input(...) end That's a guess at what you are trying to do...

presque 9 ans il y a | 0

Réponse apportée
random extraction of files from a folder
doc dir can be used to give you a listing. doc randperm can be applied to your listing to select the random files. ...

presque 9 ans il y a | 0

Réponse apportée
Error => Unable to open file "Image1" for writing. You might not have write permission.
Surely the error is self-explanatory? How exactly are you expecting us to give you write access to your folder? Can you open o...

presque 9 ans il y a | 1

Réponse apportée
Maximum Array size limit
Any solution for what? The fact that you want a 60 GB array in memory? Do you even have 60 GB of RAM? What do you want to do ...

presque 9 ans il y a | 0

Réponse apportée
How to find out the dependency of functions?
<https://uk.mathworks.com/help/matlab/matlab_prog/identify-dependencies.html This link> should help.

presque 9 ans il y a | 0

| A accepté

Réponse apportée
I don't understand why This code doesn't work ----error
Your function handles take z as an argument so you need to pass this in and actually call the function Re1=@(z) ((diC1)*(j/...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How to store data from my IF loop
Well, you don't have a loop at the moment. 'if' is not a loop, it is just a single statement. Something similar to the follo...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
How to Save a File with a New Exetesion?
The obvious save( 'B.fff', 'B' ); works fine (though obviously better with a full path as always), but as John points ou...

presque 9 ans il y a | 2

| A accepté

Réponse apportée
How to Access All Variables of a Function?
Use the debugger. There are keyboard shortcuts and programmatic triggers, but I can never remember most of them. There's a Bre...

presque 9 ans il y a | 4

| A accepté

Réponse apportée
use of find command for 3d array
doc ind2sub Use the standard form of find that returns linear indices and convert them using ind2sub to 3d.

presque 9 ans il y a | 0

Réponse apportée
Randomly select a number from a specific row or column in a matrix
num = A( randi( size( A, 1 ) ), 1 );

presque 9 ans il y a | 0

Réponse apportée
Adding colorbar to ui axes in appdesigner?
colorbar( hAxes ) will add a colourbar just like it does for normal axes. colormap( hAxes, 'jet' ) should likewise ...

presque 9 ans il y a | 4

| A accepté

Réponse apportée
How to Share Data Between These Functions?
You haven't given any code that calls the functions, but the whole point of functions (or at least one of the main points) is th...

presque 9 ans il y a | 1

Réponse apportée
Set Data Cursor Text Update Function in GUIDE GUI
Assuming you didn't change the 'tag' of your GUIDE-created figure (I always change min), you can just do dcm = datacursormo...

environ 9 ans il y a | 0

| A accepté

Réponse apportée
How do I Plot images in two different figures
doc figure Just create a figure explicitly (which you should always do anyway unless you are plotting on a GUI you have cre...

environ 9 ans il y a | 0

Réponse apportée
How do i change video write location
You didn't show what code you are using, but v = VideoWriter(filename); creates a video writer object for whatever filen...

environ 9 ans il y a | 0

Réponse apportée
How to communicate among objects from different classes in a solid way?
I'm rusty on my SOLID principles and don't tend to have time to get back up to date so I tend to just go with intuition instead....

environ 9 ans il y a | 0

| A accepté

Réponse apportée
Class definition: is it necessary to define properties as struct?
The whole point of a class is that it is an extended and far better version of a struct (apart from performance-wise). Properti...

environ 9 ans il y a | 0

| A accepté

Réponse apportée
Why am I getting undefined variable error?
How are you calling your function? If you are just clicking the big green 'Run' at the top then of course you will get this err...

environ 9 ans il y a | 0

| A accepté

Réponse apportée
How to change imline resume method?
You don't have to double click, you can just draw the imline, without using 'wait' and under your pushbutton or keyboard callbac...

environ 9 ans il y a | 0

Réponse apportée
For loop not working on logical indexing
I suspect there are quicker ways than a for loop, but just focussing on your code, I suspect in some cases 'find' is returning m...

environ 9 ans il y a | 0

Réponse apportée
Why Do I Get This Error for This Non-scalar Structure?
A(:).B returns a comma-separated list of (in your example) 3 objects. You can't then further index these by adding .C at t...

environ 9 ans il y a | 0

Réponse apportée
Is this working right
The question says to return them in 'non-decreasing' order. I ran your function with [1 2 3] and it returns 3, 2, 1 so you may ...

environ 9 ans il y a | 0

Réponse apportée
While loop: I want my code to continue running when I run out of data and plot my variables, but wont.
Why don't you just use a for loop? for n = 1:numel(x) %% Some code involving x(n) end 'continue' does n...

environ 9 ans il y a | 0

Réponse apportée
How to mimic the colormap of a RGB image?
Should be easy enough to create in doc colormapeditor or just in code using linspace if you know the values. Or if you ...

environ 9 ans il y a | 0

Réponse apportée
How to read and display multiple images in matlab
<http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F> Your code is equivalent to: fullfile( 'Docum...

environ 9 ans il y a | 0

Charger plus