Beantwortet
how to browse an image?
To get a image from any location, try this: MY_IMAGE = uigetfile({'*.jpg','*.JPG','*.bmp','*.tif'}) % add any extension y...

fast 13 Jahre vor | 0

Beantwortet
How can I change the properties of the y-axes in a scatter3 figure?
Go to the property editor of your plot, you will find all you need. If you want to use commands, add the property and its value...

fast 13 Jahre vor | 0

Beantwortet
CALLING MULTIPLE GUI'S
First. GUIs have a property called 'Visibility'. You can check it out on the property inspector. When set to "off", the GUI is n...

fast 13 Jahre vor | 1

Beantwortet
selecting multiple files from folder directly
Firstly, if you use uigetdir, there is no need for files_wanted = dir('a1*1*.txt'). Use one or the other method to open the file...

fast 13 Jahre vor | 0

Beantwortet
selecting multiple files from folder directly
adapt the line to your need: files_wanted = dir('a1*1*.txt');

fast 13 Jahre vor | 0

Beantwortet
selecting multiple files from folder directly
Hello, this might be of help: % this creates a structure with information on every % file whose name starts with "a1_...

fast 13 Jahre vor | 0

Beantwortet
could you fix these codes?
You can try as well something like this I=imread(your_32x32_image_name); division = 8; % set according to yuor needs ...

fast 13 Jahre vor | 0

Beantwortet
how to retrive color of resulting image as original?
Once you transform an image to grayscale, it looses many information: a colour image is a 3D matrix, while a grayscale one is 2D...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
Taking weighted means over matrices with missing data
I think it is not possible, but you can write your own function to do it.

fast 13 Jahre vor | 0

Beantwortet
Where do i add a loadlibrary command in a class definition?
You do not have to load your libraries, your functions have to be saved as .m files in the working directory. Matlab looks for t...

fast 13 Jahre vor | 0

Beantwortet
Is MATLAB is automatically concatenating data from a text file?
Is this what you want? s='Band ID: 0 AD ID: 43 Scan ID: 0 LRT/HRT: 0 Valid Flag: 0'; data= regexp(s,'\t','split') ...

fast 13 Jahre vor | 1

Beantwortet
CAT error with cell2mat
As Matlab says, you are facing a dimensional non-agreement problem. For example, if you cell is similar to this: C = {'qqq...

fast 13 Jahre vor | 1

Beantwortet
GUI from Simulink File
Your GUI consists of two files: mygui.fig and mygui.m If you call the function mygui.m from simulink, your GUI will pop up. Loo...

fast 13 Jahre vor | 1

| akzeptiert

Beantwortet
how to get every byte value of a double datatype?
These two MATLAB functions might be of help: str = dec2bin(d,n) produces a binary representation with at least n bits. str...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
Where do i add a loadlibrary command in a class definition?
It seems you are trying to do Object-Orientated Programming. If so, these two links might be of help. http://www.mathworks.es...

fast 13 Jahre vor | 0

Beantwortet
Removing Duplicate Elements from Array sets
Use _unique_ command: M = [1 2 3; 4 5 6;1 2 3; 1 2 3; 6 7 8]; A = unique(M,'rows')

fast 13 Jahre vor | 12

Beantwortet
No arrows in quiver plot
set s=2 (for example), you are scaling the arrows to a very small size.

fast 13 Jahre vor | 0

Beantwortet
How can I make this nested for loop work?
your variable _bc_ has no index, it can not change along the loop. _temp1_ and _temp2_ always take the value of _bc(1)_ and _bc(...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
Store cells into Matrix
check out for that 3D array you call _variables_, Is it useful for anything? This same question was answered on Friday 10th.

fast 13 Jahre vor | 0

Beantwortet
Reset button in Matlab GUI
to reset the plot use: clf type help clf for all the information you'll need

fast 13 Jahre vor | 0

Beantwortet
Reset button in Matlab GUI
In the reset button callback function just add the code to modify the boxes you need to reset. set(handles.yourbox1,'string',...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
how to label y axis of a graph in horizontal manner
Here you are: ylabel({'jan';'feb';'march'},'Rotation',0)

fast 13 Jahre vor | 1

Beantwortet
store vectors in matrix over for loop
Could you be more precise? Did you realize your _pairvec_ is a 3D array, _overnested(ix1,ix2)_ looks like a 2D array. Did you sk...

fast 13 Jahre vor | 0

Beantwortet
Is there any S function available other than Level 2 M file S function to access data from GUI?
Take a look at the help of _set_param_ function. It is used to set parameters in simulink models and can be used in GUIs with n...

fast 13 Jahre vor | 0

Beantwortet
problem in simulating an epidemic model using ode45
I tested your code and they are not straight lines, zoom in the plot to see it. Also, check the name of your function fu...

fast 13 Jahre vor | 0

Beantwortet
Matlab GUI plot: Refersh input data and update plot
Try to use "drawnow" right after the plot() command. A small pause also helps: pause(0.001)

fast 13 Jahre vor | 0

Beantwortet
Out of memory error in BWT encoder code
The BTW is designed for .txt files, not .pdf. I'm not an expert in .pdf encryption, but I think it's quite different from .txt's...

fast 13 Jahre vor | 0

Beantwortet
how to call m-file in block simulink model???
I think you are doing something wrong. I've been using m-files in Simulink to avoid the extra work of block-building what I have...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
Matlab GUI non-tag item supported?
If you mean to set a fixed 'String' field on your GUI, the answer to your question is yes, but you will not be able to use eithe...

fast 13 Jahre vor | 0

Beantwortet
how to calculate the radius of an image more irregular if I know the centroid?
Are you using the function _regionprops_ ?

fast 13 Jahre vor | 0

Mehr laden