解決済み


Compute Fibonacci Number
Compute the n-th Fibonacci Number f(0) = 0, f(1) = 1, f(2) = 1, f(3) = 2, ... f(42) = 267914296

2年弱 前

解決済み


Armstrong Number
Determine whether the given input n-digit number is Armstrong Number or not. Return True if it is an Armstrong Number. An n-Dig...

2年弱 前

回答済み
Error with my CODE and I don't know why.
@Raphael Marcelo You can modify the following lines in your code. i.e. set the uieditfield property to numeric instead of text...

2年弱 前 | 0

回答済み
Arrowhead is turning the wrong way
Hi @Rasmus Bruun, In this line, you are trying to reverse the direction of X-axis (for unknown reason), If you comment the bel...

2年弱 前 | 0

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

2年弱 前 | 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

2年弱 前 | 0

解決済み


3D Plots and Colorbars
Use the matrices X, Y, and Z provided in the function template to create a surface plot. Add a colorbar to the surface plot and ...

2年弱 前

解決済み


Plot Line Specifications
Create a line plot for function cos(x) where x is a vector of linearly spaced values going from 0 to input N with an increment o...

2年弱 前

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

2年弱 前 | 0

解決済み


Convert Two Character String into a Binary Vector
Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0] Paul Berglund implemented an optimal method in <http://ww...

2年弱 前

解決済み


Join Strings with Multiple Different Delimiters
The idea is to form the string S by interleaving the elements of a cell array of strings DELIMITER and another cell array of st...

2年弱 前

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

2年弱 前 | 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...

2年弱 前 | 0

解決済み


Function composition
Write a function that accepts two function handles f and g and returns the composition h. That is, h = (f o g)(x) = f(g(x)) ...

2年弱 前

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

2年弱 前 | 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,...

2年弱 前 | 0

解決済み


Consecutive Powers
Return 2 numbers and 2 powers such that their difference is 1 A 4 element row vector is expected: x where x(1)^x(2) - x(...

2年弱 前

解決済み


calculate PI without using pi function
There are many methods to get the pi(Ratio of circumference to diameter). You should get pi without using the pi function in M...

2年弱 前

解決済み


Create an arrow matrix
An arrow matrix is a square matrix that contains ones on the diagonal, the last column, and last row. ...

2年弱 前

解決済み


Find the minimum of the column-maximums of a matrix
Given a matrix A, find the maximum value of each column, then return the smallest of those maximum values (ie return the minimum...

2年弱 前

解決済み


Calculate the mean of each half of a matrix
Given a matrix with an even number of columns, n, return a 1-by-2 row vector where the first element is the mean of all the elem...

2年弱 前

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

2年弱 前 | 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/...

2年弱 前 | 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=...

2年弱 前 | 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 ...

2年弱 前 | 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...

2年弱 前 | 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)

2年弱 前 | 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 ...

2年弱 前 | 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...

2年弱 前 | 0

さらに読み込む