Question


switch from GUI axes to figure() and back
I want to plot my graph either in GUI axes or in a separate figure As Walter recommended ( <http://www.mathworks.com/matlabcent...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Plot problemp
doc plot

plus de 12 ans il y a | 0

Question


Matlab cannot read data from a file which is saved as a text-file from Excel
I am not able to load data from a file which was saved as a text-file from MS Excel. textscan and load return an empty matrix...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Switch -- How to specify interval of cases?
switch i case num2cell(1:100) statement case num2cell(101:200) statement end

plus de 12 ans il y a | 4

| A accepté

Réponse apportée
Creating Symbolic Functions
Could it be an alternative solution to use symvar() instead of argnames()? syms x y f = x+y; symvar(f) ans = ...

plus de 12 ans il y a | 0

Réponse apportée
How can I write a program that can display the first 50 consecutive prime numbers starting with 2?
if _a_ is a prime then length(factor(a)) is equal to 1. You can try while loop.

plus de 12 ans il y a | 1

Réponse apportée
Matrix of numbers problem
a.*ones(1000,500) Where _a_ is any number. Sum of each pair of rows and sum of each column is equal to _a_*1000. That means...

plus de 12 ans il y a | 0

Réponse apportée
Solving for a single unknown (non-linear equation)
syms P solve('6.2=1.414*(1-(0.548+0.71*(3.83/49.5)^4)*(1-(1- (P/194166))))*sqrt(P/1.184)*(((0.9975-0.00653*(10^6/(70900*49...

plus de 12 ans il y a | 1

Réponse apportée
An orthogonal matrix from two orthognal matrices!
will this help? doc orth

plus de 12 ans il y a | 0

Réponse apportée
"save" in MATLAB
http://www-europe.mathworks.com/matlabcentral/fileexchange/13899-floating-number-conversion-to-binary-and-vice-versa

plus de 12 ans il y a | 0

Réponse apportée
functions vs. script
"Functions Are Generally Faster Than Scripts" http://www.mathworks.co.uk/help/techdoc/matlab_prog/f8-784135.html#f8-783832

plus de 12 ans il y a | 4

Réponse apportée
problem with if condition
http://www.mathworks.co.uk/support/solutions/en/data/1-16FOQ/?solution=1-16FOQ and this: http://www.mathworks.co.uk/suppor...

plus de 12 ans il y a | 0

Réponse apportée
Using for loop
EDITED Class(:,i)= vlookup(MOD(1:end , 14:15),MOD(i,1),2,1);

plus de 12 ans il y a | 0

Réponse apportée
Need help plotting to different plots in the same figure from a while loop. The program calculates the results for a square root using the Newton method but it doesn't plot it.
... figure; clf while t>ti k=k+1; %Interaction numbers i=x; %Safes...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How to plot logarithmic graph in matlab
set(gca, 'YScale','log');

plus de 12 ans il y a | 0

Réponse apportée
How would you draw this in MATLAB?
This gives the same picture as in the paper: clear; f=0:1000;%kHz alpha=0.11.*f.^2./(1+f.^2)+44.*f.^2./(4100+f.^2)+...

plus de 12 ans il y a | 0

Réponse apportée
Returning and plotting values from while loop results
I would modify your while loop as: while residual > 1.0e-2 ... resx = norm(res); residual = resx/re...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Vectorization
N=reshape(M,j*a,j/a)

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
problem with write to text file
Changing ownership (permissions) of your destination folder can help

plus de 12 ans il y a | 0

Réponse apportée
text into matrix cell
A is your matrix kxk C = cell(k,k); for n = 1:k for m = 1:k C{m,n} = [num2str(m),':',num2str(A(m,n))]; ...

plus de 12 ans il y a | 0

Réponse apportée
Cell array to 1x1 Vector/Cell
c1 = [c{1},' ',c{2}]

plus de 12 ans il y a | 1

Réponse apportée
minimum value of a matrix with the main diagonal elements equals to zero
out = min(A(A~=0))

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
extracting hex numbers from string
s = 'Address: 0x050 Value: 0xEC'; c = textscan(regexprep(s,'0x',''),'%s\t%s\t%s\t%s'); Address = hex2dec(c{2}); Value...

plus de 12 ans il y a | 0

Réponse apportée
Integrals which cant be solved
http://www.mathworks.co.uk/help/techdoc/ref/trapz.html http://www.mathworks.co.uk/help/techdoc/ref/quad.html

plus de 12 ans il y a | 0

Réponse apportée
Total beginner needs some help solving an equation
doc solve

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Radio Button and Panel GUIDE
if (get(hObject,'Value') == get(hObject,'Max')) set (handles.my_uipanel,'Visible','on'); else set (handles.my_uipanel,'...

plus de 12 ans il y a | 0

Réponse apportée
I want to implement this matrix
A=[zeros(64,1),(Ip-l)*eye(64,64)]

plus de 12 ans il y a | 0

Réponse apportée
Provided a 1D array of integers, find all combinations of 3 values from this set such that: a+b+c=0
if A is your 1D array, than you can use: B=combntns(A,3); C=sum(B,2); D=B(~C,:);

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
plotting problem
try plot(x,1-u_gb,'.k');

presque 13 ans il y a | 0

| A accepté

Réponse apportée
error in replacing values
use format('long') before output and you will see that everything is OK

presque 13 ans il y a | 0

| A accepté

Charger plus