Beantwortet
Fitting data with custom equation
Hi, you can use this code: % Some data - replace it with yours (its from an earlier project) x = [177600,961200, 2504000, 499...

mehr als 7 Jahre vor | 7

| akzeptiert

Beantwortet
how to solve mixed integer program with MATLAB ?
Hi, for MILP use intlinprog. For nonlinear / nonsmooth MIP use ga. Best regards Stephan

mehr als 7 Jahre vor | 0

Beantwortet
Curve Fitting Toolbox is saving an empty CFIT variable to the workspace
Hi, the cfit object can be differentiated and integrated directly by using the appropriately functions. If you want to access f...

mehr als 7 Jahre vor | 0

Beantwortet
point cloud with matlab
Hi, i would expect this to work: [~,x_2D,y_2D] = cart2pol(x,y,z); scatter(x_2D,y_2D) The result should be that all the point...

mehr als 7 Jahre vor | 1

Beantwortet
Graph how to get every connected nodes from this specific graph
Hi, you find s and t by using: U = {[1 3],[1 4],[1 5],[5 2]}; A = cat(1,U{:}); s = A(:,1); t = A(:,2); Best regards Ste...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
ode45 is not evluated at requried interval?
Hi, you get this if you specify the ode45 call this way: [x, y]=ode45(M,xspan,y1); Note that this forces Matlab to calculate ...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Different colors for a gscatter plot (RGB triplets)
Hi, RGB triplets can be used - see here. Therefore activate the filled option. Best regards Stephan

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
How to solve a complex-valued equation
Hi, use fsolve to handle complex valued problems. Fzero only can handle real valued problems. Best regards Stephan

mehr als 7 Jahre vor | 1

Beantwortet
how to sort a matrix?
Hi, try: >> a = [3 9 5 7; 3 0 1 2; 11 2 0 9] a = 3 9 5 7 3 0 1 2 11 2 0 ...

mehr als 7 Jahre vor | 0

Beantwortet
Can anybody help me to solve this?
Hi, use vpaintegral. Best regards Stephan

mehr als 7 Jahre vor | 0

Beantwortet
HELP WITH 3-D SURF PLOT !!!!
Hi Felix, i hope the work on your thesis runs well. As the error message says the number of elements in a reshaped matrix is no...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Which Optimizer should I use?
Hi, this appears to be an optimal control problem. Consider to use Symbolic Math Toolbox - espacially have a look at the functi...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
How do I make solve() return solutions that aren't empty?
Hi, i think your problem does not have a feasible solution. If you rewrite it a little bit and use fsolve the resulting message...

mehr als 7 Jahre vor | 0

Beantwortet
How can I access my purchased toolboxes in MATLAB Online?
Hi, if you log in with the correct account it should look like this: Also the functions should work properly - if this is no...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Problem finding minimum of a function
Hi, try this: [x, fval] = curvefit_gumble function [x,fval] = curvefit_gumble x_dat = [12;13;14.5;15]; n_dat = [2;2;5;5];...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
What's wrong with my ode45 function?
you want to pass psivec to the function, but it is calculated inside the function. A is size 4096x4096 and wvec is size 64x1. ...

mehr als 7 Jahre vor | 0

Beantwortet
How do I fix this error, please need help!
Hi, you are a little to precise. Your code produces an Inf for max(x1), due to your values of M1 and M2, use a value near zer...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
How to convert from matlab time to reall time and date
datestr(7.3684e+05,'dd-mmmm-yyyy HH:MM:SS') ans = '25-May-2017 00:00:00' or with some content in it: >> datestr(7.3...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
How do I check validity of logarithm rule?
Hi, Matlab can prove if you give an assumption additionally: syms a b; assume([a b],'positive'); assumptions result = isAlw...

mehr als 7 Jahre vor | 2

| akzeptiert

Beantwortet
How to locate some specific files?
Hi, you can use the compose function to create a string array with the file names in different folders like your example: fold...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
What does this ODE error mean?
Hi, the message is clear. See what happens if you inspect some lines of your code - therefore lets assume t=1 which is the seco...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
Can some one please help me in passing the particular parameter from one function to another.
Hi, write a third script and call it for example main.m containing the following code: % Define needed inputs for the function...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
Write a script which will calculate the trajectory of a ball thrown at an initial speed vo (ask the user) over a range of angles (θ = 5o − 85o in 5 degree intervals). Make a plot of your trajectories on a single graph.
Hi, to have all the trajectories in one plot you can use: v0 = input('Enter Initial Velocity of Ball in m/s and Press Return: ...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
How do I create a Matrix (200x100) with an alphabetical unique string in each spot?
If you use some more characters per sequence (i recommend at least 6) you can use this function: function result = CharMatrix(r...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
Error using horzcat Dimensions of matrices being concatenated are not consistent.
utt=[a0',zeros(1,N-1)]

mehr als 7 Jahre vor | 0

Beantwortet
How to plot Step response of MIMO system
Hi, if you use: [y_OL,t]=step(sys_OL); you get a matrix as result. To directly plot the step response use: step(sys_OL) Bes...

mehr als 7 Jahre vor | 3

| akzeptiert

Beantwortet
Confused about atan versus angle- Not getting the same result!
Hi, angle works correctly on complex numbers: atan((.001354/.003453)) atand((.001354/.003453)) angle((.001354i+.003453)) % ...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Problem with Gaussian Fit - FWHM extracting
Hi, try this: [Filename,PathName]=uigetfile('*.csv*', 'Multiselect', 'on'); cd(PathName); for k = 1:length(Filename) fi...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
How to access specific integer values from a String and Convert into Integers?
To get numerical results (integer values) use ymd function: A = "2018-04-24 04:30:00" [Year, Month, Day] = ymd(datetime(A)) g...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Parameter evaluation in ODE.
Hi, try the attached code. It first evaluates and plots the results of your ode-system with the initial ko values. Then it opti...

mehr als 7 Jahre vor | 1

| akzeptiert

Mehr laden