已回答
Saving a structure to Excel
take a look at this linK: <http://www.mathworks.com/matlabcentral/answers/13069-export-to-excel> Where is clearly stated: ...

10 years 前 | 0

已回答
How to open a gui fig file from another gui?
If what you want to do is open another GUI, call its associated *.m, not the *.fig.

10 years 前 | 1

| 已接受

已回答
display 4 consecutive numbers in array
a= [9 10 11 12 17 18 19 20 23 24]; for k=1:(length(a)-3) % k=2 if a(k:k+3)==(a(k):a(k)+3) fprintf('re...

10 years 前 | 0

已回答
Calling a function within another function?
Just call them from within _tictactoe_: In your _tictactoe_ function: function your_outputs = tictactoe(your_inputs) ...

10 years 前 | 0

已回答
how to process equation in summation
Tl = 0; % initilization of summation alphaNs = 2; for k = 01:alphaNs Tl = Tl + abs(x(k)^2); end Tl = (1/alp...

10 years 前 | 0

| 已接受

已回答
graphing my first PDE
take a look at the documentation. doc pdepe will present a very good example. This same example is explained in more de...

10 years 前 | 0

已回答
How to output a value of an array for a specific value of time?
idx = find(t==1); v(idx) or in a single line: v( find(t==1) )

10 years 前 | 0

已回答
is there any way to did not show the grid of pcolor plot?
I think you should try: grid off after you call _pcolor_

10 years 前 | 0

已回答
symbolic integration with undefined variable
Point out that z>0 like this: >> assume(z>0); >> b=int(a, r, 0, r) b = -2*pi^2*z*(log(z) - log(r + (r^2 ...

10 years 前 | 1

| 已接受

已回答
low speed of 'ismember' function
Depending on your data, you might try to code your own function avoiding some conditions and calls to sub-functions within the _...

10 years 前 | 0

已回答
Plot an strange equation
10.75-8.5567 ans = 2.1933 Then: my_equation = '2.1933-158.34.*y+2112.07.*y.^2-12211.07.*y.^3-29.44.*...

10 years 前 | 0

| 已接受

已回答
How do you calculate the volume of tumor from a series of MRI slices contaning tumor
You have to know the scale of the images. Once you know the scale (equivalence between pixel-size and mm, for example), you j...

10 years 前 | 0

| 已接受

已回答
Indexing matrix to get corresponding values for condition,store in a new matrix each time?
It is not very clear what you want, but I think it has to be something like this: sat_look_tcs=[sat_elev;sat_azim;range]; ...

10 years 前 | 0

已回答
How to print result in MATLAB?
define your _Name_ array as a cell, then: Name={'ABC-8' 'S8' 'EG8'}; Thick=[25 16 12]; Z =cell(numel(Name),1); for...

10 years 前 | 1

已回答
Why the trigonometry results are different
The different result between tan(90) and tan(pi/2) is obvious. 1.6331e+16 might be considered equal to _inf_

10 years 前 | 1

已回答
Problem in string-number concatenation
Define your _A_ array as a cell using brackets _{_ _}_: A={'E';'F';'G';'H';'I';'J';'K';'L';'M';'N';'O';'P';'Q';'R';'...

10 years 前 | 1

已回答
combining variables into one variable
your_Combination = zeros(28,125,121); % initialize the final variable Now you have several options depending on your data: ...

10 years 前 | 0

已回答
grabbing number after decimal
N = 1234.5; R = 10*(N-floor(N)) R = 5

10 years 前 | 1

已回答
Reflect a triangle given a mirror line
Create a m-file with this function: function S = symetric_P_about_line(P,m,n) % line of symmetry: y = m*x + n; Md...

10 years 前 | 2

| 已接受

已回答
HOW TO ENCODE AN 8BIT VALUE FROM A MATRIX
M=randint(256,256,[0,256]); disp(N) N=zeros(size(M)); for k=1:256 for l=1:256 N(k,l) = str2double(d...

10 years 前 | 0

已回答
Wrong equastion of XY dependence
Instead of your definition of _x_, try the folowing one: x= -5:.01:15; % array of 2001 elements, your definition were a mer...

10 years 前 | 0

已回答
how can i put a label for columns in an array?
x=[1 5 8 0 6 1]; C=cell(2,length(x)); for k=1:length(x) C{1,k} = sprintf('x%g',k); C{2,k} = x(k); e...

10 years 前 | 0

已回答
Error: File: hh.m Line: 148 Column: 1 Function definitions are not permitted in this context.
You have to save your functions in a different m-file and then make the call to them from your script. Matlab does not allow min...

10 years 前 | 0

已回答
How I will get the integer number from a decimal number in vbscript
>> floor(11.45) ans = 11

10 years 前 | 0

已回答
How to find the difference between two files?
A good way to compare two files in Matlab is to select them in the current folder (use Ctrl button to select your files), then r...

10 years 前 | 0

已回答
How to run m-file from another m-file by input string
I do that some times just by doing this: another_script = input('script name: ','s'); % and type the name of your other scr...

10 years 前 | 0

已回答
matrix or array composed by zero-values
try with any(all(M)) any(all(M)) = 0 when every element of M equals 0

10 years 前 | 0

已回答
How to view an image from the side?
Take a look at the built-in function _view_: help view doc view

10 years 前 | 0

| 已接受

已回答
If else if statement problem
You can solve the issue rounding the value of _c_: %Problem occurs here, if c = 1, else statement is displayed instead e...

10 years 前 | 1

| 已接受

已回答
cell array to string array
If your cell array is this: fp31={'#CC','#CB','#CN','#CO','#CP','#CF','#CS','#CI','#CQ','#CW'}; access the elements usin...

10 years 前 | 1

加载更多