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

más de 7 años hace | 7

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 0

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

más de 7 años hace | 1

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

| aceptada

Respondida
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

más de 7 años hace | 1

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

más de 7 años hace | 0

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

más de 7 años hace | 0

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 0

| aceptada

Respondida
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];...

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 2

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 1

| aceptada

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

más de 7 años hace | 1

| aceptada

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

más de 7 años hace | 1

| aceptada

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

más de 7 años hace | 1

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 3

| aceptada

Respondida
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)) % ...

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 1

| aceptada

Cargar más