Answered
Using polyfit for creating lines
What about defining the lines by the start and end point, instead of the y=m*x+b equation? Do you need the symbolic expression f...

9 years ago | 0

| accepted

Answered
function handle is not converting
|Valor(i,1)| is a double, while @(x){(Valor(i,1)/((1+E(j,1)+x(j,1))^j))+(B(i,j)/((1+E(j,1)+x(j,1))^j))} is a function h...

9 years ago | 1

Answered
mexPrintf message doesn't show on matlab command window
How do you call this code from where? Without a mexFunction() it cannot be called from Matlab, because this is the entry functio...

9 years ago | 2

| accepted

Answered
Does a home license allow for research and publishing results (technical papers) as an individual (only me at home and no one else, no other organization, company, etc.)?
You want a bullet-proof answer. Then contact the sales team and explain exactly, what you want to do with your Matlab license. I...

9 years ago | 1

| accepted

Answered
Figure identity Question with Loops
As far as I understand, your code always plot to figure(1). This is a bad idea and changing the code is the best solution. Let M...

9 years ago | 0

Answered
Saved histogram figures appears blank after I open them.
Of course the saved figure are blank, if you use this code: figure saveas(gcf,'RCI.png'); % <-- Not here mg=m(:,:,2...

9 years ago | 1

| accepted

Answered
Why is my matlab code getting slower and slower?
time = now; for count = 1:Timespan time(count) = datenum(clock); % Get present time ... plot(time(count),v...

9 years ago | 0

| accepted

Answered
Is it better to have one function or multiple instances of one code?
I never write scripts, because the variables declared in one script interfere with other scripts. Any possibility to influence p...

9 years ago | 1

| accepted

Answered
How do I record a whole row of one array into another a specific row of another array
A = zeros(10, 5); for k = 1:10 A(k, :) = (1:5) + k * 10; end

9 years ago | 0

Answered
How do I stop accumarray adding rows for non-existent values of the index column?
a = [2 1.1; 2 1.2; 4 1.3; 4 1.4]; [~, ~, group] = unique(a(:, 1)); b = accumarray(group, a(:,2))

9 years ago | 1

Answered
What is a ustring?
I assume you mean a Unicode string, see: <http://icu-project.org/apiref/icu4c/ustring_8h.html>

9 years ago | 0

Answered
terminating the while if loop
limit = 1000; iter = 0; dE = 1; while abs(dE) > 1e-12 && iter < limit iter = iter + 1; E_old = E; ...

9 years ago | 1

Answered
How to arrange this code in sequence order?
This is a strange question. Do you want use to reorder the lines of the code based on guessing what the code should do? This is ...

9 years ago | 0

Answered
Error in command for partial differentiation
Seriously? Matlab tells you clearly, that the parenthesis are not balanced and you do not believe it? c = ['y*(x*(exp(-i*(x...

9 years ago | 0

Answered
Convert RGB image to label
Did you see the examples in the doc of |label2rgb|? BW = im2bw(I, graythresh(I)); CC = bwconncomp(BW); L = labelmat...

9 years ago | 0

Answered
How do I find the percentage of a number of values within a decimal range?
With some guessing: % 0.0 => 100%, 0.5 => 0% x = [0, 0.38, 0.5]; p = (0.5 - x) * 2 * 100; % or 100 - 200 * x set...

9 years ago | 0

Answered
Subscript indices must either be real positive integers or logicals.
Start with posting a copy of the complete error message. This is very helpful in the forum. Then find out, which indexing is ...

9 years ago | 0

Answered
Sum up rows of several columns with the same element in the first column
h ={'10.632' '9871.3017' '24091.8402' '6401.6857' '1123.9601'; ... '10.632' '3958.2942' '11044.129...

9 years ago | 1

| accepted

Answered
Introduce a while loop ina ode45 resolution
This seems to be a job for the event function. See |odeset| for setting such a funtion. See also <https://www.mathworks.com/help...

9 years ago | 0

| accepted

Answered
Why does Matlab execute both the elseif statement as well as the else statement?
Using the debugger by setting breakpoints in the two "disp('Does not fitt')" lines will reveal, what's going on. If Matlab stops...

9 years ago | 0

Answered
Sum over rows in a matrix for specific numbers in the last column
An emulation of |splitapply| for older Matlab versions: group = cumsum(diff([0; A(:, end)]) ~= 0); nRowR = size(A, 2) ...

9 years ago | 1

| accepted

Answered
Options for running Matlab in excel with a home use license
Did you read the documentation of this FEX submission already? There are some instructions at <http://www.quandl.com/help/matlab...

9 years ago | 1

Answered
Remove a range of cells from a cell array using pushbutton
Posting some explicite values for the arrays would be useful. But let me guess: current_data = setdiff(current_data, data2r...

9 years ago | 0

Answered
How to convert the following 4D matrix to 2D matrix
If "M(W+1)" means "M*(W+1)": T = reshape(T, M*(W+1), M*(W+1)); A |for| loop wastes time here, but it is possible: T...

9 years ago | 0

Answered
How do I change my connection settings for downloading products?
You can define the proxy in the preferences under the Web tab.

9 years ago | 0

Answered
GUI slider with two bar
See: * <https://www.mathworks.com/matlabcentral/fileexchange/55969-zoomorientation-axh-state-> * <https://www.mathworks.com/...

9 years ago | 0

| accepted

Answered
Index exceeds matrix dimensions for fprintf
If you really get the " Index exceeds matrix dimensions." error, you have redefined a Matlab command as a variable: which m...

9 years ago | 0

Answered
Is there a way to call function in R from matlab?
Please read: * <https://www.mathworks.com/matlabcentral/answers/186-calling-r-from-matlab-on-a-mac> * <https://xcorr.net/201...

9 years ago | 2

Answered
How do I write strings and numbers to a excel file
Data = {'Test#', 'Subject', 'Data1', 'Data2', 'Data3'; ... 'Test1', 'AAA', 1, 2, 3; ... 'Tes...

9 years ago | 0

Answered
running a design wizard from file exchange
This is a subfucntion only. You are not intented to call it directly and therefore you do not have to provide the inputs. Run th...

9 years ago | 0

Load more