Question

How to read an amira file?

Hi, I have data.am file which contains vector field data at different times. How do I read the data?

ongeveer 2 maanden ago | 1 answer | 0

Question

How to change sampling points and frequency of a matrix?

I have a m x n grid X and another m x n matrix v with values corresponding to each grid point of X . I want: 1) resample X t...

2 maanden ago | 1 answer | 0

Question

How to find Jacobian of a vector field given as a dataset?

I have a dataset given in 3x 1 x m x n x l. 3x1 vector at each point of m x n x l 3D tensor holds the velocity vector [u,v,w]. ...

2 maanden ago | 0 answers | 0

Question

How to keep some data in the workspace when clear all?

I have a huge data which takes time to load, therefore, I do not want to remove it from the workspace everytime I run the code b...

2 maanden ago | 1 answer | 0

Question

URGENT Unable to load .mat file

load('C:\Users\mirla\Desktop\my_data_folder\velocity_data.mat') Not a binary .MAT file. Try load -ASCII to read as text load(...

2 maanden ago | 1 answer | 0

Question

Is this a right way of computing Jacobian matrix of a velocity field?

Hi there, I am computing the Jacobian of velocity field V = [vx; vy; vz]. I take a numerical gradient of a vector field [g...

2 maanden ago | 0 answers | 0

Question

How to transform a nonlinear velocity field to a new frame of reference?

Example: Velocity Field: v = - x*sin(C*t) - y*(w/2 - cos(C*t)) y*sin(C*t) + x*(w/2 + cos(C*t)) ...

3 maanden ago | 0 answers | 0

Answered

How to symbolically solve a system of ODEs with general time dependent matrix coefficients?

As there is no closed form solutions to such general problems, it can be solved only numerically.

How to symbolically solve a system of ODEs with general time dependent matrix coefficients?

As there is no closed form solutions to such general problems, it can be solved only numerically.

3 maanden ago | 0

| accepted

Question

How to symbolically solve a system of ODEs with general time dependent matrix coefficients?

I have the following system of ODEs where Q and A are 3x3 matrices, and the b is a 3:1 vector.

3 maanden ago | 1 answer | 0

Question

How to evaluate symbolic results over a 3D tensor?

I want the following results to be evaluate over a m x m x m 3D tensor defined by [X,Y,Z] = meshgrid(x,x,x) where length(x) = m....

3 maanden ago | 1 answer | 0

Question

Does assigning a large value to a variable do the job of var -- inf well?

In symbolic matlab there is limit(f,x, inf) but in non-symbolic calculation...?

4 maanden ago | 1 answer | 0

Question

How to plot the 3D mesh created by meshgrid?

x=y=z=-10:10; [X,Y,Z] =meshgrid(x,y,z);

4 maanden ago | 0 answers | 0

Question

Find the index of given value in an array

array = [ 1 2 3 4 5 6 ]; find(array == 3); This is clear! I want to find fractional index when array == 2.5 or any other int...

meer dan een jaar ago | 3 answers | 0

Answered

Writing last line of each cell

xx=zeros(length(xxMM),6); for i=1:length(xxMM) a=xxMM{i}; xx(i,:)=a(end,:); end I think there should be a s...

Writing last line of each cell

xx=zeros(length(xxMM),6); for i=1:length(xxMM) a=xxMM{i}; xx(i,:)=a(end,:); end I think there should be a s...

meer dan een jaar ago | 0

| accepted

Question

How to plot matrix of ones and zeros as a chessboard?

I have a 3500 X 2500 matrix of zeros and ones. I want to plot it on a figure for which xlims=(1,12) and ylims=(0.5,14). I want t...

meer dan een jaar ago | 1 answer | 0

Question

How to come up with an objective function for lsqcurvefit?

Given X (1x199) and Y(1x21) and Z(21x199) are the results of the CFD experiment. I am trying to adapt https://www.mathworks.com/...

meer dan een jaar ago | 0 answers | 0

Question

How to run function within for loop

The code given below solves the delayed type differential equation. I want to run this code for >10,000 different combinations o...

meer dan een jaar ago | 1 answer | 0

Question

How to use ode45 for an equation with space dependent coefficients?

Consider an equation of form: where so that after each time iteration I have to update to be used in the next time iteration...

meer dan een jaar ago | 1 answer | 0

Question

How to fill a region defined by coordinates?

How to fill the area enclosed by points A,E and F. % A B E F points rO= [ 0 , 0 ]; rA = [ -w*cos(...

meer dan een jaar ago | 1 answer | 0

Question

How to extract raw data of ode23 or dde23 simulation?

option=odeset('RelTol', 1e-4, 'AbsTol', 1e-4); sol = dde23(@syst,[tau],@hystory,[0 2000],option); figure(1);plot(sol.x,sol.y...

meer dan een jaar ago | 1 answer | 0

Question

How do I connect data points with sine or cosine curves

I have a surrogate time series graph. Data points are connected with straight lines, naturally. I would like to connect them wit...

meer dan 2 jaar ago | 1 answer | 0

Question

This is my code to generate random time series and to plot it. I want my code to do the same operations n times and then average Yn arrays of different repetitions and give me Yaverage array. I cant figure it out. .

close all; numofrep=input('number of repetitions:'); dw=0.02; %Frequency resolution w=dw:dw:10; %Frequencies Hs=1...

meer dan 2 jaar ago | 0 answers | 0