Answered
Time series graph with best fit line
Great, always when i try to help people here i learn a lot ;-) The files are attached. After converting to the correct dat...

8 years ago | 0

| accepted

Answered
could anyone help me to fix the issue
See attached file... Did you use: rng = 84030 ??? try brackets like shown: rng (84030) Best regards St...

8 years ago | 0

Answered
could anyone help me to fix the issue
rng (84030) randi (4,4,1) Gives your result - like all other numbers Walter told you... rng (767) randi (7,4,1) G...

8 years ago | 0

Answered
Time series graph with best fit line
Hi, it took a little time to convert your .txt file to something matlab really could create a datetime-dataformat from ;-). ...

8 years ago | 0

Answered
Time series graph with best fit line
Hi, how do you convert this data to datetime format in matlab? is the start of this file 30-Nov-1982? best regards ...

8 years ago | 0

Answered
Time series graph with best fit line
Hi, insert: ax = gca; ax.XAxis.TickLabelFormat = 'yyyy'; after your plot command. See also here for further in...

8 years ago | 0

Answered
Can I obtain results with more significant figures after the decimal place while using 'deval' in a bvp4c solver?
Hi, typing: format long Lets you see more digits. This operation only affects the display and not the calculation. ...

8 years ago | 1

| accepted

Answered
some question about optimization
Hi, try this command: W = A/S Here is an example for small data: >> A = [1 2; 3 5; 3 8; 2 7; 8 11] A ...

8 years ago | 0

Answered
how to solve this question?
Hi, maybe you should start reading: <https://de.mathworks.com/help/matlab/examples/basic-matrix-operations.html?searchHigh...

8 years ago | 0

Answered
Multiplying By 10000 vs 10^4
See comments, when working with random numbers you have to understand, that everytime you use the command new random numbers wil...

8 years ago | 0

Answered
return a matrix from a MATLAB mfile(function) to python uing MATLAB API
Hi again, see here - there you learn about the datatypes: *from matlab to python:* <https://de.mathworks.com/help/matla...

8 years ago | 0

Answered
return a matrix from a MATLAB mfile(function) to python uing MATLAB API
Hi, everything you do is working fine. I used your matlab code: function [e,f,g] = triarea(c,d) e = 0.5*(c.* d); ...

8 years ago | 0

| accepted

Answered
Can anyone tell me that how to solve linear non homogeneous equations to find the values of v?
Hi, you can solve this system with: U\[0 0 0]' where [0 0 0]' represents your RHS. The determinant of your coefficie...

8 years ago | 0

Answered
Double sum of a product
Hi, Use a nested for-loop for this. Outer loop counts up from i=1 to N and the inner loop from n=1 to N. for n = 1:N ...

8 years ago | 0

| accepted

Answered
Boolean style switch-case statements
Hi, See here: <https://de.mathworks.com/help/matlab/ref/switch.html?s_tid=doc_ta> There you'll find a lot of informatio...

8 years ago | 0

| accepted

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

8 years ago

Answered
Looking for generic code for Branch & Bound or Branch & Cut to solve MINLP problems
Hi. I think you missunderstood the idea of the forum here. I guess you will not find someone here who is doing the whole work...

8 years ago | 0

Answered
matlab Home licence query
Hi, I have home license for several packages too. Good choice! You can switch the license to another computer. If i rememb...

8 years ago | 1

| accepted

Answered
How can I create a smooth curve that fits my data ?
Hi, thats nice so far. You did it with the curve fitting toolbox i guess (?) Try the <https://de.mathworks.com/help/matlab...

8 years ago | 0

| accepted

Answered
I am trying to display error messages if the R value or T values hold a negative value. I got this code using the curve fitting toolbox to generate this function.
Hi, is it that what you meant: function [C] = thermcalib(R, T) % Number of input arguments is 2? if not error ...

8 years ago | 0

Problem


The answer to life the universe and everything
Write a function that gives the answer to life the universe and everything to every input except the input is 42. In this case t...

8 years ago | 1 | 71 solvers

Solved


Getting logical indexes
This is a basic MATLAB operation. It is for instructional purposes. --- Logical indexing works like this. thresh = 4...

8 years ago

Solved


Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

8 years ago

Solved


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

8 years ago

Solved


Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

8 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

8 years ago

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

8 years ago

Answered
Just switched from using Matlab 2014b to 2018a. I can't locate the "Add New Shortcut" icon anywhere. Does it still exist? If so, where can I find it?
Hi, see <https://de.mathworks.com/help/matlab/matlab_env/create-matlab-favorites-to-rerun-commands.html?searchHighlight=Create%2...

8 years ago | 0

Answered
FFT with non sinusoidal signal
Hello, When the code starts, you run the following command: clear all This command deletes your data in the Matla...

8 years ago | 0

Answered
I want to make random values that satisfies specific conditions. But I have a problem. help me please.
Hi, you generate numbers: _-1 < a < 0_ and _2 < b < 3_ your selection criterion for c is: if a(i,1) + b(j,1) < 0 ...

8 years ago | 0

| accepted

Load more