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

fast 8 Jahre vor | 0

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

fast 8 Jahre vor | 0

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

fast 8 Jahre vor | 0

| akzeptiert

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

etwa 8 Jahre vor | 2

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

etwa 8 Jahre vor | 0

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

etwa 8 Jahre vor | 0

| akzeptiert

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

etwa 8 Jahre vor | 1

| akzeptiert

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

etwa 8 Jahre vor | 0

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

etwa 8 Jahre vor | 0

| akzeptiert

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

etwa 8 Jahre vor | 1

| akzeptiert

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

etwa 8 Jahre vor | 0

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

etwa 8 Jahre vor | 3

| akzeptiert

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

etwa 8 Jahre vor | 0

| akzeptiert

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

etwa 8 Jahre vor | 0

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

etwa 8 Jahre vor | 0

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

etwa 8 Jahre vor | 2

| akzeptiert

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

etwa 8 Jahre vor | 1

| akzeptiert

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

etwa 8 Jahre vor | 1

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

etwa 8 Jahre vor | 0

| akzeptiert

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

etwa 8 Jahre vor | 0

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

etwa 8 Jahre vor | 1

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

etwa 8 Jahre vor | 0

| akzeptiert

Beantwortet
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

etwa 8 Jahre vor | 0

| akzeptiert

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

etwa 8 Jahre vor | 0

| akzeptiert

Frage


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

etwa 8 Jahre vor | 2 Antworten | 0

2

Antworten

Gelöst


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

etwa 8 Jahre vor

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

mehr als 8 Jahre vor | 0

| akzeptiert

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 1

| akzeptiert

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

mehr als 8 Jahre vor | 0

Mehr laden