Community Profile

# Henry Giddens

Last seen: 4 Tage ago Active since 2016

All

#### Content Feed

View by

Very strange situation. By some reason the questdlg() does not work within a function:

fast 2 Jahre ago | 0

Polar Plot for 2 element antennas
Firstly, I would use the polarplot function instead of polar. Then you couls just plot a single point at the coordinate that you...

etwa 3 Jahre ago | 0

| accepted

How do I plot two graphs on one figure?
Something like: dy = diff(y); dx = diff(x); plot(x,y); hold on; plot(x(1:end-1),dy./dx) The gradient using ...

etwa 3 Jahre ago | 0

fast 4 Jahre ago | 1

Using the ellipse graph.
Your equation ends up with some negative values - (which I'm not sure can be correct?), but if you are using polar coordinates, ...

fast 4 Jahre ago | 0

trying to plot 2d graph with y=(x+some_thing/x+same_thing)
You need to use the ./ command, instead of just / y=(0.9*x+0.01)./(x+0.1) / by itself performs matrix division, whereas ...

fast 4 Jahre ago | 1

| accepted

flipud will not work anymore
It looks like you are calling flipud on the string 'deep', which will return the string 'deep'. I dont know what you cmocean com...

etwa 4 Jahre ago | 1

Number of columns on line 2 of ASCII file [ ].m must be the same as previous lines.
If you just want to run that code, which is contained in a script, just type the name of the .m file without the 'load' command

etwa 4 Jahre ago | 1

Just one y axis is drawn in GUI when I use the plotyy.
Hi, plotyy creates two axes objects. You need to copy both to the new figure. Are you sure that your code is copying both obj...

etwa 4 Jahre ago | 0

| accepted

Need help altering code to so it records all values, not just the final ones.
Hi, One way to create a table is to convert from a standard array: fprintf(' \n 4) Newton Raphsons Method \n') fprin...

etwa 4 Jahre ago | 1

| accepted

Undefined function 's' for input arguments of type 'double'
Your function computeDeltaF expects the object as the input, not the property value Change the following line: fu...

etwa 4 Jahre ago | 0

Hi, In this example, all of your '100' and 200' values are strings, so you need to identify the cells in the second column of...

etwa 4 Jahre ago | 1

| accepted

How to retrieve the output from callback function?
Hi, You will have to store the answer as a property or else if is will be lost when the callback function finishes executing....

fast 5 Jahre ago | 1

Can I convert a complex value vector into corresponding string?
str = num2str(u) https://uk.mathworks.com/help/matlab/ref/num2str.html

fast 5 Jahre ago | 0

| accepted

How do I name this variable dynamically?
In your example above, the variable "batch" is a string. You cant reference object properties or methods, or structure fields fr...

etwa 5 Jahre ago | 0

Help me with this loop. contains handles structure
If you want to do it like this, you can access structure fields using strings by enclosing the string referring to the fieldname...

etwa 5 Jahre ago | 0

| accepted

How to display the coordinate system of the figure (UCS icon)?
Hi yu, Yes I have done it a few times. You should be aware that this will work for me because the scale on each axis is equal. F...

etwa 5 Jahre ago | 1

| accepted

Reshaphing 3D Matrix into 2D Matrix
Yes reshape will work sz = size(A); B = reshape(A,sz(1),[],1); % or B = reshape(A,sz(1),sz(2)*sz(3)); Henry

etwa 5 Jahre ago | 1

| accepted

Rotating 3-D Histogram
How about: view(gca,[0 90]) % or ax = gca; ax.View = [0 90]; Henry

etwa 5 Jahre ago | 0

import csv file to specific sheet in excel
Hi, xlswrite attempts to write each element of your array to a single cell in the worksheet. Your arrays (J and K) are cell a...

etwa 5 Jahre ago | 0