Question

earth magnetic field model

Happy new year, I am wondering if the world magnetic field results the vectotr (XYZ) in cartesian or east ,north, vertical?

12 days ago | 1 answer | 0

Question

extract out values out of loop

Can any one pls help how to extarct [XYZ,H,D,I,F] out of the below loop Thanks for i= 1: length(Hi) [XYZ,H,D,I,F] = w...

25 days ago | 2 answers | 0

Answered

vector input to wrldmagm

Thanks ASAD in this case I have to extract the values out of the loop and this is another issue for me

vector input to wrldmagm

Thanks ASAD in this case I have to extract the values out of the loop and this is another issue for me

25 days ago | 0

Question

vector input to wrldmagm

Hi All, [XYZ,H,D,I,F] = wrldmagm(height,latitude,longitude,decimalYear) HI I am trying to model the earth magnetic field of ...

25 days ago | 2 answers | 0

Question

plot 3 d square

hi this script must plot a square, but i got the attached plot, how to connect all lines? thanks vhat1=[x,repmat(2,length(y),...

7 months ago | 0 answers | 0

Question

quiver3 in a loop

hi I have (bbhat ) size(150,3) and (vvhat) size(150,3) both vectors have the same size I tried this: for ii = 1:length(bbh...

7 months ago | 1 answer | 0

Question

change columns in array to zeros and assign to another vector

hi I have a (n,3) array, I need to make the first and second coulmns zeros, and assign the resulted array to a new one g=(a{1}...

7 months ago | 1 answer | 0

Question

reshape loop resulted cell array

hi, the script below is supposed to result a (n,3) vector, what I got is (180,60) vector, kindley help c1 = cell(numel(a11)...

7 months ago | 1 answer | 0

Question

pre allocating vector for loop

Can any one tell how to pre allocate c1? thanks for ii = 1:length(a11); c1=cross(L1(1,:),a11(ii,:)); end

7 months ago | 1 answer | 0

Question

create non uniform increment vector

hi how can I in a single command creat this vector: a=12345678910987654321 thanks

7 months ago | 2 answers | 0

Question

cross product of by an array

I have (a )which is an array as below: a = a{1} = [185x3 double] a{2} = [185x3 double] a{3} = [185x3 double] ...

7 months ago | 1 answer | 0

Question

grouping rows and store is separate matrix

hi all, in the script below I have p which is (m,3) vectors matrix, Itried to group this matrix according to z-value in L1 vect...

7 months ago | 1 answer | 0

Question

pre allocating triple loops

hi, how to pre-allocate this: for ii = 1:numel(L); for jj=1:numel(L); for kk=1:45; c=cross(L1(ii,...

7 months ago | 1 answer | 0

Question

selecting first row in cell array

hi all, I have below, how can I select first row in a(1) thanks a = [185x3 double] [185x3 double] [185x3 do...

7 months ago | 1 answer | 0

Question

row filtering and pre-allocate

hi all, here p is (1,3) vector,: how can I preallocate a. how can store each filtered rows in a seperate matrix. Regards ...

7 months ago | 1 answer | 0

Question

plot3 out of loop

Can you please fix empty plot in below script clear close all format long theta=0:10:360; rho=0:.5:2; L=-2:0.5:2; X= cel...

7 months ago | 2 answers | 0

Question

pol2cart in loop and pre-allocating

hi all, how can I put [x,y,z]=pol2cart(theta,rho,z), in tripple loop for different values of heta,rho,z, as well how to pre all...

7 months ago | 2 answers | 0

Question

comparing and cross product

hi guys, why c in below return with one coulmn, it supposed to return (x,y,z,) vector? regards c=zeros[]; for i=1:leng...

7 months ago | 1 answer | 0

Question

grouping vectors based on z value

Hi guys, If I have how array of vectors a(xi,to,zi) and b(xj,y2k,zj), I want to extract a new group based on the condition zi...

7 months ago | 0 answers | 0

Question

cross product for multi concentric vector (cylindrical coordinates)

Hi Guys, I have created multi vectors in cylindrical coordinates, as seen in the attached images, I need to make a cross produc...

7 months ago | 0 answers | 0

Answered

extract data from a loop

Hi Guys, Is there any way to accept all your answers? you all great, really appreciated

extract data from a loop

Hi Guys, Is there any way to accept all your answers? you all great, really appreciated

8 months ago | 0

Question

extract data from a loop

Hi Guys, Can any body help on how extract and plot data from this? clc clear close all format long mu0=4*pi*10^-7; R=0....

8 months ago | 4 answers | 0

Question

second order deferential equation ode45

Hi, Can any one please guid how to solve the below equation using ode45, knowing that C is constant Regards

1 year ago | 0 answers | 0

Question

solving equation with ode5

Hi, Can you please guid me how to solve this equation by ode45 omegadot=(-(Js-Jt).*w2.*COMEGA)./Jt;

1 year ago | 0 answers | 0

Question

run matlab plot command in excel

Hi every body, I have built a huge matlab script wich has about 100 plot, I need to controll selecting plotting between any two...

2 years ago | 0 answers | 0

Question

Rectangular high detailed world map

Hi everybody, Can I ask your kind assistanse to creat a rectangular world map with high details Thanks in advance

2 years ago | 0 answers | 0

Answered

sawtooth plot with specific x ,y limits

<</matlabcentral/answers/uploaded_files/139432/sawtooth.png>>

sawtooth plot with specific x ,y limits

<</matlabcentral/answers/uploaded_files/139432/sawtooth.png>>

2 years ago | 0

Question

sawtooth plot with specific x ,y limits

Hi every one, How can I plot as saw tooth plot with exact x, y limits as attached image? Thanks in advance

2 years ago | 2 answers | 0

Question

compiling to c++

Is there an ability to compiling matlab script to C++ ? Thanks

3 years ago | 1 answer | 0

Question

Add-ons in matlab R2012a

Where can I find add-ons in matlab R2012a?? Thanks

3 years ago | 1 answer | 0