Réponse apportée
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 ...

presque 10 ans il y a | 0

Question


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...

presque 10 ans il y a | 2 réponses | 0

2

réponses

A résolu


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:...

presque 10 ans il y a

Question


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...

presque 10 ans il y a | 2 réponses | 0

2

réponses

Question


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...

presque 10 ans il y a | 1 réponse | 0

1

réponse

Question


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....

presque 10 ans il y a | 1 réponse | 0

0

réponse

Question


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...

environ 10 ans il y a | 1 réponse | 0

0

réponse

Question


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,...

plus de 10 ans il y a | 1 réponse | 0

0

réponse

Question


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...

plus de 10 ans il y a | 1 réponse | 0

1

réponse

Question


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(...

plus de 10 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
[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....

presque 11 ans il y a | 1

Question


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

presque 11 ans il y a | 1 réponse | 0

1

réponse

Question


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'); ...

presque 11 ans il y a | 1 réponse | 0

1

réponse

Question


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...

presque 11 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

presque 11 ans il y a | 1

Question


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...

environ 11 ans il y a | 3 réponses | 0

3

réponses

Question


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 ...

environ 11 ans il y a | 1 réponse | 0

1

réponse

Question


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....

environ 11 ans il y a | 1 réponse | 0

1

réponse

Question


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...

plus de 11 ans il y a | 3 réponses | 0

3

réponses

Question


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/...

plus de 11 ans il y a | 1 réponse | 0

1

réponse

Question


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 ...

plus de 11 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

plus de 11 ans il y a | 0

Question


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 ...

plus de 11 ans il y a | 1 réponse | 0

1

réponse

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

plus de 11 ans il y a | 0

Question


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

plus de 11 ans il y a | 5 réponses | 1

5

réponses

Réponse apportée
Replacing the column of array elements with NaN.
Explain the relationship of your x and Out_Arr.

plus de 11 ans il y a | 0

Question


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: ...

plus de 11 ans il y a | 1 réponse | 0

0

réponse

Question


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...

environ 12 ans il y a | 3 réponses | 0

3

réponses

Question


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...

environ 12 ans il y a | 1 réponse | 1

0

réponse