Answered
Calculate the volume of the area enclosed by the following vectors.
hi, like other users said , you need to understand that i,j,and k represent the Unitary vectors for Orthonormal basis -> -> -...

13 years ago | 0

| accepted

Answered
Having trouble modelling 2-dimensional transient heat transfer
hi, please, change the duration as : tspan=[0:4:7200]; and after running the file, type in the command prmpt : surf(T...

13 years ago | 0

Answered
Find Critical Mach number graphically
hi Kyle : try this : Cpo = -0.65; Mcr = linspace(1,8,20); Minfin = linspace(0,1,20); Ccrit = (2./(1.4*Mcr.^2)).*((((...

13 years ago | 0

Answered
How can I create a 3D matrix with values every 3rd/6th/9th row?
clc, close all N=11; a=rand(N); for i=1:N if mod(i,3)==0 a(i,:)=0; a(:,i)=0; end end fprintf(' Original...

13 years ago | 0

Answered
how can i force a matrix to be positive sime-definite matrix?
hi, arkedia, like Jan said you can take mvnrnd(A*A) if A is square or A*conj(A') otherwise and A*A~SIGMA , but if A is an a...

13 years ago | 0

Answered
how to evaluate a symbolic function in matlab
Kamuran, to get better approximation you need to increase the sample rate in x and interpolate : x=[ -1 -0....

13 years ago | 0

Answered
help finding vector slope
Try this : Fs=1000; T=(0:1/Fs:20-1/Fs); V=zeros(1,length(T)); t1=3; t2=5; g1=7; g2=4; for t=1:length(T) ...

13 years ago | 1

| accepted

Answered
help finding vector slope
hi, you have to declare all variables in your example like others said so as to examine the code , but now details are missing ....

13 years ago | 0

Answered
plotting libnez taylor series
AngelsaAtWar : You have to re-post the question with the function you want use and give a general index forumla : here i...

13 years ago | 0

Answered
how to evaluate a symbolic function in matlab
hi, you can use function_handle : func=@(x) cos((pi*x).^4) x=0:100; % example of vector x . RHS=diff(func(x),2);

13 years ago | 0

Answered
How to use if elseif, if
Hi try this : BMI=input(' Enter BMI : '); if(BMI<18.5) classification='underweight' elseif(18.5<BMI && BMI<24.9)...

13 years ago | 0

Answered
How to Normal Distribution and Statistics of Image using FFT (or any other method)
hi, the image you attached above contains only discrete line ? I can not tell much about the image anyway : 1) You can ...

13 years ago | 0

Answered
How to solve equation min||wij ||subject to ||Cp-Pij ||22 ≤є what function to use ?
hi, Alex, i had once a program called "Simplex" but i lost it, anyway the best function is linprog : Let us take an example :...

13 years ago | 0

Answered
need help in random sampling of all possible combinations
hi, You can create a cell in which you can store all your variables (2,Gr2,Gr4,...) (cell because you have heterogeneous dat...

13 years ago | 0

Answered
sorting a time series
hi, you apply directly the function Zt=F(Yt) as : (Yt,Yi) =>: F(Yt,Yi)=(Zt,Zi)

13 years ago | 1

Answered
To take the partial derivative of a function using matlab
hi , you can use "gradient" : [dF_x,dF_y]=gradient(F); subplot(1,2,1), imagesc(dF_x), title(' dF(x,y)/dx') subplot(1,...

13 years ago | 1

Answered
How to make a loop run multiple times for different values of a variable.
hi, Tom As you want to get 1200 differents values of alpha then you have to create an N by 1200 matrix : N=50 a...

13 years ago | 0

Answered
passing lots of variables between function efficiently?
You create your variables in the workspace and save them with "save command" , per example if you create two variables a and b,...

13 years ago | 0

Answered
plotting libnez taylor series
esult=0.0 ; signchange= 1; for k = 1:1:value term = signchange * 4/(2*k-1); result = (result + term) signchange =...

13 years ago | 0

| accepted

Answered
Trying to get magnitude of freq domain
hi, Aaron, The response that "ImageAnalyst" gave is correct but it shows wrong frequencies, Here is the code to produce ...

13 years ago | 0

Answered
Using a heatmap to display a large value range with detail
HI, suppose your final data is R , try to plot it in dB: imagesc(10*log10(R)); surf(20*log10(R)); If there are element...

13 years ago | 0

| accepted

Answered
Altering intensity levels within an image
hi, you can use the function : J = imadjust(I,[low_in; high_in],[low_out; high_out],gamma) for an example see : doc i...

13 years ago | 0

Answered
Need help with FFT2
hi Sam, In your question you said that you apply the transformation on png or jpg sample with numbers between 0 255, so its o...

13 years ago | 0

Answered
How to take time, angle and speed and plot them to see the course taken?
hi, I think you should use plot3 : plot3(time,position,velocity) As the initial position is mentioned , i think you have...

13 years ago | 0

Answered
time-lagged correlation coefficient between two time series
hi,i propose two ways : 1)as you have to series P1, P2 of length N both: y=xcorr(P1,P2); % Len= 2*N-1 plot(y) 2)Or...

13 years ago | 0

Answered
Need help with FFT2
Hi, as others mentioned above , when you perform the FFT2, the first element F(1,1) contains the sum of all elements of the 2d ...

13 years ago | 0

Answered
Infinite series for pi
hi, You can use loops to get the value pi=22/7, so it is an infinite serie, you specify in your software the format short to sh...

13 years ago | 0

Answered
How can I create a 3D matrix with values every 3rd/6th/9th row?
hi, for the second time ,re-write your question, anyway based on your non organized question, here is what you ask for : N=...

13 years ago | 0

Solved


Next Higher Power of B
|Given a number _n_ and a base _B_ greater than 1, return the lowest integer power of _B_ that is greater than or equal to _n_. ...

13 years ago

Solved


Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

13 years ago

Load more