Z must be size 2x2 or greater. HELP
Show older comments
A real amateur here so any real help would be appreciated. I keep getting that error code for this script
kRx = linspace(0,10);
kRz = linspace(0,10);
kRy = 0;
kR = kRx + kRy + kRz;
[kRx,kRz] = meshgrid(kRx,kRz);
T1 = cos(kR) + kR .* sin(kR);
T2 = kR.^2.*cos(kR);
T3 = T1 - T2;
T4 = T3*cos(kRz);
T5 = T4 ./ (kR).^3;
contourf(kRx,kRz,T5,500)
-----------------------------------------
Any help would be really appreciated!
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 8 Nov 2013
0 votes
T5 should have the same size as kRx and kRz
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!