답변 있음
How do I retreive the data, samples, from a audioplayer object
This seems like an unnecessarily inelegant hack, but you could always attach |SoundData| as |AudObj|'s |UserData| property: ...

대략 11년 전 | 0

답변 있음
How to create variability charts?
*EDIT*: <http://www.mathworks.com/matlabcentral/fileexchange/40878 file added to MATLAB File Exchange>. Share and enjoy! Bas...

대략 11년 전 | 1

| 수락됨

답변 있음
Round double value to 2 decimal
The reason you're getting the error is that |sprintf| creates a |char| array -- in this case, a 1-by-4 |char| array made up of t...

대략 11년 전 | 0

| 수락됨

답변 있음
How to get distance & angle of a point from the center of a minor axis ??
Do you have the coordinates of the point and the center (in standard Cartesian coordinates)? If so, just use |norm| and |atan2|...

대략 11년 전 | 1

| 수락됨

답변 있음
adding varied length vectors to a new matrix sequentially
Sounds like a job for a cell array: x = cell(n,1); for k = 1:n vec = ...; x{k} = vec; end

대략 11년 전 | 1

| 수락됨

답변 있음
Remeshing points on curved line
If I understand the problem correctly, you have an array of |m| monotonically increasing, but unequally spaced, values. You wan...

대략 11년 전 | 0

| 수락됨

답변 있음
Positioning using azimuth and elevation information
You might be able to use some Mapping Toolbox functions to convert between various Earth coordinate systems. However, not knowi...

대략 11년 전 | 1

답변 있음
Problem in kmeans, image segmentation algorithm.
You can do ... = kmeans(...,'start',M); where |M| is a matrix of the initial locations of the centers (each row of |M| i...

대략 11년 전 | 1

| 수락됨

답변 있음
How use csvwrite to write with a new blank line each time
|csvwrite| doesn't have an append option, but |dlmwrite| does: dlmwrite('file.csv',str,'-append','delimiter',',')

대략 11년 전 | 0

답변 있음
How can I create a matrix to store my data?
The loops for |z| aren't going to achieve anything because |phi| and |alpha| are scalars, so all you're really doing is |z = t_s...

대략 11년 전 | 0

답변 있음
Can't Figure out where I have gone wrong, could use some help please
It looks like what you're trying to do is index into the correct row and column of |C|, based on the input strings for |gender| ...

대략 11년 전 | 1

답변 있음
Translate values from plot to another
It sounds a bit like you have two measurements that should be the same, except for a scaling factor that you don't know. Is tha...

대략 11년 전 | 0

답변 있음
How to set the bars wider apart?
The numbers currently go pretty much right across the width of the figure, so there's not a whole lot of real estate you can gai...

대략 11년 전 | 0

답변 있음
Can you use ODE45 in a for loop?
Given that |ode45| is a variable step solver, you don't know how many |t| and |x| values you'll get each time, so the simplest s...

대략 11년 전 | 1

| 수락됨

답변 있음
Closing specific figure handles
Why not just do |close(h)|? If there's a possibility that |h| never gets created at all (no histograms), you can use |exist| ...

대략 11년 전 | 0

| 수락됨

답변 있음
Warning: Explicit solution could not be found.
|solve| is trying to do an analytic solve, which turns out to be too hard to do. But everything in your equations are defined n...

대략 11년 전 | 0

답변 있음
Problem with a mean in a for loop
A few minor things in your code: * Use |rng| instead of |randn('state')| [ not important ] * Use |NaN(m,n)| instead of |NaN*...

11년 초과 전 | 1

| 수락됨

답변 있음
How can I simulate data from an interval which needs to satisfy a constrain/condition?
Do you need to generalize this? Because for this case you could just do: x = 20*rand(75,1); y = x; y(1:25) = 100 - 2...

11년 초과 전 | 0

| 수락됨

답변 있음
How do we plot a graph with non available values for y without breaking the continuity?
You can interpolate to fill the missing values, as Azzi suggests, or simply remove all the NaNs: idx = ~isnan(M(:,2)); x...

11년 초과 전 | 2

| 수락됨

답변 있음
How do I import multiple csv files?
If the files all have the same format, and you have access to a recent version of MATLAB (12b would be nice...), use the Import ...

11년 초과 전 | 0

답변 있음
sum elements of matrix if...
As far as I can figure out what you're doing, this is equivalent: CRows = max(B(:)); C=NaN(CRows,10); for i = 1:CRows...

11년 초과 전 | 0

답변 있음
How to present two versions of instruction text at random?
I see several problems. Is |seq| a cell array of strings or a cell array of cells (or something else)? Either way, respma...

11년 초과 전 | 0

답변 있음
How do you replace vector values?
What you have inside the |while| loop is basically what you need: if A(n)<1 A(n)=A(n)+20; else A(n...

11년 초과 전 | 1

| 수락됨

답변 있음
Is it possible to grow cell matrices???
Cell arrays are essentially an array of pointers to other locations in memory where the actual data is held. Consequently, you ...

11년 초과 전 | 0

답변 있음
How do I know the method working behind ode15i?
Not sure if you have access, but... <http://www.degruyter.com/view/j/jnma.2002.10.issue-4/jnma.2002.291/jnma.2002.291.xml?fo...

11년 초과 전 | 0

| 수락됨

답변 있음
Reading an Image after using load command
The same way you saved them: for k = 1:10 A = X(:,:,k); % do something with A end (Also, move the |save| co...

11년 초과 전 | 0

| 수락됨

답변 있음
numeric solve issue for an equation involving a logarithm
Didn't see your comment with your code. This works: imax = (n/2)-2; r = zeros(imax,1); syms b for i = 2:imax; ...

11년 초과 전 | 1

답변 있음
numeric solve issue for an equation involving a logarithm
If I understand your intent correctly, you're trying to solve the equation r_i = (Log10(b) + b)/2 for b, given a (numeric?...

11년 초과 전 | 1

답변 있음
Problem applying fminsearch to piecewise numerical solution genereated by ode45
It looks like you're on the right track. I'm a little suspicious of the use of the variable name |fminsearch| in |sim3Cmdb| a...

11년 초과 전 | 0

답변 있음
How can I create a datetick using if statements?
Do you actually want to create a variable that has two states or is this just about how you visualize a time series? If it's th...

11년 초과 전 | 0

| 수락됨

더 보기