Beantwortet
How to expand struct or cell?
Hi, Dave: The problem is that the structure is already there to load. We can check its variables layer by layer. You can see ...

fast 10 Jahre vor | 0

Frage


How to expand struct or cell?
The cell or struct contains sub struct and sub struct with name and value of number or string, a long list. Can it be expanded i...

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten

Gelöst


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

fast 10 Jahre vor

Frage


How to detect if a figure exist?
To save the figure if one exists with: saveas(gcf,figname); the problem is that if no figure exists, it'll create a figu...

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to make a 3D matrix from 3 vectors?
3 vectors, a b c, to be used as factor or filter for a 3D matrix V. For 2D it's easy and elegant: d=a'*b; f=M.*d; % M 2...

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to walk a volume?
A cube, side size N, I want to walk from the center going out, walking on each shell, each step can only add 1 to one direction....

fast 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


4D-Wavelet or wavedec4?
How can I perform a 4D wavelet? Is there a wavedec4? Does anybody know a place that has the script available for doing someth...

etwa 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


How to convert string to Matlab command line (function)?
We want to make a text line into a function with variable length according to the situation: functext = ''; for nt =1:N,...

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


How to write function according to variables? fminspleas
fminspleas in file exchange seems to be a very good tool. I wonder if anyone has good experience on it. If the data can be re...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to perform this Complex Exponential Fitting?
Experiment result can be represented as a sum of damped exponential, sum over 1..k. y(n)=sum(a(k)*exp(-(d(k)+j*w(k))*n+j*p(...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
[DEPRECATED] What frustrates you about MATLAB?
1. the newly implemented microsoft style of top menus. 2. lack of easy viewing property / function list: a. properties (e.g....

fast 11 Jahre vor | 1

Frage


imread png vs gif
It looks imread .gif and .png are different. Please help to read the image right. [X,map] = imread('matlabicon.gif'); ...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to call matlab built-in common functions, such as open, save as, in GUI?
I'm new to GUI. I had this: f = uimenu(h0,'Label','File'); uimenu(f,'Label','Open P-file','Callback','open'); ...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Warning: Unable to interpret TeX string
The error shows up when using this: 306 saveas(gcf,save_jpg); Warning: Unable to interpret TeX string "M:\Data\D20141...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How to let the matlab to remember the previous directory?
When you "save", matlab always prompt the user interface for folders and file name. Instead of going to "default' directory, mat...

fast 11 Jahre vor | 1

Frage


How to let the matlab to remember the previous directory?
I have this task daily: Many plots are generated within the same "run". Then I check each of them. If it's good, I save it t...

etwa 11 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


How to reshape matrix in this way?
When reshape a 3D matrix into 2D matrix, it fills columns first; for example: a(3,3,4) = 1 1 1 1 1 1 1 1 1 ...

etwa 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Can the 'save as' or 'print' size be customer configured?
The question came from the publication figures. People use 'Adobe Illustrator' and other alternatives to produce vector figures....

etwa 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


What's the best format to export figure?
.jpg, etc... doesn't seem to be good format for "word" to publish. How to export or print the figures in good, better scale-able...

mehr als 11 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


How to plot POLAR graph as this?
Rhos are known in (x,y) or (rho, theta) format. How can it be plot as bellow or similar. Thanks. <</matlabcentral/answers/...

mehr als 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to do polar plot correctly?
The task is to plot each group in different symbol and color and show them at their "angle" location in polar plot. This script ...

mehr als 11 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How to plot MESH only in black?
Unless using 'shading interp', both mesh and surf will plot the line linking 2 lines which is not desirable. [x,y] = meshgrid...

mehr als 11 Jahre vor | 0

Frage


How to multiply a window function to one dimension?
Here is a Matlab script to apply a fixed window function along one dimension. Although it works, but is not elegant as a Matlab ...

mehr als 11 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How to plot MESH only in black?
'edgecolor' isn't a good way. It plots the "baseline" and appears very messy.

mehr als 11 Jahre vor | 0

Frage


How to plot MESH only in black?
Can the 'mesh' plot be in a single color, say black, and not in color map? Thanks.

mehr als 11 Jahre vor | 5 Antworten | 1

5

Antworten

Beantwortet
Replacing the column of array elements with NaN.
Explain the relationship of your x and Out_Arr.

mehr als 11 Jahre vor | 0

Frage


How to plot Waterfall x-dir reversed and remove the baseline plot?
<</matlabcentral/answers/uploaded_files/13427/waterfall.jpg>> On this waterfall plot, some changes would like to be done: ...

mehr als 11 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


How to plot a stack of curves in Matlab, as attached figure?
Hope it is possible with matlab to plot a stack of curves, better with hidden lines, like this attached figure: <</matlabcent...

etwa 12 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


How to maximize the plotting area?
<</matlabcentral/answers/uploaded_files/5116/figure.jpg>> The plotted figure or image always has empty area around the plotte...

etwa 12 Jahre vor | 0 Antworten | 1

0

Antworten