whats wrong with this code?
3 ビュー (過去 30 日間)
Is it not possible to use logical indexing with tables..?
I have tried to do the same things with my tables as I it is supposed to be done with datasets but it is not working..
I have attached my table . I want to extract all the values of the table where vektprosent is equal to 70 and the salt is 'CaBr2'. How can this be done I am getting error message if I write something like this:
回答 (2 件)
dpb 2022 年 7 月 3 日
But 'vektprosent_best_salts' is an array containing two entries per record, not one. Hence matching "70" by itself is bound to fail.
Similarly the 'Best_salts' variable is also an array. If you intended to have only two variables with them each being an array (instead of some other arrangment with a single salt and its molecular weight(?) as individual entries) then you'll have to use something like
>> m=[50 55;40 70];
2×1 logical array
to locate a single value.