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

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

4 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}...

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

4 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

5 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

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

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

5 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,...

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

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

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

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

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

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

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

5 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

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

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

1 year 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

1 year 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

Question

ipcam undefined error message

Why I got this error, I have matlab R2015a, please help

3 years ago | 0 answers | 0

Question

vectors input to ODE 45

I have a transient equation below dT/dt=Qs+Qa+Qir- seg*T where: Qs=sun power (watt/m2) % length( 6000,1) Qa=Earth...

3 years ago | 1 answer | 0

Question

Vector input for ODE45

Sirs, I have something like the below formula: T=(A+B+C)+(D*T) dt where A, B and C are vectors with let me say (1,6000) leng...

3 years ago | 1 answer | 0

Question

Interpolation between multi curves

clc clear close all x=linspace(0,180,180)*pi/180 y200 = -0.0023.*x.^6 + 0.0296.*x.^5 - 0.1574.*x.^4 + 0.3502.*x.^3 - 0.159...

3 years ago | 1 answer | 0