solve the following system of 3 linear equation in unknowns x, y and z? How do I accomplish this?
A = [2 3 4; 5 6 7; 1 1 0]; B = [43; 65; 11]; V = A\B;

meer dan 11 jaar ago | 0

| accepted

how to move the plots when slider is dragged.
Heres a basic example, changing xlim via slider callback. function slider_example x = 0:pi/32:8*pi; y = cos(x).^5; ...

meer dan 11 jaar ago | 0

Need help with plotyy formatting
First legend input can be a vector of plot handles. figure x = 0:0.01:20; y1 = 200*exp(-0.05*x).*sin(x); y2 = 0.8*...

meer dan 11 jaar ago | 0

| accepted

Polynomial fitting of each pixel in an image without looping
Referring to your 256 sec calulation time: Got it to 1 sec and 0.8 with parfor. (on my cpu) dim = 256; C = mat2cell(r...

meer dan 11 jaar ago | 0

| accepted

How to read a text file and create a structure array?
Try to skip the second comma. C = textscan(fid, '%s%d8%*s%f32');

meer dan 11 jaar ago | 0

| accepted

Get max value and index of multidimensional array
Use 1D-Indexing: M = randn(10,10,10,10); [C,I] = max(M(:)); C M(I) This might be useful too: [I1,I2,I3,I4]...

meer dan 11 jaar ago | 11

how to evaluate a symbolic function in matlab
* doc subs * doc subexpr

meer dan 11 jaar ago | 1

Exporting data to excel every time a program is run
x = 1:100; a = x.^2; xlswrite('xls_test',a)

meer dan 11 jaar ago | 0

| accepted

Polynomial fitting of each pixel in an image without looping
Is the overall result just 5 scalar k values? X = cat(1,C{1,:}); Y = cat(1,C{2,:}); Z = cat(1,C{3,:}); M = [X(...

meer dan 11 jaar ago | 0

3x3 8-connected structuring element
ones(3)

meer dan 11 jaar ago | 1

centroid of image and value of pixel
Do you have Image Processing Toolbox? If yes, here you go: BW = imread('text.png'); s = regionprops(BW, 'centroid'); ...

meer dan 11 jaar ago | 0

Can I set explicit plot colors for specific values or value ranges
Yes its possible, only for contour3 its a bit fumbling. Surface function has an input for the colormatrix C. C is referring t...

meer dan 11 jaar ago | 0

| accepted

How to change a specific line in a text file?
# Loading txt into a cell. # Then do whatever you want with the cell. In this example, line 69 will be 99. # Then write the c...

meer dan 11 jaar ago | 15

| accepted

How do I get my string from a handle.text GUI HELP
Get String from text handle: get(handles.text,'String') Checking and breaking a loop: if strcmp(get(handles.text,'S...

meer dan 11 jaar ago | 0

can i use more than 1 function in same m. file ? because i want to use multiple function for adapting frequency
# The attempt having myeqd1, myeqd2, myeqd3, ... and then solve them with ode45(myeqd1,...); ode45(myeqd2,...); ... etc is bad i...

meer dan 11 jaar ago | 0

| accepted

Ubuntu - german umlaute in plots
I dont have Ubuntu but you can try this: title('Example \"a \"o \"u') title('Example ä ö ü','Interpreter','none')

meer dan 11 jaar ago | 0

| accepted

Running area under the curve at each time step.
Your input to trapz is a single point, you want to input a line. And for n = length(x) acceleration points you can only get n-1 ...

meer dan 11 jaar ago | 0

Fillm function paints all map instead of area inside polygon on map. How to solve this issue?
Your polygon is self-intersecting. You can see it, if you zoom in to the bottom corner. To fix it, define better points, eg: ...

meer dan 11 jaar ago | 0

How to pass values from one ode to another ode?
Write all equations in 1 function and make your state vector like this: 'x = [w;q]'. Tell me, if you need more details.

meer dan 11 jaar ago | 0

How to rotate the symblo only in the 3D map
Here is a simple basic part. n = 100; X = randi(n,30,1); Y = randi(n,30,1); Z = randi(n,30,1); r = 4; % factor for ...

meer dan 11 jaar ago | 0

data = getdata(obj,samples) samples - The number of samples to extract. If samples is not specified, the number of samples ...

meer dan 11 jaar ago | 0

| accepted

4D dicom matrix? Why not 3D?
"Is this the gray level intensity?" - Yes, color reserved dimensions. It's mostly not about the gray scale. These values just...

meer dan 11 jaar ago | 1

how to write a code for checkbox
Code for the checkboxes uicontrol: hax = [h1;h2;h3]; % axes handles hcb = [0;0;0]; % checkbox handle (preallocate) cb...

meer dan 11 jaar ago | 1

| accepted

The function |setAllowAxesZoom| will do the job. If you add this example to your code, you are zooming in axes h1. hz = zoo...

meer dan 11 jaar ago | 1

| accepted

x-labels do not show in bar3 graph
Try |hold on| befor the loop: X={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15}; Y={2;3;2;3;4;2;3;4;2;3;4;2;3;4;5}; hold on ...

meer dan 11 jaar ago | 0

| accepted

How to identify contiguous regions between two thresholds?
[C,h] = contour(...) The ContourMatrix C contains directly the infomation you are looking for. Just look up ContourMatrix i...

meer dan 11 jaar ago | 0

| accepted

How to detect equal rows of a matrix compare with another matrix with a 10 per cent of margin?
m = 0.1; % margin A = [1 2 3; 4 5 6; 7 8 9]; B = [7 8 10; 4 5 12; 1.1 2.2 2.9; 1.101 2 3; 6.3 7.2 9.9]; k = 0; ...

meer dan 11 jaar ago | 0

| accepted

How can I adjust the position of a 'scattergroup' (scatter3) figure?
scrsz = get(0,'ScreenSize'); set(gcf,'OuterPosition',[scrsz(3)/2 scrsz(2) scrsz(3)/2 scrsz(4)]) n = 20; scatter3(rand...

meer dan 11 jaar ago | 0

| accepted