Respondida
Help with Looping and Averages?
Here is a small script that should help you get started ice = rand(6,10); days = datetime(today)+days(1:10); % Averag...

casi 8 años hace | 0

Respondida
How do I add column vector to a matrix ? Documentation examples does not work.
hi, this works like this A=[A, b]

casi 8 años hace | 0

Respondida
How do I get a Matlab UI (app) to call another UI so that it appears that my app has multiple pages?
There are two possibilities: a) create a new "Tab" in your existing GUI with uitab <https://de.mathworks.com/help/matlab/r...

casi 8 años hace | 0

| aceptada

Respondida
Transpose... Not Transposing!
I suggest to consider seeing the problem from another perspective. Basically what you want is not the transpose of your input...

alrededor de 8 años hace | 2

Respondida
Help!!! Can't figure out this error
There are two solutions to your problem a) choose a format other than datenum for your dates variable, f.ex. dates = dat...

alrededor de 8 años hace | 0

Respondida
what is the difference between A=[]; and A={}; ?
One initializes the variable as a double (or array of doubles) and the other as a cell (or a cell array) >> A=[]; >> cla...

alrededor de 8 años hace | 0

| aceptada

Respondida
Fitting every fifth datapoint one after another
I have a solution that avoids the loops altogehter, but might not be as readable n = 5; % Number of datapoints x1 = resh...

alrededor de 8 años hace | 1

| aceptada

Respondida
.csv Date and Time assigned Data Import
Hi Georg, if you already extracted the required string, it can easily be converted into a datetime variable using a custom in...

alrededor de 8 años hace | 0

Respondida
How can I loop all elements in a matrix from a cell array
One suggestion is to use the running variable k in the loop begin_el(end, :)= a{k}(1:5), e_elements(end, :) = a{k}(end-4...

alrededor de 8 años hace | 0

| aceptada

Respondida
How can I speed up my code?
Just a few basic tips, there is tons of reading material available online on that topic * The profiler is always a good idea ...

alrededor de 8 años hace | 1

| aceptada

Respondida
Global curve fitting for polynomial function
I suggest you read the help for the polyfit function <https://de.mathworks.com/help/matlab/ref/polyfit.html here> p = polyf...

alrededor de 8 años hace | 0

Respondida
How to terminate UI designed in App Designer?
Hi Rachel, the easiest way to do this is to call closereq

alrededor de 8 años hace | 3

| aceptada

Respondida
As shown in following code. inp contains 10*4 matrix. I am processing each row but i am getting processed output for the first row and for remaining row I am getting NaN value. why I am getting like that? where is the error?
When I evaluate your code I always get a warning on the following line: (it is between 0 and 70). K = (H*P')/S; %optimal K...

alrededor de 8 años hace | 0

| aceptada

Respondida
How to make this complicated array
x=5; y=8; a=(1:2*x+2*y-2); A=zeros(5,8); A(:,1) = a(:, 1:x)'; A(end,2:end) = a(:, x+1:x+y-1); A(end-1:-1:2...

alrededor de 8 años hace | 0

Respondida
How can i put error bars in grouped bar plot?
In the File-Exchange there is a function that does exactly what you want. <https://de.mathworks.com/matlabcentral/fileexchang...

alrededor de 8 años hace | 0

Respondida
Number to string within numeric matrix
have you tried using a categorical? categorical([1 2 1 1 2 2], [1,2], {'Atlanta'; 'Boston'}) ans = Atlanta B...

alrededor de 8 años hace | 2

| aceptada

Respondida
not enough input arguments error
Two suggestions: - you used gm instead of goldmin. Are you shure it is wanted that way? gm(p3function,-3,3) - Instead...

alrededor de 8 años hace | 1

| aceptada

Respondida
i am getting this error" Undefined function 'mtimes' for input arguments of type 'struct'." for th
It seems that your variable poplc is a struct. In order to mulitply its values you need to access the fields of the struct. ...

alrededor de 8 años hace | 1

Respondida
Create a simple MATLAB program to plot early generations of the Koch curve?
the following two File Exchange Submissions might work for you... <http://de.mathworks.com/matlabcentral/fileexchange/44917-k...

alrededor de 8 años hace | 0

| aceptada

Respondida
max value of a cell array
max([ans{:, :}]) ... you could use this together with structfun

alrededor de 8 años hace | 0

Respondida
solving a x^4 function using roots, how?
Hi Rand, check out the documentation <https://de.mathworks.com/help/matlab/ref/roots.html> it uses a certain way of notat...

alrededor de 8 años hace | 1

Respondida
Curve Fitting on Histogram
Hi Ahmed, if I use data = rand(1e6,1); it works flawlessly, but if I use data = 2*rand(1e6,1); I get the same...

alrededor de 8 años hace | 0

| aceptada

Respondida
I have two scripts for fitting a function. The fitting results are the same for both of the scripts, but plotting the fit results is producing different plots.
change the last line of expfit_mine.m to plot(xData,yData,'b.',times,fun(fitresult,times),'r-') and you should be fine

alrededor de 8 años hace | 0

| aceptada

Respondida
Check if Simulink is started (for faster use of find_system)
I found a workaround that I wanted to share % check if Simulink was started in the past current_licenses = license('inus...

alrededor de 8 años hace | 0

| aceptada

Pregunta


Check if Simulink is started (for faster use of find_system)
I have a function that calls find_system('SearchDepth',0); to check if there are any Simulink elements. As expected, if...

alrededor de 8 años hace | 2 respuestas | 0

2

respuestas

Resuelto


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

alrededor de 8 años hace

Respondida
Cannot find an exact (case-sensitive) match for 'rotate3D'
rotate3D does not exist in a vanilla R2016a. You need to use rotate3d (with a small d).

más de 8 años hace | 0

| aceptada

Respondida
How to stop autosave when running m-file
Here is a possible solution that might help you <http://de.mathworks.com/company/newsletters/articles/automatically-save-backup...

más de 8 años hace | 0

Respondida
"hold on" on plot does not work over 2 functions
Hi Hyom, I tried to create a minimal working example from your code but I do not get any errors. Could you describe the error...

más de 8 años hace | 1

| aceptada

Respondida
Pulse generator with variable frequency SIMULINK
Hi Mark, have you tried the entry Syed from the File Exchange? This might get you started... <https://www.mathworks.com/ma...

más de 8 años hace | 0

Cargar más