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?

10 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...

10 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]. ...

10 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...

10 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(...

10 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...

10 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)) ...

11 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.

11 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.

11 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....

11 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...?

12 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);

12 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...

ongeveer 2 jaar ago | 4 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...

ongeveer 2 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...

ongeveer 2 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/...

ongeveer 2 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...

ongeveer 2 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...

ongeveer 2 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(...

ongeveer 2 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...

ongeveer 2 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...

ongeveer 3 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...

ongeveer 3 jaar ago | 0 answers | 0