Feeds
已回答
Very strange situation. By some reason the questdlg() does not work within a function:
Your function definition is wrong. Try function answer = Heat_Test() answer = questdlg('quest') end
Very strange situation. By some reason the questdlg() does not work within a function:
Your function definition is wrong. Try function answer = Heat_Test() answer = questdlg('quest') end
5 years 前 | 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...
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...
6 years 前 | 0
| 已接受
已回答
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 ...
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 ...
6 years 前 | 0
已回答
Set Add-ons path using commands
Use addpath? <https://uk.mathworks.com/help/matlab/ref/addpath.html>
Set Add-ons path using commands
Use addpath? <https://uk.mathworks.com/help/matlab/ref/addpath.html>
7 years 前 | 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, ...
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, ...
7 years 前 | 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 ...
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 ...
7 years 前 | 1
| 已接受
已回答
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...
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...
7 years 前 | 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
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
7 years 前 | 2
已回答
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...
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...
7 years 前 | 0
| 已接受
已回答
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...
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...
7 years 前 | 1
| 已接受
已回答
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...
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...
7 years 前 | 0
已回答
How to extract column information of a mix cell array! - Please Help :(
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...
How to extract column information of a mix cell array! - Please Help :(
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...
7 years 前 | 1
| 已接受
已回答
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....
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....
8 years 前 | 3
已回答
Can I convert a complex value vector into corresponding string?
str = num2str(u) https://uk.mathworks.com/help/matlab/ref/num2str.html
Can I convert a complex value vector into corresponding string?
str = num2str(u) https://uk.mathworks.com/help/matlab/ref/num2str.html
8 years 前 | 0
| 已接受
已回答
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...
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...
8 years 前 | 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...
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...
8 years 前 | 0
| 已接受
已回答
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
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
8 years 前 | 1
| 已接受
已回答
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...
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...
8 years 前 | 2
| 已接受
已回答
Rotating 3-D Histogram
How about: view(gca,[0 90]) % or ax = gca; ax.View = [0 90]; Henry
Rotating 3-D Histogram
How about: view(gca,[0 90]) % or ax = gca; ax.View = [0 90]; Henry
8 years 前 | 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...
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...
8 years 前 | 0
已回答
How to control multiple pushbutton with keyboard using GUIDE?
Is it be possible that the focus is no longer on the figure and is instead on the pushbutton associated to the previous key? ...
How to control multiple pushbutton with keyboard using GUIDE?
Is it be possible that the focus is no longer on the figure and is instead on the pushbutton associated to the previous key? ...
8 years 前 | 0
| 已接受
已回答
How to change the way data is scaled to custom colormap in a scatter plot.
Hi, One solution is to set the CLim values for the axis to be equal positive and negative values. The white section of your c...
How to change the way data is scaled to custom colormap in a scatter plot.
Hi, One solution is to set the CLim values for the axis to be equal positive and negative values. The white section of your c...
8 years 前 | 0