已回答
I use matlab. I load a data(.dat) file and run my program on it and get results. I have 900 such data files and want to write a loop such that at the end I get results corresponding to all data files at once. Is there a way to do it?
To save workspace variables, use the command _save_. see "help save" for the details. To load the files in a loop, use a cell a...

11 years 前 | 1

| 已接受

已回答
how to reduce the dimension of a feature space?
you may use _reshape_. help reshape

11 years 前 | 0

已回答
how to make a single command line
you can't do it. The closest you get is selecting all the lines you want to comment and then Ctrl+R. This will insert a "%" at t...

11 years 前 | 0

已回答
How to get inside components without loading reference model
you can't. You have to _load_system_ in order to access its components.

11 years 前 | 0

| 已接受

已回答
What is the range of double??
A colour image has to be < height x width x 3 > uint8 matrix.

11 years 前 | 0

已回答
while running the following code i got an error as Subscript indices must either be real positive integers or logicals.
Try with a different compression method. You could avoid your error message using 'ezw' instead of 'spiht'. Give them a try.

11 years 前 | 0

已回答
What is the criterion of best fit in system identification toolbox?
It all depends on your system and on how much accuracy is required. Obviously, when the best fit is around 95%, your model would...

11 years 前 | 0

已回答
How to save image into a folder?
use either imsave or imwrite

11 years 前 | 0

已回答
How to handle imroi in gui?
You can use the following function to undo the last _n_ plotting operations: function undo_plot(h, n) % UNDO_PLOT Undo l...

11 years 前 | 0

已回答
How do I select different value of resistances depending on the control input.
An option is to create your own function with the switch-case statement switch control case 1 ...

11 years 前 | 0

已回答
When a Matlab function block running inside a simulink model gives an error, how can I find out which line the error occurred on?
<http://www.mathworks.es/es/help/matlab/debugging-code.html>

11 years 前 | 0

已回答
Organize data as vector matrix and do calculation ?
a couple of changes: % you know the values from the start and no need of 3D matrix lightV = [.5 .4 .7]; [Az ...

11 years 前 | 0

已回答
what is the difference between sym2poly and coeffs?
_sym2poly_ is used when symbolic notation is used. Both return the coefficients of a polynomial. You can read the help of eac...

11 years 前 | 0

已回答
How to get unicode value of character image ?
You first has to recognize the character from the image. Later, _native2unicode()_ may be of help. help native2unicode

11 years 前 | 0

已回答
How can I Draw circles from matched points of stereo camera images.
once you have the coordinates of the circle's center (x,y), you can draw a circle of radius _r_ with the following: ang = 0...

11 years 前 | 0

| 已接受

已回答
Error with plotting function, help please
It this the code you need/want? It works now, but since it is your code, I don't know whether it is what you really want. a...

11 years 前 | 0

已回答
Error with plotting function, help please
first things first. Your for loop should be written with a _(-1)_decrement in order to work. Instead of for j=200:3 wri...

11 years 前 | 0

已回答
Hi, how can I get the Mean Power Frequency (MPF) value from Power Spectrum graph?
Try the _mean()_ built-in function

11 years 前 | 0

已回答
Mathlab can not write data to serial port suddenly!
You may have created the serial object and are actually sending the signal to it, that is why no errors are returned. Make sure ...

11 years 前 | 0

已回答
How can I write any cell data into txt file as they appear.
you should follow the link above: <http://www.mathworks.com/matlabcentral/fileexchange/25387-write-cell-array-to-text-file/co...

11 years 前 | 0

已回答
Find centroid of two fifferent region of intrest in a color image and connect it using a line
Use _regionprops_ to retrieve data from the regions within your image. % example taken from _help_ _regionprops_ BW = imre...

11 years 前 | 0

已回答
can anybody help me with matlab coding+excel??
N_files = 30; for k = 1:N_files file_name = strcat('name',num2str(k)); file_name = strcat(file_name,'.xls'); ...

11 years 前 | 0

已回答
how to plot only one iteration in for loop?
for i = 1:3 C = B + A(1:end,i); if i==2 disp(C); end end

11 years 前 | 0

已回答
How to read matrix into a variable increment?
Your question is not clear. Do you mean something like this? A=zeros(10); A(:,1)=rand(10,1); B=sort(A); Where B co...

11 years 前 | 0

已回答
how i can remove the for statement from this program?
you should initialize your _n_ matrix to perform the assignment.

11 years 前 | 0

| 已接受

已回答
Reading several Excel files
1) It is not possible to read every 100 cells, but you can do: r=1:100:1000; f=xlsread('my_xls_file.xls'); f=f(r); ...

11 years 前 | 0

| 已接受

已回答
i m working on gui. i have initialize one matrix at the starting n now i want to use it in switch statement with variation .
If you want to get rid of columns you can use the following example: B= rand(3); % 3x3 matrix B=B(:,1) % 3x1 matrix ...

11 years 前 | 0

已回答
Import data and display on a graph in a GUI
Each plot has to have its unique identifier ( Property Inspector -> tag ), then: plot(my_x,my,x,'Parent',plot_handle...

11 years 前 | 0

已回答
Loop is taking a lot of time
Matlab 2013 in a i3 machine takes time = 0.3825 seconds to perform your code. I guess your problem lies on yo...

11 years 前 | 0

| 已接受

已回答
Plotting normal curve and a third order polynomial
what's your y data? Your code is full of useless stuff and "magic" numbers. Add this at the end of your code: axis([0 30...

11 years 前 | 0

加载更多