已回答
Error in Error in odearguments (line 92) f0 = ode(t0,y0,args{:}); % ODE15I sets args{1} to yp0. Error in ode45 (line 104) odearguments(odeIsFuncHandle,odeTreatAsMFile,
@Juan you have probably tried using the arguments to the ode45 function as below, Try using the same syntax as it was provided ...

7 months 前 | 0

已回答
I am getting the following error when I run my script: Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatc
h = h + (1/6) * (k1 + 2*k2 + 2*k3 + k4); % <> multplication operator is missing here

7 months 前 | 0

已回答
Why are G1 and G2 outputs different?
The order of mathematical operations in evaluating G1 and G2 are different. In case of G1 , individual terms are evaluated first...

7 months 前 | 0

已回答
Index exceeds number of array elements. Index must not exceed 8. HELP
Q = [beta alpha lambda vac d gamma c m]; The size of the vector is 1x8

7 months 前 | 0

已回答
Extract certain values in .mat file
data= [-0.13793 -0.114746 -0.204773 -0.224304 -0.181274 -0.192566 -0.159912 -0.174866 -0.134888 -0.148926] data(2:2:end) dat...

7 months 前 | 0

已回答
Function definitions are not permitted in this context.
Rename the file *ok.m* to *uniform_pcm.m* and save file. Type the name of function from command window (giving input arguments)...

7 months 前 | 0

已回答
Create a solid line instead of single points in the plot
If the plot function is inside a loop, you could put it outside the loop as shown below, in order to plot solid line plot(vR(1,...

7 months 前 | 0

已回答
Plotting a diagram and getting some errors
There is no function called plotv in Matlab (or it must have been removed in new release), Please refer to the following link f...

7 months 前 | 0

| 已接受

已回答
fsolve stopped because the last step was ineffective
The problem seems to occur if you have the same initial conditions for all the angles. Try giving different initial conditions/...

7 months 前 | 1

已回答
summation of aij & i, j dependent function in matlab
% % initial contraction from flow, formula from diagram 4.10 % % %given test values Re_0=60.46; f0=1; f1=2.7225; % ind=...

7 months 前 | 0

| 已接受

已回答
Why am I receiving a "Too many output arguments" error on this particular code?
Load the data and assign to a variable. When you load a MAT file using load function, it returns a struct with different data ...

7 months 前 | 1

| 已接受

已回答
Keeping getting gradient error and no figure 2
%function [] =ZacharyC1 clear all clc U=4.7; m=6; a=0.5; [X,Y]=meshgrid (linspace(-2,2,100),linspace(-2,2,100)); r=sqrt...

7 months 前 | 0

已回答
Why are my error bars multicoloured with no line?
x = 20:1:25; y = [1.75 1.78 1.81 1.85 1.9 1.95]; err = repmat(0.1,length(x),1); errorbar(x,y,err)

7 months 前 | 2

已回答
comparison number on interval
px = 0; py = 1000; pz = 0; if (-524 <= px) & (px <= 524) & (-524 <= py) & (py <= 524) & (0 <= pz) & (pz <= 524) px ...

7 months 前 | 0

| 已接受

已回答
Function with for loop doesn't always work
With option as rev, it wont work, since the variable deg is undefined option = 'rev' % with this option it wont if strcmp...

7 months 前 | 0

已回答
How can i put the values in gradient of a function obtained through the gradient command?
@RADHIKA GOUR, you can use subs and plug-in the values for p1,p2,p3, p4 variables. TT=[1 1 1 1]; noise = randi([2 10]); sym...

7 months 前 | 0

已回答
how can i stop this while loop? it doesn;t finish
Another way is to use isequal function if isequal((out.soc_fin(end)-soc_target),1.5) break end

7 months 前 | 0

已回答
Turning a double into a scalar
close all; clear all; clc gamma = 1.4; mach = 2.5; theta_a = 0:.1:30; p1 = .2; t1 = 300; t_0 = 675; p_0= 3.417; vm2 = (t...

7 months 前 | 1

| 已接受

已回答
How to join variables in the title of plot?
title(['PCA scores', num2str(method), num2str(par)]);

7 months 前 | 0

已回答
Subs function doesn't fully replace the values
syms X Y Z W q = [X, Y, Z, W]; q_1 = [1, 2, 3, 4]; phi = [(2*X-W)^2 X^2-2*Y Y*sin(Z)]; J = jacobian(phi,q); disp(J); J_1 =...

7 months 前 | 0

| 已接受

已回答
How to display functions with 2 outputs
a = 212% input('Please enter a number '); disp("Select what conversion you want to do:"); disp('1. Celsius to Fahrenhiet') co...

7 months 前 | 1

| 已接受

已回答
plot legend shows wrong linespec
d = load('data.mat') %figure plot(d.t,repmat(d.molTot,length(d.t),1),'-rx',d.t,d.molGas,'-bo'); legend('a','b')

7 months 前 | 1

| 已接受

已回答
for loops within while loop
while t1< 2 & h2 >= 0 % your code end You could put both conditions together as above using single while loop.

7 months 前 | 0

已回答
How to Generate Subscripted Arrays in Live Scripts
\left(\begin{array}{ccc} z_{1} & z_{2} & z_{3} \end{array}\right)

7 months 前 | 0

已回答
I am having trouble trying to maintain the loop
@Yogesh when array sizes dont match , those errors occur. check the array dimensions in for loop Nt=161224; dt=6e-12; T=9.673...

8 months 前 | 0

已回答
how to create a function to solve a series of equitions?
if you have symbolic toolbox then you can define it inside the function as function [a,b,c] = EqSol(var1,var2,var3,var4,var5,va...

8 months 前 | 0

| 已接受

已回答
How to Fix "Warning: Colon operands must be real scalars" Warning
for k = 1:numel(ply_nums_range) ply_nums = ply_nums_range(k); % for i = 1:length(data) b = data(...

8 months 前 | 0

已回答
Error using symsum and arrays for summing over array elements
trial = symsum( array(double(q)).*q.^2 , q,2,7)

8 months 前 | 0

| 已接受

提问


Why is Run button not visible ?
Look at the snapshot attached Does anyone know why the run button is not visible this way?

8 months 前 | 1 个回答 | 0

1

个回答

加载更多