已回答
how do i plot a graph with pixel matrix?
It is not very clear what you want, but I think it could be this: Result = [368.8496 41.0974]; Result1 = [18.8326 96...

10 years 前 | 0

已回答
How can I change the name of my vector of each iteration?
Use _eval_: S = rand(3,1); % sample data to test the script n = length(S); for ii = 1:n; a = M(ii,1); b =...

10 years 前 | 0

| 已接受

已回答
Multiply a 3D matrix with 2d matrix to get a vector
The only solution that suits the dimensions of the matrices is this: Y = rand(3);% Y is a 3x3 matrix Z = rand(6,1);% Z i...

10 years 前 | 0

已回答
convert time stamp into minutes or seconds
Take a look at this thread, it deals right with your problem. <http://www.mathworks.com/matlabcentral/answers/108833-read-tim...

10 years 前 | 0

已回答
Plotting a 2D matrix
Maybe you are thinking no something like this: M=rand(300,42); % your data here [xx, yy] = meshgrid(1:42,1:300); ...

10 years 前 | 0

已回答
Reading specific data from an excel file
I think it would be better to read just once the *.xls file, since it is a time-consuming process. And moreover, after reading ...

10 years 前 | 0

已回答
how can i go back to the fist choose again with out termination after finshing the first task?
Use a while-loop: mynumber = 0; while (mynumber ~= 3) % condition to get out of the loop. Change to your n...

10 years 前 | 0

| 已接受

已回答
How do I convert a .m file into .exe file??
use the _deploytol_ to create an *.exe from your project. Take a look at the documentation, where you will find examples to g...

10 years 前 | 0

| 已接受

已回答
why the error is coming?
who is _x_? That message is the result of trying to access an non-existent element of the array, such as x(0). Make sure _...

10 years 前 | 0

| 已接受

已回答
How can I save a .dat file?
take a look at the documentation of _fprintf_ doc fprintf You will find right what you need

10 years 前 | 0

已回答
How declare a global vector
The fact of being a global variables has nothing to do with its dimension. The following is perfectly valid: global v v...

10 years 前 | 0

已回答
Problem in while loop when input is characters or words
You do not say who is either _W_ or _choiceNum_, but with the two variables in play, you can do it like this. Watch the capit...

10 years 前 | 0

已回答
how i divide n images present in a folder into 4 equal parts
Filename=strcat('fruits\',srcFiles(i).name); I=imread(Filename); imshow(I) [x,y, z]=size(I) I_1 = I(1:x/2,1:...

10 years 前 | 1

已回答
How do i create a hole or cut a certain portion of a plane in GUI?
x = [0 100 100 0]; y = [0 0 100 100]; z = [0 0 0 0]; fill(x,y,'b') x_hole = [40 60 60 40]; y_hole = [40 40 60 6...

10 years 前 | 0

已回答
Significance of the (.) operator
The means the product is performed element-wise in both matrices on wither side of the product sign: Example: a=[1 2 3];...

10 years 前 | 0

已回答
Help writing a simple function
You should do as Azzi Abdelmalek says, anyway, here is your code: if x<4 f = -1; elseif x>=4 && x<=4 f = ...

10 years 前 | 0

已回答
How can I shift rows and columns, and also replicating Sub matrixes.
A = magic(4); D = [A(end,:); A(1:end-1,:)]; % shift rows down D = [D(:,3:end) D(:,1:2)]; % shift colums leftx2 ...

10 years 前 | 0

已回答
How can save sveral images using different names in a single pogram
Adapt the following to your needs: N_pics = 10; % change this to your needs for k=1:N_pics pic_left = sprintf('l...

10 years 前 | 1

| 已接受

已回答
Plotting a Hexagon shape in matlab
To Draw any polygon: scale = 5; N_sides = 6; t=(1/(N_sides*2):1/N_sides:1)'*2*pi; x=sin(t); y=cos(t); x=scal...

10 years 前 | 0

| 已接受

已回答
Looping over function string arguments
In the second method you are passing a cell array as input argument. Try this: interpolation={'bilinear', 'bicubic'}; ...

10 years 前 | 1

| 已接受

已回答
Can Letter U appear in one amino acids sequence?
As you can see, for example in this link: http://www.hgvs.org/mutnomen/codon.html U can not be in the sequence

10 years 前 | 0

| 已接受

已回答
Can Letter U appear in one amino acids sequence?
Your sequences are not of the same length, when A is restricted to same size than B, you do not get the error: A = 'MGCAEGK...

10 years 前 | 0

已回答
how to compute separate line 2 dimensional points
Once you have the plot, go to _tools_ -> _Basic fitting_ select the data (1 or -1 in your case), linear and click in the bott...

10 years 前 | 0

已回答
How to rename variables in a loop?
you are not using _eval_ in the right way. You should do: x=3; eval('a = x') a = 3 Adapt the code t...

10 years 前 | 0

已回答
How do i convert the following into exe?
Matlab compiler does not support symbolic toolbox You can read this thread too: <http://www.mathworks.com/matlabcentral/an...

10 years 前 | 0

| 已接受

已回答
EXTRACT NUMBER FROM A COMBINED STRING AND NUMBERS
use _str2double_ to get it in double format: output = str2double(String(regexp(String , '[0-9]'))) output = ...

10 years 前 | 0

已回答
how to load my file in to matlab?
Just write the name of the *.m file containing the data/script you want to load. Write it where you want it to run.

10 years 前 | 0

已回答
How to store data while simulating a model?
You need to add two blocks to your model. 1) to save data, ad "To Workspace" block. This will send and save data into the wor...

10 years 前 | 0

已回答
how to show my output data in map.
You will have to present your data by year: XX YY]= meshgrid(X1,Y1); z=ltm(:,:,1); surf(XX,YY,z') xlabel('XX') ...

10 years 前 | 0

加载更多