Respondida
Movefile with variable file names
Use the function syntax of movefile to use a variable... movefile( source, destination );

más de 9 años hace | 3

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

Respondida
How I can find the directory the script or function running now is
doc mfilename

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 2

| aceptada

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

más de 9 años hace | 4

| aceptada

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

más de 9 años hace | 0

Respondida
Randomly select a number from a specific row or column in a matrix
num = A( randi( size( A, 1 ) ), 1 );

más de 9 años hace | 0

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

más de 9 años hace | 4

| aceptada

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

más de 9 años hace | 1

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

Cargar más