답변 있음
Interpolation and getting errors
Note, you are trying to access |time(0)| when |t<30|. Matlab index arrays starting with 1. Probably changing |floor(t/30)| to |...

9년 초과 전 | 0

| 수락됨

답변 있음
how can I join points along a two plots with straight lines?
add at the end something like that: hold on plot(reshape([x,x,x].',1,[]),reshape([ytop,ybot,ytop*NaN].',1,[]))

9년 초과 전 | 0

| 수락됨

답변 있음
Please how can I unstack a column of negative and positive values into 2 columns of positive and negative values respectively?
You can compare your data with zero. This will classify your data and you can use it to get what you want. Example based on y...

9년 초과 전 | 0

문제를 풀었습니다


Multipliying 2 numbers
Multiplying 2 numbers

9년 초과 전

답변 있음
How do I set my axis values down to zero when changing my y-axis to log scale?
There is no zero on log scale. Add one line on the end of your code: ... set(gca,'yscale','log') ylim([0.4, 3]...

9년 초과 전 | 0

답변 있음
FFT and IFFT Problem (numerically and analytically result is not same)
This is caused by side effects of digital domain # You are calculating circular convolution instead of normal one. To make co...

9년 초과 전 | 0

| 수락됨

답변 있음
Creating HDF5 file: How to create a GROUP inside a GROUP?
Use <http://www.mathworks.com/help/matlab/low-level-functions.html Low-Level Functions> such as H5G.create to create custom/nest...

9년 초과 전 | 0

| 수락됨

답변 있음
What are the disadvantages of using uppercase 'W' in fopen compared to lowercase 'w'
I guess some memory is used for buffering purposes. There should not be *any* differences in written data. 'W' or 'A' are faste...

9년 초과 전 | 1

문제를 풀었습니다


Free-time Equation
Given a 7-day week, an *_nc_* -number of *_tc_* -hour classes, *_ta_* -hours awake in a day, and *_tw_* -hours that you work in ...

9년 초과 전

문제를 풀었습니다


Find longest run
Write a function longest_run that takes as input an array of 0's and 1's and outputs the length and index of the longest consecu...

9년 초과 전

문제를 풀었습니다


Create a Video
Create an avi video of the function surf(sin(2*pi*k/20)*Z,Z) for k=1:100 with an avi "quality" of 5. The standard quality is ...

9년 초과 전

답변 있음
What is wrong with my code
Are _TH_max1:3_ scalars, vectors or arrays? _&&_ and _||_ may be used only with scalars. Try: if(all(TH_max1(:) >= 0.4) && ...

9년 초과 전 | 0

답변 있음
how to find integral for this function
In MATLAB there is a difference between calling |*| and |.*| The same is for |^| |.^| etc. Change * |*| to |.*| * |/| to...

9년 초과 전 | 0

답변 있음
Using ifft to get the Fourier Coefficient
N=256; X=2*N; L=2*pi; x=linspace(-pi,pi,X); c=0; k = 2*pi*((1:2*N)-N-1)/L; % vectorised y = sin(x); % don't understand w...

9년 초과 전 | 0

답변 있음
Exporting table to excel
You don't have to join tables before exporting them. You can just create spreadsheet and then add other data in other sheets or ...

9년 초과 전 | 3

| 수락됨

답변 있음
Dividing matrix in four parts
A = zeros(210,3); %example split = [40 60 30 80]; A_split = mat2cell(A,split); [B, C, D, E] = A_split{:}; doc mat2...

9년 초과 전 | 0

답변 있음
Could someone please help me speed up my code?
# If you have to use loop, <http://nl.mathworks.com/help/matlab/matlab_prog/preallocating-arrays.html preallocate> variable _RMS...

9년 초과 전 | 1

답변 있음
How to rank a vector with repeats without MATLAB unique?
Do you want to replicate following behaviour? [~, ~, rank] = unique(data); rank = rank.'; There are thousands of ways...

9년 초과 전 | 0

문제를 풀었습니다


center of mass
R is a given matrix with size [n,2]. R(i,:) is interpreted as the 2D-position of a mass point with mass i. Calculate the center ...

9년 초과 전

문제를 풀었습니다


Look Up Mapping
Let the input is A = {[] [] [] [1] []}; B = {'A','B','C','D','E'}; Mapped Output = 'D';

9년 초과 전

문제를 풀었습니다


Return the sequence element III
This problem is related to <http://www.mathworks.com/matlabcentral/cody/problems/42832-segmented-number-sequence Problem 42832>....

9년 초과 전

문제를 풀었습니다


Kaprekar numbers
Test if the input is a Kaprekar number: <http://mathworld.wolfram.com/KaprekarNumber.html>. Return a logical true or false. ...

9년 초과 전

문제를 풀었습니다


Differential equation and events
You have to solve the non-linear time variant differential equation: (cos(y)+2)*y''+atan(y)*sin(0.01*t)^2+y*sin(0.5*t)=0 ...

9년 초과 전

문제를 풀었습니다


Transpose of matrix
Transpose of matrix as per test cases

9년 초과 전

문제를 풀었습니다


Composite Trapezoidal Rule for Numeric Integration
Use the trapezoidal rule to numerically integrate a function, _f(x)_, passed as the first argument, between upper and lower limi...

9년 초과 전

문제를 풀었습니다


Bisection method of finding a root.
Test the bisection algorithm described in Chapter 5 of Steven C. Chapra's textbook, *Applied Numerical Methods with MATLAB for E...

9년 초과 전

문제를 풀었습니다


Fraction of a fraction of a ...
One sort of brainteaser problem is a math problem wherein you are asked what the given fraction of a fraction of a ... number is...

9년 초과 전

답변 있음
I have problem of ode45. please help me T_T
1. It seems your function rocket.m represents system of equations dH₁ = H₂ dH₂ = aH₁² + 127530 Verify, if it's what y...

9년 초과 전 | 0

답변 있음
Problem with categorical arrays
(Copied from comments as suggested.) You are trying to make categorical array from a variable of mixed data types. categ...

9년 초과 전 | 1

| 수락됨

문제를 풀었습니다


Order of things - 4
*This is the last assignment in the _Order of Things_-series. If that past incompleteness kept you from solving it, you may star...

9년 초과 전

더 보기