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

7年以上 前 | 7

| 採用済み

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

7年以上 前 | 0

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

7年以上 前 | 0

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

7年以上 前 | 1

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

7年以上 前 | 0

| 採用済み

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

7年以上 前 | 0

| 採用済み

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

7年以上 前 | 0

| 採用済み

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

7年以上 前 | 1

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

7年以上 前 | 0

回答済み
Can anybody help me to solve this?
Hi, use vpaintegral. Best regards Stephan

7年以上 前 | 0

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

7年以上 前 | 0

| 採用済み

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

7年以上 前 | 0

| 採用済み

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

7年以上 前 | 0

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

7年以上 前 | 0

| 採用済み

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

7年以上 前 | 0

| 採用済み

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

7年以上 前 | 0

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

7年以上 前 | 0

| 採用済み

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

7年以上 前 | 0

| 採用済み

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

7年以上 前 | 2

| 採用済み

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

7年以上 前 | 0

| 採用済み

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

7年以上 前 | 1

| 採用済み

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

7年以上 前 | 1

| 採用済み

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

7年以上 前 | 1

| 採用済み

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

7年以上 前 | 1

| 採用済み

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

7年以上 前 | 0

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

7年以上 前 | 3

| 採用済み

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

7年以上 前 | 0

| 採用済み

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

7年以上 前 | 0

| 採用済み

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

7年以上 前 | 0

| 採用済み

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

7年以上 前 | 1

| 採用済み

さらに読み込む