回答済み
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...

7年以上 前 | 0

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

7年以上 前 | 0

回答済み
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...

7年以上 前 | 0

| 採用済み

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

7年以上 前 | 2

回答済み
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...

7年以上 前 | 0

回答済み
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...

7年以上 前 | 0

| 採用済み

回答済み
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...

7年以上 前 | 1

| 採用済み

回答済み
.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...

7年以上 前 | 0

回答済み
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...

7年以上 前 | 0

| 採用済み

回答済み
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 ...

8年弱 前 | 1

| 採用済み

回答済み
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...

8年弱 前 | 0

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

8年弱 前 | 3

| 採用済み

回答済み
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...

8年弱 前 | 0

| 採用済み

回答済み
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...

8年弱 前 | 0

回答済み
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...

8年弱 前 | 0

回答済み
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...

8年弱 前 | 2

| 採用済み

回答済み
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...

8年弱 前 | 1

| 採用済み

回答済み
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. ...

8年弱 前 | 1

回答済み
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...

8年弱 前 | 0

| 採用済み

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

8年弱 前 | 0

回答済み
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...

8年弱 前 | 1

回答済み
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...

8年弱 前 | 0

| 採用済み

回答済み
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

8年弱 前 | 0

| 採用済み

回答済み
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...

8年弱 前 | 0

| 採用済み

質問


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

8年弱 前 | 2 件の回答 | 0

2

回答

解決済み


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

8年弱 前

回答済み
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).

8年弱 前 | 0

| 採用済み

回答済み
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...

8年弱 前 | 0

回答済み
"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...

8年弱 前 | 1

| 採用済み

回答済み
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...

8年弱 前 | 0

さらに読み込む