Answered
Plot problemp
doc plot

bijna 12 jaar ago | 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...

bijna 12 jaar ago | 1 answer | 0

1

answer

Answered
Switch -- How to specify interval of cases?
switch i case num2cell(1:100) statement case num2cell(101:200) statement end

ongeveer 12 jaar ago | 4

| accepted

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

ongeveer 12 jaar ago | 0

Answered
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.

ongeveer 12 jaar ago | 1

Answered
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...

ongeveer 12 jaar ago | 0

Answered
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...

ongeveer 12 jaar ago | 1

Answered
An orthogonal matrix from two orthognal matrices!
will this help? doc orth

ongeveer 12 jaar ago | 0

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

ongeveer 12 jaar ago | 0

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

ongeveer 12 jaar ago | 4

Answered
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...

ongeveer 12 jaar ago | 0

Answered
Using for loop
EDITED Class(:,i)= vlookup(MOD(1:end , 14:15),MOD(i,1),2,1);

ongeveer 12 jaar ago | 0

Answered
How to plot logarithmic graph in matlab
set(gca, 'YScale','log');

ongeveer 12 jaar ago | 0

Answered
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)+...

ongeveer 12 jaar ago | 0

Answered
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...

ongeveer 12 jaar ago | 1

| accepted

Answered
Vectorization
N=reshape(M,j*a,j/a)

ongeveer 12 jaar ago | 0

| accepted

Answered
problem with write to text file
Changing ownership (permissions) of your destination folder can help

ongeveer 12 jaar ago | 0

Answered
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))]; ...

ongeveer 12 jaar ago | 0

Answered
Cell array to 1x1 Vector/Cell
c1 = [c{1},' ',c{2}]

ongeveer 12 jaar ago | 1

Answered
minimum value of a matrix with the main diagonal elements equals to zero
out = min(A(A~=0))

ongeveer 12 jaar ago | 0

| accepted

Answered
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...

ongeveer 12 jaar ago | 0

Answered
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

ongeveer 12 jaar ago | 0

Answered
Total beginner needs some help solving an equation
doc solve

ongeveer 12 jaar ago | 1

| accepted

Answered
Radio Button and Panel GUIDE
if (get(hObject,'Value') == get(hObject,'Max')) set (handles.my_uipanel,'Visible','on'); else set (handles.my_uipanel,'...

ongeveer 12 jaar ago | 0

Answered
I want to implement this matrix
A=[zeros(64,1),(Ip-l)*eye(64,64)]

ongeveer 12 jaar ago | 0

Answered
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,:);

ongeveer 12 jaar ago | 1

| accepted

Answered
plotting problem
try plot(x,1-u_gb,'.k');

ongeveer 12 jaar ago | 0

| accepted

Answered
error in replacing values
use format('long') before output and you will see that everything is OK

ongeveer 12 jaar ago | 0

| accepted

Answered
how to display all non NaN values in a matrix
A=(A(~isnan(A)));

ongeveer 12 jaar ago | 8

Load more