Search found 11 matches

by andrea_simion
Sun Aug 29, 2021 8:23 pm
Forum: Spinach support
Topic: Decaying curve from fid
Replies: 1
Views: 2921

Decaying curve from fid

There is a function/program in Spinach that enables the extraction of the decay curve from the fid? I mean, if I obtained the following fid (see figure), and I need a graph only with the green or the blue curve from the fid, how I can do that? I would like to obtain curves like the three ones presen...
by andrea_simion
Sun Aug 29, 2021 12:51 pm
Forum: Spinach support
Topic: Export data as file
Replies: 1
Views: 2880

Export data as file

After I obtained the fid, I export it as a file. I write the following command: fid2ascii('fid',real(fid)) In that case, the time units are not given, i.e I obtained a file with just 2 columns: the first is the index of the point from the fid, i.e from 1 to 256 for parameters.npoints=256, and the se...
by andrea_simion
Sat Aug 28, 2021 4:55 pm
Forum: Spinach support
Topic: Error using alpha
Replies: 13
Views: 7060

Re: Error using alpha

I made the modifications. Now, I don't have any errors when I running the code. The problem is that if I export real(fid) as an ASCII file, I have just 0.00000000E+00 values. Did I miss something in the two codes? I made the following modifications: In tppm, before compose the Liouvillian I wrote: %...
by andrea_simion
Sat Aug 28, 2021 2:46 pm
Forum: Spinach support
Topic: Error using alpha
Replies: 13
Views: 7060

Re: Error using alpha

I modified the code for tppm, i.e i used step() instead of evolution(), and I put the grumble outside the function. It seems to work because I don't have errors if I try to run this code. new_tppm code: % Two pulse phase modulated (tppm) decoupling % % Parameters: % % parameters.rf_pwr_tppm - rf pow...
by andrea_simion
Fri Aug 27, 2021 5:10 pm
Forum: Spinach support
Topic: Error using alpha
Replies: 13
Views: 7060

Re: Error using alpha

It's done :) I wrote the code for tppm decoupling (see below). I started with the consistency check, then I built the Liouvillian. I defined the initial state, which is Lx on channel 1 (e.g 1H), the detection state, L+ on channel 2 (e.g 13C), and the pulse operators. Then, I started to write the cod...
by andrea_simion
Thu Aug 26, 2021 8:00 pm
Forum: Spinach support
Topic: Error using alpha
Replies: 13
Views: 7060

Re: Error using alpha

I understand now! Thank you very much for your answers! I write: parameters.grid='rep_3ang_100pts'; for example, and then I can apply powder context, or if I want to apply Floquet theory, I obtain the Floquet Hamiltonian and then the fid if I call: fid=floquet(spin_system,pulse_sequence,parameters,a...
by andrea_simion
Thu Aug 26, 2021 12:53 am
Forum: Spinach support
Topic: Error using alpha
Replies: 13
Views: 7060

Re: Error using alpha

Thanks, I think I understand now what was wrong. I specified the Euler angles for the interactions in the molecular frame, which in other programs for simulations like spinev or simpson are specified in the CSA file. Now, I need to import a file “rep.100”, where I have 100 different values for alpha...
by andrea_simion
Wed Aug 25, 2021 5:10 pm
Forum: Spinach support
Topic: Error using alpha
Replies: 13
Views: 7060

Re: Error using alpha

I already specified the euler angles for the isotopes by using inter.zeeman.euler as below, but doesn't work. I have the following error: "Error using alpha. Too many output arguments." inter.zeeman.euler={[0 0 0]; [0 20*pi/180 10*pi/180]; [90*pi/180 80*pi/180 60*pi/180]; [120*pi/180 130*p...
by andrea_simion
Wed Aug 25, 2021 3:43 pm
Forum: Spinach support
Topic: "left" specification for rho_0
Replies: 1
Views: 2781

"left" specification for rho_0

I have a short question. In the following line, "left" means that the hamiltonian used to define the initial density operator was built by left product between operators? Am I right? Or what is the meaning of "left"? parameters.rho0=equilibrium(spin_system,hamiltonian(assume(spin...
by andrea_simion
Wed Aug 25, 2021 3:35 pm
Forum: Spinach support
Topic: Error using alpha
Replies: 13
Views: 7060

Error using alpha

Hello, After I wrote the spin system specifications, I created the spin system, I specified the basis, and it works. But when I try to obtain the hamiltonian or the relaxation superoperators (see code below), I obtain the following error: Error using alpha Too many output arguments. Where is the pro...